:root {
    --blue: #155FA8;
    --blue-dark: #0D3E70;
    --sky: #2FA9E0;
    --black: #161616;
    --green: #1E9E6B;
    --amber: #F2A93B;
    --paper: #FFFFFF;
    --paper-2: #F2F6FA;
    --ink: #1B1D1F;
    --ink-soft: #5A6570;
    --line: #E1E8EF;
    --header-h: 118px;
    --nav-h: 44px;
}

* {
    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;
}

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

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

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

#main-content-wrap:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0072bc;
}

/* ---------- Header ---------- */
header.site {
    background: linear-gradient(to bottom, #ffffff 0%, #e0f2f1 50%, #b2dfdb 100%);
    border-bottom: 2px solid #333333;
    padding: 8px 0 12px 0;
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 6px 6px 0 0;
    position: relative;
}

/* Top Right Fixed Controls Box with Light Dotted Underline */
.top-right-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px dotted #a0c4e2; /* Light dotted border */
    margin-bottom: 12px;
}

/* Feedback & Accessibility Buttons */
.feedback-top-btn, .skip-to-content-btn, .screen-reader-btn {
    background: #ffffff;
    color: #0072bc;
    border: 1px solid #0072bc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

/* Top Language Switcher */
.lang-toggle-top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #0072bc;
    padding: 1px 6px;
    border-radius: 3px;
}

    .lang-toggle-top button {
        background: transparent;
        border: none;
        color: #0072bc;
        font-weight: 600;
        font-size: 0.75rem;
        cursor: pointer;
        padding: 0 2px;
    }

        .lang-toggle-top button.active {
            color: #000000;
            font-weight: 700;
            text-decoration: underline;
        }

    .lang-toggle-top span {
        color: #0072bc;
        font-size: 0.75rem;
    }

/* Zoom Controls Styling */
.zoom-box {
    display: flex;
    align-items: center;
    gap: 2px;
}

    .zoom-box button {
        background: #ffffff;
        border: 1px solid #0072bc;
        color: #0072bc;
        font-weight: bold;
        cursor: pointer;
        padding: 1px 6px;
        font-size: 0.75rem;
        border-radius: 3px;
        transition: all 0.2s;
    }

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

/* Header Inner Grid Setup */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* VIP Images (PM & CM - Complete Full Photo Display) */
.pm-box, .cm-box {
    flex: 0 0 auto;
}

.vip-img-lg {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top; /* Image ke top portion (face) par focus rahega */
    background: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Center Brand Section */
.brand-center {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .brand-logo img {
        max-height: 75px;
        width: auto;
    }

.brand-sub {
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 6px;
    letter-spacing: -0.2px;
}

/* Far Right Container: Admin Login Only */
.right-action-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

/* Admin Box */
.admin-box {
    text-align: center;
}

    .admin-box .a-icon {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background: var(--paper-2);
        border: 2px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        overflow: hidden;
        flex: none;
        padding: 2px; /* Inner padding added so edges don't cut */
    }
    .admin-box .avatar-img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* 'cover' ki jagah 'contain' karne se image nahi kategi */
        border-radius: 50%;
    }

        .admin-box .a-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

    .admin-box span {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--blue-dark);
        margin-top: 4px;
        letter-spacing: .03em;
    }

/* ---------- Nav ---------- */
.navbar {
    background: var(--black);
    max-width: 1181px;
    margin: 0 auto;
    border-radius: 4px;
}

nav.main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

    nav.main > .nav-item {
        position: relative;
    }

    nav.main a {
        display: block;
        padding: 12px 18px;
        color: #fff;
        font-size: .86rem;
        font-weight: 600;
        white-space: nowrap;
    }

    nav.main > .nav-item > a:hover, nav.main > .nav-item.open > a {
        background: var(--blue);
    }

.has-dd > a::after {
    content: " ▾";
    font-size: .7rem;
    opacity: .8;
}

.menu-toggle {
    display: none;
    background: var(--black);
    border: 0;
    cursor: pointer;
    padding: 10px 16px;
    width: 100%;
    color: #fff;
    font-weight: 600;
    text-align: left;
}

/* Dropdown submenu */
.dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: var(--blue-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(13,62,112,.18);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

    .dropdown a {
        color: #ffffff;
        padding: 11px 16px;
        font-weight: 500;
        font-size: .85rem;
        display: block;
    }

        .dropdown a:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }

@media (min-width: 641px) {
    .nav-item.has-dd:hover .dropdown,
    .nav-item.has-dd.open .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
/* ---------- MARQUEE STYLING ---------- */
.marquee-container {
    display: flex;
    align-items: center;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.marquee-tag {
    background: var(--amber);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

    .marquee-body marquee {
        color: #b71c1c;
        font-weight: 600;
        font-size: 0.88rem;
        padding: 4px 0;
    }
/* ---------- Layout ---------- */
.main-grid {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 20px;
    padding: 20px 0;
}

.side-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

    .side-box .sb-title {
        background: var(--green);
        color: #fff;
        padding: 9px 14px;
        font-weight: 700;
        font-size: .86rem;
    }

    .side-box .sb-body {
        padding: 10px 14px;
    }

.link-list {
    list-style: none;
    display: grid;
    gap: 2px;
}

    .link-list li a {
        display: flex;
        gap: 8px;
        align-items: flex-start;
        padding: 7px 2px;
        font-size: .82rem;
        color: var(--blue-dark);
        border-bottom: 1px dashed var(--line);
    }

    .link-list li:last-child a {
        border-bottom: 0;
    }

    .link-list li a:hover {
        color: var(--blue);
        text-decoration: underline;
    }

    .link-list li a::before {
        content: "▸";
        color: var(--green);
        flex: none;
    }

/* Splash Banner */
.splash-container {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
}

.slider, .slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

    .slide.active {
        position: absolute;
        opacity: 1;
        z-index: 2;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
        margin: 0 auto;
    }

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 80%;
    margin: 28px auto 10px auto;
}

.pill-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(21,95,168,.10);
}

    .pill-btn h4 {
        font-size: .9rem;
        font-weight: 700;
        color: var(--blue-dark);
        line-height: 1.3;
    }

/* ---------- Bottom Two-Column Grid ---------- */
.bottom-grid {
    display: flex !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: 15px !important;
}

    .bottom-grid > div:first-child {
        width: 230px !important;
        min-width: 230px !important;
        display: flex !important;
        flex-direction: column !important;
    }

.paytax-box {
    width: 100% !important;
    height: 100% !important;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
}

    .paytax-box .sb-title {
        background: var(--paper-2);
        color: var(--blue-dark);
        border-bottom: 2px solid var(--blue);
        padding: 10px 15px;
        font-weight: 700;
        font-size: 1rem;
        text-align: center;
    }

    .paytax-box .sb-body {
        padding: 15px;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center;
    }

.paytax-icon {
    font-size: 2.6rem;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

    .paytax-icon img {
        max-width: 100%;
        height: auto;
        display: block !important;
        margin: 0 auto !important;
    }

/* Welcome Card */
.welcome-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 22px 24px;
    width: 100% !important;
    flex: 1 !important;
    height: 100% !important;
}

    .welcome-card h3 {
        font-size: 1.15rem;
        color: var(--blue-dark);
        font-weight: 700;
        margin-bottom: 10px;
    }

.jal-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--sky);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.poem {
    font-style: italic;
    color: var(--ink-soft);
    line-height: 1.9;
    font-size: .92rem;
    margin-bottom: 14px;
    text-align: center;
    width: 100%;
}

.welcome-card p.body-text {
    color: var(--ink-soft);
    line-height: 1.8;
    font-size: .92rem;
}

/* Footer */
footer {
    background: var(--black);
    color: #C9CFD4;
    padding: 15px 0;
    max-width: 1180px;
    margin: 5px auto 0 auto;
    border-radius: 0 0 6px 6px;
}

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

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

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

/* ---------- Responsive Media Queries ---------- */
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .bottom-grid {
        flex-direction: column !important;
    }

        .bottom-grid > div:first-child {
            width: 100% !important;
            min-width: 100% !important;
        }
}

@media (max-width: 640px) {
    .top-right-controls {
        justify-content: center;
        gap: 6px 4px;
    }

    .feedback-top-btn, .skip-to-content-btn, .screen-reader-btn {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .lang-toggle-top {
        padding: 2px 4px;
    }

        .lang-toggle-top button {
            font-size: 0.7rem;
        }

    .zoom-box button {
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    .brand-sub {
        font-size: 0.95rem;
    }

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

        nav.main.open {
            display: flex;
        }

    .menu-toggle {
        display: block;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .vip-img-lg {
        width: 75px;
        height: 75px;
    }

    /*.admin-box .a-icon {
        width: 50px;
        height: 50px;
    }*/

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

/* ---------- POPUP MODAL STYLES ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .modal-overlay.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 650px;
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0d5c9d;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

    .modal-header h3 {
        color: #0d5c9d;
        font-size: 1.15rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: -0.2px;
    }

.modal-close {
    background: #e0e0e0;
    border: none;
    color: #555555;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

    .modal-close:hover {
        background: #cccccc;
        color: #000000;
    }

.modal-body p {
    color: #1e3a68;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    font-weight: 500;
}
.modal-overlay.modal-hidden {
    display: none !important;
}

.modal-close {
    position: relative;
    z-index: 100000;
    pointer-events: auto;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

    .modal-close:hover {
        background: #b02a37;
    }
