/*
 * Ministries Page Styles — New Hope to Asia
 * NHTA Design System v2 — dark hero + intro + warm showcases + scripture + stories + CTA
 */

/* ===== GP OVERRIDES ===== */
.page-template-page-ministries .site-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.page-template-page-ministries .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-ministries .entry-header {
    display: none !important;
}
.page-template-page-ministries .entry-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.page-template-page-ministries .inside-article,
.page-template-page-ministries .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== HERO: DARK BANNER WITH FULL PHOTO ===== */
.nhta-min-page-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-min-page-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-min-page-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-min-page-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.nhta-min-page-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}
.nhta-min-page-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-min-page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}
.nhta-min-page-hero-h1 {
    font-family: var(--nhta-display) !important;
    font-size: clamp(36px, 4.5vw, 56px) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    color: white !important;
    margin: 0 0 18px !important;
    letter-spacing: -.02em;
}
.nhta-min-page-hero-h1::after { display: none !important; }
.nhta-min-page-hero-h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--nhta-amber-light);
}
.nhta-min-page-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;
}

/* Entrance animations */
@keyframes nhta-min-fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nhta-min-page-hero-content .nhta-label { animation: nhta-min-fadeUp .55s ease both; }
.nhta-min-page-hero-h1 { animation: nhta-min-fadeUp .55s .1s ease both; }
.nhta-min-page-hero-sub { animation: nhta-min-fadeUp .55s .2s ease both; }

/* ===== INTRO ===== */
.nhta-min-page-intro {
    background: var(--nhta-cream);
    padding: 56px 40px 0;
}
.nhta-min-page-intro-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.nhta-min-page-intro-text {
    font-family: var(--nhta-sans);
    font-size: 16px;
    font-weight: 300;
    color: var(--nhta-ink-2);
    line-height: 1.8;
}

/* ===== SHOWCASES: WARM CREAM ===== */
.nhta-min-page-showcases {
    background: var(--nhta-cream);
    padding: 56px 0 72px;
}

/* Each ministry showcase */
.nhta-min-page-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 72px;
}
.nhta-min-page-showcase:last-child {
    padding-bottom: 0;
}

/* Divider between showcases */
.nhta-min-page-showcase + .nhta-min-page-showcase {
    border-top: 1px solid var(--nhta-cream-3);
    padding-top: 72px;
}

/* Alternate: even items reverse column order */
.nhta-min-page-showcase:nth-child(even) {
    direction: rtl;
}
.nhta-min-page-showcase:nth-child(even) > * {
    direction: ltr;
}

/* Photo container */
.nhta-min-page-photo {
    position: relative;
    border-radius: var(--nhta-r-md);
    overflow: hidden;
    box-shadow: var(--nhta-shadow-md);
}
.nhta-min-page-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: var(--nhta-r-md);
    transition: transform .5s ease;
}
.nhta-min-page-showcase:hover .nhta-min-page-photo img {
    transform: scale(1.03);
}

/* Badge on photo */
.nhta-min-page-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--nhta-sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    z-index: 3;
}

/* Caption below photo — centered italic */
.nhta-min-page-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;
}

/* Text side */
.nhta-min-page-text {
    padding: 8px 0;
}
.nhta-min-page-text .nhta-rule {
    margin: 0 0 18px;
}
.nhta-min-page-h2 {
    font-family: var(--nhta-display) !important;
    font-size: clamp(26px, 2.5vw, 34px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: var(--nhta-ink) !important;
    margin: 0 0 12px !important;
}
.nhta-min-page-h2::after { display: none !important; }
.nhta-min-page-body {
    font-family: var(--nhta-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--nhta-ink-2);
    line-height: 1.7;
    margin-bottom: 12px;
}
.nhta-min-page-detail {
    font-family: var(--nhta-sans);
    font-size: 14px;
    font-weight: 300;
    color: var(--nhta-muted);
    line-height: 1.75;
    margin-bottom: 24px;
}

/* ===== SCRIPTURE BANNER ===== */
.nhta-min-page-scripture {
    background: var(--nhta-charcoal);
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.nhta-min-page-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-min-page-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-min-page-scripture-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.nhta-min-page-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-min-page-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;
}

/* ===== STORIES ===== */
.nhta-min-page-stories {
    background: var(--nhta-cream-2);
    padding: 72px 40px;
}
.nhta-min-page-stories-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.nhta-min-page-stories-heading {
    text-align: center;
    margin-bottom: 36px;
}
.nhta-min-page-stories-h2 {
    font-family: var(--nhta-display) !important;
    font-size: clamp(24px, 3vw, 34px) !important;
    font-weight: 700 !important;
    color: var(--nhta-ink) !important;
    line-height: 1.15 !important;
    margin: 0 !important;
}
.nhta-min-page-stories-h2::after { display: none !important; }
.nhta-min-page-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Story card styles scoped to this section */
.nhta-min-page-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-min-page-stories .nhta-story-card:hover {
    box-shadow: var(--nhta-shadow-md);
    transform: translateY(-2px);
}
.nhta-min-page-stories .nhta-story-img {
    position: relative;
    overflow: hidden;
    height: 160px;
    background: var(--nhta-cream-2);
}
.nhta-min-page-stories .nhta-story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.nhta-min-page-stories .nhta-story-card:hover .nhta-story-img img {
    transform: scale(1.04);
}
.nhta-min-page-stories .nhta-story-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--nhta-cream-2);
}
.nhta-min-page-stories .nhta-story-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nhta-min-page-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-min-page-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-min-page-stories .nhta-story-title::after { display: none !important; }
.nhta-min-page-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-min-page-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-min-page-stories .nhta-story-meta::before {
    content: '';
    width: 18px;
    height: 1px;
    background: #e0d9ce;
}

/* ===== CTA: DARK BANNER ===== */
.nhta-min-page-cta {
    background: var(--nhta-charcoal);
    padding: 72px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.nhta-min-page-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-min-page-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-min-page-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}
.nhta-min-page-cta-h2 {
    font-family: var(--nhta-display) !important;
    font-size: clamp(30px, 4vw, 46px) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    color: white !important;
    letter-spacing: -.02em;
    margin: 14px 0 16px !important;
}
.nhta-min-page-cta-h2::after { display: none !important; }
.nhta-min-page-cta-h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--nhta-amber-light);
}
.nhta-min-page-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-min-page-cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nhta-min-page-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 30px 56px;
    }
    .nhta-min-page-showcase + .nhta-min-page-showcase {
        padding-top: 56px;
    }
    .nhta-min-page-showcase:nth-child(even) {
        direction: ltr;
    }
    .nhta-min-page-text {
        text-align: center;
    }
    .nhta-min-page-text .nhta-rule {
        margin: 0 auto 18px;
    }
    .nhta-min-page-showcases {
        padding: 56px 0;
    }
    .nhta-min-page-stories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nhta-min-page-hero {
        padding: 56px 24px;
        min-height: 400px;
    }
    .nhta-min-page-intro {
        padding: 40px 20px 0;
    }
    .nhta-min-page-showcase {
        padding: 0 20px 48px;
    }
    .nhta-min-page-showcase + .nhta-min-page-showcase {
        padding-top: 48px;
    }
    .nhta-min-page-showcases {
        padding: 48px 0;
    }
    .nhta-min-page-scripture {
        padding: 48px 20px;
    }
    .nhta-min-page-stories {
        padding: 48px 20px;
    }
    .nhta-min-page-stories-grid {
        grid-template-columns: 1fr;
    }
    .nhta-min-page-cta {
        padding: 48px 20px;
    }
}
