/*
================================================================
Church Website Stylesheet
Version 8.1 - Main Styles with Hero Component
================================================================
*/

/* --- Global Styles & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #2d3748;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #3182ce;
    text-decoration: none;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-pre-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-buttons .btn {
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.hero-buttons .btn-primary {
    background-color: #ffffff;
    color: #2d3748;
}

.hero-buttons .btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
}

.hero-buttons .btn-ghost {
    background-color: transparent;
    color: #ffffff;
}

.hero-buttons .btn-ghost:hover {
    background-color: #ffffff;
    color: #2d3748;
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        min-height: 400px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .hero-pre-title {
        font-size: 12px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 80%;
        max-width: 250px;
    }
}



/* --- Footer --- */
.site-footer-bottom {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer-bottom p {
    margin: 5px 0;
}

/* --- About Us Blurb Section --- */
.about-blurb {
    background-color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.about-blurb h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
}

.about-blurb p {
    font-size: 1.1rem;
    color: #555555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Upcoming Events Section (New Hierarchical Design) --- */
.events-section {
    background-color: #ffffff;
    padding: 20px 0 100px 0; /* Changed top padding to 20px, kept bottom at 100px */
}

.events-grid-image {
    display: grid;
    /* NEW LAYOUT: First column is twice as wide as the others */
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 30px;
    align-items: center; /* Vertically align the cards */
}

.event-image-card {
    position: relative;
    display: block;
    height: 450px; /* Height for the main, large card */
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* NEW: Set a smaller height for the other two cards */
.events-grid-image .event-image-card:not(:first-child) {
    height: 350px;
}

.event-image-card:hover {
    transform: translateY(-5px);
}

.event-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.event-card-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.event-card-date .day {
    font-size: 2rem;
    font-weight: 900;
    display: block;
}

.event-card-date .month {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-card-info {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.event-card-info h3 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.event-card-info p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive styles for the new hierarchical layout */
@media (max-width: 991px) {
    .events-grid-image {
        /* Stack into a single column on tablet and mobile */
        grid-template-columns: 1fr;
    }
    
    /* Reset the height for all cards when stacked */
    .events-grid-image .event-image-card,
    .events-grid-image .event-image-card:not(:first-child) {
        height: 350px;
    }
}



/* --- Vertical Blurb Cards Section --- */
.blurbs-section {
    background-color: #f8f9fa; /* Changed to light grey */
    padding: 80px 0;
}

.blurb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 30px;
}

.blurb-card {
    position: relative;
    display: block;
    min-height: 450px;
    border-radius: 12px;
    overflow: hidden; /* Important for the background effect */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blurb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* This is the dark overlay for text readability */
.blurb-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* UPDATED: New gradient for top and bottom darkness */
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.blurb-card-content {
    position: relative;
    z-index: 2; /* Place content above the overlay */
    color: #ffffff;
    padding: 30px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes title to top, link to bottom */
}

.blurb-card-content h3 {
    font-size: 1.7rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin: 0;
}

.blurb-card-content .learn-more {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: #ffffff; /* Ensure link text is white */
}

/* Responsive styles for the new blurbs */
@media (max-width: 991px) {
    .blurb-grid {
        grid-template-columns: 1fr; /* Stack into a single column */
    }
}

/* --- Hero Section Animations --- */

/* 1. Define the animations */

/* Typing cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white; }
}

/* Slide up effect */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in from left effect */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right effect */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* 2. Apply the animations to the elements */

/* Typing pre-title with cursor */
.hero-pre-title {
    border-right: 2px solid white; /* The typing cursor */
    animation: blink-caret .75s step-end infinite;
    /* other styles are already defined */
}

/* Main H1 text - slide up */
.hero-content h1 {
    animation: slideUp 1s ease-out 1.5s; /* 1.5s delay */
    animation-fill-mode: backwards; /* Start invisible */
}

/* Paragraph text - slide up (slightly later) */
.hero-content p {
    animation: slideUp 1s ease-out 1.8s; /* 1.8s delay */
    animation-fill-mode: backwards;
}

/* "Who We Are" button - slide in from left */
.hero-buttons .btn-primary {
    animation: slideInLeft 1s ease-out 2.1s; /* 2.1s delay */
    animation-fill-mode: backwards;
}

/* "Connect" button - slide in from right */
.hero-buttons .btn-ghost {
    animation: slideInRight 1s ease-out 2.1s; /* 2.1s delay */
    animation-fill-mode: backwards;
}

/* --- Reusable Scroll-Triggered Animations (Updated) --- */

/* The initial state for all animated elements: they start invisible */
.animate-on-scroll {
    opacity: 0;
    /* INCREASED DURATION: Changed from 0.8s to 1.2s for a longer, smoother animation */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* Specific starting positions for each animation type */
.animate-on-scroll.fade-in-up {
    /* INCREASED INTENSITY: Changed from 40px to 60px for a more noticeable slide */
    transform: translateY(60px);
}
.animate-on-scroll.slide-in-left {
    /* INCREASED INTENSITY: Changed from -50px to -80px */
    transform: translateX(-80px);
}
.animate-on-scroll.slide-in-right {
    /* INCREASED INTENSITY: Changed from 50px to 80px */
    transform: translateX(80px);
}
.animate-on-scroll.fade-down {
    /* INCREASED INTENSITY: Changed from -40px to -60px */
    transform: translateY(-60px);
}


/* The final state when the element becomes visible */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none; /* Resets transform to its default (translateY(0), etc.) */
}

/* Optional: Staggered animation delays for card grids */
.events-grid .animate-on-scroll:nth-child(2),
.blurb-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.events-grid .animate-on-scroll:nth-child(3),
.blurb-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.4s;
}

/* --- Main Content & Sidebar Section --- */
.main-content-section {
    background-color: #f8f9fa; /* A slightly off-white background */
    padding: 80px 0;
}

.content-grid {
    display: flex;
    flex-wrap: wrap; /* Allows columns to stack on mobile */
    gap: 40px;
}

.main-column {
    flex: 2; /* Takes up 2/3 of the space */
    min-width: 300px; /* Ensures it doesn't get too squished */
}

.sidebar-column {
    flex: 1; /* Takes up 1/3 of the space */
    min-width: 300px;
}

/* --- Widget Styling (Updated) --- */
.widget {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px; /* Increased padding */
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    margin-bottom: 30px;
    text-align: center; /* Centers the title and list items */
}

.widget-title {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 15px; /* Adjusted space below the title */
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: 1px; /* Added letter spacing for a more designed feel */
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li a {
    display: block;
    padding: 20px 0; /* Increased padding for more space around the border */
    color: #555555;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.25rem;
    border-bottom: 1px solid #f0f0f0; /* Added a subtle bottom border to each item */
}

/* This new rule removes the border from the very last item, which is a cleaner look */
.widget-list li:last-child a {
    border-bottom: none;
}

.widget-list li a:hover {
    color: #3182ce;
}

/* --- Blog Post Card Styling --- */
.post-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    margin-bottom: 40px;
    overflow: hidden; /* Ensures the border-radius affects the image */
}

.post-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05); /* Adds a subtle zoom effect on hover */
}

.post-content {
    padding: 25px 30px;
}

.post-meta {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.post-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3182ce;
}

.post-excerpt {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 0;
}

/* --- Meet The Pastor Section (Version 2 - Background Image) --- */
.meet-pastor-v2 {
    position: relative;
    padding: 200px 0;
    color: #ffffff;
    background-size: cover;
    background-position: center 20%; /* Keep the head centered */
    background-attachment: fixed;
    overflow: hidden;
    /* INCREASED HEIGHT: Made taller on desktop to better frame the face */
    min-height: 650px; 
    /* REMOVED: The inset box-shadow */
}

/* This is the new gradient overlay that deepens at the bottom */
.meet-pastor-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    /* NEW GRADIENT: Starts dark, gets lighter, then deepens to very dark at the bottom */
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.5) 0%,   /* Moderately dark at the top */
        rgba(0,0,0,0.7) 60%,  /* Lighter in the middle */
        rgba(0,0,0,1) 100% /* Very deep shadow at the bottom */
    );
}

/* This wrapper ensures the text is centered and above the overlay */
.meet-pastor-v2 .pastor-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    border-radius: 8px;
}

.meet-pastor-v2 .pastor-title {
    font-size: 2em;
    font-weight: 900;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.meet-pastor-v2 .pastor-text {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.meet-pastor-v2 .btn-outline {
    display: inline-block;
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.meet-pastor-v2 .btn-outline:hover {
    background-color: #ffffff;
    color: #111111;
}

/* Responsive styles for the new pastor section */
@media (max-width: 991px) {
    .meet-pastor-v2 {
        background-attachment: scroll; /* Disable parallax on mobile */
        min-height: 500px; /* Adjust height for mobile */
    }
    .meet-pastor-v2 .pastor-title {
        font-size: 2rem;
    }
}

/* --- Final Footer Styles --- */
.site-footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 60px 0 0 0;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #394355;
    justify-content: space-between; /* Add this line */
}

.footer-widget {
    flex: 1;
    min-width: 250px;
}

.footer-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-about-text {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- List Styling (Get Involved) --- */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li a {
    color: #a0aec0;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
    font-weight: 700; /* This makes the text bold */
}

.footer-list li a:hover {
    color: #ffffff;
}

/* --- Social Links Styling (Follow Us) --- */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.social-links a {
    color: #a0aec0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700; /* This makes the text bold */
}

.social-links a:hover {
    color: #ffffff;
}

.social-links a svg {
    width: 24px;
    height: 24px;
}

/* --- Footer Bottom Bar --- */
.footer-bottom-bar {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom-bar p {
    margin: 5px 0;
}
/* --- Constrain width of footer 'About Us' text --- */
.footer-about-text {
    max-width: 350px; /* Adjust this value to make it wider or narrower */
}
/* --- Meet The Pastors Carousel Section (Dark Blended Cards) --- */
.pastor-carousel-section {
    position: relative;
    padding: 100px 0;
    background-color:#111111;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.pastor-carousel-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.pastor-carousel-section .container {
    position: relative;
    z-index: 2;
}

.carousel-wrapper {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.pastor-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1000px;
}

.pastor-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    /* FIX: This is the new "frosted glass" effect */
    background-color: rgba(25, 25, 25, 0.25); /* Semi-transparent dark background for the card */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(100%) scale(0.8);
    transition: all 0.6s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle light border */
}

.pastor-slide.active-slide {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
}

.pastor-slide.prev-slide {
    transform: translateX(-100%) scale(0.8);
    z-index: 5;
}

.pastor-card-image {
    position: relative;
    height: 85%;
    background-size: cover;
    background-position: center 20%;
}

.pastor-card-content {
    padding: 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.pastor-card-pretitle {
    font-size: 0.8rem;
    font-weight: 700;
    /* FIX: Changed text color to light grey */
    color: #cccccc; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pastor-card-name {
    font-size: 1.4rem;
    margin: 2px 0 0 0;
    /* FIX: Changed text color to white */
    color: #ffffff; 
}

.pastor-card-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* FIX: Changed border and text color for dark theme */
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pastor-card-icon-link:hover {
    /* FIX: Inverted hover effect for dark theme */
    background-color: #ffffff;
    border-color: #ffffff;
    color: #1c1c1c;
}

/* --- Carousel Navigation Styling --- */
.carousel-nav {
    text-align: center;
    margin-top: 30px;
}

.carousel-btn {
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(255,255,255,0.4);
}

/* DESKTOP ARROW POSITIONING */
@media (min-width: 992px) {
    .carousel-nav {
        margin-top: 0;
        position: absolute;
        top: 50%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        z-index: 7;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .carousel-btn {
        pointer-events: auto;
    }

    .prev-btn {
        transform: translateX(-120%);
    }

    .next-btn {
        transform: translateX(120%);
    }
}

/* --- Featured Blog Section (No Image Version) --- */
.featured-blog-section {
    background-color: #f8f9fa;
    padding: 100px 0; 
}

/* New styles for the title/subtitle wrapper */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-title {
    margin-bottom: 10px;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: #555555;
    max-width: 500px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

/* Redesigned Post Card */
.post-card {
    background-color: #ffffff;
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    display: flex; /* This helps with alignment */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-content {
    padding: 30px;
}

.post-meta {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3182ce;
}

.post-excerpt {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 0;
}

/* Responsive Grid for Blog */
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- About Us Page Styles --- */

/* Page Header Component */
.page-header {
    background-color: #1a202c;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
    color: #ffffff;
}

/* Main Content Area Component */
.content-area {
    padding: 80px 0;
    background-color: #ffffff;
}

.main-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-text h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.main-text p {
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Our Team Section Component */
.team-section {
    background-color: #000000;
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px; /* Constrain the width of the grid */
    margin: 0 auto; /* Center the grid */
}

.team-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    text-align: center;
}

.team-card-image {
    height: 400px;
    background-size: cover;
    background-position: center 20%;
}

.team-card-content {
    padding: 25px;
}

.team-card-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.team-card-content span {
    color: #555555;
    font-weight: 700;
}

/* Responsive styles for the About page */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    .team-grid {
        grid-template-columns: 1fr; /* Stack team cards on mobile */
    }
}

/* --- About Us Page Styles --- */

/* This is for the simple header on the About page, not the main hero */
.page-header {
    background-color: #1a202c;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
    color: #ffffff;
}

/* Main Content Area (the first block of text) */
.content-area {
    padding: 80px 0;
    background-color: #ffffff;
}

.main-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-text h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.main-text p {
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Vision, Mission, Purpose Section */
.vision-mission-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.vmp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.vmp-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.vmp-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
}

.vmp-card p {
    color: #555555;
    margin-bottom: 0;
}

/* --- Our Ministries Section (New Image Blurb Design) --- */
.ministries-section {
    background-color: #ffffff;
    padding: 80px 0 120px 0;
}

.ministries-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.ministry-blurb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.ministry-blurb-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ministry-blurb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ministry-blurb-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.ministry-blurb-content {
    padding: 25px;
}

.ministry-blurb-content h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
}

.ministry-blurb-content .arrow {
    color: #3182ce;
    font-size: 1.65rem;
    line-height: 1;
}

.ministry-blurb-content p {
    color: #555555;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Responsive styles for ministry blurbs */
@media (max-width: 768px) {
    .ministry-blurb-grid {
        grid-template-columns: 1fr; /* Stack into a single column on mobile */
    }
}


/* Our Team Section */
.team-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    text-align: center;
}

.team-card-image {
    height: 400px;
    background-size: cover;
    background-position: center 20%;
}

.team-card-content {
    padding: 30px;
}

.team-card-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.team-card-content span {
    color: #555555;
    font-weight: 700;
}

.team-card-bio {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-top: 15px;
}

/* Responsive styles for new About page sections */
@media (max-width: 991px) {
    .vmp-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Dark Theme for "Meet Our Founders" Section --- */
.team-section {
    background-color: #111111; /* Dark background for the whole section */
}

.team-section .section-title {
    color: #ffffff; /* Make the "Meet Our Founders" title white */
}

.team-card {
    background-color: transparent; /* Makes the card background invisible */
    border: 1px solid rgba(255, 255, 255, 0.15); /* NEW: Added a tiny, subtle light border */
    box-shadow: none; /* Removes the card shadow */
    border-radius: 8px; /* Added back a radius to make the border look clean */
}

.team-card-content h3 {
    color: #ffffff; /* Make the name white */
}

.team-card-content span,
.team-card-bio {
    color: #cccccc; /* UPDATED: Changed to a much lighter grey */
}

/* --- Contact Page Styles --- */
.contact-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Two columns, form is wider */
    gap: 60px;
}

/* Left Column: Contact Info */
.contact-info h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item strong {
    display: block;
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.info-item span {
    color: #555555;
}

.contact-socials {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.contact-socials a {
    color: #555555;
    transition: color 0.3s ease;
}

.contact-socials a:hover {
    color: #3182ce;
}

.contact-socials svg {
    width: 28px;
    height: 28px;
}

/* Right Column: Contact Form */
.contact-form-wrapper {
    /* REMOVED: background-color, padding, and border-radius to make it full-width */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2d3748;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box; /* Important */
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #3182ce;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #2b6cb0;
}

/* Responsive styles for Contact page */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
}


/* --- Make Contact Form full-width on mobile --- */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 15px; /* Reduce padding on smaller screens */
    }
}
/* --- Featured Audio Sermons Section --- */
.featured-sermons-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.sermon-player-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sermon-player-card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.sermon-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.sermon-player-card:hover .sermon-card-bg {
    transform: scale(1.05);
}

.sermon-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
}

.sermon-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #ffffff;
}

.play-pause-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #111;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    background-color: #ffffff;
    transform: scale(1.1);
}

.play-pause-btn .play-icon {
    font-size: 24px;
    line-height: 1;
    padding-left: 5px; /* Optical adjustment */
}

.play-pause-btn .pause-icon {
    font-size: 24px;
    line-height: 1;
}

.sermon-card-info {
    text-align: right;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.sermon-card-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.sermon-card-info span {
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive styles for sermon players */
@media (max-width: 991px) {
    .sermon-player-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Sermon Download Link Styles --- */
.sermon-download-link {
    display: inline-flex; /* Use inline-flex to align icon and text */
    align-items: center;
    gap: 8px; /* Space between icon and text */
    margin-top: 15px;
    padding: 6px 12px;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.2);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none; /* Ensure no underline */
    transition: all 0.3s ease;
}

.sermon-download-link:hover {
    background-color: rgba(0,0,0,0.4);
    color: #ffffff;
}

.sermon-download-link svg {
    width: 18px; /* Adjust icon size */
    height: 18px;
}
/* --- Streaming Platforms Section --- */
.streaming-platforms-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.platform-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.platform-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* Specific background colors for each platform */
.youtube-icon { background-color: #FF0000; }
.audiomack-icon { background-color: #FFAA00; }
.apple-icon { background-color: #c850d2; }
.spotify-icon { background-color: #1DB954; }
.spreaker-icon { background-color: #00a8e1; }
.amazon-icon { background-color: #232F3E; }
.listennotes-icon { background-color: #6d48e5; }

.platform-icon svg {
    width: 28px;
    height: 28px;
}

.platform-info h4 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0 0 3px 0;
}

.platform-info span {
    font-size: 1rem;
    color: #555555;
}

/* Responsive styles for platform grid */
@media (max-width: 991px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .platforms-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Discover More Section --- */
.discover-more-section {
    background-color: #e9ecef; /* A light, clean background color */
    padding: 60px 0;
    text-align: center;
}

.discover-more-section .container {
    max-width: 700px; /* Constrain the width for better readability */
}

.discover-icon {
    color: #3182ce;
    margin-bottom: 20px;
}

.discover-more-section h3 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 15px;
}

.discover-more-section p {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 0;
}

/* --- Give Page: Scripture Quote Section --- */
.quote-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.quote-section blockquote {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    font-size: 1rem;
    font-style: none;
    font-weight: 400;
    line-height: 1.6;
    color: #2d3748;
    /* REMOVED: border-left and padding-left to remove the blue line */
}

.quote-section cite {
    display: block;
    margin-top: 20px;
    font-size: 0.8rem;
    font-style: none; /* UPDATED: Changed to italic */
    font-weight: 700;
    color: #555555;
}

@media (max-width: 768px) {
    .quote-section blockquote {
        font-size: 1rem;
    }
}

/* --- Give Page: Bank Details Section --- */
.bank-details-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.bank-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    gap: 40px;
}

.account-card {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
}

.account-purpose {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.bank-logo {
    text-align: center;
    margin-bottom: 25px;
    min-height: 50px; /* Ensures consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-logo img {
    max-height: 40px;
    width: auto;
}

.account-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.account-details .detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: #555555;
}

.detail-row strong {
    font-size: 1.1rem;
    color: #2d3748;
}

/* --- Blog Listing Page Styles --- */
.blog-listing-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.blog-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* We can reuse the .post-card style from the homepage blog section */
/* but we add a few new styles for this context */

.post-card {
    height: 100%; /* Ensures cards in the same row have equal height */
}

.post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-excerpt {
    flex-grow: 1; /* Pushes the "Read More" link to the bottom */
    margin-bottom: 20px;
}

.read-more-link {
    font-weight: 700;
    color: #3182ce;
    text-decoration: none;
    align-self: flex-start; /* Aligns the link to the left */
}

.read-more-link:hover {
    color: #2b6cb0;
}

/* Responsive styles for blog listing */
@media (max-width: 991px) {
    .blog-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-listing-grid {
        grid-template-columns: 1fr;
    }
}

.copy-btn {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 5px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: #ced4da;
}

/* Responsive styles for bank details */
@media (max-width: 991px) {
    .bank-details-grid {
        grid-template-columns: 1fr; /* Stack into a single column */
    }
}


/* --- Give Page: USSD Generator Section --- */
.ussd-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.ussd-generator-wrapper {
    max-width: 800px;
    margin: 0 auto;
    /* REMOVED: background-color, border, padding, and box-shadow */
}

.ussd-form {
    margin-bottom: 30px;
}

.ussd-generator-wrapper .form-group {
    margin-bottom: 25px;
}

.ussd-generator-wrapper .form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 1.1rem;
}

.ussd-generator-wrapper .form-group select,
.ussd-generator-wrapper .form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.ussd-result label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 1.1rem;
}

.generated-code-wrapper {
    display: flex;
    background-color: #e9ecef;
    border-radius: 5px;
    padding: 5px;
}

#generated-code-display {
    flex-grow: 1;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    letter-spacing: 2px;
}

.generated-code-placeholder {
    color: #6c757d !important;
    font-size: 1.1rem !important;
    font-style: italic;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}

#copy-ussd-btn {
    flex-shrink: 0;
    padding: 0 30px;
    font-weight: 700;
}

#copy-ussd-btn:disabled {
    background-color: #ced4da;
    cursor: not-allowed;
}

/* --- Responsive fix for USSD Code Display on Mobile --- */
@media (max-width: 480px) {
    #generated-code-display {
        font-size: 1.1rem; /* Reduce font size on very small screens */
        letter-spacing: 1px; /* Reduce the space between characters */
        
        /* This is the key fix: it forces the long text to wrap */
        overflow-wrap: break-word;
        word-break: break-all;
    }

    #copy-ussd-btn {
        padding: 0 20px; /* Reduce padding on the copy button */
    }
}

/* --- Specific override for the About Us page hero --- */
#about-hero {
    background-position: center 50%; /* Or whatever value you want */
}

/* --- Blog Listing Page Styles --- */
.blog-listing-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.blog-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    height: 100%; 
}

.post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-excerpt {
    flex-grow: 1; 
    margin-bottom: 20px;
}

.read-more-link {
    font-weight: 700;
    color: #3182ce;
    text-decoration: none;
    align-self: flex-start;
}

.read-more-link:hover {
    color: #2b6cb0;
}

/* --- Single Post Page Styles --- */
.single-post-container {
    padding: 80px 0;
    background-color: #ffffff;
}

.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.post-header h1 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-header .post-meta {
    color: #555555;
    font-size: 1rem;
}

.single-post-image {
    margin-bottom: 40px;
}

.single-post-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-full-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.post-full-content p {
    margin-bottom: 1.5rem;
}

.post-full-content h2,
.post-full-content h3,
.post-full-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.not-found-message {
    text-align: center;
    padding: 50px 0;
}

.not-found-message h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.not-found-message p {
    font-size: 1.2rem;
    color: #555555;
    margin-bottom: 30px;
}

/* Responsive styles for blog listing */
@media (max-width: 991px) {
    .blog-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-listing-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Sermon Badge Style --- */
.sermon-badge {
    position: absolute;
    top: 20px;
    left: -8px; /* Position it slightly off the card */
    background-color: #e4a80d; /* A nice gold color */
    color: #ffffff;
    padding: 8px 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3; /* Ensure it's above the overlay */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Adds a little triangle for a ribbon effect */
.sermon-badge::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    border-width: 4px 4px;
    border-style: solid;
    border-color: #b0820a #b0820a transparent transparent;
}

/* --- Mentorship Page Button Style --- */
/* --- Mentorship Page Button Style (Corrected) --- */
.btn.btn-large {
    padding: 15px 30px;
    font-size: 1rem;
    margin-top: 20px;
}

/* --- Mentorship Registration Page Styles --- */
.registration-section {
    padding: 100px 0;
    background-color: #ffffff;
}

/* This rule removes the box around the form */
.registration-section .form-container {
    max-width: 800px;
    margin: 0 auto;
    /* REMOVED: background-color, padding, border-radius */
}

.registration-section .form-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
}

.registration-section .form-container p {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

/* Styles for the "Registration Closed" message */
.registration-closed-message {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    padding: 40px;
    border-radius: 8px;
}

.registration-closed-message h2 {
    margin-top: 0;
}

.registration-closed-message p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Partner With Us CTA Section --- */
.partner-cta-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.partner-cta-section .container {
    max-width: 800px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: none;
    padding: 50px;
}

.partner-cta-section h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 15px;
}

.partner-cta-section p {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
}
/* --- Partnership Page Styles (Full-Width Form) --- */
.partnership-form-section {
    padding: 100px 0;
    background-color: #ffffff;
}

/* This rule removes the box around the form */
.partnership-form-section .form-container {
    max-width: 800px; /* Still good to have a max-width for readability on very large screens */
    margin: 0 auto;
    /* REMOVED: background-color, padding, border-radius */
}

.partnership-form-section .form-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
}

.partnership-form-section .form-container p {
    text-align: center;
    margin-bottom: 40px; /* Increased space before the form fields */
    color: #555;
}

/* --- Equal Height Fix for Ministry Tabs --- */

/* Make the right column a flex container itself */
.ministry-tabs-content {
    display: flex;
    flex-direction: column;
}

/* Make the content pane grow to fill the available space */
.ministry-tab-pane {
    flex-grow: 1;
    display: none; /* Keep it hidden by default */
}

/* Ensure the active pane is a flex container to center content if needed */
.ministry-tab-pane.active {
    display: flex;
    flex-direction: column;
    justify-content: center; /* This vertically centers the text inside the taller box */
}

/* --- Styles for About Page Pastor Carousel (Final Layout Fix) --- */
.team-section {
    background-color: #000000;
    padding: 80px 0;
    /* REMOVED: overflow-x: hidden; from here */
}

/* This is the main container for the carousel and its arrows */
.team-section .carousel-wrapper {
    position: relative; /* This is crucial for positioning the arrows */
    max-width: 500px;
    margin: 0 auto;
}

.team-section .pastor-carousel {
    height: auto; 
    /* THE FIX: We hide the overflow on the carousel itself, not the whole section */
    overflow: hidden;
    border-radius: 8px; /* Add a radius here to contain the image */
}

.team-section .pastor-slide {
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: none;
    
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: translateX(50px);
}

.team-section .pastor-slide.active-slide {
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

/* Make the navigation buttons dark to fit the theme */
.team-section .carousel-nav {
    /* This positions the nav buttons over the carousel */
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px; /* Add some padding so buttons aren't flush with the edge */
    z-index: 5; /* Ensure they are on top */
}

.team-section .carousel-btn {
    background-color: rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}
.team-section .carousel-btn:hover {
    background-color: rgba(0,0,0,0.6);
}
/* --- Responsive Styles for Vertical Tablets --- */
/* This targets screen sizes between mobile and desktop */
@media (min-width: 769px) and (max-width: 1100px) {

    /* Make the main container slightly narrower on tablets */
    .container {
        max-width: 90%;
    }

    /* Change the 3-column grids to 2 columns */
    .events-grid-image,
    .blurb-grid,
    .blog-grid,
    .blog-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Center the third card when it drops to a new line */
    .events-grid-image .event-image-card:last-child,
    .blurb-grid .blurb-card:last-child,
    .blog-grid .post-card:last-child {
        grid-column: 1 / -1; /* Make the last item span the full width of the grid */
        max-width: 500px; /* But constrain its max width */
        margin: 0 auto; /* Center it */
    }
}