/*--- GLOBAL VARIABLES --- */ :root {
    --primary-color: #003366;
    /* Government Blue */
    --secondary-color: #f1811e;
    /* Accent/Saffron hint */
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --footer-bg: #002147;
    --footer-text: #e0e0e0;
}

/* --- RESET & BASIC SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- UTILITY BAR --- */
.utility-bar {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.utility-bar a {
    color: #fff;
    margin: 0 5px;
}

.utility-bar a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* --- HEADER & LOGO --- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    padding-bottom: 10px;
}

.govt-emblem img {
    height: 70px;
    width: auto;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.emblem {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    border: 2px solid #d4af37;
    flex-shrink: 0;
}

.emblem-inner {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.emblem-sub {
    font-size: 0.6rem;
    display: block;
    font-weight: normal;
}

.site-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.2;
}

.site-sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.satya {
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 2px;
}

/* --- LEADERS SECTION --- */
.leaders {
    border-left: 1px solid #eee;
    padding-left: 15px;
}

.leader {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.leader-photo {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leader-text p {
    margin-bottom: 0;
    line-height: 1.2;
}

.leader-title {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leader-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- TRICOLOR STRIP --- */
.tricolor-strip {
    height: 4px;
    background: linear-gradient(to right, #ff9933 33%, #ffffff 33%, #ffffff 66%, #138808 66%);
}

.main-nav {
    background: var(--primary-color);
    padding: 0;
    position: relative;
    z-index: 999;
}

.nav-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list li {
    margin: 0;
}

.nav-list li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 500;
    font-size: .95rem;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: .3s;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255, 255, 255, .1);
    border-bottom: 3px solid var(--secondary-color);
    color: #ffd700;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin: 10px;
}

/* MOBILE */

@media(max-width:768px) {

    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-color);
    }

    .nav-list.show {
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

}

/* --- FLIP CARD ANIMATION STYLES --- */
.flip-container {
    perspective: 1000px;
    height: 100%;
    min-height: 320px;
    /* Fixed height for consistency */
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.flip-container:hover .flip-card {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flip-card-front {
    background-color: #fff;
    color: black;
    border: 1px solid #eee;
}

.flip-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.service-icon-lg {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.back-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 10px;
    right: 10px;
}

.btn-proceed {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 15px;
   
}

.btn-proceed:hover {
    background-color: rgb(240, 233, 233);
    color: var(--secondary-color);
}

/* --- FOOTER STYLES --- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
}

.site-footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links a {
    color: #b0b8c1;
    font-size: 0.9rem;
    display: block;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #b0b8c1;
}

.contact-info i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.copyright {
    background-color: #00152e;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #7a828b;
    text-align: center;
}

/* --- 1366x768 LAPTOP FIX --- */
@media (max-width: 1400px) {
    .site-header {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .govt-emblem img {
        height: 56px;
    }

    .emblem {
        width: 56px;
        height: 56px;
    }

    .site-title {
        font-size: 1rem;
    }

    .site-sub {
        font-size: 0.78rem;
    }

    .satya {
        font-size: 0.65rem;
    }

    .leader-photo {
        width: 46px;
        height: 46px;
    }

    .leader-name {
        font-size: 0.78rem;
    }

    .leader-title {
        font-size: 0.6rem;
    }

    .leaders {
        padding-left: 10px;
    }

    .nav-list li a {
        padding: 12px 12px;
        font-size: 0.85rem;
    }
}

/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 768px) {
    .leaders {
        display: none;
    }

    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .site-header .d-flex {
        flex-direction: column;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }
}

/* मोबाइल के लिए सेटिंग */
@media (max-width: 768px) {
    .nav-toggle {
        display: block !important;
    }

    .main-nav .nav-list {
        display: none !important;
        /* शुरुआत में छिपा हुआ */
        flex-direction: column;
        width: 100%;
    }

    /* जब JS क्लास 'open' जोड़ेगा, तो यह दिखेगा */
    .main-nav .nav-list.open {
        display: flex !important;
    }
}