/*
 * School Page Styles — New Hope to Asia
 * NHTA Design System v2 — dark hero + warm content + pillar cards + CTA
 */

/* ===== GP OVERRIDES ===== */
.page-template-page-school .site-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.page-template-page-school .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
}
.page-template-page-school .entry-header {
    display: none !important;
}
.page-template-page-school .entry-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.page-template-page-school .inside-article,
.page-template-page-school .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== HERO: DARK BANNER WITH PHOTO ===== */
.nhta-sch-hero {
    background: var(--nhta-charcoal);
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
}
.nhta-sch-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
    background-size: 180px;
    pointer-events: none;
    z-index: 1;
}
.nhta-sch-hero::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212,133,74,.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
.nhta-sch-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.nhta-sch-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nhta-sch-hero-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(36,36,40,.80) 0%, rgba(36,36,40,.65) 50%, rgba(36,36,40,.85) 100%);
}
.nhta-sch-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}
.nhta-sch-hero-h1 {
    font-family: var(--nhta-display) !important;
    font-size: clamp(32px, 4.5vw, 56px) !important;
    font-weight: 900 !important;
    color: white !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em;
    margin: 0 0 18px !important;
}
.nhta-sch-hero-h1::after { display: none !important; }
.nhta-sch-hero-h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--nhta-amber-light);
}
.nhta-sch-hero-sub {
    font-family: var(--nhta-sans);
    font-size: 15.5px;
    font-weight: 300;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 30px;
}
.nhta-sch-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== WELCOME: WARM 2-COLUMN ===== */
.nhta-sch-welcome {
    background: var(--nhta-cream);
    padding: 72px 40px;
}
.nhta-sch-welcome-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.nhta-sch-welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: start;
}
.nhta-sch-welcome-photo {
    position: relative;
}
.nhta-sch-welcome-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--nhta-r-md);
    display: block;
    box-shadow: var(--nhta-shadow-md);
}
.nhta-sch-section-h2 {
    font-family: var(--nhta-display) !important;
    font-size: clamp(24px, 3vw, 36px) !important;
    font-weight: 700 !important;
    color: var(--nhta-ink) !important;
    line-height: 1.15 !important;
    margin: 0 0 18px !important;
}
.nhta-sch-section-h2::after { display: none !important; }
.nhta-sch-section-h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--nhta-amber);
}
.nhta-sch-body {
    font-family: var(--nhta-sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--nhta-ink-2);
    line-height: 1.75;
    margin-bottom: 16px;
}
.nhta-sch-body strong {
    font-weight: 600;
    color: var(--nhta-ink);
}
.nhta-sch-caption {
    display: block;
    text-align: center;
    font-family: var(--nhta-sans);
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    color: var(--nhta-muted);
    margin-top: 12px;
}

/* Stats row */
.nhta-sch-stats {
    display: flex;
    gap: 28px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--nhta-cream-3);
}
.nhta-sch-stat-num {
    font-family: var(--nhta-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--nhta-amber);
    line-height: 1;
    margin-bottom: 4px;
}
.nhta-sch-stat-label {
    font-family: var(--nhta-sans);
    font-size: 11px;
    font-weight: 500;
    color: var(--nhta-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ===== PROGRAMS: PILLAR CARDS (uses shared .nhta-pillar-* from style.css) ===== */
.nhta-sch-programs {
    background: var(--nhta-cream-2);
    padding: 72px 40px;
}
.nhta-sch-programs-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.nhta-sch-programs-heading {
    text-align: center;
    margin-bottom: 40px;
}
.nhta-sch-programs-sub {
    font-family: var(--nhta-sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--nhta-muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 10px auto 0;
}

/* ===== SPOTLIGHT: REVERSED 2-COLUMN ===== */
.nhta-sch-spotlight {
    background: var(--nhta-cream);
    padding: 72px 40px;
}
.nhta-sch-spotlight-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.nhta-sch-spotlight-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}
.nhta-sch-spotlight-photo {
    position: relative;
}
.nhta-sch-spotlight-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--nhta-r-md);
    display: block;
    box-shadow: var(--nhta-shadow-md);
}

/* ===== SCRIPTURE BANNER ===== */
.nhta-sch-scripture {
    background: var(--nhta-charcoal);
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.nhta-sch-scripture::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
    background-size: 180px;
    pointer-events: none;
    z-index: 1;
}
.nhta-sch-scripture::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,133,74,.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}
.nhta-sch-scripture-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}
.nhta-sch-verse {
    font-family: var(--nhta-serif);
    font-size: clamp(18px, 2.2vw, 24px);
    font-style: italic;
    font-weight: 300;
    color: var(--nhta-amber-light);
    line-height: 1.7;
    border: none;
    padding: 0;
    margin: 0;
}
.nhta-sch-verse cite {
    display: block;
    font-family: var(--nhta-sans);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    color: rgba(255,255,255,.4);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 18px;
}

/* ===== PHOTO GALLERY ===== */
.nhta-sch-gallery {
    background: var(--nhta-cream-2);
    padding: 72px 40px;
}
.nhta-sch-gallery-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.nhta-sch-gallery-heading {
    text-align: center;
    margin-bottom: 40px;
}
.nhta-sch-gallery-heading .nhta-rule.center {
    margin: 12px auto 18px;
}
.nhta-sch-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.nhta-sch-gallery-item {
    overflow: hidden;
}
.nhta-sch-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--nhta-r-md);
    transition: transform .5s ease;
}
.nhta-sch-gallery-item:hover img {
    transform: scale(1.03);
}

/* ===== STORIES ===== */
.nhta-sch-stories {
    background: var(--nhta-cream);
    padding: 72px 40px;
}
.nhta-sch-stories-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.nhta-sch-stories-heading {
    text-align: center;
    margin-bottom: 36px;
}
.nhta-sch-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Story card styles scoped to this section */
.nhta-sch-stories .nhta-story-card {
    background: white;
    border: 1px solid var(--nhta-cream-3);
    border-radius: var(--nhta-r-md);
    overflow: hidden;
    box-shadow: var(--nhta-shadow-sm);
    transition: box-shadow var(--nhta-t), transform var(--nhta-t);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}
.nhta-sch-stories .nhta-story-card:hover {
    box-shadow: var(--nhta-shadow-md);
    transform: translateY(-2px);
}
.nhta-sch-stories .nhta-story-img {
    position: relative;
    overflow: hidden;
    height: 160px;
    background: var(--nhta-cream-2);
}
.nhta-sch-stories .nhta-story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.nhta-sch-stories .nhta-story-card:hover .nhta-story-img img {
    transform: scale(1.04);
}
.nhta-sch-stories .nhta-story-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--nhta-cream-2);
}
.nhta-sch-stories .nhta-story-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nhta-sch-stories .nhta-story-cat {
    font-family: var(--nhta-sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--nhta-amber);
    margin-bottom: 8px;
}
.nhta-sch-stories .nhta-story-title {
    font-family: var(--nhta-display) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--nhta-ink) !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
}
.nhta-sch-stories .nhta-story-title::after { display: none !important; }
.nhta-sch-stories .nhta-story-excerpt {
    font-family: var(--nhta-sans);
    font-size: 12.5px;
    color: var(--nhta-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 14px;
    font-weight: 300;
}
.nhta-sch-stories .nhta-story-meta {
    font-family: var(--nhta-sans);
    font-size: 10.5px;
    color: #c0b9b0;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nhta-sch-stories .nhta-story-meta::before {
    content: '';
    width: 18px;
    height: 1px;
    background: #e0d9ce;
}

/* ===== CTA: DARK BANNER ===== */
.nhta-sch-cta {
    background: var(--nhta-charcoal);
    padding: 72px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.nhta-sch-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
    background-size: 180px;
    pointer-events: none;
    z-index: 1;
}
.nhta-sch-cta::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212,133,74,.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}
.nhta-sch-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}
.nhta-sch-cta-h2 {
    font-family: var(--nhta-display) !important;
    font-size: clamp(30px, 4vw, 46px) !important;
    font-weight: 900 !important;
    color: white !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em;
    margin: 14px 0 16px !important;
}
.nhta-sch-cta-h2::after { display: none !important; }
.nhta-sch-cta-h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--nhta-amber-light);
}
.nhta-sch-cta-body {
    font-family: var(--nhta-sans);
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,.7);
    line-height: 1.75;
    margin-bottom: 28px;
}
.nhta-sch-cta-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nhta-sch-welcome-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .nhta-sch-spotlight-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .nhta-sch-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nhta-sch-stories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nhta-sch-hero {
        padding: 56px 24px;
        min-height: 400px;
    }
    .nhta-sch-welcome {
        padding: 48px 20px;
    }
    .nhta-sch-programs {
        padding: 48px 20px;
    }
    .nhta-sch-spotlight {
        padding: 48px 20px;
    }
    .nhta-sch-scripture {
        padding: 48px 20px;
    }
    .nhta-sch-gallery {
        padding: 48px 20px;
    }
    .nhta-sch-gallery-grid {
        grid-template-columns: 1fr;
    }
    .nhta-sch-stories {
        padding: 48px 20px;
    }
    .nhta-sch-stories-grid {
        grid-template-columns: 1fr;
    }
    .nhta-sch-cta {
        padding: 48px 20px;
    }
    .nhta-sch-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}
