/* =========================================
   Free Government Tablet - Premium Design System
   ========================================= */

/* --- Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* New Deep Blue/Purple Theme */
    --primary-color: #2563EB;
    /* Bright Blue */
    --primary-dark: #1E40AF;
    --secondary-color: #7C3AED;
    /* Purple */
    --accent-color: #3B82F6;
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #4c1d95 100%);
    /* Deep Blue to Purple */

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    --bg-light: #F8FAFC;
    --bg-white: #ffffff;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* --- Resets & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    color: var(--text-main);
}

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

ul {
    list-style: none;
}

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

/* --- Generic Layout --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 5rem 0;
}

/* --- Components: Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--background-light);
    transform: translateY(-2px);
}

/* --- Components: Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text-main);
}

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

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Specific fix for Apply Now button in navbar */
.nav-links .btn-primary {
    color: white !important;
    padding: 0.75rem 1.5rem;
}

.nav-links .btn-primary:hover {
    color: white !important;
    opacity: 0.9;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* --- Components: Hero --- */
.hero {
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: visible;
    /* Changed to visible for overlapping content */
    padding-top: 6rem;
    padding-bottom: 8rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Text gets more space */
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    /* Stack text elements vertically */
    flex-direction: column;
    align-items: flex-start;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-badge {
    display: inline-block;
    background: #DBEAFE;
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Floating Elements Animation */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Create a subtle blob background for visual interest */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    /* background: linear-gradient(to bottom right, #DBEAFE, #F3E8FF); REMOVED as per user request */
    background: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
    width: max-content;
    max-width: 280px;
    z-index: 10;
    /* Above slider */
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.floating-card i {
    font-size: 1.75rem;
    color: var(--primary-color);
    background: #EFF6FF;
    padding: 10px;
    border-radius: 12px;
}

.card-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: 0%;
    animation-delay: 2.5s;
}

.card-3 {
    bottom: 15%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

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

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

/* --- Components: Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #F1F5F9;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: #EFF6FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- New Components (Added during Update) --- */

/* Provider Card Updates */
.provider-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.provider-logo-placeholder {
    height: 60px;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Statistics Section */
.stats-grid {
    display: flex;
    /* Changed from grid to flex for better distribution depending on width */
    gap: 2rem;
    margin-top: 1rem;
    width: 100%;
}

.stat-card {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    /* Cleaner shadow */
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Eligibility Tool */
.eligibility-tool {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    /* Softer, deeper shadow */
    overflow: hidden;
    max-width: 900px;
    /* Slightly wider */
    margin: -5rem auto 4rem;
    /* Overlap hero */
    position: relative;
    z-index: 10;
    border: 1px solid #f1f5f9;
}

.et-header {
    background: white;
    /* Clean white header instead of gradient */
    padding: 2.5rem 2rem 1rem;
    color: var(--text-main);
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.et-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.et-header p {
    color: var(--text-muted);
}

.et-body {
    padding: 2rem 3rem 3rem;
    background: #f8fafc;
    /* Subtle grey body */
}

.et-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.et-step.active {
    display: block;
}

.et-options {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.et-option {
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.et-option:hover {
    border-color: var(--primary-color);
    background: #EFF6FF;
}

.et-option.selected {
    border-color: var(--primary-color);
    background: #EFF6FF;
    color: var(--primary-color);
}

.et-controls {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    border-top: none;
    padding-top: 0;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* Income Table */
.income-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.income-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.income-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid #e2e8f0;
}

.income-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-muted);
}

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

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

/* --- Footer (Original) --- */
.footer {
    background-color: #0B1120;
    color: #94A3B8;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

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

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        /* Stack visually */
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        align-items: center;
        /* Center text constraints */
    }

    .hero-visual {
        display: none;
        /* Hide complex floating cards on mobile to save space, or simplify */
    }

    .stats-grid {
        flex-direction: column;
        /* Stack stats on mobile */
    }

    .eligibility-tool {
        margin-top: 0;
        /* Remove overlap on mobile */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid #f1f5f9;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* --- Programs Tab Section --- */
.programs-section {
    padding: 6rem 0;
    background: #F8FAFC;
    position: relative;
    z-index: 5;
}

.programs-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.programs-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.programs-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.tab-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    background: #EFF6FF;
    color: var(--primary-color);
    font-weight: 700;
}

.tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tab-badge.ended {
    background: #FEF2F2;
    color: #EF4444;
}

.tab-btn.active .tab-badge.ended {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tab-badge.varies {
    background: #FFFBEB;
    color: #DA9E2A;
}

.tab-btn.active .tab-badge.varies {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.program-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    display: none;
    animation: fadeIn 0.4s ease-out;
    border: 1px solid #e2e8f0;
}

.program-content.active {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 968px) {
    .program-content.active {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .programs-tabs {
        gap: 0.75rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

.program-details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.program-features {
    list-style: none;
    margin-top: 2rem;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.program-features i {
    color: #10B981;
    font-size: 1.1rem;
}

.info-box {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.info-box.highlight {
    background: #EFF6FF;
}

.info-box h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.program-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.mini-stat {
    background: #FFF7ED;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.mini-stat h4 {
    font-size: 1.5rem;
    color: #EA580C;
    margin-bottom: 0.25rem;
}

.mini-stat p {
    font-size: 0.85rem;
    color: #9A3412;
    margin: 0;
}
/* --- Dropdown Menu Added --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 240px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
    border: 1px solid #e2e8f0;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
    padding-left: 1.5rem; /* Slight slide effect */
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropbtn i {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 2px;
}


/* --- Updated Header Aesthetic --- */
.logo {
    color: #0F172A !important; /* Dark text */
    font-size: 1.25rem !important; /* Slightly smaller, more refined */
    font-weight: 700 !important;
}

.logo i {
    color: #2563EB !important; /* Blue Icon */
}

.logo span {
    color: #0F172A !important;
}

.nav-link {
    color: #334155 !important; /* Darker Slate */
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #2563EB !important;
}

.nav-link i {
    font-size: 1rem;
    color: #64748b; /* Muted icon color by default */
}

.nav-link:hover i {
    color: #2563EB;
}

/* Footer white logo override */
.footer .logo {
    color: white !important;
}

.footer .logo i {
    color: #60A5FA !important; /* Lighter blue icon on dark bg */
}

.footer .logo span {
    color: white !important;
}

/* --- Grab Tablet Popup Styles --- */
.grab-tablet-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grab-tablet-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.grab-tablet-popup {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.grab-tablet-popup-overlay.show .grab-tablet-popup {
    transform: scale(1);
}

.grab-tablet-popup h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
    line-height: 1.2;
}

.grab-tablet-popup .popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.grab-tablet-popup .popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

.popup-countdown {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 1rem;
    font-weight: 500;
}

.grab-tablet-popup .popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.grab-tablet-popup .popup-close-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.grab-tablet-popup .popup-close-btn:not(:disabled) {
    cursor: pointer;
    color: #1e293b;
}

.grab-tablet-popup .popup-close-btn:not(:disabled):hover {
    background: #e2e8f0;
    color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .grab-tablet-popup {
        padding: 2rem 1.5rem;
    }
    .grab-tablet-popup h2 {
        font-size: 1.75rem;
    }
}
