/**
 * Homepage — light hero, green bar, program cards, library banner, mobile CTA, wide footer.
 * Uses Inter when loaded from header (home page).
 */

.page-home .main-content {
    padding: 0;
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* —— Hero —— */
.home-hero-light {
    background:
        radial-gradient(1200px 480px at 8% -10%, rgba(40, 199, 111, 0.12), transparent 55%),
        radial-gradient(900px 420px at 92% 20%, rgba(16, 185, 129, 0.08), transparent 50%),
        linear-gradient(180deg, #f8faf9 0%, #ffffff 42%, #ffffff 100%);
    color: #1a1a1a;
    overflow: hidden;
}

.home-hero-inner {
    padding-top: clamp(2.25rem, 5vw, 4rem);
    padding-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.home-hero-copy {
    max-width: 34rem;
}

.home-hero-brand {
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #111827;
}

.home-hero-brand::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #28c76f, #34d399);
}

.home-hero-bold {
    margin: 0 0 0.85rem;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #14532d;
}

.home-hero-display {
    margin: 0;
    font-size: clamp(0.98rem, 1.5vw, 1.12rem);
    font-weight: 400;
    line-height: 1.65;
    color: #4b5563;
    max-width: 32rem;
}

.home-hero-tagline {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 300;
    color: #6b7280;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.btn-home-green-pill {
    background: #28c76f;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.65rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(40, 199, 111, 0.28);
}

.btn-home-green-pill:hover {
    background: #22b35f;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(40, 199, 111, 0.32);
}

.btn-home-ghost {
    background: transparent;
    color: #14532d !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    border: 1.5px solid #a7f3d0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-home-ghost:hover {
    background: #ecfdf5;
    border-color: #28c76f;
    color: #0f3d2e !important;
}

.home-hero-visual {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 22px 48px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
}

/* Landscape 16:9 frame — forces horizontal display even for portrait uploads */
.page-home .home-hero-visual-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.08), rgba(40, 199, 111, 0.08));
}

.page-home .home-hero-visual-frame > .home-hero-visual-img,
.page-home .home-hero-visual-frame > .home-hero-visual-video,
.page-home .home-hero-visual-frame > img,
.page-home .home-hero-visual-frame > video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border: 0 !important;
}

.home-hero-visual-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3rem, 10vw, 6rem);
    color: rgba(40, 167, 69, 0.25);
}

.home-hero-green-bar {
    background: linear-gradient(90deg, #1f9d57 0%, #28c76f 50%, #22b35f 100%);
    color: #fff;
}

.home-hero-green-bar-text {
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 100%;
}

.home-hero-live-btn {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #14532d !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-hero-live-btn:hover,
.home-hero-live-btn:focus {
    background: #ecfdf5 !important;
    border-color: #ecfdf5 !important;
    color: #0f3d2e !important;
}

[data-bs-theme="dark"] .home-hero-light {
    background:
        radial-gradient(1000px 420px at 10% -10%, rgba(40, 199, 111, 0.16), transparent 55%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #f3f4f6;
}

[data-bs-theme="dark"] .home-hero-brand {
    color: #f9fafb;
}

[data-bs-theme="dark"] .home-hero-bold {
    color: #6ee7b7;
}

[data-bs-theme="dark"] .home-hero-display {
    color: #9ca3af;
}

[data-bs-theme="dark"] .btn-home-ghost {
    color: #e5e7eb !important;
    border-color: #374151;
}

[data-bs-theme="dark"] .btn-home-ghost:hover {
    background: rgba(52, 211, 153, 0.12);
    border-color: #34d399;
    color: #f9fafb !important;
}

[data-bs-theme="dark"] .home-hero-visual {
    border-color: #374151;
    background: #1f2937;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .home-hero-live-btn {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #111827 !important;
}

[data-bs-theme="dark"] .home-hero-live-btn:hover,
[data-bs-theme="dark"] .home-hero-live-btn:focus {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

@media (max-width: 991.98px) {
    .home-hero-copy {
        max-width: none;
        text-align: center;
    }

    .home-hero-brand::after {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-display {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }
}

/* —— Programs —— */
.home-programs {
    background: #ebf5ff;
}

.home-programs-title {
    font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.2;
    color: #14532d;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    margin-bottom: 0.65rem;
}

.home-programs-sub {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    max-width: 36rem;
    color: #5c6b7f;
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.home-program-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(26, 43, 72, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.home-program-card-head {
    min-height: 120px;
    background: linear-gradient(135deg, var(--pg1, #34d399), var(--pg2, #6ee7b7));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.home-program-card-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #14532d;
    text-transform: uppercase;
}

.home-program-card-badge i {
    color: #c9a227;
    font-size: 1.1rem;
}

.home-program-card-body {
    padding: 1.25rem 1.35rem 1.5rem;
}

.home-program-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.35rem;
}

.home-program-brand-mini {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.home-program-list {
    padding-left: 1.1rem;
    margin: 0;
}

.home-program-list li {
    margin-bottom: 0.35rem;
}

/* —— Library —— */
.home-library {
    background: #fff;
}

.home-library-banner {
    background: #ecfdf5;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    position: relative;
}

.home-library-title {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 700;
    color: #14532d;
    margin: 0;
    position: relative;
    display: inline-block;
}

.home-library-title span {
    color: #14532d;
}

.home-library-title::after {
    content: '';
    display: block;
    height: 6px;
    width: 55%;
    margin: 0.35rem auto 0;
    background: linear-gradient(90deg, transparent, #ff8c42 40%, #ff8c42 60%, transparent);
    border-radius: 4px;
}

.home-library-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.home-library-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.home-library-img--ph {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #64748b;
}

.home-library-label {
    display: block;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    color: #1c1917;
    font-size: 0.95rem;
}

/* —— Mobile CTA —— */
.home-mobile-cta {
    background: #ebf5ff;
}

.home-mobile-cta-title {
    font-weight: 700;
    color: #14532d;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.home-mobile-cta-text {
    max-width: 560px;
    color: #5c6b7f;
    font-size: 0.95rem;
}

/* Dark mode — keep text/cards readable (neutral slate) */
[data-bs-theme="dark"] .home-hurbad-section,
[data-bs-theme="dark"] .home-mobile-cta {
    background: #111827 !important;
    color: #f3f4f6;
}
[data-bs-theme="dark"] .home-hurbad-title,
[data-bs-theme="dark"] .home-mobile-cta-title,
[data-bs-theme="dark"] .home-library-label {
    color: #f9fafb !important;
}
[data-bs-theme="dark"] .home-hurbad-text,
[data-bs-theme="dark"] .home-mobile-cta-text {
    color: #9ca3af !important;
}
[data-bs-theme="dark"] .home-hurbad-card,
[data-bs-theme="dark"] .home-library-card {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #f3f4f6;
}

/* Footer: see assets/css/site-footer.css (global) */
