/* --- 1. Global Reset & Variables --- */
:root {
    --primary-color: #2c3e50;    /* Dark Blue/Grey */
    --accent-color: #e67e22;     /* Nice Orange */
    --light-bg: #f9f9f9;
    --text-color: #333;
    --white: #ffffff;
}

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

body {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* --- 2. Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }

.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: var(--primary-color); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* --- 3. Hero Section (Updated) --- */
.hero {
    height: 90vh; /* Almost full screen height */
    
    /* This layers a dark shadow over the image so text is readable */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/church-hero.jpg');
    
    background-size: cover; /* Ensures image covers the whole area */
    background-position: center;
    background-attachment: fixed; /* Parallax effect: image stays still while you scroll */
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero-subtitle { font-size: 1.6rem; font-style: italic; color: rgba(255,255,255,0.88); margin-bottom: 25px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px; /* Rounded pill shape */
    font-size: 1.1rem;
    transition: transform 0.3s, background 0.3s;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #d35400;
    transform: translateY(-3px); /* Button lifts up slightly on hover */
}

/* --- 4. Mission Section (Split Layout) --- */
.mission-section {
    padding: 80px 5%;
    background-color: var(--white);
}

.container { max-width: 1200px; margin: 0 auto; }

.split-layout {
    display: flex;
    align-items: center; /* Vertically centers the text with the image */
    gap: 60px; /* Space between text and image */
}

.mission-text { flex: 1; } /* Takes up 50% width */
.mission-image { flex: 1; } /* Takes up 50% width */

.mission-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

/* Adds a small orange line under the "Our Mission" title */
.mission-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-top: 10px;
}

.mission-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.mission-image img {
    width: 100%;
    height: 400px;       /* FORCE a specific height */
    object-fit: cover;   /* This crops the image nicely to fit the box */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.secondary-btn {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    transition: color 0.3s;
}

.swiper-slide {
    height: auto;
    align-items: stretch; /* Makes sure content stretches to fill space */
}

.secondary-btn:hover { color: var(--accent-color); }

/* --- 5. Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 5% 20px 5%;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    gap: 40px;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.phone-note {
    font-size: 0.85rem !important;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* --- 6. Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Still hidden for now */
    
    .hero h1 { font-size: 2.5rem; }
    
    .split-layout {
        flex-direction: column; /* Stack text on top of image */
        text-align: center;
    }

    .mission-text h2::after {
        margin: 10px auto; /* Centers the underline on mobile */
    }
}


/* --- Carousel Styling --- */
.carousel-section {
    padding: 60px 0;
    background-color: var(--white);
}

.swiper {
    width: 100%;
    padding-bottom: 60px; /* Space for the dots at the bottom */
}

.carousel-section .swiper-slide {
    padding-bottom: 30px; /* Pushes image up away from the dots */
}

/* Make sure the slide content is centered */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Customize the arrows to match your orange color */
.swiper-button-next, .swiper-button-prev {
    color: var(--accent-color) !important; 
}

/* Customize the dots at the bottom */
.swiper-pagination-bullet-active {
    background-color: var(--accent-color) !important;
}

/* Mobile tweak for the arrows */
@media (max-width: 768px) {
    .swiper-button-next, .swiper-button-prev {
        display: none; /* Hide arrows on mobile (people swipe with fingers) */
    }
    .mission-image img {
        height: 250px; /* Smaller height for mobile screens */
    }
}


/* --- Philosophy Section (Text Only) --- */
.philosophy-section {
    padding: 80px 20px;
    background-color: #f4f6f8; /* Light gray/blue tint to separate it from white sections */
    text-align: center;
}

/* Header Styling */
.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* The little orange line under the title */
.divider-center {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto 40px auto; /* Centers the line */
    border-radius: 2px;
}

/* The Big Quote/Statement */
.philosophy-main p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 60px auto; /* Centers the block and pushes grid down */
    color: #555;
    font-weight: 300; /* Makes text slightly thinner/elegant */
    font-style: italic;
    line-height: 1.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .philosophy-main p {
        font-size: 1.1rem;
    }
}

/* --- Styles for Inner Pages --- */
.page-header {
    height: 50vh; /* Shorter than the homepage (which is 90vh) */
    min-height: 300px;
}

/* --- Zig-Zag PDF Layout --- */

.pdf-row {
    display: flex;             /* Puts text and pdf side-by-side */
    align-items: center;       /* Vertically centers the text */
    gap: 50px;                 /* Space between the text and the PDF */
    margin-bottom: 80px;       /* Space between each row */
    padding-bottom: 80px;
    border-bottom: 1px solid #eee; /* Optional: Divider line */
}

/* Remove border from last item */
.pdf-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pdf-text-side {
    flex: 1; /* Takes up 50% width */
}

.pdf-viewer-side {
    flex: 1; /* Takes up 50% width */
    height: 500px; /* Tall enough to see the document */
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.pdf-text-side h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pdf-text-side p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.date-note {
    font-size: 0.9rem !important;
    color: #555 !important;
    font-style: italic;
}

/* --- THE SWAP TRICK --- */
/* This flips the flex direction to Right-to-Left */
.reverse-layout {
    flex-direction: row-reverse;
}

/* --- HAMBURGER (desktop only, hidden) --- */
.hamburger { display: none; }
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}

/* --- MOBILE NAV: always-visible scrolling strip --- */
@media (max-width: 768px) {

    /* Stack logo above the nav strip */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 16px 0;
        gap: 0;
    }

    .logo {
        padding-bottom: 8px;
        font-size: 1rem;
    }

    /* Scrollable horizontal pill row — wrap in a fade-right container */
    .navbar {
        position: relative;
    }

    .navbar::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        width: 48px;
        height: 38px; /* matches the pill row height */
        background: linear-gradient(to right, transparent, #ffffff);
        pointer-events: none;
        z-index: 10;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding: 8px 44px 10px 0; /* right padding so last pill isn't hidden by fade */
        width: 100%;
        list-style: none;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }

    .nav-links li {
        flex-shrink: 0;
    }

    /* Raised, pressable pill style */
    .nav-links a {
        display: inline-block;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
        color: var(--primary-color);
        background-color: #f0f4f8;
        border: 1px solid #d0d8e4;
        /* Double-layer shadow: outer glow + bottom depth */
        box-shadow: 0 2px 0 #b0bac8, 0 3px 6px rgba(0,0,0,0.08);
        transition: background 0.15s, color 0.15s, box-shadow 0.1s, transform 0.1s;
    }

    /* Pressed state — sinks down when tapped */
    .nav-links a:active {
        transform: translateY(2px);
        box-shadow: 0 0 0 #b0bac8, 0 1px 3px rgba(0,0,0,0.1);
    }

    .nav-links a:hover {
        background-color: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
        box-shadow: 0 2px 0 #003d80, 0 3px 6px rgba(0,0,0,0.12);
    }

    .nav-links .btn-contact {
        background-color: var(--accent-color) !important;
        color: #fff !important;
        border-color: #c45a00 !important;
        box-shadow: 0 2px 0 #c45a00, 0 3px 6px rgba(0,0,0,0.1) !important;
        padding: 8px 15px;
    }

    .hamburger { display: none; }

    /* General mobile layout */
    .hero h1 { font-size: 2.0rem; }
    .split-layout, .values-grid, .pdf-row, .reverse-layout { flex-direction: column; }
    .pdf-viewer-side, .swiper-button-next, .swiper-button-prev { display: none; }

    /* Fix communications page spacing and centering on mobile */
    .pdf-row {
        margin-bottom: 30px;
        padding-bottom: 30px;
        gap: 20px;
    }
    .pdf-text-side {
        text-align: center;
    }
    .pdf-text-side .cta-button {
        display: inline-block;
    }
    .pdf-text-side h3 { font-size: 1.4rem; }
    .pdf-text-side p { font-size: 1rem; }
    .info-section .container { padding: 0 16px; }
}


/* --- TEAM SECTION STYLES --- */

/* Wrapper */
.team-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 1. Vicar (Hero Style) */
.vicar-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background-color: #f8f9fa; /* Light grey background */
    padding: 40px;
    border-radius: 12px;
}

.vicar-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Prevents squishing */
}

.vicar-details h2 { margin-top: 0; margin-bottom: 5px; font-size: 2rem; }
.vicar-details h3 { color: #0056b3; margin-top: 0; margin-bottom: 20px; font-weight: 600; }

.contact-btn {
    display: inline-block;
    background-color: #0056b3; /* Main Brand Color */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s ease;
}
.contact-btn:hover { background-color: #003d82; }

.vicar-phone {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 500;
}

.vicar-phone i {
    color: #0056b3;
    margin-right: 8px;
}

.vicar-phone a:hover { color: #0056b3; }

/* 2. Associate Vicars (Grid of 3) */
.section-header { text-align: center; margin-bottom: 40px; color: #333; font-size: 1.8rem; border-bottom: 2px solid #eee; padding-bottom: 10px; display: inline-block; }
.header-wrapper { text-align: center; width: 100%; }

.associates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; /* Ensures 3 items sit in the middle */
    margin-bottom: 60px;
}

.associate-card {
    flex: 1 1 280px; /* Base width 280px */
    max-width: 350px;
    background: #fff;
    border: 1px solid #e1e4e8;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}
.associate-card:hover { transform: translateY(-5px); border-color: #0056b3; }

.associate-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #f8f9fa;
}

.role-title { display: block; color: #444; font-weight: bold; margin-bottom: 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;}

/* 3. Vestry (Grid of 5) */
.vestry-section {
    background-color: #fafafa;
    padding: 40px;
    border-radius: 12px;
    border: 1px dashed #ccc; /* Subtle separation */
}

.vestry-role { font-size: 0.8rem; color: #555; font-weight: 600; }

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
    .vicar-container { flex-direction: column; text-align: center; }
    .vicar-photo { margin-bottom: 20px; }
}

/* --- THREE IMAGE TRIO (NO TEXT) --- */
.image-trio-container {
    display: flex; /* Lines them up in a row */
    gap: 20px;     /* Space between images */
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    justify-content: center;
}

.trio-image {
    flex: 1;       /* Makes all 3 share width equally */
    height: 300px; /* <--- Sets the uniform height. Adjust this number if you want them taller/shorter. */
    object-fit: cover; /* <--- MAGIC: Crops the image to fill the box without squishing */
    border-radius: 15px; /* Matches your table corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Subtle shadow */
    transition: transform 0.3s ease; /* Smooth hover animation */
}

/* Optional: Slight pop when you mouse over them */
.trio-image:hover {
    transform: scale(1.02); /* Grows 2% larger */
}

/* Mobile: Stack them vertically */
@media (max-width: 768px) {
    .image-trio-container {
        flex-direction: column;
    }
    .trio-image {
        height: 200px; /* Shorter on mobile so they don't take up too much scrolling space */
        width: 100%;
    }
}

/* --- NEW VESTRY LIST LAYOUT --- */

.vestry-list {
    display: flex;
    flex-direction: column; /* Stacks them vertically */
    gap: 20px;
    max-width: 800px; /* Limits width so lines aren't too long to read */
    margin: 0 auto;
}

.vestry-card-wide {
    display: flex;          /* Puts photo next to text */
    align-items: center;    /* Vertically centers the photo */
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 20px;
    gap: 25px;              /* Space between photo and text */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    text-align: left;       /* Ensures text aligns left, not center */
}

.vestry-photo-wide {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;         /* Prevents photo from squishing */
    border: 3px solid #f8f9fa;
}

/* Initials circle for members without a photo yet */
.vestry-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid #f8f9fa;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

/* Sub-headings and dashed dividers inside the Vestry & Parish Team box */
.team-subheading {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.team-divider {
    border-top: 1px dashed #ccc;
    margin: 40px auto;
    max-width: 800px;
}

.vestry-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.vestry-role {
    font-size: 0.85rem;
    color: #0056b3;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}


/* Mobile Responsiveness: Stacks them back up on phones */
@media (max-width: 600px) {
    .vestry-card-wide {
        flex-direction: column; /* Stack photo on top of text */
        text-align: center;
    }
    .vestry-details {
        width: 100%;
    }
}


/* --- NEWSLETTER SIGN-UP CARD --- */
.newsletter-signup {
    max-width: 720px;
    margin: 0 auto 80px auto;
    padding: 50px 40px;
    background-color: #f4f6f8;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e1e4e8;
}

.newsletter-signup-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-signup-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.newsletter-signup h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.newsletter-signup p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-signup-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.newsletter-signup-actions .cta-button i {
    margin-right: 8px;
}

/* --- 404 PAGE --- */
.not-found-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.not-found-inner {
    max-width: 500px;
}

.not-found-number {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.12;
    line-height: 1;
    margin-bottom: -20px;
}

.not-found-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.not-found-text {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* --- MISSION PAGE STYLES --- */

/* Who We Are — two column */
.mission-who-section {
    padding: 80px 5%;
    background-color: var(--white);
}

.mission-who-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.mission-who-text {
    flex: 1;
}

.mission-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.mission-who-text h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 16px;
}

.mission-who-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.mission-who-image {
    flex: 1;
}

.mission-who-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* Values Cards */
.mission-values-section {
    padding: 80px 5%;
    background-color: #f4f6f8;
    text-align: center;
}

.mission-values-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.values-heading {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.values-subheading {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 50px;
}

.mission-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.mission-card {
    flex: 1;
    max-width: 340px;
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
    text-align: center;
}

.mission-card:hover {
    transform: translateY(-6px);
}

.mission-card-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.mission-card-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.mission-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.value-english {
    display: block;
    font-size: 0.95rem;
    color: #767676;
    font-style: italic;
    margin-bottom: 12px;
}

.mission-card p {
    font-size: 0.98rem;
    color: #444;
    line-height: 1.7;
}

/* Come As You Are CTA */
.mission-cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 5%;
    text-align: center;
}

.mission-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.mission-cta-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.mission-cta-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    margin-bottom: 36px;
}

.mission-cta-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

.cta-detail-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.cta-detail-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .mission-who-inner {
        flex-direction: column;
    }

    .mission-who-image img {
        height: 260px;
    }

    .mission-who-text h2 {
        font-size: 2rem;
    }

    .mission-cards {
        flex-direction: column;
        align-items: center;
    }

    .mission-card {
        max-width: 100%;
    }

    .mission-cta-details {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* --- HISTORY PAGE STYLES --- */

.image-caption {
    text-align: center;
    font-style: italic;
    color: #444;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Church history intro — two-column layout */
.history-intro-section {
    padding: 80px 5%;
    background-color: var(--white);
}

.history-intro-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.history-intro-text {
    flex: 1;
}

.history-intro-text h2 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
    margin-bottom: 24px;
}

.history-intro-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.history-placeholder-note {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-top: 24px;
}

.history-placeholder-note i {
    margin-right: 6px;
    color: var(--accent-color);
}

.history-intro-image {
    flex: 1;
}

.history-intro-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* St Margaret of Antioch section */
.antioch-section {
    padding: 70px 5%;
    background-color: var(--primary-color);
    text-align: center;
}

.antioch-inner {
    max-width: 720px;
    margin: 0 auto;
}

.antioch-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.antioch-section .accent-line {
    margin-bottom: 28px;
}

.antioch-section p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Newspaper article section */
.newspaper-section {
    padding: 80px 5%;
    background-color: #f4f6f8;
}

.newspaper-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.newspaper-text {
    flex: 1;
}

.newspaper-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.newspaper-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

.newspaper-image-wrap {
    flex: 1;
}

.newspaper-image-wrap img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.newspaper-image-wrap img:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .newspaper-inner {
        flex-direction: column;
    }
}

/* Woven Flax Cross section */
.flax-cross-section {
    padding: 80px 5%;
    background-color: var(--white);
}

.flax-cross-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.flax-cross-image-col {
    flex: 0 0 38%;
}

.flax-cross-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    display: block;
}

.flax-cross-text-col {
    flex: 1;
}

.flax-cross-text-col h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 16px;
}

.flax-cross-text-col h2 em {
    font-size: 1.4rem;
    color: #555;
}

.flax-cross-text-col p {
    font-size: 1.02rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.flax-cross-attribution {
    font-style: italic;
    color: #444 !important;
    font-weight: 500;
}

@media (max-width: 768px) {
    .flax-cross-inner {
        flex-direction: column;
    }

    .flax-cross-image-col {
        flex: none;
        width: 100%;
        max-width: 320px;
    }
}

/* Tarore full-bleed feature section */
.tarore-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0;
}

.tarore-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    min-height: 600px;
}

.tarore-image-col {
    flex: 0 0 42%;
    overflow: hidden;
}

.tarore-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.tarore-text-col {
    flex: 1;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tarore-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.tarore-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.tarore-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.tarore-text-col p {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .history-intro-container {
        flex-direction: column;
    }

    .history-intro-image img {
        height: 260px;
    }

    .tarore-inner {
        flex-direction: column;
        min-height: unset;
    }

    .tarore-image-col {
        flex: none;
        height: 280px;
    }

    .tarore-text-col {
        padding: 40px 24px;
    }

    .tarore-heading {
        font-size: 2.4rem;
    }
}

/* --- Tables (services page + mission schedule) --- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table, .schedule-table, #sermon-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

table th, table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e8e8e8;
}

table tr:last-child th, table tr:last-child td { border-bottom: none; }
table tbody tr:nth-child(even) { background: var(--light-bg); }

.schedule-table th[scope="row"] {
    white-space: nowrap;
    width: 1%;
    color: var(--primary-color);
    font-weight: 700;
}

.schedule-block { margin-top: 2.5rem; }
.schedule-block h3 { font-size: 1.6rem; color: var(--primary-color); }
.schedule-year { color: var(--accent-color); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 768px) {
    table th, table td { padding: 0.7rem 0.75rem; font-size: 0.95rem; }
}
