:root {
    /* --- Modern Indian Public Assistance Palette --- */
    --primary-saffron: #FF9933;
    --gov-green: #138808;
    --ashoka-navy: #000080;

    /* Semantic Tints - Enhanced for deeper color presence */
    --saffron-tint: rgba(255, 153, 51, 0.14);
    --green-tint: rgba(19, 136, 8, 0.12);
    --navy-tint: rgba(0, 0, 128, 0.04);
    --white-base: #FFFFFF;

    /* Professional Shades */
    --bg-warm: #F8FAFC;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-glass: rgba(0, 0, 0, 0.05);
    --border-soft: #E2E8F0;

    /* Alerts */
    --success-green: #059669;
    --medium-saffron: #D97706;
    --danger-red: #DC2626;

    --text-main: #1E293B;
    --text-muted: #64748B;

    /* Shadows & Effects */
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.05), 0 10px 15px -5px rgba(0, 0, 0, 0.02);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --radius-xl: 20px;
    --radius-lg: 14px;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    /* --- INDIAN TRICOLOR TINT --- */
    background:
        /* Horizontal stripe: saffron top → white → green bottom */
        linear-gradient(to bottom,
            rgba(255, 153, 51, 0.13) 0%,
            transparent 22%,
            transparent 78%,
            rgba(19, 136, 8, 0.13) 100%),
        /* Corner radials for depth */
        radial-gradient(ellipse at 0% 0%, rgba(255, 153, 51, 0.17) 0px, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(19, 136, 8, 0.17) 0px, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(19, 136, 8, 0.11) 0px, transparent 40%),
        radial-gradient(ellipse at 0% 100%, rgba(255, 153, 51, 0.11) 0px, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 128, 0.04) 0px, transparent 65%),
        #F4F7F9;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle Technical Dot Grid */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-soft) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* --- Premium Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3,
h4 {
    color: var(--ashoka-navy);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    /* Warm saffron-cream — distinct from page bg, matches tricolor border */
    background: rgba(255, 243, 200, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Tricolor bottom border: saffron | white | green */
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right,
            #FF9933 0%,
            #FF9933 33%,
            #ffffff 33%,
            #ffffff 66%,
            #138808 66%,
            #138808 100%) 1;
    box-shadow: 0 2px 20px rgba(255, 153, 51, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    nav {
        padding: 0.75rem 5%;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ashoka-navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary-saffron);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Mobile Menu Logic */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        font-weight: 600;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-saffron);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1100;
    width: 30px;
    height: 20px;
    position: relative;
}

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

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--ashoka-navy);
    margin-bottom: 5px;
    transition: 0.3s;
    border-radius: 3px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

nav .premium-select {
    width: 160px;
    margin-right: 0.5rem;
    height: 40px;
    font-size: 0.85rem;
}

/* --- Scheme Results Components --- */
.scheme-card {
    display: flex;
    flex-direction: column;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
}

.status-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(4, 106, 56, 0.08);
    color: var(--gov-green);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(19, 136, 8, 0.1);
}

.scheme-match-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.7rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge-ai {
    background: var(--ashoka-navy);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.scheme-icon-wrapper {
    font-size: 2.5rem;
    background: var(--bg-warm);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-soft);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scheme-card:hover .scheme-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.benefit-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 128, 0.04);
    color: var(--ashoka-navy);
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 128, 0.05);
}

.approval-meter-premium {
    height: 8px;
    background: #F1F5F9;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.approval-meter-fill-premium {
    height: 100%;
    border-radius: 99px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-suggestions {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 14px;
    background: rgba(255, 153, 51, 0.03);
    border: 1px dashed var(--primary-saffron);
    border-left: 4px solid var(--primary-saffron);
}

.docs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.docs-list li::before {
    content: "•";
    color: var(--gov-green);
    margin-right: 0.5rem;
    font-weight: 900;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 0.95rem;
    box-shadow: var(--shadow-premium);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-saffron), var(--gov-green));
    color: var(--white-base);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(19, 136, 8, 0.2);
    filter: brightness(1.1);
    color: var(--white-base) !important;
}

.btn.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-soft);
    color: var(--gov-green);
}

.btn.glass:hover {
    border-color: var(--primary-saffron);
    background: white;
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    min-height: auto;
    /* Removed forced 85vh to allow natural tightening */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 1.5rem 60px;
    /* Reduced top padding significantly */
    background: transparent;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    max-width: 950px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--ashoka-navy);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-saffron) 30%, var(--gov-green) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Ticker --- */
.pulse-ticker-wrapper {
    background: var(--ashoka-navy);
    color: var(--white-base);
    padding: 0.75rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 3px solid var(--primary-saffron);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    margin-top: 70px;
    /* Push below the fixed navbar (~70px tall) */
}

.pulse-ticker {
    color: #ffffff !important;
    display: inline-block;
    padding-left: 100%;
    animation: ticker 35s linear infinite;
    font-weight: 600;
    font-size: 0.95rem;
}

.pulse-ticker strong {
    color: var(--primary-saffron);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .pulse-ticker-wrapper {
        margin-top: 56px;
        /* Mobile navbar is shorter (~56px with 0.75rem padding) */
        font-size: 0.85rem;
    }
}

/* --- Pulse Toast --- */
#live-pulse {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gov-green);
    border-radius: var(--radius-xl);
    padding: 1rem 1.5rem;
    display: none;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-premium);
    z-index: 2000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(150%);
}

#live-pulse.active {
    transform: translateY(0);
}

/* --- Results Layout --- */
.results-layout {
    display: block;
    margin-top: 3rem;
}

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

.analyzer-card-top {
    background: linear-gradient(90deg, rgba(255, 122, 0, 0.05), rgba(4, 106, 56, 0.05));
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.panel-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 122, 0, 0.1), rgba(4, 106, 56, 0.1));
    margin: 1.5rem 0;
    border: none;
}

.analyzer-grid-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.q-group-sidebar {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.q-group-sidebar:hover {
    background: white;
    border-color: var(--gov-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.q-group-sidebar span {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ashoka-navy);
    margin-bottom: 0.5rem;
}

.q-group-sidebar select {
    width: 100%;
    padding: 0.6rem;
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.q-group-sidebar select:focus {
    border-color: var(--gov-green);
    outline: none;
}

/* --- Cards & Panels --- */
.institutional-panel {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    /* Reduced horizontal padding for better grid fit */
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.institutional-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-saffron), var(--white-base), var(--gov-green));
    opacity: 0.6;
}

.premium-card {
    background: var(--white-base);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.premium-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-saffron);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    background: #F8FAFC;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
}

.premium-card:hover .feature-icon {
    background: white;
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-saffron);
    box-shadow: var(--shadow-glow);
}

/* --- Scheme Discovery: Interactive Institutional Cards --- */
.scheme-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scheme-card:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12), 0 0 20px rgba(4, 106, 56, 0.1);
    border-color: rgba(4, 106, 56, 0.4);
    transform: translateY(-8px) scale(1.01);
}

/* Condensed Header Area */
.card-header-compact {
    padding: 2.25rem;
    display: grid;
    grid-template-columns: 70px 1fr;
    /* Removed auto column for indicator */
    align-items: flex-start;
    /* Align to top for better multi-line title handling */
    gap: 1.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.scheme-icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #F0F4FF 0%, #E0E7FF 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.scheme-card:hover .scheme-icon-circle {
    transform: scale(1.1) rotate(8deg);
    background: white;
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
}

.card-title-compact {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ashoka-navy);
    margin: 0;
    line-height: 1.2;
}


/* Obsolete expansion logic removed for Dedicated Details Page transition */

/* Matching Meter Enhancements */
.probability-chip {
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.approval-meter-premium {
    height: 8px !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border-radius: 99px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.approval-meter-fill-premium {
    position: relative;
    box-shadow: 0 0 15px currentColor;
}

.approval-meter-fill-premium::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}


/* --- Blog & Section Specifics (Consolidated) --- */
.section-title {
    font-size: 3rem;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    color: var(--ashoka-navy);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-saffron), var(--gov-green));
    border-radius: 99px;
}

.blog-grid,
.features-grid,
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.blog-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-soft);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.blog-content {
    padding: 2rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--saffron-tint);
    color: var(--medium-saffron);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 99px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(217, 119, 6, 0.1);
}

/* --- Selection & Inputs --- */
.premium-select,
.q-group-sidebar select {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-soft);
    font-family: inherit;
    font-weight: 600;
    color: var(--ashoka-navy);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
}

.premium-select:hover,
.q-group-sidebar select:hover {
    border-color: var(--gov-green);
    background: white;
}

/* --- Analyzer Specifics --- */
.analyzer-grid-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.q-group-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.q-group-sidebar span {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ashoka-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-callout {
    background: #F0F9FF;
    border-left: 4px solid #0EA5E9;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #0369A1;
}

/* --- Features & Impact --- */
.features,
.quick-facts,
.insights {
    padding: 8rem 0;
    position: relative;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Custom Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Institutional Mega-Footer --- */
.mega-footer {
    background: #1A1C1E;
    color: #E2E8F0;
    padding-top: 0;
    margin-top: 6rem;
    border-top: 2px solid rgba(4, 106, 56, 0.3);
    /* Soft top border */
}

/* Quick Access Cards Wrapper */
.footer-quick-access {
    background: #242729;
    padding: 3rem 0;
    margin-bottom: 4rem;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.footer-card {
    background: white;
    color: var(--ashoka-navy);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    border-right: 4px solid var(--primary-saffron);
}

.footer-card-icon {
    width: 48px;
    height: 48px;
    background: #F0F4FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gov-green);
}

.footer-card-text {
    flex: 1;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* Main Footer Content */
.footer-main-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-brand h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #94A3B8;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gov-green);
    border-color: var(--gov-green);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(19, 136, 8, 0.3);
}

.footer-last-updated {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    font-size: 0.75rem;
    color: #94A3B8;
    font-weight: 600;
}

.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-saffron);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #FF7A00;
    /* New hover color */
    padding-left: 8px;
}

.contact-info {
    color: #94A3B8;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Bottom Strip */
.footer-bottom {
    background: #0F172A;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748B;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #64748B;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-main-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .footer-main-content {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom-grid {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 1200px) {

    .schemes-grid,
    .analyzer-grid-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.1;
    }

    .hero-subtext {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .institutional-panel {
        padding: 1.25rem;
    }

    /* Compact Cards Refinement */
    .feature-card {
        padding: 1.25rem !important;
    }

    .feature-icon {
        font-size: 2.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .feature-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .feature-card p {
        font-size: 0.9rem !important;
    }

    .blog-card {
        margin-bottom: 1rem;
    }

    .blog-image {
        height: 160px !important;
    }

    .blog-content {
        padding: 1rem !important;
    }

    .blog-content h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .blog-content p {
        font-size: 0.85rem !important;
    }

    .fact-box {
        padding: 1.25rem !important;
    }

    .scheme-card {
        padding: 1.25rem !important;
    }

    .scheme-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .schemes-grid,
    .analyzer-grid-top,
    .pricing-grid,
    .quick-access-grid,
    .facts-grid,
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Hero Responsive (Task 8) */
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
        padding: 3rem 0 !important;
    }

    .hero-content-left h1 {
        font-size: 34px !important;
    }

    .hero-carousel-right {
        order: 2;
    }

    .hero-cta-group {
        justify-content: center;
    }
}

/* --- HERO REFACTOR (Tasks 1-8) --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    padding: 2.5rem 0 5rem;
}

@media (max-width: 768px) {
    .hero-grid {
        padding-top: 1rem;
    }
}

.hero-content-left {
    max-width: 580px;
    text-align: center;
    /* Centering text for balanced alignment */
    margin: 0 auto;
    /* Centering block within the column */
}

.hero-content-left h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1E3A8A;
}

.text-navy {
    color: #1E3A8A;
}

.text-saffron {
    color: #FF7A00;
}

.hero-subtext {
    margin: 0 0 3rem;
    font-size: 1.3rem;
    color: var(--text-muted);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
    /* Centering buttons */
}

.hero-carousel-right {
    background: white;
    padding: 8px;
    /* Reduced from 12px to maximize image perceived size */
    border-radius: 18px;
    box-shadow: 0px 10px 32px rgba(0, 0, 0, 0.15);
    /* Slightly deeper shadow for larger visual */
}

.hero-carousel-container {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 16/10;
    transition: transform 0.3s ease;
}

.hero-carousel-container:hover {
    transform: translateY(-2px);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 80, 0.7));
    color: white;
    z-index: 5;
}

.slide-overlay h3 {
    font-size: 1.25rem;
    margin: 0;
    color: white;
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: width 0.3s;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* --- V2 Refined Premium Global Loader --- */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000020;
    /* Deepest Navy */
    overflow: hidden;
    transition: visibility 0s 1.2s;
}

#global-loader::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 0, 128, 0.4) 0%, transparent 70%);
    animation: loader-pulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes loader-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Aperture Removal */
#global-loader.completing .loader-aperture {
    display: none;
}

/* Loader Brand Text */
.loader-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-saffron);
    text-transform: uppercase;
    letter-spacing: 0.8em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 15px rgba(255, 153, 51, 0.3);
}

#global-loader.active .loader-brand {
    opacity: 1;
    transform: translateY(0);
}

/* Cutting Blades (Panes) */
.loader-pane {
    position: absolute;
    width: 100%;
    height: 50%;
    background: #000020;
    z-index: 5;
    transition: transform 1s cubic-bezier(0.9, 0, 0.1, 1);
}

.loader-pane.top {
    top: 0;
}

.loader-pane.bottom {
    bottom: 0;
}

#global-loader.loaded .loader-pane.top {
    transform: translateY(-100%);
}

#global-loader.loaded .loader-pane.bottom {
    transform: translateY(100%);
}

#global-loader.loaded {
    visibility: hidden;
}

/* Loader Content */
.loader-content {
    position: relative;
    z-index: 15;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.9, 0, 0.1, 1), opacity 0.5s ease;
}

#global-loader.loaded .loader-content {
    opacity: 0;
    transform: scale(1.2);
}

.loader-percentage {
    font-size: 12vw;
    /* Slightly smaller to balance brand text */
    font-weight: 900;
    color: var(--white-base);
    line-height: 0.8;
    margin: 0;
    letter-spacing: -0.08em;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: baseline;
    justify-content: center;
    position: relative;
    /* Shimmer effect */
    background: linear-gradient(90deg, #fff 0%, #fff 45%, var(--primary-saffron) 50%, #fff 55%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 3s linear infinite;
}

@keyframes text-shimmer {
    to {
        background-position: 200% center;
    }
}

.loader-percentage span {
    font-size: 0.35em;
    color: var(--primary-saffron);
    margin-left: 0.5rem;
    -webkit-text-fill-color: var(--primary-saffron);
    opacity: 0.8;
}

.loader-status-container {
    height: 24px;
    margin-top: 2rem;
    overflow: hidden;
}

.loader-status {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white-base);
    text-transform: uppercase;
    letter-spacing: 0.6em;
    opacity: 0.5;
    animation: status-slide 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes status-slide {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

/* Content Reveal Zoom */
body.loading main {
    opacity: 0;
    transform: scale(0.98);
}

main {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

body.reveal-zoom main {
    opacity: 1;
    transform: scale(1);
}

/* Hide scrollbar when loader is active */
body.loading {
    overflow: hidden !important;
}