/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-headline {
    opacity: 0;
    transform: scale(0.85);
    letter-spacing: 0.25em;
    transition: opacity 1s cubic-bezier(0.2, 0, 0.2, 1),
                transform 1s cubic-bezier(0.2, 0, 0.2, 1),
                letter-spacing 1s cubic-bezier(0.2, 0, 0.2, 1);
}

.animate-headline.is-visible {
    opacity: 1;
    transform: scale(1);
    letter-spacing: normal;
}

/* ==========================================
   CSS RESET & VARIABLES
   ========================================== */
:root {
    --clr-bg: #FFFFFF;
    --clr-text: #4b5563; /* medium gray paragraph text */
    --clr-black: #111827; /* almost black for headings */
    --clr-white: #FFFFFF;
    --clr-gray-border: #e5e7eb;
    --clr-footer: #374151;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --space-md: clamp(2rem, 5vw, 4rem);
    --space-lg: clamp(4rem, 8vw, 8rem);
    --transition-fast: 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4, .font-heading, .font-serif {
    font-family: var(--font-heading);
    color: var(--clr-black);
    font-weight: 500;
}

.white-text h1, .white-text h2, .white-text h3, .white-text p, .white-text span, .white-text .font-serif {
    color: var(--clr-white);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1rem;
    color: var(--clr-black);
    font-weight: 500;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Utilities */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.pb-2 { padding-bottom: 1rem; }
.pt-pb { padding: var(--space-lg) 0; }
.white-bg { background-color: var(--clr-white); }
.text-center { text-align: center; }
.align-left { text-align: left; }
.max-w-sm { max-width: 600px; }
.max-w-md { max-width: 800px; }
.mx-auto { margin-inline: auto; }
.pl-lg { padding-left: clamp(2rem, 5vw, 4rem); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-size: 0.75rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.btn-outline {
    background: transparent;
    color: var(--clr-white);
    border: 1px solid var(--clr-white);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.btn-solid {
    background: transparent;
    color: var(--clr-black);
    border: 1px solid rgba(0,0,0,0.2);
}

.btn-solid:hover {
    background: rgba(0,0,0,0.05);
}

.btn-solid-minimal {
    background: transparent;
    color: var(--clr-black);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 2rem;
}

.btn-solid-minimal:hover {
    border-color: rgba(0,0,0,0.4);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
    background-color: var(--clr-white);
    position: relative;
    z-index: 100;
    padding: 2rem 0;
}

.logo-wrapper {
    width: 100%;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--clr-gray-border);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    display: none; /* Removed */
}

.text-logo {
    text-align: center;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--clr-black);
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.desktop-nav {
    display: none;
}

.social-icons {
    display: none;
}

@media (min-width: 900px) {
    .desktop-nav {
        display: block;
    }
    .desktop-nav ul {
        display: flex;
        gap: 2.5rem;
    }
    .desktop-nav a {
        font-size: 0.95rem;
        color: #6b7280;
        font-weight: 500;
        letter-spacing: 0.1em;
    }
    .desktop-nav a:hover {
        color: var(--clr-black);
    }
    .social-icons {
        display: flex;
        position: absolute;
        right: var(--space-md);
        gap: 1.2rem;
        font-size: 0.9rem;
        color: #9ca3af;
    }
    .social-icons a:hover {
        color: var(--clr-black);
    }
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 900px) { .mobile-menu-btn { display: none; } }

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--clr-black);
    transition: 0.3s ease;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-white);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-overlay li {
    margin: 2rem 0;
    text-align: center;
}

.mobile-nav-overlay a {
    font-size: 1.5rem;
    color: var(--clr-black);
    letter-spacing: 0.1em;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(3rem, 12vh, 6rem);
}

/* ── Hero image & video layers ── */
#hero-image-layer {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.95) 100%),
        url('Assets/IMG_20260402_134442%20(19)%20(1).jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

#hero-image-layer.slide-out {
    animation: heroSlideOutLeft 0.85s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

#hero-image-layer.slide-in {
    animation: heroSlideInRight 0.85s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes heroSlideOutLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@keyframes heroSlideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

#hero-video-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    pointer-events: none;
}

#hero-video-layer.active {
    opacity: 1;
    pointer-events: auto;
}

#hero-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient overlay on the video */
.hero-video-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.05) 40%,
        rgba(0, 0, 0, 0.70) 80%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Keep text/button above all layers */
.hero-container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--clr-white);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.reveal-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--clr-white);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* ==========================================
   WELCOME SLIDER
   ========================================== */
.welcome-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a0e1a;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: stretch;
}

.slider-slide.active {
    opacity: 1;
}

/* Make the image fill the slide fully without cropping */
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to show the full graphic */
    object-position: center;
    display: block;
}

/* Use the first image's natural aspect ratio to size the slider */
.welcome-slider::before {
    content: '';
    display: block;
    padding-top: 100%; /* square ratio — matches announcement graphics exactly */
}

/* Arrow Buttons */
.slider-btn {
    display: none;
}

.slider-prev { left: 1.25rem; }
.slider-next { right: 1.25rem; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: var(--clr-white);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .welcome-slider::before {
        padding-top: 56.25%; /* 16:9 — matches banner images perfectly */
    }
    .slider-dots {
        display: none;
    }
}

@media (min-width: 769px) {
    .welcome-slider {
        max-width: 1000px; /* Slightly wider for better presence */
        margin: 2rem auto;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    .welcome-slider::before {
        padding-top: 56.25%; /* 16:9 ratio */
    }
    .slide-img {
        object-fit: contain;
        background-color: #050a14; /* Match the dark theme of banners */
    }
}

/* ==========================================
   LOCATION MAP SECTION
   ========================================== */
.location-map-section {
    padding: 0;
    line-height: 0;
    overflow: hidden;
    position: relative;
    background-color: var(--clr-white);
    margin: 4rem auto 2rem; /* Space above, centered, small space below */
    max-width: 1000px; /* Match slider width */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container {
    width: 100%;
    height: 450px;
    filter: grayscale(0.2) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover {
    filter: grayscale(0);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-info-overlay {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 5;
    pointer-events: none;
}

.map-info-overlay h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--clr-black);
}

.map-info-overlay p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--clr-text);
}

@media (max-width: 768px) {
    .location-map-section {
        margin: 2rem 0; /* Space above and below on mobile */
        border-radius: 0;
        max-width: none;
    }
    .map-info-overlay {
        display: none; /* Hide overlay on mobile for cleaner map view */
    }
    .map-container {
        height: 350px;
    }
}

/* ==========================================
   SECTIONS
   ========================================== */
.split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .split-grid {
        grid-template-columns: 1fr 1fr;
    }
    .reversed-mobile .image-content {
        order: -1;
    }
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: clamp(6rem, 15vw, 12rem) 0;
}

/* Sermon Section specific */
.video-wrap {
    position: relative;
}

.image-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.image-content:hover img {
    transform: scale(1.02);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 2px solid var(--clr-white);
    color: var(--clr-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px; /* Alignment fix for play icon */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    animation: pulsePlay 2s infinite;
}

.play-overlay:hover {
    background: var(--clr-white);
    color: var(--clr-black);
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulsePlay {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.video-text {
    position: absolute;
    top: 10px;
    left: 15px;
    color: var(--clr-white);
    font-family: var(--font-body);
    z-index: 5;
}

.video-cat {
    display: block;
    font-size: clamp(0.55rem, 2.4vw, 0.75rem); /* Scaled down for mobile */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em; /* Tighter for space */
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 4px;
    max-width: 85%; /* Prevent hitting the edge */
    line-height: 1.3;
}

/* Service Times Glass box (or text box) */
.glass-box {
    text-align: center;
}

.times-text {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 0.5rem;
    color: var(--clr-white);
    font-weight: 400;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 6px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        transparent 70%
    );
    pointer-events: none;
}

.gallery-item.no-gradient::after {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item img.zoomed-photo {
    transform: scale(1.2);
}

.gallery-item:hover img.zoomed-photo {
    transform: scale(1.24);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background-color: var(--clr-footer);
    color: var(--clr-white);
    padding: var(--space-lg) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.8rem;
    color: #d1d5db;
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: #d1d5db;
    font-size: 1rem;
}

.footer-socials a:hover {
    color: var(--clr-white);
}

.footer-credit {
    text-align: center;
    padding: 0.75rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

.footer-credit a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f59e0b;
    text-decoration: none;
    animation: pulse-credit 2.5s ease-in-out infinite;
    display: inline-block;
    letter-spacing: 0.03em;
}

.footer-credit a:hover {
    color: #fcd34d;
}

@keyframes pulse-credit {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ==========================================
   QUICK LINKS GRID (CARDS)
   ========================================== */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* square ratio shows more width than 1/1.1 */
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: var(--clr-white);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    color: var(--clr-white);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* Dark overlay for "What We Believe" etc. */
.card-overlay-dark::before {
    background-color: rgba(60, 62, 70, 0.75);
}
.card-overlay-dark:hover::before {
    background-color: rgba(60, 62, 70, 0.85);
}

/* Blue overlay for "Request Prayer" etc. */
.card-overlay-blue::before {
    background-color: rgba(85, 125, 165, 0.8);
}
.card-overlay-blue:hover::before {
    background-color: rgba(85, 125, 165, 0.9);
}

.card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.link-card h3 {
    position: relative;
    z-index: 2;
    font-size: 1.6rem;
    font-family: var(--font-body); /* Sans-serif modern */
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 1rem;
    color: var(--clr-white);
}

/* ==========================================
   MOBILE SPECIFIC FIXES
   ========================================== */
@media (max-width: 768px) {
    /* Center header correctly on mobile */
    .site-header {
        padding: 0.5rem 0;
    }
    .logo-wrapper {
        padding-bottom: 0.75rem;
        margin-bottom: 0.5rem;
    }
    .logo-container {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .text-logo {
        text-align: center;
    }
    .logo-title {
        font-size: 2.3rem; /* Make LIGHTHOUSE much bigger */
        line-height: 1;
    }
    .hero {
        height: 65vh;
        min-height: 450px;
        padding-bottom: 8rem;
        align-items: flex-end;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtext {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .header-logo {
        max-height: 70px;
    }
    
    /* Move hamburger menu up to top of header */
    .nav-wrapper {
        position: static;
    }
    .mobile-menu-btn {
        top: 1.2rem;
        transform: none;
    }
    
    /* Reveal full hero image on mobile without cropping people */
    .hero {
        background-color: var(--clr-black);
        height: auto;
        min-height: 420px;
        display: flex;
        align-items: flex-end;
        padding-bottom: 2rem;
    }

    /* Mobile: show full portrait-friendly image from top */
    #hero-image-layer {
        background-image:
            linear-gradient(to bottom, rgba(0,0,0,0) 35%, var(--clr-black) 65%),
            url('Assets/IMG_20260402_134442%20(19)%20(1).jpg');
        background-size: 100% 100%, 100% auto;
        background-position: top center, top center;
        background-repeat: no-repeat, no-repeat;
    }

    /* Mobile video: cover fills the portrait frame cleanly */
    #hero-vid {
        object-fit: cover;
        object-position: center top;
    }

    .hero-content {
        margin-top: 35%;
    }
    
    /* Fix extreme zooming on mobile parallax backgrounds */
    .parallax-bg {
        background-attachment: scroll;
        background-position: center center;
        padding: 3rem 0; /* Reduced padding to help sizing */
    }
    
    /* Remove black bars by using cover, but compress the section height drastically to prevent cropping */
    #service-times {
        background-size: cover;
        background-position: center center;
        padding: 2rem 0;
    }
    
    #service-times h2 {
        margin-bottom: 0.5rem;
    }
    
    #service-times p {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }
    
    #service-times a {
        margin-top: 1rem;
    }
}
/* ==========================================
   INTERNAL PAGE STYLES
   ========================================== */
.internal-hero {
    height: 45vh;
    min-height: 350px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('Assets/cross.jpg');
    background-size: cover;
    background-position: center 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-white);
}

.give-hero {
    position: relative;
    width: 100%;
    background-color: #000c1d; /* Shows cleanly around the contained video */
    overflow: hidden;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 85vh;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zoomed out — shows entire video frame on desktop */
    z-index: 1;
    transition: opacity 2.5s ease-in-out;
}

.hero-video.fade-out {
    opacity: 0;
}

@media (max-width: 768px) {
    .give-hero {
        aspect-ratio: 16 / 9;
        max-height: none; /* Let it scale naturally on mobile */
    }

    .hero-video {
        object-fit: contain; /* Keep full frame visible on mobile too */
    }
}

.connect-hero {
    width: 100%;
    background-color: #f3f4f6;
    background-image: linear-gradient(rgba(17, 34, 61, 0.4), rgba(17, 34, 61, 0.1)), url('Assets/plan.PNG');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 56.25vw; /* 16:9 ratio of the width */
    max-height: 80vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .connect-hero {
        height: auto;
        aspect-ratio: 1.77; /* Maintain 16:9 on mobile */
        min-height: auto;
    }
}



.internal-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-white);
    margin: 0;
}

.belief-item {
    margin-bottom: 2.5rem;
}

.belief-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    color: var(--clr-black);
}

.belief-item p {
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--clr-text);
    line-height: 1.6;
    font-style: italic;
}

.cta-section {
    background-color: #f9fafb;
    padding: var(--space-lg) 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.cta-content p {
    max-width: 850px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================
   TEAM PAGE STYLES
   ========================================== */
.team-hero {
    background-image: linear-gradient(rgba(17, 34, 61, 0.8), rgba(17, 34, 61, 0.8)), url('Assets/Pastor.jpg');
    background-size: cover;
    background-position: center 20%;
    height: 60vh;
    background-attachment: fixed;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-white);
}

@media (max-width: 768px) {
    .team-hero {
        height: 45vh;
        min-height: 350px;
        background-attachment: scroll;
        background-position: center 25%;
        align-items: flex-end;
        padding-bottom: 2rem;
    }
}

.team-hero h1 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--clr-white);
    margin: 0;
}

.team-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.team-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-intro p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--clr-text);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.team-member {
    text-align: center;
}

.member-image-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
}

.member-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.member-info h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--clr-black);
}

.member-info p {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   GIVE PAGE STYLES
   ========================================== */
.give-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.give-card {
    background: #f9fafb;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--clr-gray-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.give-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--clr-gray-500);
    margin-bottom: 2rem;
}

.overline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #c5a059; /* Gold accent */
    margin-bottom: 1rem;
}

.overline::before {
    content: '';
    width: 30px;
    height: 2px;
    background: currentColor;
    opacity: 0.4;
}

.give-icon-wrap {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--clr-black);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- Sermon Archive Page Styles --- */
.sermon-archive-section {
    background-color: var(--clr-white);
    padding: 4rem 0 8rem 0;
}

.sermon-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1.5rem;
}

.filter-group-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.filter-group-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--clr-gray-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-group-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
}

.filter-group-selects {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-group-selects select {
    padding: 0.75rem 1.5rem 0.75rem 1rem;
    border: 1px solid var(--clr-gray-border);
    border-radius: 4px;
    background-color: white;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--clr-text);
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--clr-gray-500);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.clear-btn:hover {
    color: var(--clr-black);
}

.sermon-grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    width: 100%;
}

.sermon-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.sermon-card:hover {
    transform: translateY(-8px);
}

.sermon-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f3f4f6;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sermon-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sermon-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.sermon-card:hover .sermon-card-play {
    opacity: 1;
}

.sermon-card-play i {
    color: var(--clr-black);
    font-size: 1rem;
    margin-left: 3px;
}

.sermon-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sermon-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    font-weight: 600;
}

@media (max-width: 992px) {
    .sermon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Pagination Styles --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 5rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--clr-gray-border);
    background: transparent;
    color: var(--clr-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.page-btn:hover {
    border-color: var(--clr-black);
    color: var(--clr-black);
}

.page-btn.active {
    background-color: var(--clr-black);
    border-color: var(--clr-black);
    color: var(--clr-white);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: default;
    border-color: var(--clr-gray-border);
}

.page-btn.nav-arrow {
    background-color: #f9fafb;
}

.page-btn.nav-arrow:hover {
    background-color: #f3f4f6;
}

@media (max-width: 768px) {
    .sermon-filters {

        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .filter-group-search {
        max-width: none;
    }
    .filter-group-selects {
        justify-content: space-between;
    }
    .sermon-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .sermon-archive-section {
        padding: 4rem 0;
    }
}

/* Cash App Specific Brand Icon */
.cash-app-brand {
    background-color: #00D632; /* Cash App Green */
    color: white;
}

.give-card h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--clr-black);
}

.give-card p {
    font-size: 1rem;
    color: var(--clr-text);
    line-height: 1.6;
}

.cash-tag {
    display: inline-block;
    background: rgba(0, 214, 50, 0.1);
    color: #00D632;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1.2rem;
}/* ==========================================
   CONNECT / PLAN YOUR VISIT STYLES
   ========================================== */
.connect-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.connect-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.connect-info h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--clr-black);
}

.connect-form-card {
    background: #f9fafb;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--clr-gray-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--clr-black);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: var(--clr-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    background: var(--clr-black);
    color: var(--clr-white);
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.btn-submit:hover {
    background: #374151;
}

@media (max-width: 992px) {
    .connect-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Page Title Banner */
.page-main-title {
    font-size: clamp(3rem, 8vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--clr-black);
    margin-bottom: 0.5rem;
    line-height: 1;
    text-align: center;
    /* Premium Reveal Animation */
    animation: revealTitle 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
}

@keyframes revealTitle {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        letter-spacing: 0.1em;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 0.2em;
    }
}

/* Welcome Title on Connect Page */
.welcome-title {
    font-size: 2.2rem;
    color: var(--clr-black);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.welcome-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--clr-black);
    opacity: 0.3;
}

.title-accent {
    width: 80px;
    height: 2px;
    background-color: var(--clr-black);
    margin: 1.5rem auto 0;
    opacity: 0.2;
}

.pb-none { padding-bottom: 0 !important; }
.pt-md { padding-top: var(--space-md) !important; }

/* Clickable Phone Links */
.tel-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tel-link i {
    font-size: 0.85em;
    opacity: 0.8;
}

.tel-link:hover {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    transform: translateY(-2px);
    text-decoration: none;
}

/* For links on light background (Connect page "When & Where") */
.white-bg .tel-link {
    color: var(--clr-black);
    border-bottom-color: rgba(17, 24, 39, 0.2);
}

.white-bg .tel-link:hover {
    border-bottom-color: var(--clr-black);
}

/* ==========================================
   EVENTS PAGE
   ========================================== */

/* Hero */
.events-hero {
    background-image:
        linear-gradient(rgba(17, 34, 61, 0.82), rgba(17, 34, 61, 0.82)),
        url('Assets/church.PNG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 55vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-white);
}

.events-hero h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: var(--clr-white);
    letter-spacing: 0.05em;
    margin: 0 0 0.6rem;
}

.events-hero p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.85;
    margin: 0;
    letter-spacing: 0.04em;
}

.events-section {
    padding: 3rem 0 5rem;
}

/* ── Countdown banner ── */
.countdown-section {
    background: #e5e7eb;
    padding: 3rem 0;
    text-align: center;
    color: var(--clr-black);
}

.countdown-overline {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.countdown-event-name {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.01em;
    color: var(--clr-black);
    margin: 0 0 0.5rem;
}

.countdown-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #4b5563;
    flex-wrap: wrap;
}

.countdown-blocks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-width: 82px;
}

.cd-num {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--clr-black);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.cd-unit {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
    margin-top: 0.4rem;
}

.cd-sep {
    font-size: 2rem;
    font-weight: 300;
    color: #9ca3af;
    align-self: flex-start;
    padding-top: 0.8rem;
    user-select: none;
}

@media (max-width: 480px) {
    .countdown-section {
        padding: 2rem 0;
    }

    .cd-block {
        min-width: 64px;
        padding: 0.7rem 0.9rem;
    }

    .cd-sep {
        font-size: 1.5rem;
        padding-top: 0.55rem;
    }
}

/* ── Controls bar ── */
.events-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

/* Toggle pill */
.view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 4px;
    gap: 2px;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.toggle-btn.active {
    background: var(--clr-black);
    color: var(--clr-white);
}

/* Month / week nav */
.cal-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cal-title {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--clr-black);
    margin: 0;
    min-width: 220px;
    text-align: center;
}

.cal-nav-btn {
    background: none;
    border: 1px solid var(--clr-gray-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--clr-black);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav-btn:hover {
    background: var(--clr-black);
    color: var(--clr-white);
    border-color: var(--clr-black);
}

/* ── Monthly Calendar ── */
.cal-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--clr-gray-border);
    margin-bottom: 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid var(--clr-gray-border);
    border-top: 1px solid var(--clr-gray-border);
}

.cal-cell {
    border-right: 1px solid var(--clr-gray-border);
    border-bottom: 1px solid var(--clr-gray-border);
    min-height: 90px;
    padding: 0.5rem 0.6rem 0.4rem;
    position: relative;
    transition: background 0.15s;
    display: flex;
    flex-direction: column;
}

.cal-cell.has-events {
    cursor: pointer;
}

.cal-cell.has-events:hover {
    background: #f9fafb;
}

.cal-cell.other-month {
    background: #fafafa;
}

.cal-cell.other-month .cell-num {
    color: #d1d5db;
}

.cell-num {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-black);
    line-height: 1;
    margin-bottom: auto;
}

.cal-cell.is-today .cell-num {
    background: var(--clr-black);
    color: var(--clr-white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.cal-cell.is-selected {
    background: #f0f4ff;
    outline: 2px solid var(--clr-black);
    outline-offset: -2px;
}

/* Event dots in calendar cell */
.cell-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 0.35rem;
    align-items: center;
}

.ev-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cell-more {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--clr-text);
    line-height: 1;
}

/* ── Day detail panel ── */
.day-panel {
    margin-top: 1.5rem;
    border: 1px solid var(--clr-gray-border);
    border-radius: 8px;
    overflow: hidden;
    animation: panelSlideIn 0.25s ease;
}

@keyframes panelSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.day-panel-inner {
    padding: 1.5rem;
}

.day-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.day-panel-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--clr-black);
    margin: 0;
}

.day-panel-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--clr-text);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.15s;
}

.day-panel-close:hover {
    background: #f3f4f6;
}

/* ── Weekly View ── */
.week-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.week-day {
    border: 1px solid var(--clr-gray-border);
    border-radius: 8px;
    overflow: hidden;
}

.week-day.week-today .week-day-header {
    background: var(--clr-black);
    color: var(--clr-white);
}

.week-day.week-today .week-day-name,
.week-day.week-today .week-day-date {
    color: var(--clr-white);
}

.week-day-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid var(--clr-gray-border);
}

.week-day-name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-black);
}

.week-day-date {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--clr-text);
}

.week-events {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.no-events {
    padding: 0.85rem 1.25rem;
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* ── Event Cards ── */
.ev-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    background: #f9fafb;
    border-left: 3px solid #111827;
    position: relative;
}

.ev-time {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-text);
    white-space: nowrap;
    min-width: 68px;
    padding-top: 2px;
}

.ev-body {
    flex: 1;
}

.ev-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-black);
    margin-bottom: 0.2rem;
}

.ev-desc {
    font-size: 0.82rem;
    color: var(--clr-text);
    line-height: 1.5;
}

.ev-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    white-space: nowrap;
    align-self: flex-start;
}

/* Color palette per type */
/* Event type colours */
.ev-sunday-school   { border-left-color: #ca8a04; }
.ev-sunday-service  { border-left-color: #1e3a8a; }
.ev-monday-prayer   { border-left-color: #7c3aed; }
.ev-wednesday-study { border-left-color: #047857; }
.ev-special         { border-left-color: #ea580c; }

.ev-dot-sunday-school   { background: #ca8a04; }
.ev-dot-sunday-service  { background: #1e3a8a; }
.ev-dot-monday-prayer   { background: #7c3aed; }
.ev-dot-wednesday-study { background: #047857; }
.ev-dot-special         { background: #ea580c; }

.ev-tag-sunday-school   { background: #fef9c3; color: #854d0e; }
.ev-tag-sunday-service  { background: #dbeafe; color: #1e3a8a; }
.ev-tag-monday-prayer   { background: #ede9fe; color: #5b21b6; }
.ev-tag-wednesday-study { background: #d1fae5; color: #065f46; }
.ev-tag-special         { background: #ffedd5; color: #9a3412; }

/* ── Calendar legend ── */
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: #f9fafb;
    border: 1px solid var(--clr-gray-border);
    border-radius: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-text);
    white-space: nowrap;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ld-sunday-school   { background: #ca8a04; }
.ld-sunday-service  { background: #1e3a8a; }
.ld-monday-prayer   { background: #7c3aed; }
.ld-wednesday-study { background: #047857; }
.ld-special         { background: #ea580c; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .events-hero {
        height: 42vh;
        min-height: 280px;
        background-attachment: scroll;
    }

    .events-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggle {
        justify-content: center;
    }

    .cal-nav {
        justify-content: center;
    }

    .cal-title {
        min-width: 160px;
        font-size: 0.95rem;
    }

    /* Tighter calendar cells on mobile */
    .cal-cell {
        min-height: 52px;
        padding: 0.3rem 0.25rem 0.25rem;
    }

    .cell-num {
        font-size: 0.72rem;
    }

    .cal-cell.is-today .cell-num {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .cell-dots {
        gap: 2px;
        margin-top: 0.2rem;
    }

    .ev-dot {
        width: 8px;
        height: 8px;
    }

    .cell-more {
        font-size: 0.55rem;
    }

    .cal-header-row {
        font-size: 0.62rem;
    }

    .day-panel-inner {
        padding: 1rem;
    }

    .ev-card {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ev-time {
        min-width: auto;
    }

    .ev-tag {
        order: -1;
    }
}
