/* 1. CSS VARIABLES & CORE DEFAULTS */
:root {
    --gov-blue: #0033a0;
    --gov-red: #cc0000;
    --gov-dark-blue: #002244;
    --gov-light-blue: #eef2ff;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Noto Sans Devanagari', 'Segoe UI', Tahoma, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 2. GOVERNMENT BRANDING - HEADER & LOGO */
.public-header {
    background: linear-gradient(90deg, var(--gov-dark-blue) 0%, var(--gov-blue) 100%);
    color: white;
    padding: 12px 0;
    border-bottom: 3px solid var(--gov-red);
}

.header-branding {
    padding: 5px 0;
    text-align: left;
    display: flex;
    align-items: center;
}

.header-crest {
    height: 68px; /* Slightly adjusted for better detail */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    /* Pulls the logo slightly left past the container gutter on desktop */
    margin-left: -12px; 
    transition: transform 0.3s ease;
}

.header-crest:hover {
    transform: scale(1.02);
}

.header-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Professional divider between crest and text */
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 18px;
    /* Keeping text tight to the logo */
    margin-left: 5px; 
}

.gov-org-name {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.95);
}

.system-portal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2px 0;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.system-header-address {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
    color: #ffffff;
    margin-top: 2px;
}

/* Responsive Branding Tweaks */
@media (max-width: 991px) {
    .header-crest {
        margin-left: 0; /* Reset nudge for tablets */
        height: 55px;
    }
    
    .system-portal-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-branding {
        justify-content: center; /* Center logo/name on mobile */
        text-align: center;
    }

    .header-text-block {
        border-left: none; /* Remove divider on small screens */
        padding-left: 10px;
        margin-left: 0;
    }

    .header-crest {
        height: 50px;
    }

    .system-portal-title {
        font-size: 1.1rem;
    }
    
    .system-header-address {
        display: none; /* Hide address on very small screens to save space */
    }
}

/* 3. NAVIGATION */
.public-nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .public-nav .nav-link {
        font-size: 1.05rem;
        font-weight: 500;
        padding: 0.8rem 1.2rem !important;
        position: relative;
        color: #444;
        transition: color 0.3s ease;
    }

        .public-nav .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 5px;
            left: 50%;
            background-color: var(--gov-red);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .public-nav .nav-link:hover::after,
        .public-nav .nav-link.active::after {
            width: 70%;
        }

        .public-nav .nav-link:hover {
            color: var(--gov-blue) !important;
        }

        .public-nav .nav-link.active {
            color: var(--gov-red) !important;
            font-weight: 600;
        }

/* 4. HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, var(--gov-dark-blue) 0%, var(--gov-blue) 100%);
    color: white;
    padding: 120px 0;
    position: relative;
}

.hero-mini-title {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.btn-hero-register {
    background-color: white;
    color: var(--gov-blue);
    font-size: 1.25rem;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

    .btn-hero-register:hover {
        background-color: var(--gov-red);
        color: white;
        transform: translateY(-3px);
    }

/* 5. BUTTONS & ACTIONS */
.header-actions {
    height: 100%;
}

.btn-login-header {
    background-color: var(--gov-red);
    color: white;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

    .btn-login-header:hover {
        background-color: #ffffff;
        color: var(--gov-red);
    }

.lang-dropdown-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.lang-dropdown-item.active {
    background-color: var(--gov-red) !important;
    color: white !important;
}

/* 6. FOOTER */
.public-footer {
    background-color: var(--gov-dark-blue);
    color: #ffffff;
    padding: 40px 0 20px;
    border-top: 4px solid var(--gov-red);
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-simple-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-simple-links a:hover {
        color: white;
        text-decoration: underline;
    }

/* 7. UTILITIES & CARDS */
.feature-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

.feature-icon i {
    font-size: 2.5rem;
    color: var(--gov-blue);
    margin-bottom: 15px;
}

.border-top-gov-red {
    border-top: 4px solid var(--gov-red) !important;
}

.btn-gov-red {
    background-color: var(--gov-red);
    color: white;
    border: none;
}

    .btn-gov-red:hover {
        background-color: #a30000;
        color: white;
    }

.btn-outline-gov {
    border: 2px solid var(--gov-blue);
    color: var(--gov-blue);
    font-weight: 600;
}

    .btn-outline-gov:hover {
        background-color: var(--gov-blue);
        color: white;
    }

/* 8. RESPONSIVE MEDIA QUERIES */
@media (max-width: 991px) {
    .footer-simple-links a {
        display: inline-block;
        margin: 5px 10px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .header-crest {
        height: 50px;
    }

    .header-text-block {
        border-left: none;
        padding-left: 0;
        margin-left: 10px;
    }

    .header-actions {
        margin-top: 15px;
        justify-content: center !important;
    }

    .system-portal-title {
        font-size: 1.1rem;
    }
}



