/* ==============================
   GLOBAL COLORS & BASICS
============================== */
:root {
    --primary: #1e3580;    /* Deep blue from header */
    --secondary: #F1C40F;  /* Yellow accent */
    --light-bg: #f7f8ff;
    --text-main: #1f2933;
    --text-muted: #6b7280;
}

body {
    background: #ffffff;
    color: var(--text-main);
}

/* Utility container (matches header/footer layout) */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}
/* Firestore gallery image enhancement */
.gallery-item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f2f2f2; /* fallback for slow-loading images */
    border-radius: 12px;
}


.section-title.left {
    text-align: left;
}

.section-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
}

.section-text.left {
    margin: 0;
    text-align: left;
}

.section-text.left.light,
.section-title.left.light {
    color: #f9fafb;
}


/* ==============================
   ANIMATION KEYFRAMES
============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* ==============================
   ANIMATION CLASSES
============================== */
.animate-fade-up {
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-view {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-view.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in-view {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.zoom-in-view.visible {
    opacity: 1;
    transform: scale(1);
}


/* ==============================
   BUTTONS
============================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #020f3a;
    border-color: #020f3a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 31, 110, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: #0A2AA3;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: #f5d658;
    border-color: #f5d658;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(241, 196, 15, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}

/* used for audio btn */
.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
/* ==============================
   HERO SLIDER
============================== */
.hero-slider {
    position: relative;
    height: calc(100vh - 120px); /* Full screen minus header/top bar */
    min-height: 550px;
    max-height: 900px;
    overflow: hidden;
}

/* Each slide (only background changes) */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 11, 0.55);
}

/* FIXED CONTENT (same text & buttons for all slides) */
.fixed-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    color: #fff;
}

.fixed-hero-content h1 {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.fixed-hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 300;
}

/* Buttons Area */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* OLD hero-content (disabled but kept for safety) */
.hero-content {
    display: none !important;
}

/* Slider Dots */
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.hero-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ffffffaa;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

.hero-dots .dot:hover {
    transform: scale(1.3);
    border-color: var(--secondary);
}


/* ==============================
   GLOBAL: Prevent Horizontal Scroll
============================== */
html, body {
    width: 100%;
    overflow-x: hidden !important;
}

/* Make sure hero slider never exceeds viewport width */
.hero-slider,
.hero-slide {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
}

/* Extra protection for child elements */
.hero-slide * {
    max-width: 100%;
}

/* Apply description clamp ONLY on index/home page */
.home-page .post-card p {
    font-size: 14px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;      /* limit to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* iPhone Safari quirky fix */
@supports (-webkit-touch-callout: none) {
    .hero-slider {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
}


/* ==============================
   WELCOME SECTION
============================== */
.welcome {
    background: #fff;
}

.welcome-cta {
    margin-top: 25px;
    text-align: center;
}



/* ==============================
   CARD GRID SECTIONS
============================== */
.card-grid {
    display: grid;
    gap: 28px;
    margin-top: 40px;
}

.card-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card-grid.six {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
    background: #f0f4ff;
    border-radius: 18px;
    padding: 28px 26px;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--secondary);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Subtle background glow */
.card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 140px;
    height: 140px;
    background: var(--secondary);
    opacity: 0.08;
    border-radius: 50%;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.12);
}

.card:hover::before {
    opacity: 0.16;
    transform: scale(1.3);
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: #020f3a;
}

.card .time {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2933;
}

.card .desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
}

.card-icon {
    font-size: 35px;
    color: var(--secondary);
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}


/* ==============================
   LATEST SERMON
============================== */
.latest-sermon {
    background: var(--light-bg);
}

.sermon-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: center;
}

.sermon-media .sermon-thumb {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.sermon-media img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.sermon-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: rgba(241, 196, 15, 0.95);
    color: #061f6e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

.sermon-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.sermon-info h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.sermon-info .meta {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.sermon-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive YouTube Wrapper */
.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 24px 50px rgba(0,0,0,0.25);
}

.youtube-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


/* ==============================
   RECENT POSTS
============================== */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.section-header-flex .section-title {
    margin-bottom: 8px;
}

.section-header-flex .section-text {
    margin: 0;
}

.section-header-flex .link-arrow {
    white-space: nowrap;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.post-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.post-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.post-card:hover h3 {
    color: #020f3a;
}

.post-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.post-tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary);
    background: #e5edff;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.post-card:hover .post-tag {
    background: var(--secondary);
    color: #061f6e;
}

/* Post Thumbnails */
.post-thumb {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    object-position: top center;
}

.post-card:hover .post-thumb img {
    transform: scale(1.15) rotate(2deg);
}

.link-arrow {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.link-arrow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.link-arrow:hover::after {
    width: 100%;
}

.link-arrow:hover {
    transform: translateX(5px);
}


/* ==============================
   UPCOMING EVENTS — SAME STYLE AS POSTS
============================== */
.event-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

/* Thumbnail */
.event-card .event-thumb {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.event-card .event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-thumb img {
    transform: scale(1.15) rotate(2deg);
}

/* Date */
.event-card .event-date {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    background: #e5edff;
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.event-card:hover .event-date {
    background: var(--secondary);
    color: #061f6e;
}

/* Title */
.event-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.event-card:hover h3 {
    color: #020f3a;
}

/* Description */
.event-card .desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Grid */
.events-extended .card-grid,
.events-extended .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}


/* ==============================
   ABOUT HOME
============================== */
.about-home {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;               /* control height cleanly */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: scale(1.03);
    box-shadow: 0 24px 55px rgba(0,0,0,0.25);
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 340px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}


.about-text .about-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

.about-text .about-list li {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.about-text .about-list li:hover {
    transform: translateX(5px);
}

.about-text .about-list i {
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.about-text .about-list li:hover i {
    transform: scale(1.2) rotate(360deg);
}


/* ==============================
   GALLERY SNIPPET
============================== */
.gallery-snippet {
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-grid.small .gallery-item img {
    height: 180px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 31, 110, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.09) rotate(0deg);
}


/* ==============================
   PRAYER REQUEST (PREMIUM)
============================== */
.prayer-request {
    background: radial-gradient(circle at top left, #233ba8, #061f6e 40%, #020f3a 90%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.prayer-request::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgba(241, 196, 15, 0.18);
    border-radius: 50%;
    top: -80px;
    right: -80px;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.prayer-request::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWP4+fPnfwAJPgPQxhxVnQAAAABJRU5ErkJggg==');
    opacity: 0.15;
    pointer-events: none;
}

.prayer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.prayer-inner h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 800;
}

.prayer-inner p {
    font-size: 16px;
    max-width: 90%;
    margin-bottom: 20px;
    opacity: 0.9;
}

.prayer-form-wrapper {
    background: rgba(255, 255, 255, 0.09);
    padding: 28px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prayer-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(0,0,0,0.35);
}

.prayer-form {
    display: grid;
    gap: 14px;
}

.prayer-form input,
.prayer-form textarea {
    width: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 14px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.prayer-form input::placeholder,
.prayer-form textarea::placeholder {
    color: #dce2ff;
}

.prayer-form input:focus,
.prayer-form textarea:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.55);
    transform: scale(1.02);
    outline: none;
}

.prayer-form button {
    margin-top: 5px;
}


/* ==============================
   RESPONSIVE
============================== */

/* Posts grid (tablet) */
@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fixed-hero-content h1 {
        font-size: 20px;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 8px;
        padding: 10px 10px;
    }

    .fixed-hero-content p {
        font-size: 15px;
        margin-bottom: 25px;
        padding: 10px 10px;
        line-height: 1.6;
        font-weight: 300;
    }
}

/* Posts grid (mobile) */
@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    .hero-slider {
        height: 65vh;
        min-height: 380px;
    }

    .sermon-layout,
    .about-grid,
    .prayer-inner {
        grid-template-columns: 1fr;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
    }

    .gallery-grid.small .gallery-item img {
        height: 180px;
    }
}

@media (max-width: 600px) {

    .hero-slider {
        height: 60vh;
        min-height: 360px;
    }

    .hero-content {
        text-align: left;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-item img {
        height: 200px;
    }
}


/* ==============================
   SMOOTH SCROLLING
============================== */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.gallery-item {
  overflow: visible !important;
  position: relative;
}

.gallery-item::after {
  pointer-events: none !important;
}

.gallery-item img {
  cursor: pointer;
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999 !important;
}

.image-lightbox.visible {
  display: flex;
}

.image-lightbox-content img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 12px;
}

.image-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

/* Letter animation wrapper */
.animated-heading span {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    animation: letterFade 0.05s forwards;
}

@keyframes letterFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Paragraph fade delay */
.animated-paragraph {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpSmooth 1s ease forwards;
    animation-delay: 1.5s;
}

@keyframes fadeInUpSmooth {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==============================
   SUBPAGE HERO (for give.html, about-page headers, etc.)
============================== */
.subpage-hero {
    position: relative;
    width: 100%;
    min-height: 40vh;                /* This is the missing piece */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: white;
}

.subpage-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 11, 0.55);
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.subpage-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.subpage-hero p {
    font-size: 17px;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.9;
}
