/* Custom CSS for Nes Media */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { color: var(--text); background-color: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.section-title { font-size: 2.5rem; color: var(--secondary); text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 50px; font-size: 1.1rem; }
.bg-light { background-color: var(--light); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.3s; text-align: center; border: none; }
.btn-primary { background-color: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--secondary); }
.btn-outline { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; }

/* Navbar */
.navbar { position: fixed; width: 100%; height: 75px; top: 0; background: var(--white); box-shadow: var(--shadow); z-index: 1000; display: flex; align-items: center; }
.navbar .container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--secondary); }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-weight: 500; transition: color 0.3s, background-color 0.3s; }
.nav-links a:not(.btn-outline):hover { color: var(--primary); }
.nav-links a.btn-outline:hover { color: var(--white); }
.hamburger { display: none; cursor: pointer; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s; background-color: var(--secondary); }

/* Main Content Area to offset fixed header */
main { padding-top: 70px; min-height: calc(100vh - 300px); }

/* Hero */
.hero { background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('../img/banner-c.png') center/cover no-repeat; color: var(--white); padding: 120px 0 120px; text-align: center; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero h1 .highlight { color: #60a5fa; }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 40px; color: #cbd5e1; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; flex-direction: column; }
.card .icon { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary); }
.card h3 { margin-bottom: 15px; color: var(--secondary); }

/* Product Features List */
.product-features { margin-top: 15px; margin-bottom: 20px; flex-grow: 1; }
.product-features li { padding-left: 25px; position: relative; margin-bottom: 8px; color: var(--text-light); }
.product-features li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: #10b981; }

/* Contact */
.contact-flex { display: flex; gap: 50px; }
.contact-info, .contact-form { flex: 1; }
.contact-info ul { margin-top: 20px; }
.contact-info ul li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: flex-start; gap: 10px; }
.contact-info ul li i { color: var(--primary); margin-top: 5px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

/* Footer */
.footer { background: var(--secondary); color: var(--white); padding: 60px 0 20px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { margin-bottom: 20px; color: var(--white); }
.footer-col p { color: #cbd5e1; margin-bottom: 10px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #cbd5e1; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--white); }
.admin-link { display: inline-block; margin-top: 15px; padding: 8px 16px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #94a3b8; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .contact-flex { flex-direction: column; }
    .hero-buttons { flex-direction: column; }
}/* Rich Text Content */  
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { color: var(--secondary); margin: 20px 0 15px; }  
.rich-text p { margin-bottom: 8px; line-height: 1.6; }  
.rich-text ul { list-style-type: disc; margin-left: 20px; margin-bottom: 15px; }  
.rich-text ol { list-style-type: decimal; margin-left: 20px; margin-bottom: 15px; }  
.rich-text li { margin-bottom: 8px; }  
.rich-text strong, .rich-text b { font-weight: 700; color: var(--secondary); } 

/* Admin Tables (DataTables Customization) */
.table-admin { width: 100%; border-collapse: collapse; margin-top: 0; background: #fff; border-radius: 8px; overflow: hidden; }
.table-admin th, .table-admin td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-admin th { background: #f8fafc; color: #475569; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; border-bottom: 2px solid #cbd5e1; white-space: nowrap; }
.table-admin tbody tr { transition: background 0.2s; }
.table-admin tbody tr:hover { background: #f1f5f9; }

/* Custom Select Design */
select.form-control, .form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* jQuery DataTables Overrides */
.dataTables_wrapper, .dt-container { padding: 20px; overflow-x: auto; }
.dataTables_wrapper .dataTables_filter input, .dt-search input { border: 1px solid var(--border); border-radius: 4px; padding: 6px 10px; margin-left: 8px; outline: none; }
.dataTables_wrapper .dataTables_filter input:focus, .dt-search input:focus { border-color: var(--primary); }
.dataTables_wrapper .dataTables_length select, .dt-length select { border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; outline: none; }

/* DataTables 2.x Nuclear Overrides for Pagination */
div.dt-container .dt-paging .dt-paging-button,
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 12px !important;
    margin: 0 2px !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
    background: #fff !important;
    background-color: #fff !important;
    cursor: pointer !important;
    color: var(--text) !important;
}

div.dt-container .dt-paging .dt-paging-button:hover:not(.current),
.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    color: var(--primary) !important;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover,
div.dt-container .dt-paging .dt-paging-button.current:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #2563eb !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    border-radius: 4px !important;
    font-weight: bold;
}

div.dt-container .dt-paging .dt-paging-button.current *,
div.dt-container .dt-paging .dt-paging-button.current:hover *,
.dataTables_wrapper .dataTables_paginate .paginate_button.current *,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover * {
    color: #ffffff !important;
}

table.dataTable.no-footer { border-bottom: 1px solid var(--border); margin-top: 15px; margin-bottom: 15px; }
