/* ==========================================================================
   ONEST GURUKUL - HOME PAGE STYLES (PREMIUM REDESIGN)
   File: assets/css/onest-home.css
   ========================================================================== */

/* --- Theme Variables --- */
:root {
    /* Brand Colors */
    --onest-home-primary: #FACC15;
    /* Vibrant Yellow */
    --onest-home-primary-dark: #EAB308;
    /* Darker Yellow for hover */
    --onest-home-secondary: #111111;
    /* Deep Black */

    /* Backgrounds */
    --onest-home-bg: #ffffff;
    --onest-home-bg-alt: #f9fafb;
    /* Very light gray for sections */
    --onest-home-bg-card: #ffffff;

    /* Text */
    --onest-home-text: #1f2937;
    /* Dark Gray for readability */
    --onest-home-text-muted: #4b5563;
    /* Muted Gray */
    --onest-home-text-light: #ffffff;

    /* Borders & Shadows */
    --onest-home-border: #e5e7eb;
    --onest-home-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --onest-home-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --onest-home-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --onest-home-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --onest-home-font: 'Poppins', sans-serif;

    /* Misc */
    --onest-home-radius: 16px;
    --onest-home-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Mode Variables --- */
.onest-home-dark-mode {
    /* User Requested Golden Palette (Black Text) */
    --onest-home-bg: #FFF9D9;
    --onest-home-bg-alt: #FFF3B0;
    /* Section BG */
    --onest-home-bg-card: #FFF3B0;
    /* Card BG */

    --onest-home-text: #000000;
    /* Pure Black for maximum readability */
    --onest-home-text-muted: #333333;
    /* Dark Gray */
    --onest-home-text-light: #000000;
    /* Black */

    --onest-home-border: rgba(232, 185, 35, 0.2);
    /* #E8B92333 */

    --onest-home-shadow: 0 4px 12px rgba(232, 185, 35, 0.25);
    --onest-home-shadow-lg: 0 10px 15px -3px rgba(232, 185, 35, 0.3);

    /* Brand Colors Adaptation */
    --onest-home-primary: #FACC15;
    --onest-home-primary-dark: #E8B923;
    /* Accent */
    --onest-home-secondary: #FFEBA1;
    /* Nav/Footer BG */
}

/* --- Global Reset & Wrapper --- */
.onest-home-wrapper {
    font-family: var(--onest-home-font);
    background-color: var(--onest-home-bg);
    color: var(--onest-home-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.onest-home-wrapper * {
    box-sizing: border-box;
}

.onest-home-wrapper a {
    text-decoration: none;
    color: inherit;
    transition: var(--onest-home-transition);
}

.onest-home-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.onest-home-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.onest-home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.onest-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--onest-home-transition);
    border: 2px solid transparent;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.onest-home-btn-primary {
    background-color: var(--onest-home-primary);
    color: #000;
    box-shadow: 0 4px 14px 0 rgba(250, 204, 21, 0.39);
}

.onest-home-btn-primary:hover {
    background-color: var(--onest-home-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.23);
}

.onest-home-btn-outline {
    background-color: transparent;
    border-color: var(--onest-home-text);
    color: var(--onest-home-text);
}

.onest-home-btn-outline:hover {
    background-color: var(--onest-home-text);
    color: var(--onest-home-bg);
    transform: translateY(-2px);
}

.onest-home-btn-white {
    background-color: #fff;
    color: #000;
}

.onest-home-btn-white:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

/* --- Header --- */
.onest-home-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--onest-home-border);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.onest-home-dark-mode .onest-home-header {
    background-color: rgba(255, 235, 161, 0.95);
    /* #FFEBA1 (Nav BG) with opacity */
    border-bottom-color: var(--onest-home-border);
}

.onest-home-dark-mode .onest-home-logo img {
    filter: none;
    /* Keep original logo colors */
}

.onest-home-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onest-home-logo img {
    height: 110px;
    width: auto;
}

.onest-home-nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.onest-home-nav-link {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--onest-home-text);
    position: relative;
    padding: 5px 0;
}

.onest-home-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--onest-home-primary);
    transition: width 0.3s ease;
}

.onest-home-nav-link:hover::after,
.onest-home-nav-link.active::after {
    width: 100%;
}

.onest-home-theme-toggle {
    background: none;
    border: none;
    color: var(--onest-home-text);
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: 24px;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.onest-home-theme-toggle:hover {
    background-color: var(--onest-home-bg-alt);
}

.onest-home-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--onest-home-text);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 16px;
}

/* --- Mobile Menu --- */
.onest-home-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--onest-home-bg);
    z-index: 999;
    /* Below header (1000) so header toggle can close it, or use close button */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 24px 40px;
    /* Space for header */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items */
    text-align: center;
}

.onest-home-mobile-menu.active {
    right: 0;
}

.onest-home-mobile-close {
    align-self: flex-end;
    font-size: 1.75rem;
    cursor: pointer;
    margin-bottom: 40px;
    color: var(--onest-home-text);
}

.onest-home-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.onest-home-mobile-list a {
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Ticker Bar --- */
.onest-home-ticker {
    background-color: var(--onest-home-primary);
    color: #000;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.onest-home-ticker-content {
    display: inline-block;
    animation: onest-ticker 25s linear infinite;
}

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

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

/* --- Hero Section --- */
.onest-home-hero {
    position: relative;
    height: 85vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.onest-home-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.onest-home-hero-slide.active {
    opacity: 1;
}

.onest-home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 33, 71, 0.6) 0%, rgba(0, 33, 71, 0.3) 50%, rgba(0, 33, 71, 0.1) 100%);
}

.onest-home-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: 0 24px;
    margin-left: 8%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Added shadow for readability */
}

.onest-home-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.onest-home-hero-title span {
    display: block;
    color: var(--onest-home-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.onest-home-hero-text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
    line-height: 1.6;
}

.onest-home-hero-nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 16px;
    z-index: 3;
}

.onest-home-hero-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--onest-home-transition);
}

.onest-home-hero-nav-btn:hover {
    background: var(--onest-home-primary);
    color: #000;
    border-color: var(--onest-home-primary);
}

/* --- Sections General --- */
.onest-home-section {
    padding: 100px 0;
}

.onest-home-section-alt {
    background-color: var(--onest-home-bg-alt);
}

.onest-home-section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--onest-home-text);
    line-height: 1.2;
}

.onest-home-section-subtitle {
    font-size: 1.125rem;
    color: var(--onest-home-text-muted);
    max-width: 700px;
    margin-bottom: 48px;
}

/* --- Intro Section --- */
.onest-home-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.onest-home-intro-img-wrapper {
    position: relative;
    border-radius: var(--onest-home-radius);
    overflow: hidden;
    box-shadow: var(--onest-home-shadow-xl);
}

.onest-home-intro-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.onest-home-intro-img-wrapper:hover img {
    transform: scale(1.03);
}

.onest-home-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--onest-home-shadow-lg);
    backdrop-filter: blur(4px);
}

.onest-home-badge i {
    color: var(--onest-home-primary-dark);
    font-size: 1.2rem;
}

/* --- Features Grid --- */
.onest-home-features-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.onest-home-features-grid::-webkit-scrollbar {
    height: 6px;
}

.onest-home-features-grid::-webkit-scrollbar-track {
    background: transparent;
}

.onest-home-features-grid::-webkit-scrollbar-thumb {
    background-color: var(--onest-home-border);
    border-radius: 20px;
}

@media (min-width: 1024px) {
    .onest-home-features-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        overflow-x: visible;
        padding-bottom: 0;
    }
}

.onest-home-feature-card {
    background: var(--onest-home-bg-card);
    padding: 32px 24px;
    border-radius: var(--onest-home-radius);
    box-shadow: var(--onest-home-shadow);
    transition: var(--onest-home-transition);
    border: 1px solid var(--onest-home-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 280px;
    /* For mobile scroll */
    scroll-snap-align: center;
}

@media (min-width: 1024px) {
    .onest-home-feature-card {
        min-width: 0;
        width: auto;
        padding: 24px 20px;
        /* Slightly tighter padding for 5-col */
    }
}

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

.onest-home-feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(250, 204, 21, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--onest-home-primary-dark);
    margin-bottom: 24px;
}

.onest-home-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--onest-home-text);
}

.onest-home-feature-desc {
    color: var(--onest-home-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Event Banner --- */
.onest-home-event-banner {
    margin-top: 64px;
    background-color: #002147;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 10px, transparent 11px),
        radial-gradient(circle at 20% 90%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 15px, transparent 16px),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 20px, transparent 21px),
        radial-gradient(circle at 90% 85%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 12px, transparent 13px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.02) 100px, transparent 101px);
    color: #fff;
    padding: 40px;
    border-radius: var(--onest-home-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    box-shadow: var(--onest-home-shadow-lg);
    position: relative;
    overflow: hidden;
}

.onest-home-event-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.onest-home-event-date {
    background: var(--onest-home-primary);
    color: #000;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.onest-home-event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.onest-home-event-date .month {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Programs Section (Kids Friendly Redesign) --- */
.onest-home-programs-section {
    background-color: #FFFBEB;
    /* Soft warm yellow */
    background-image: radial-gradient(#FCD34D 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    position: relative;
}

.onest-home-programs-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 64px;
    text-align: center;
    align-items: center;
}

@media (min-width: 768px) {
    .onest-home-programs-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        text-align: left;
    }
}

.onest-home-programs-header .onest-home-section-title {
    color: #1F2937;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.onest-home-programs-header .onest-home-section-subtitle {
    margin-bottom: 0;
    font-size: 1.15rem;
    color: #4B5563;
}

.onest-home-program-card {
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    border: 3px solid #F3F4F6;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy transition */
}

.onest-home-program-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: #FDE047;
}

.onest-home-program-card:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .onest-home-program-card {
        flex-direction: row;
        align-items: stretch;
        min-height: 400px;
    }

    .onest-home-program-card.reverse {
        flex-direction: row-reverse;
    }

    .onest-home-program-img {
        width: 48%;
        flex: none;
    }

    .onest-home-program-content {
        width: 52%;
        padding: 64px;
    }
}

.onest-home-program-img {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.onest-home-program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.onest-home-program-card:hover .onest-home-program-img img {
    transform: scale(1.1);
}

/* Cute overlay on image hover */
.onest-home-program-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.onest-home-program-card:hover .onest-home-program-img::after {
    opacity: 1;
}

.onest-home-program-content {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.onest-home-program-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #FEF3C7;
    /* Light Amber */
    color: #B45309;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    box-shadow: 0 2px 0 rgba(245, 158, 11, 0.2);
}

/* Varying badge colors for fun */
.onest-home-program-card:nth-child(2) .onest-home-program-badge {
    background: #DBEAFE;
    /* Light Blue */
    color: #1E40AF;
    box-shadow: 0 2px 0 rgba(37, 99, 235, 0.2);
}

.onest-home-program-card:nth-child(3) .onest-home-program-badge {
    background: #FCE7F3;
    /* Light Pink */
    color: #BE185D;
    box-shadow: 0 2px 0 rgba(219, 39, 119, 0.2);
}

.onest-home-program-card:nth-child(4) .onest-home-program-badge {
    background: #D1FAE5;
    /* Light Green */
    color: #047857;
    box-shadow: 0 2px 0 rgba(5, 150, 105, 0.2);
}

.onest-home-program-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: #111827;
    line-height: 1.2;
}

.onest-home-program-desc {
    color: #4B5563;
    margin: 0 0 32px 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.onest-home-program-action {
    align-self: flex-start;
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 700;
    box-shadow: 0 4px 0 #EAB308;
    /* 3D Button Effect */
    transform: translateY(0);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onest-home-program-action:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #EAB308;
    background-color: #FDE047;
}

.onest-home-program-action:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* --- Stats Section --- */
.onest-home-stats {
    background-color: #002147;
    background-image:
        radial-gradient(circle at 5% 5%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 8px, transparent 9px),
        radial-gradient(circle at 95% 95%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 12px, transparent 13px),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 18px, transparent 19px),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 14px, transparent 15px);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.onest-home-stats .onest-home-section-title {
    color: #ffffff;
}

.onest-home-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 64px;
    position: relative;
    z-index: 2;
}

.onest-home-stat-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--onest-home-radius);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--onest-home-shadow-sm);
}

.onest-home-stat-item h4 {
    font-size: 3.5rem;
    color: var(--onest-home-primary);
    margin: 16px 0 8px;
    font-weight: 800;
    line-height: 1;
}

.onest-home-stat-item p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 500;
}

/* --- Testimonials --- */
.onest-home-testimonials {
    background-color: var(--onest-home-bg-alt);
    text-align: center;
}

.onest-home-testimonial-card {
    background: var(--onest-home-bg-card);
    padding: 64px 40px;
    border-radius: var(--onest-home-radius);
    box-shadow: var(--onest-home-shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.onest-home-testimonial-card::before {
    content: '\201C';
    font-family: serif;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    color: var(--onest-home-primary);
    opacity: 0.2;
    line-height: 1;
}

.onest-home-testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 32px;
    color: var(--onest-home-text);
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.onest-home-testimonial-author {
    font-weight: 700;
    color: var(--onest-home-text);
    font-size: 1.1rem;
}

.onest-home-testimonial-role {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--onest-home-text-muted);
    margin-top: 4px;
}

/* --- Contact Section --- */
.onest-home-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

@media (min-width: 992px) {
    .onest-home-contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.onest-home-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.onest-home-contact-card {
    background: var(--onest-home-bg-alt);
    padding: 32px;
    border-radius: var(--onest-home-radius);
    text-align: center;
    border: 1px solid var(--onest-home-border);
}

.onest-home-contact-icon {
    font-size: 2.5rem;
    color: var(--onest-home-primary);
    margin-bottom: 16px;
}

.onest-home-form {
    background: var(--onest-home-bg-card);
    padding: 48px;
    border-radius: var(--onest-home-radius);
    box-shadow: var(--onest-home-shadow-lg);
    border: 1px solid var(--onest-home-border);
}

.onest-home-form-group {
    margin-bottom: 24px;
}

.onest-home-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--onest-home-border);
    border-radius: 12px;
    background: var(--onest-home-bg-alt);
    color: var(--onest-home-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.onest-home-input:focus {
    outline: none;
    border-color: var(--onest-home-primary);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.1);
    background: var(--onest-home-bg-card);
}

/* --- Footer --- */
.onest-home-footer {
    background-color: #002147;
    background-image:
        radial-gradient(circle at 5% 5%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 8px, transparent 9px),
        radial-gradient(circle at 95% 95%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 12px, transparent 13px),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 18px, transparent 19px),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 14px, transparent 15px);
    color: #fff;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.onest-home-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 64px;
    position: relative;
    z-index: 2;
}

.onest-home-footer-col h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.onest-home-footer-col ul li {
    margin-bottom: 12px;
}

.onest-home-footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.onest-home-footer-col ul li a:hover {
    color: var(--onest-home-primary);
    padding-left: 4px;
}

.onest-home-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* --- Responsive Improvements --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .onest-home-container {
        padding: 0 20px;
    }

    .onest-home-hero-title {
        font-size: 3.25rem;
    }

    .onest-home-section-title {
        font-size: 2.25rem;
    }

    .onest-home-intro-grid,
    .onest-home-contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .onest-home-program-content {
        padding: 40px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    /* General Layout */
    .onest-home-wrapper {
        overflow-x: hidden;
    }

    .onest-home-container {
        padding: 0 16px;
    }

    /* Header */
    .onest-home-header {
        padding: 6px 0;
    }

    .onest-home-header-inner {
        min-height: 0 !important;
    }

    .onest-home-logo {
        line-height: 0;
        display: block;
    }

    .onest-home-logo img {
        height: 50px;
        width: auto;
    }

    .onest-home-nav-list {
        display: none;
    }

    .onest-home-mobile-toggle {
        display: block;
        line-height: 1;
    }

    /* Ticker */
    .onest-home-ticker {
        font-size: 0.85rem;
        padding: 10px 0;
    }

    /* Hero Section */
    .onest-home-hero {
        height: 70vh;
        min-height: 500px;
    }

    .onest-home-hero-content {
        margin-left: 0;
        text-align: center;
        max-width: 100%;
    }

    .onest-home-hero-title {
        font-size: 2.25rem;
        margin-bottom: 20px;
    }

    .onest-home-hero-text {
        font-size: 1rem;
        margin: 0 auto 32px;
    }

    .onest-home-hero-nav {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }

    .onest-home-hero-nav-btn {
        width: 48px;
        height: 48px;
    }

    /* Buttons */
    .onest-home-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 200px;
    }

    .onest-home-hero-content .onest-home-btn {
        display: block;
        margin: 0 auto;
    }

    /* Sections */
    .onest-home-section {
        padding: 60px 0;
    }

    .onest-home-section-title {
        font-size: 1.75rem;
    }

    .onest-home-section-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    /* Intro Section */
    .onest-home-intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Mobile Centering Fixes */
    .onest-home-intro-content,
    .onest-home-intro-grid>div:not([class]) {
        text-align: center;
    }

    .onest-home-intro-content>div,
    .onest-home-intro-grid>div:not([class])>div {
        justify-content: center;
    }

    .onest-home-intro-grid ul li {
        justify-content: center;
    }

    .onest-home-intro-img-wrapper {
        order: -1;
        /* Image first */
    }

    .onest-home-badge {
        bottom: 16px;
        right: 16px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Features Grid */
    .onest-home-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .onest-home-feature-card {
        padding: 24px 20px;
    }

    .onest-home-feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .onest-home-feature-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    /* Event Banner */
    .onest-home-event-banner {
        padding: 32px 24px;
        flex-direction: column;
        text-align: center;
    }

    .onest-home-event-date {
        order: -1;
    }

    /* Programs Section */
    .onest-home-programs-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 40px;
    }

    .onest-home-program-card {
        flex-direction: column !important;
        margin-bottom: 24px;
    }

    .onest-home-program-img {
        min-height: 220px;
        order: -1;
        /* Image first */
    }

    .onest-home-program-content {
        padding: 32px 24px;
        text-align: center;
    }

    .onest-home-program-badge {
        align-self: center;
    }

    /* Stats Section */
    .onest-home-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 40px;
    }

    .onest-home-stat-item {
        padding: 20px;
    }

    .onest-home-stat-item h4 {
        font-size: 2.5rem;
    }

    .onest-home-stat-item p {
        font-size: 0.95rem;
    }

    /* Testimonials */
    .onest-home-testimonial-card {
        padding: 40px 24px;
    }

    .onest-home-testimonial-text {
        font-size: 1.15rem;
        margin-bottom: 24px;
    }

    .onest-home-testimonial-author {
        font-size: 1rem;
    }

    /* Contact Section */
    .onest-home-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .onest-home-contact-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .onest-home-contact-card {
        padding: 24px;
    }

    .onest-home-contact-icon {
        font-size: 2rem;
    }

    .onest-home-form {
        padding: 32px 24px;
    }

    .onest-home-input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    /* Footer */
    .onest-home-footer {
        padding: 60px 0 20px;
    }

    .onest-home-footer-grid {
        gap: 32px;
        margin-bottom: 40px;
    }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .onest-home-hero-title {
        font-size: 1.85rem;
    }

    .onest-home-section-title {
        font-size: 1.5rem;
    }

    .onest-home-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .onest-home-stat-item h4 {
        font-size: 2rem;
    }

    .onest-home-program-img {
        min-height: 200px;
    }

    .onest-home-testimonial-text {
        font-size: 1.05rem;
    }
}

/* --- Golden Mode Component Overrides --- */
.onest-home-dark-mode .onest-home-footer {
    background-color: #FFEBA1;
    color: #000000;
    border-top: 1px solid var(--onest-home-border);
}

.onest-home-dark-mode .onest-home-footer-col h4 {
    color: #000000;
}

.onest-home-dark-mode .onest-home-footer-col ul li a {
    color: #333333;
}

.onest-home-dark-mode .onest-home-footer-col ul li a:hover {
    color: #000000;
}

.onest-home-dark-mode .onest-home-footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.1);
    color: #333333;
}

/* Dark mode overrides removed to preserve dark blue design */

.onest-home-dark-mode .onest-home-hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.onest-home-dark-mode .onest-home-hero-content {
    color: #FFF;
    /* Revert to white text for dark overlay */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.onest-home-dark-mode .onest-home-hero-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.3);
}

.onest-home-dark-mode .onest-home-hero-nav-btn:hover {
    background: var(--onest-home-primary);
    color: #000000;
}