/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */
:root {
    --purple: #9C27B0;
    --pink: #E91E63;
    --dark-purple: #6a1b9a;
    --light-purple: #e040fb;
    --gradient: linear-gradient(135deg, #8e44ad, #e91e63, #ff4081);
    --dark-background: #0d001a;
    --dark-gradient-bg: linear-gradient(to bottom, #1a0033, #000);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--dark-background); color: white; overflow-x: hidden; }
main { padding-top: 90px; }
a { color: var(--pink); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--light-purple); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* ==========================================================================
   2. Header & Navigation Styles
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(106, 27, 154, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.4); height: 90px; }
.site-header .logo { height: 60px; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: white; text-decoration: none; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: #ff99cc; }
.hamburger-menu { display: none; cursor: pointer; z-index: 1002; }
.hamburger-menu .bar { width: 30px; height: 3px; background-color: white; margin: 6px 0; transition: 0.4s; }
.mobile-nav { position: fixed; top: 0; left: -100%; width: 80%; max-width: 300px; height: 100vh; background: var(--dark-purple); box-shadow: 5px 0 20px rgba(0,0,0,0.5); z-index: 1001; transition: left 0.5s ease; display: flex; flex-direction: column; padding: 100px 2rem 2rem; }
.mobile-nav.active { left: 0; }
.mobile-nav a { color: white; text-decoration: none; font-size: 1.5rem; font-weight: 600; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-footer-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background: rgba(106, 27, 154, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -4px 15px rgba(0,0,0,0.3); z-index: 999; justify-content: space-around; align-items: center; }
.mobile-footer-nav a { color: white; text-decoration: none; text-align: center; font-size: 0.7rem; display: flex; flex-direction: column; justify-content: center; align-items: center; flex-grow: 1; }
.mobile-footer-nav a span { font-size: 1.5rem; line-height: 1; }

/* ==========================================================================
   3. Page & Section Styles
   ========================================================================== */
.page-header { padding: 4rem 2rem; background: var(--gradient); text-align: center; }
.page-header h1 { font-size: 3.5rem; color: white; }
.content-page { background: #fff; color: #333; padding: 4rem 0; }
.content-page .container { max-width: 1200px; } /* Wider container for layout */
.content-page h1, .content-page h2, .content-page h3 { color: #111; font-size: 2.5rem; }
.content-page p { margin-bottom: 1.5rem; line-height: 1.8; font-size: 1.1rem; }
.hero-section { position: relative; height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; margin-top: -90px; }
.hero-slider, .pastor-portraits, .hero-content { grid-column: 1 / -1; grid-row: 1 / -1; }
.hero-slider { width: 100%; height: 100%; z-index: 1; }
.hero-slider .swiper-slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.35); }
.pastor-portraits { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; z-index: 10; pointer-events: none; }
.pastor-portrait { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 12px solid rgba(255,255,255,0.3); box-shadow: 0 0 40px rgba(255,255,255,0.4); }
.hero-content { z-index: 11; padding: 2rem; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; }
.hero-church-name { font-size: 1.5rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-bottom: 0.5rem; }
.hero-logo { max-width: 420px; width: 90%; margin-bottom: 1.5rem; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.7)); animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.hero-content h1 { font-size: 5.5rem; font-weight: 900; background: linear-gradient(90deg, #fff, #ffb3e6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: white; margin-bottom: 2rem; padding: 0 25%; }
.cta-button { padding: 1.3rem 3rem; border-radius: 50px; font-weight: bold; text-decoration: none; margin: 0 1rem; display: inline-block; transition: all 0.4s; }
.cta-primary { background: white; color: var(--purple); }
.cta-primary:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.cta-secondary { background: transparent; color: white; border: 3px solid white; }
.cta-secondary:hover { background: white; color: var(--pink); }
.gallery-section { padding: 100px 5%; background: var(--dark-gradient-bg); }
.section-title { text-align: center; margin-bottom: 1rem; font-size: 4rem; background: linear-gradient(to right, var(--pink), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: var(--pink); }
.section-subtitle { text-align: center; font-size: 1.3rem; opacity: 0.9; margin-bottom: 4rem; }
.gallery-grid { columns: 4 320px; column-gap: 25px; max-width: 1800px; margin: 0 auto; }
.gallery-item { break-inside: avoid; margin-bottom: 25px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.6); transition: all 0.4s; }
.gallery-item:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(156,39,176,0.7); }
.gallery-item img { width: 100%; display: block; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.1); }
.social-section-wrapper { background-color: #fff; padding: 1px 0; }
.social-section { padding: 5rem 0; text-align: center; color: var(--dark-background); }
.social-section .section-title, .social-section .section-subtitle { background: none; -webkit-text-fill-color: inherit; color: var(--dark-background); }
.youtube-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 3rem auto 0; padding: 0 2rem; }
.youtube-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.youtube-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.facebook-container { max-width: 500px; margin: 3rem auto 0; background: #fff; padding: 1rem; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.blog-section { padding: 5rem 0; text-align: center; background: var(--dark-gradient-bg); color: white; }
.blog-section .section-title, .blog-section .section-subtitle { background: linear-gradient(to right, var(--pink), var(--purple)); -webkit-text-fill-color: transparent; -webkit-background-clip: text; color: var(--pink); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; text-align: left; max-width: 1200px; margin: 3rem auto 0; padding: 0 2rem; }
.blog-card { background-color: rgba(255, 255, 255, 0.05); color: white; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
.blog-card-image { width: 100%; height: 200px; object-fit: cover; }
.blog-card-content { padding: 1.5rem; }
.blog-card-date { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 0.5rem; }
.blog-card h3 { color: white; font-size: 1.25rem; }
.blog-card h3 a { color: inherit; }
.blog-card-excerpt { color: rgba(255, 255, 255, 0.7); margin-bottom: 1rem; }
.read-more { font-weight: 700; }
.post-header { text-align: center; padding: 2rem 0; border-bottom: 1px solid #eee; margin-bottom: 2rem; }
.post-title { font-size: 3rem; margin-bottom: 0.5rem; }
.post-meta { color: #777; font-family: var(--font-body); }
.post-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }

/* ==========================================================================
   4. Decorated Content Page & About Page Styles
   ========================================================================== */
.about-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Text on left, gallery on right */
    gap: 3rem;
    align-items: start;
}
.about-text .content-block:last-child p {
    margin-bottom: 0;
}
.about-gallery {
    columns: 2 150px;
    column-gap: 1rem;
}
.about-gallery a {
    break-inside: avoid;
    margin-bottom: 1rem;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.about-gallery a:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(156,39,176,0.5);
}
.about-gallery img {
    width: 100%;
    display: block;
}


/* ==========================================================================
   5. Media Queries for Responsiveness
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .hamburger-menu { display: block; }
    .mobile-footer-nav { display: flex; }
    body { padding-bottom: 65px; }
    .pastor-portrait { width: 160px; height: 160px; }
    .gallery-grid { columns: 3; }
    .hero-content h1 { padding: 0 10%; }
    
    /* Stack the About page layout on tablets and smaller */
    .about-layout {
        grid-template-columns: 1fr;
    }
    .about-gallery {
        margin-top: 3rem;
    }
}
@media (max-width: 768px)  { 
    .hero-content h1 { font-size: 3rem; padding: 0; }
    .hero-church-name { font-size: 1.1rem; white-space: normal; word-break: break-word; }
    .gallery-grid { columns: 2; }
    .section-title { font-size: 2.5rem; }
}
@media (max-width: 576px) { 
    .pastor-portrait { width: 100px; height: 100px; border-width: 8px; }
    .hero-content h1 { font-size: 2.5rem; }
    .cta-button { padding: 1rem 2rem; margin: 0.5rem; }
}
@media (max-width: 480px)  { 
    .gallery-grid { columns: 1; }
    .about-gallery { columns: 1; }
}