@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Hind:wght@400;500;600;700&display=swap');
:root {
    --blue: #1E6FB2;
    --blue-dark: #0D3E70;
    --sky: #007bb6;
    --black: #161616;
    --paper: #FFFFFF;
    --paper-2: #F4F8FB;
    --ink: #1B1D1F;
    --ink-soft: #4F5A63;
    --line: #E1E8EF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind', system-ui, sans-serif;
    background: var(--paper-2);
    color: var(--ink);
    overflow-x: hidden;
    transition: transform 0.2s ease, zoom 0.2s ease;
    transform-origin: top center;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- OFFICIAL HEADER --- */
header.site {
    background: linear-gradient(to bottom, #ffffff 0%, #e0f2f1 50%, #b2dfdb 100%);
    border-bottom: 1px solid #333333;
    padding: 6px 0 8px 0;
    max-width: 1110px;
    border-radius: 5px 5px 0 0;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Top Controls Bar */
.top-controls-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px dashed rgba(0, 114, 188, 0.25);
}

.top-btn {
    font-size: 0.75rem;
    color: #0072bc;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #0072bc;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.2;
}

    .top-btn:hover {
        background: #0072bc;
        color: #ffffff;
    }

/* Top Right Controls Styling */
.top-right-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px dashed rgba(0, 114, 188, 0.25);
}

.skip-to-content-btn,
.screen-reader-btn,
.feedback-top-btn {
    font-size: 0.75rem;
    color: #0072bc;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #0072bc;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .skip-to-content-btn:hover,
    .screen-reader-btn:hover,
    .feedback-top-btn:hover,
    .skip-to-content-btn:focus,
    .screen-reader-btn:focus,
    .feedback-top-btn:focus {
        background: #0072bc;
        color: #ffffff;
        outline: none;
    }

.zoom-box {
    display: flex;
    align-items: center;
    gap: 2px;
}

    .zoom-box button {
        background: #ffffff;
        border: 1px solid #0072bc;
        color: #0072bc;
        font-weight: 700;
        cursor: pointer;
        padding: 2px 6px;
        font-size: 0.75rem;
        border-radius: 3px;
        line-height: 1.2;
    }

        .zoom-box button:hover {
            background: #0072bc;
            color: #ffffff;
        }

/* Accessibility Focus Fix */
#main-content:focus {
    outline: none;
}

.top-btn:focus {
    outline: 2px solid #004d80;
    background: #0072bc;
    color: #ffffff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.official-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.brand-sub {
    color: #0b51a0;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    flex: 1;
}

/* Admin Login & Lang Toggle Box */
.admin-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007bb6;
    font-weight: 700;
    font-size: 0.88rem;
}

.admin-box .a-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #007bb6;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 2px; /* Inner padding added so edges don't cut */
}

.admin-box .avatar-img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    object-fit: contain; /* 'cover' ki jagah 'contain' karne se image nahi kategi */
    border-radius: 50%;
}

.lang-toggle {
    display: flex;
    gap: 4px;
    align-items: center;
}

    .lang-toggle button {
        background: transparent;
        border: 1px solid #0072bc;
        color: #0072bc;
        font-weight: 600;
        cursor: pointer;
        padding: 2px 6px;
        font-size: 0.8rem;
        border-radius: 3px;
        margin: 0 1px;
    }

        .lang-toggle button:hover,
        .lang-toggle button.active {
            background: #0072bc;
            color: #ffffff;
        }

    .lang-toggle span {
        color: var(--line);
        font-size: 0.78rem;
    }

/* =========================================================
   NAVBAR DESIGN (Exact Match to Header & Footer Width: 1110px)
   ========================================================= */
.navbar {
    background: var(--black, #161616);
    width: 100%;
    max-width: 1110px; /* Matched exactly with header.site (1110px) */
    margin: 0 auto;
    border-radius: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
}

/* Desktop Menu Layout - Single Row Setup */
nav.main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar .nav-item {
    position: relative;
    display: inline-block;
    flex: 1 1 auto;
    text-align: center;
}

    .navbar .nav-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 6px; /* Optimized padding for 1110px container width */
        color: #ffffff;
        font-size: 0.82rem;
        font-weight: 600;
        white-space: nowrap;
        transition: background 0.2s ease;
        text-align: center;
    }

        .navbar .nav-item > a:hover,
        .navbar .nav-item.open > a,
        .navbar .nav-item a.current {
            background: var(--blue, #0072bc);
        }

/* Duplicate Icon Fix */
.has-dd > a::after {
    content: "" !important;
}

/* Dropdown Submenu Design */
.nav-item.has-dd .dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--blue-dark, #0D3E70);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(13, 62, 112, 0.25);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    padding: 0;
    margin: 0;
}

@media (min-width: 769px) {
    .nav-item.has-dd:hover .dropdown,
    .nav-item.has-dd.open .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block !important;
    }
}

.nav-item.has-dd .dropdown li a {
    padding: 10px 14px !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    text-align: left !important;
    justify-content: flex-start !important;
}

.nav-item.has-dd .dropdown li:last-child a {
    border-bottom: none;
}

.nav-item.has-dd .dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Toggle & Responsive Settings */
.menu-toggle {
    display: none;
    background: var(--black, #161616);
    border: 0;
    cursor: pointer;
    padding: 12px 16px;
    width: 100%;
    color: #fff;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav.main {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--black, #161616);
    }

        nav.main.open {
            display: flex;
        }

    .navbar .nav-item {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

        .navbar .nav-item a {
            justify-content: flex-start !important;
            padding: 12px 16px;
            text-align: left !important;
            font-size: 0.88rem;
        }

    .nav-item.has-dd .dropdown {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
        background: #092a4c !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .nav-item.has-dd.open .dropdown {
        display: block !important;
    }

    .nav-item.has-dd .dropdown li a {
        padding-left: 30px !important;
    }
}

/* --- INNER PAGE CONTENT --- */
.content-wrap {
    padding-top: 10px;
    padding-bottom: 45px;
}

.modal-content {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.modal-header {
    background: #0072bc;
    padding: 10px 0;
    text-align: center;
}

.modal-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-heading-box {
    background: linear-gradient(180deg, #d8f3f8 0%, #eef9fb 60%, #ffffff 100%);
    padding: 25px 20px;
    text-align: center;
}

.main-heading {
    color: #0077b6;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Hind', sans-serif;
}

.htmlcontent-body {
    padding: 15px 25px 30px 25px;
}

.intro-p {
    color: #222222;
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.section-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 18px 0;
}

.section-title {
    color: #0077b6;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.sub-title {
    color: #333333;
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.custom-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

    .custom-list li {
        position: relative;
        padding-left: 18px;
        font-size: 0.95rem;
        line-height: 1.7;
        color: #333333;
        margin-bottom: 8px;
    }

        .custom-list li::before {
            content: "›";
            position: absolute;
            left: 0;
            top: -2px;
            color: #0077b6;
            font-size: 1.3rem;
            font-weight: 700;
        }

/* --- FOOTER --- */
footer {
    background: var(--black);
    color: #C9CFD4;
    padding: 15px 0;
    max-width: 1110px;
    margin: 0 auto;
    border-radius: 0 0 6px 6px;
    box-sizing: border-box;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    padding: 0 15px;
}

.footer-links a {
    opacity: .9;
    color: #fff;
}

    .footer-links a:hover {
        opacity: 1;
        text-decoration: underline;
    }

.footer-links .sep {
    opacity: .4;
    margin: 0 6px;
}

/* =========================================================
   MOBILE RESPONSIVE ADJUSTMENTS (Max-Width: 768px)
   ========================================================= */
@media screen and (max-width: 768px) {
    header.site {
        padding: 8px 10px;
    }

    .top-controls-bar,
    .top-right-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .brand-logo {
        justify-content: center;
    }

    .official-logo {
        height: 44px;
    }

    .brand-sub {
        font-size: 1rem;
        line-height: 1.3;
    }

    .admin-box {
        justify-content: center;
        width: 100%;
        gap: 15px;
    }

    .admin-link span {
        font-size: 0.8rem;
    }

    .menu-toggle {
        display: block;
    }

    nav.main {
        display: none;
        flex-direction: column;
        width: 100%;
    }

        nav.main.open {
            display: flex;
        }

    .navbar .nav-item {
        width: 100%;
    }

        .navbar .nav-item a {
            padding: 10px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

    .nav-item.has-dd .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .main-heading {
        font-size: 1.4rem;
    }

    .htmlcontent-body {
        padding: 15px 12px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
