:root {
    --p: #0f172a;
    /* Primary Deep Navy */
    --s: #fbbf24;
    /* Secondary Amber */
    --a: #fbbf24;
    /* Accent same as secondary */
    --bg: #f8fafc;
    --card: #ffffff;
    --tm: #475569;
    /* Text main */
    --th: #1e293b;
    /* Text head */
    --border: rgba(0, 0, 0, 0.06);
    --glass: rgba(255, 255, 255, 0.8);
    --grad: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.desktop-only {
    display: inline-flex !important;
}

.mobile-only {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html,
body {
    background: var(--bg);
    color: var(--tm);
    line-height: 1.6;
    overflow-x: hidden !important;
    max-width: 100% !important;
    position: relative;
    width: 100%;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    box-sizing: border-box;
}

header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    height: 120px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--p);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    transition: 0.3s ease;
}

.logo span {
    color: var(--a);
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--tm);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

header nav ul li a:hover {
    color: var(--a);
}

.nav-cta {
    background: var(--p);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.nav-cta:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* Mobile Icon Visibility */
.mobile-menu-btn {
    display: none;
    background: #f1f5f9;
    border: 1px solid var(--border);
    color: var(--p);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    header {
        height: 70px !important;
    }

    .site-logo {
        max-height: 45px !important;
    }

    header nav {
        top: 70px !important;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--p);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}



/* Hero */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    background: var(--grad);
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.svg');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: clamp(1rem, 4vw, 1.15rem);
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-p {
    background: var(--a);
    color: var(--p);
}

.btn-p:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

/* Services */
.section-padding {
    padding: 100px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--a);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--th);
    margin-top: 10px;
}

.bar {
    width: 60px;
    height: 4px;
    background: var(--a);
    margin: 20px auto;
    border-radius: 2px;
}

.serv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    grid-auto-rows: 1fr;
}

.serv-card {
    background: var(--card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.serv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--a);
}

.serv-card .icon {
    font-size: 40px;
    margin-bottom: 25px;
    display: block;
}

.serv-card h3 {
    color: var(--th);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: var(--p);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: start;
}

.footer-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

.footer-title {
    color: #fff;
    margin-bottom: 25px;
    margin-top: 0;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: var(--a);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

/* Responsive Optimization */
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .header-flex {
        padding: 0 10px;
    }

    header {
        height: 90px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .site-logo {
        max-height: 70px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 10vw, 2.2rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    header nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        background: #fff;
        overflow-y: auto;
        transition: 0.3s ease-in-out;
        z-index: 999;
    }

    header nav.active {
        max-height: calc(100vh - 90px);
        padding: 40px 20px 80px;
        border-bottom: 2px solid var(--a);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    header nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    header nav ul li a {
        font-size: 18px;
        color: var(--p);
    }

    .serv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Contact Mobile scaling */
    #contact>.container>div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    #contact form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Performance - fix sticky scroll */
    #home {
        background-attachment: scroll !important;
    }

    .hero {
        padding-top: 90px !important;
        min-height: auto !important;
        padding-bottom: 50px !important;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    html {
        scroll-behavior: auto !important;
        /* Fast response on mobile */
    }
}

/* Table Responsiveness Utility */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Video Portal Specific Layouts */
.video-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    gap: 30px !important;
}

.media-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.video-container iframe,
.video-container video,
.video-container embed {
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: inherit;
}

/* Fix for Samsung S23+ / iPhone SE (Very narrow screens) */
@media (max-width: 550px) {
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px !important;
    }

    .section-padding {
        padding: 40px 0 !important;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .media-card {
        border-radius: 15px !important;
    }

    .media-card h3 {
        font-size: 1.25rem !important;
    }

    .btn {
        width: 100% !important;
        text-align: center !important;
    }

    header {
        height: 70px !important;
    }

    .site-logo {
        max-height: 45px !important;
    }

    header nav {
        top: 70px !important;
    }

    .main-text {
        font-size: 1rem !important;
    }
}

/* Contact Form Scaling Fix */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.contact-captcha-row {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #334155;
}

@media (max-width: 600px) {
    .contact-form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .contact-card-mobile {
        padding: 25px 20px !important;
    }

    .contact-captcha-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .contact-captcha-row input {
        width: 100% !important;
    }
}

/* 🏁 Typography & Mobile List Fixes */
.main-text ol,
.main-text ul {
    padding-left: 2rem !important;
    margin: 20px 0 !important;
}

.main-text li {
    margin-bottom: 12px !important;
    line-height: 1.6;
}

/* 🏁 Global Responsive Tables Wrapper & Leadership System (Editor-Safe) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.lead-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #fff !important;
    min-width: 600px !important;
    border: 1px solid #e2e8f0 !important;
}

.lead-table thead tr,
.main-text table thead tr {
    background: #f8fafc !important;
    border-bottom: 2px solid #fbbf24 !important;
    text-align: left !important;
}

.lead-table th,
.lead-table td,
.main-text table th,
.main-text table td {
    padding: 18px 25px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
}

.lead-table tr:hover {
    background: #f8fafc !important;
}

.badge-pos {
    display: inline-block !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    background: rgba(251, 191, 36, 0.12) !important;
    color: #b45309 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
}

.tag-title {
    color: #fbbf24 !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    display: block !important;
    margin-bottom: 5px !important;
}

h2.legislature {
    font-size: 2.2rem !important;
    color: #0f172a !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}

h3.section-l {
    font-size: 1.4rem !important;
    color: #0f172a !important;
    margin-top: 50px !important;
    margin-bottom: 20px !important;
    padding-left: 15px !important;
    border-left: 5px solid #fbbf24 !important;
    font-weight: 800 !important;
}