@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #d97706;
    --accent-hover: #b45309;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Header & Navbar */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
    background-color: rgba(59, 130, 246, 0.05);
}

.nav-btn {
    background-color: var(--primary);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.nav-btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-btn-outline:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Global Layout & Main Container */
.container {
    max-width: 1200px;
    margin: 2.5rem auto 1rem auto;
    padding: 0 1.5rem;
}

/* Cards & Containers */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2.5rem;
    align-items: start;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #0a4c8c; /* deep blue color for welcome */
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.warning-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: #1e293b; /* dark warning color */
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.hero-title-underline, .warning-title-underline {
    width: 44px;
    height: 3px;
    background-color: #ef4444; /* red accent underline bar */
    margin-bottom: 1.5rem;
}

.hero-desc-1, .hero-desc-2 {
    font-size: 14px;
    color: #000000;
    font-weight: 400;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.hero-warning-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.warning-flyer-container {
    width: 100%;
    max-width: 100%; /* Cover the full column width on desktop to align with the stats cards */
    aspect-ratio: 353 / 199;
    max-height: 270px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.warning-flyer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 1.5rem 0;
    }

    .warning-title {
        white-space: normal;
    }
    
    .hero-content {
        order: 1;
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .hero-warning-content {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .warning-flyer-container {
        max-width: 100% !important; /* Scale to full website layout width */
        width: 100% !important;
        height: auto !important;
        aspect-ratio: unset !important;
        max-height: none !important;
    }

    .warning-flyer-img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    /* Hero media overrides removed */
}

/* Feature Box */
.feature-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1d4ed8 100%);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
    color: #0f172a;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

select.form-control option {
    background-color: #ffffff;
    color: var(--text-primary);
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* Step Pipeline Tracker (Dashboard) */
.pipeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 3rem 0;
    padding: 0 1rem;
}

.pipeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 4rem;
    right: 4rem;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.pipeline-progress {
    position: absolute;
    top: 24px;
    left: 4rem;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--success));
    z-index: 1;
    transition: width 0.5s ease;
}

.pipeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 8rem;
    text-align: center;
}

.step-node {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    transition: all 0.4s ease;
}

.pipeline-step.active .step-node {
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.pipeline-step.completed .step-node {
    border-color: var(--success);
    background-color: var(--success);
    color: #0f172a;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pipeline-step.active .step-label {
    color: var(--text-primary);
}

.pipeline-step.completed .step-label {
    color: var(--success);
}

@media (max-width: 768px) {
    .pipeline {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .pipeline::before, .pipeline-progress {
        display: none;
    }
    .pipeline-step {
        flex-direction: row;
        width: 100%;
        text-align: left;
        gap: 1rem;
    }
    .step-node {
        margin-bottom: 0;
    }
}

/* Video Verification UI */
.video-verify-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    border: 2px solid var(--border-color);
}

#previewVideo, #playbackVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recording-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--danger);
    animation: pulse 1.5s infinite;
}

.recording-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--danger);
}

.script-card {
    background: rgba(59, 130, 246, 0.08);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 1.25rem;
    width: 100%;
    max-width: 640px;
}

.script-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.script-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.controls-row {
    display: flex;
    gap: 1rem;
}

/* Audio wave animation */
.wave-container {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 8px;
}

.wave-bar {
    width: 3px;
    height: 10%;
    background-color: var(--primary);
    animation: soundWave 0.5s ease infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.15s; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; }

/* Keyframes */
@keyframes soundWave {
    0% { height: 10%; }
    100% { height: 100%; }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Footer styling */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    list-style: none;
}

/* Mock Payment UI */
.payment-box {
    max-width: 500px;
    margin: 0 auto;
}

.payment-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pay-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.pay-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Application Status Pill */
.status-pill {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
}

.status-registered { background-color: rgba(156, 163, 175, 0.1); color: #4b5563; }
.status-profile_completed { background-color: rgba(59, 130, 246, 0.1); color: #2563eb; }
.status-docs_uploaded { background-color: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.status-video_submitted { background-color: rgba(245, 158, 11, 0.1); color: #d97706; }
.status-payment_pending { background-color: rgba(239, 68, 68, 0.1); color: #dc2626; }
.status-paid { background-color: rgba(16, 185, 129, 0.1); color: #059669; }
.status-approved { background-color: rgba(16, 185, 129, 0.2); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-rejected { background-color: rgba(239, 68, 68, 0.2); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }
.status-correction_required { background-color: rgba(245, 158, 11, 0.2); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Document upload layout */
.doc-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.doc-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doc-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

/* Full screen centered auth forms layout */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0 auto !important;
    padding: 2rem 1.5rem;
}

/* Responsive Navbar Toggle Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        border-right: 1px solid var(--border-color);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 7rem 2rem 2rem 2rem;
        gap: 1.25rem;
        transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 101;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-item {
        display: block;
        padding: 0.8rem 1.25rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        color: var(--text-primary);
    }
    .nav-item:hover, .nav-item.active {
        color: var(--primary);
        background-color: rgba(59, 130, 246, 0.05);
    }
    .nav-btn, .nav-btn-outline {
        text-align: center;
        margin-top: 0.5rem;
        border-bottom: none;
    }
    .gov-footer-links-row1 {
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .brand {
        font-size: 1.2rem !important;
        gap: 0.5rem !important;
    }
    .brand span:last-child {
        font-size: 0.75rem !important;
        padding-left: 0.5rem !important;
        margin-left: 0.15rem !important;
    }
}

/* Government Scheme Footer Styles */
.gov-footer {
    width: 100%;
    margin-top: 2rem;
    box-sizing: border-box;
    border: none;
    padding: 0;
}

.gov-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.gov-footer-top-row {
    background-color: #4b4b4b; /* Solid medium-dark charcoal grey background matching given UI */
    padding: 0.9rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.gov-footer-links-row1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 11px;
    font-weight: 500;
}

.gov-footer-links-row1 a {
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.gov-footer-links-row1 a:hover {
    opacity: 0.85;
}

.gov-footer-links-row1 .divider {
    color: #888888;
}

.gov-footer-bottom-row {
    background-color: #2b2b2b; /* Solid darker charcoal grey/black background matching given UI */
    padding: 0.8rem 2rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 10px;
    color: #cccccc;
}

.gov-footer-container.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.gov-footer-bottom-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.gov-footer-bottom-left .copyright-text {
    font-weight: 600;
    color: #ffffff;
}

.gov-footer-bottom-left .last-updated-text {
    color: #aaaaaa;
}

.gov-footer-socials-diamonds {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-diamond {
    width: 24px;
    height: 24px;
    border: 1px solid #ffffff;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(45deg);
    transition: all 0.2s ease;
    color: #ffffff !important;
    text-decoration: none;
}

.social-diamond:hover {
    background-color: #ffffff;
    color: #2b2b2b !important;
}

.social-diamond .icon-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-45deg); /* Keep icons upright */
}

.social-diamond svg {
    fill: currentColor;
    width: 12px;
    height: 12px;
}

.gov-footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gov-footer-bottom-right a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
}

.gov-footer-bottom-right a:hover {
    opacity: 0.85;
}

.gov-footer-bottom-right .divider {
    color: #666666;
}

@media (max-width: 768px) {
    .gov-footer-container.flex-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .gov-footer-bottom-left {
        align-items: center;
    }
    .gov-footer-bottom-right {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Interactive Q&A Section (Overlapping Grid Layout) */
.qna-section {
    background-color: #f8fafc; /* Very light grey */
    padding: 6rem 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.qna-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    max-width: 1100px;
    width: 100%;
    align-items: center; /* Center-align items to allow height variation */
    position: relative;
}

.qna-info-card {
    background-color: #24357c; /* Match deep navy blue */
    color: #ffffff;
    padding: 3.5rem 4.5rem 3.5rem 3.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.qna-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.qna-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.qna-bullet {
    color: #fbbf24; /* Yellow bullet text */
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.qna-bullet .bullet-dot {
    margin-right: 0.35rem;
    font-size: 1.2rem;
    vertical-align: middle;
}

.qna-actions {
    display: flex;
    gap: 1rem;
}

.btn-qna-register {
    background-color: #556ee6;
    color: #ffffff !important;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(85, 110, 230, 0.2);
    text-align: center;
}

.btn-qna-register:hover {
    background-color: #3b54d6;
    box-shadow: 0 6px 18px rgba(85, 110, 230, 0.4);
    transform: translateY(-1px);
}

.btn-qna-faq {
    background-color: #ef4444; /* Orange/Red */
    color: #ffffff !important;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
    text-align: center;
}

.btn-qna-faq:hover {
    background-color: #dc2626;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.qna-form-card {
    background-color: #ffffff;
    padding: 4.5rem 4rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Premium shadow */
    z-index: 2;
    margin-left: -3.5rem; /* Dynamic overlap */
    border: 1px solid #f1f5f9;
    box-sizing: border-box;
    align-self: center;
}

.form-group-qna {
    margin-bottom: 1.5rem;
}

.qna-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.qna-input {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: #0f172a;
    transition: all 0.25s;
    box-sizing: border-box;
}

.qna-input::placeholder {
    color: #94a3b8;
    opacity: 0.85;
}

.qna-input:focus {
    outline: none;
    border-color: #556ee6;
    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.15);
}

.qna-textarea {
    resize: none;
}

.btn-qna-submit {
    background-color: #556ee6;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(85, 110, 230, 0.2);
}

.btn-qna-submit:hover {
    background-color: #3b54d6;
    box-shadow: 0 6px 18px rgba(85, 110, 230, 0.4);
    transform: translateY(-1px);
}

/* Alert styles for Q&A success */
.qna-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    background-color: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}

/* Responsive Overlapping Layout */
@media (max-width: 991px) {
    .qna-section {
        padding: 4rem 1.5rem;
    }
    
    .qna-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .qna-info-card {
        border-radius: 12px;
        padding: 3rem 2rem;
    }
    
    .qna-form-card {
        padding: 3rem 2rem;
        margin-left: 0;
        width: 100%;
        align-self: stretch;
    }
}

@media (min-width: 992px) {
    .qna-info-card {
        height: 482px; /* Exactly 18px less than the form card height */
    }
    .qna-form-card {
        height: 500px;
    }
}

/* Testimonials Section (What VLE's Says) */
.testimonials-section {
    padding: 5rem 2rem;
    background-color: #ffffff;
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.testimonials-container {
    max-width: 1300px; /* Matched to footer container width */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonials-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary); /* Matched to Hero title color */
    margin-bottom: 3.5rem;
    text-align: center;
    font-family: 'Nunito', sans-serif; /* Matched to Hero title */
}

.testimonial-wrapper {
    width: 100%;
    max-width: 1300px; /* Matched to footer container width */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.testimonial-box {
    background-color: #eef2f6; /* Premium light grey/blue */
    padding: 2.5rem 3.5rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #475569;
    font-style: italic;
    line-height: 1.6;
    display: inline;
    font-family: 'Plus Jakarta Sans', sans-serif; /* Matched to Hero description */
    font-weight: 400; /* Matched weight 400 */
}

.quote-mark {
    font-size: 1.6rem;
    color: #24357c;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.quote-open {
    margin-right: 0.5rem;
}

.quote-close {
    margin-left: 0.5rem;
}

.testimonial-author-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 2rem;
    margin-top: -2.2rem; /* Overlap avatar onto the box bottom edge */
    z-index: 10;
    position: relative;
}

.author-avatar-wrapper {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 4px solid #ffffff; /* White circular border */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 0.75rem;
    background-color: #ffffff;
}

.author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 0.25rem;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.author-location {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.author-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: #3b82f6; /* Muted light blue tag */
    text-decoration: none;
}

/* Hero illustration placeholder styles */
.hero-placeholder-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 360px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2;
}

.placeholder-bg-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: #3b82f6;
    filter: blur(80px);
    opacity: 0.3;
    top: 20%;
    left: 20%;
}

.placeholder-mockup-screen {
    width: 85%;
    height: 75%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mockup-header {
    height: 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-body {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mockup-title-bar {
    height: 12px;
    width: 40%;
    background-color: #e2e8f0;
    border-radius: 6px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
}

.mockup-item {
    height: 45px;
    background-color: #f1f5f9;
    border-radius: 6px;
}
.mockup-item.large {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    opacity: 0.85;
}

.mockup-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.mockup-bar {
    width: 25px;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 4px 4px 0 0;
    animation: placeholderChartGrow 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes placeholderChartGrow {
    from { transform: scaleY(0.9); }
    to { transform: scaleY(1.1); }
}

/* Avatar Initials Placeholder */
.avatar-initials-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
    text-transform: uppercase;
}

/* ==========================================================================
   Gov-Style Premium Header & Navbar
   ========================================================================== */

:root {
    --gov-blue: #0a4c8c;
    --gov-blue-dark: #083e73;
    --gov-blue-light: #4ba3e3;
    --gov-bg-top: #f5f6f9;
    --gov-border: #e2e8f0;
}

/* 1. Top Bar */
.gov-top-bar {
    background-color: #ebebeb; /* Mockup exact light grey background */
    border-bottom: 1px solid #dcdcdc;
    padding: 6px 2rem;
    font-size: 11.5px;
    font-weight: 500;
    color: #4a607a;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.gov-top-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gov-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.text-size-label {
    font-weight: 600;
    color: #4a607a;
}

.text-size-buttons {
    display: flex;
    align-items: center;
    gap: 3px;
}

.text-btn {
    background-color: #4ba3e3;
    color: #ffffff;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.2s, transform 0.1s;
    height: 18px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.text-btn:hover {
    background-color: #31b0d5;
}

.text-btn:active {
    transform: scale(0.95);
}

.top-helpdesk-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333333;
}

.top-helpdesk-info span {
    color: #333333;
}

.top-helpdesk-info strong {
    color: #000000;
    font-weight: 700;
}

.top-helpdesk-info .working-hours {
    color: #965d1d; /* Mockup exact gold/orange working hours text color */
    font-weight: 600;
}

.phone-icon-svg {
    color: #000000;
    flex-shrink: 0;
}

.gov-top-right {
    display: flex;
    align-items: center;
}

.digital-connect-btn {
    background-color: var(--gov-blue);
    color: #ffffff !important;
    padding: 0;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, box-shadow 0.2s;
    height: 28px;
    width: 38px;
    border: none;
    cursor: pointer;
}

.digital-connect-btn:hover {
    background-color: var(--gov-blue-dark);
}
.digital-connect-btn.logout-btn {
    background-color: #ef4444;
}

.digital-connect-btn.logout-btn:hover {
    background-color: #dc2626;
}

.gov-middle-header {
    background-color: #ffffff;
    padding: 15px 2rem;
    border-bottom: 1px solid #f1f5f9;
}
.gov-middle-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.middle-brand-block {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.csc-brand-title {
    color: var(--gov-blue) !important;
    font-size: 1.3rem;
    font-weight: 300;
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.middle-emblem-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.govt-emblem-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.govt-emblem-svg {
    flex-shrink: 0;
}

.govt-text-details {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ministry-name-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.3;
}

.parent-org-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.middle-logo-block {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.digital-india-logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.digital-india-logo-svg {
    flex-shrink: 0;
}

/* 3. Bottom Menu / Navigation Bar */
.gov-bottom-navbar {
    background-color: var(--gov-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gov-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.gov-mobile-nav-title {
    display: none;
}

.nav-chevron-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gov-main-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-li {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 3px;
}

.nav-a {
    color: #ffffff !important;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s, border-radius 0.2s;
    letter-spacing: 0.02em;
    border-radius: 24px;
}

.nav-a:hover, .nav-li.open > .nav-a, .nav-li:hover > .nav-a {
    background-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

.chevron-arrow {
    transition: transform 0.2s;
}

.nav-li:hover .chevron-arrow, .nav-li.open .chevron-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    z-index: 1000;
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.nav-li:hover .nav-dropdown-menu, .nav-li.open .nav-dropdown-menu {
    display: block;
    animation: govFadeIn 0.2s ease;
}

@keyframes govFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.drop-a {
    color: #475569 !important;
    padding: 8px 20px;
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
    text-align: left;
}

.drop-a:hover {
    background-color: #f8fafc;
    color: var(--gov-blue) !important;
    padding-left: 22px;
}

/* Zoho new badge styling */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.badge-new-text {
    font-size: 0.65rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00b4d8 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 6px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1px 4px;
    border-radius: 3px;
    display: inline-block;
    line-height: 1;
}

/* Highlighted Items for Logged In User */
.nav-li.highlight-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-li.highlight-item .nav-a {
    color: #ffd700 !important;
}

.nav-li.highlight-item:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

/* Mobile Toggle Hamburger button */
.gov-nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 12px 10px;
    z-index: 102;
}

.gov-nav-toggle-btn span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ─── Mobile Responsive: Middle Header ─────────────────────────── */
@media (max-width: 991px) {
    .gov-top-bar {
        padding: 8px 1rem;
    }
    .gov-top-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        align-items: center;
    }
    .gov-top-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
    }
    .top-helpdesk-info .working-hours {
        display: none; /* hide working hours on mobile to save space */
    }
    .gov-top-right {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 2px;
    }

    /* Middle header: stack vertically, centered */
    .gov-middle-header {
        padding: 12px 1rem;
    }
    .gov-middle-container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
    .middle-brand-block {
        width: 100%;
        justify-content: center;
        order: 1;
    }
    .csc-brand-title {
        font-size: 1.05rem;
        white-space: nowrap;
        letter-spacing: 0.02em;
    }
    .middle-emblem-block {
        width: 100%;
        justify-content: center;
        gap: 8px;
        order: 2;
    }
    .govt-emblem-img {
        height: 52px;
    }
    .ministry-name-text {
        font-size: 0.72rem;
    }
    .parent-org-text {
        font-size: 0.65rem;
    }
    /* Hide Digital India logo on mobile */
    .middle-logo-block {
        display: none;
    }


    .gov-nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 52px;
        padding: 0 1rem;
        width: 100%;
    }

    .gov-mobile-nav-title {
        display: block;
        color: #ffffff;
        font-family: var(--font-heading);
        font-weight: 400;
        font-size: 0.98rem;
        letter-spacing: 0.02em;
    }
    
    .gov-nav-toggle-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
        z-index: 102;
    }

    .gov-nav-toggle-btn span {
        width: 100%;
        height: 2px;
        background-color: #94a3b8;
        border-radius: 1px;
    }
    
    .gov-main-nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--gov-blue);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.4);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .gov-main-nav-links.active {
        display: flex;
    }
    
    .nav-li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }
    
    .nav-a {
        padding: 0;
        width: 100%;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        border-radius: 0 !important;
        background-color: transparent !important;
    }

    .nav-text {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        font-size: 0.85rem;
        font-weight: 700;
        color: #ffffff;
        flex: 1;
        text-align: left;
        letter-spacing: 0.03em;
    }

    .nav-chevron-box {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 55px;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        flex-shrink: 0;
        cursor: pointer;
    }

    .nav-chevron-box svg {
        color: #ffffff;
        width: 12px;
        height: 12px;
        transition: transform 0.2s ease;
    }

    .nav-li.open .nav-chevron-box svg {
        transform: rotate(180deg);
    }
    
    .nav-dropdown-menu {
        position: static;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        box-shadow: none;
        width: 100%;
        background-color: #ffffff; /* White background to match mockup */
        border-radius: 0;
        padding: 0;
        margin: 0;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-dropdown-menu.open {
        max-height: 350px;
        opacity: 1;
        border-top: 1px solid #e2e8f0;
    }
    
    .drop-a {
        padding: 12px 25px;
        color: #334155 !important; /* Dark grey text */
        font-size: 0.8rem;
        font-weight: 600;
        border-bottom: 1px solid #f1f5f9;
        text-align: left;
        background-color: #ffffff;
        display: block;
        transition: all 0.2s ease;
    }

    .drop-a:last-child {
        border-bottom: none;
    }
    
    .drop-a:hover {
        background-color: #f8fafc;
        color: var(--gov-blue) !important;
        padding-left: 30px;
    }
    
    /* Hamburger open animation */
    .gov-nav-toggle-btn.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .gov-nav-toggle-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .gov-nav-toggle-btn.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Language & Login Dropdowns */
.gov-lang-switcher, .gov-login-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn-special, .login-btn-special {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4a607a !important;
    background-color: #ffffff;
    border: 1px solid #cbd5e1 !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 28px;
    width: auto !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lang-btn-special:hover, .login-btn-special:hover {
    background-color: var(--gov-blue) !important;
    color: #ffffff !important;
    border-color: var(--gov-blue) !important;
    box-shadow: 0 4px 12px rgba(10, 76, 140, 0.15);
}

.lang-btn-special:hover svg, .login-btn-special:hover svg {
    stroke: #ffffff !important;
}

.lang-dropdown, .login-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background-color: #ffffff;
    min-width: 142px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    z-index: 2000;
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.lang-dropdown.open, .login-dropdown.open {
    display: block;
    animation: govFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-opt, .login-opt {
    color: #475569 !important;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s ease;
    text-transform: none !important;
    text-decoration: none;
}

.lang-opt:hover, .login-opt:hover {
    background-color: #f1f5f9;
    color: var(--gov-blue) !important;
}

.lang-opt:hover svg, .login-opt:hover svg {
    stroke: var(--gov-blue) !important;
}

/* Top Navigation Portal Buttons */
.top-nav-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4a607a !important;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
    transition: all 0.2s ease;
    height: 28px;
    cursor: pointer;
    text-transform: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.top-nav-portal-btn:hover {
    background-color: var(--gov-blue);
    color: #ffffff !important;
    border-color: var(--gov-blue);
    box-shadow: 0 4px 12px rgba(10, 76, 140, 0.15);
}

.top-nav-portal-btn.logout-btn:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.portal-icon-svg, .connect-icon-svg {
    flex-shrink: 0;
}

/* Stats Section Styles */
.stats-section {
    margin: 2rem 0 1.5rem 0;
}

.stats-main-title {
    color: #0c4c8c; /* Matches government blue brand color */
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
    font-family: var(--font-heading);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stats-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 0, 0, 0.04);
    padding: 1.2rem 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.16), 0 0 15px rgba(0, 0, 0, 0.06);
}

.stats-card.val-center {
    justify-content: center;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
}

.stats-label strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.stats-downloads {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    max-width: 220px;
}

.download-link {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: left;
}

.download-link:hover {
    color: #ef4444; /* red-orange hover color */
}

.download-svg {
    stroke: #ef4444; /* Orange-Red color for the icon */
    flex-shrink: 0;
}

@media (max-width: 768px) {
    /* Stats grid: 1 column vertical stack on mobile — exact match to UI screenshot */
    .stats-section {
        overflow-x: unset;
        background-color: #f1f5f9; /* Light gray background to show card separation */
        margin: 2rem -1.5rem 1.5rem -1.5rem;
        padding: 1.5rem 0;
    }
    .stats-main-title {
        font-size: 1.4rem;
        text-align: left; /* Left align as requested */
        margin-bottom: 1.5rem;
        padding: 0 1.5rem;
        color: #0c4c8c;
    }
    .stats-grid {
        grid-template-columns: 1fr; /* 1 column layout */
        width: 100%;
        gap: 0.75rem; /* Gap between cards showing gray background */
        align-items: stretch;
        padding: 0 0.75rem; /* Little margin from left and right */
    }
    .stats-card {
        background: #ffffff;
        border-radius: 0 !important; /* Sharp corners like in screenshot */
        border: none !important; /* Remove borders */
        padding: 2.5rem 1rem;
        min-height: auto; /* Let content dictate height */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03); /* Soft shadow at top/bottom */
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .stats-downloads {
        margin-top: 1.2rem;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center align links */
        gap: 0.6rem;
        width: 100%;
        max-width: 100%;
    }
    .download-link {
        color: #ef4444 !important; /* Orange-red color matching the icon */
        font-size: 0.95rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    .stats-label {
        font-size: 1rem;
        line-height: 1.7;
        color: var(--text-secondary);
        text-align: center;
    }
    .stats-label strong {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-primary);
    }
}

@media (max-width: 480px) {
    /* Mobile phone specific overrides */
    .stats-section {
        margin: 2rem -1.5rem 1.5rem -1.5rem;
        padding: 1rem 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.75rem; /* Little margin from left and right */
    }
    .stats-card {
        padding: 2.2rem 1rem;
        border-radius: 0 !important;
        border: none !important;
        min-height: auto;
    }
    .stats-downloads {
        align-items: center;
        max-width: 100%;
    }
    .stats-label {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .stats-label strong {
        font-size: 1rem;
    }
    .download-link {
        font-size: 0.9rem;
    }
    /* Hero section on phone */
    .hero-section {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    .hero-content, .hero-warning-content {
        width: 100%;
        max-width: 100%; /* Ensure full website width alignment */
    }
    .warning-flyer-container {
        max-width: 100% !important; /* Scale to full website layout width */
        width: 100% !important;
        height: auto !important;
        aspect-ratio: unset !important;
        max-height: none !important;
    }
    .hero-title {
        font-size: 1.4rem;
    }
    .warning-flyer-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    /* CSC brand text — bigger and readable on phone */
    .csc-brand-title {
        font-size: 1.05rem;
        letter-spacing: 0.01em;
    }
    .govt-emblem-img {
        height: 44px;
    }
    .digital-india-logo-img {
        height: 32px;
    }
    .gov-middle-container {
        gap: 8px;
    }
}
