/* 1. GLOBAL VARIABLES, RESET & FONTS*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-mauve: #5D327C;
    --accent-green: #C4D600;
    --white: #FFFFFF;
    --light-bg: #F9F9F9;
    --dark-overlay: rgba(93, 50, 124, 0.438);
    --text-dark: #333333;
    --text-light: #666666;
    --transition: all 0.3s ease;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #c0ff2e;
    color: var(--primary-mauve);
}

.btn-primary:hover {
    background-color: #c0ff2e;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-mauve);
}

/* 2. GLOBAL HEADER & NAVIGATION*/
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-mauve);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent-green);
    font-size: 1.5rem;
}

.logo-img {
    height: 80px;
    width: auto;
    max-width: 350px;
    border-radius: 50%;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-mauve);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-green);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-mauve);
    cursor: pointer;
}

/* Responsive Header  */
@media (max-width: 768px) {

    /* 1. Position Hamburger Icon Very Right */
    .mobile-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 1001;
    }

    /* 2. Slide Menu from Right (Not Left) */
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -60%;
        width: 60%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
        left: auto;
    }

    /* 3. Blur Effect when Menu is Open */
    body.menu-open section {
        filter: blur(8px);
        transform: scale(0.98);
        transition: filter 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    .logo-img {
        height: 60px;
        max-width: 200px;
        display: block;
    }

    /* Ensure the hero text doesn't jump */
    .hero-content {
        transition: all 0.3s ease;
    }

    /* Override blur for the menu itself so links are sharp */
    .nav-menu.active {
        filter: none !important;
        transform: none !important;
    }
}

/* Prevents scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* 3. GLOBAL FOOTER */
footer {
    background-color: #41185e;
    color: #ccc;
    padding: 60px 0 0 0;
    font-family: "Montserrat", sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* Footer Columns */
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-green);
}

/* 3.1 Social Media Column */
.social-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-center h4 {
    display: none;
}

.footer-logo {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
}

.footer-logo i {
    color: var(--accent-green);
}

.footer-slogan {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 25px;
    font-style: italic;
    font-weight: 500;
}

.social-label {
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

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

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

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

/* 3.2 Quick Links Column */
.quick-links-wrapper {
    display: grid;
    grid-template-columns: 0.3fr 0.5fr;
    column-gap: 30px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-green);
    padding-left: 5px;
}

/* 3.3 Contact Info Column */
.contact-list li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    line-height: 1.5;
}

.contact-list i {
    color: var(--accent-green);
    margin-top: 5px;
    font-size: 1.1rem;
}

/* 3.4 Copyright Bar */
.copyright-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text,
.developer-text {
    font-size: 0.9rem;
    color: #888;
}

.developer-link {
    font-size: 0.9rem;
    font-weight: normal;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #888;
    transition: var(--transition);
}

.developer-link:hover {
    color: #a3db21;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quick-links-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-center {
        margin-top: 10px;
    }

    .contact-list li {
        justify-content: center;
    }

    .copyright-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 4. HOME PAGE STYLES */

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), url('images/HERO1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1.5s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.slogan-badge {
    background-color: rgba(196, 214, 0, 0.116);
    border: 1px solid var(--accent-green);
    color: #c0ff2e;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Founder Welcome Section */
.founder-welcome {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.founder-text .section-label {
    color: var(--primary-mauve);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 10px;
    display: block;
}

.founder-text .section-label i {
    color: var(--accent-green);
    margin-right: 8px;
}

.founder-message {
    font-size: 1.15rem;
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    border-left: 4px solid #a3db21;
    padding-left: 20px;
}

.founder-signature {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.founder-name {
    color: var(--primary-mauve);
    margin-bottom: 5px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
}

.founder-title {
    color: var(--text-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-branch {
    border-radius: 10px;
    background-color: rgba(93, 50, 124, 0.9);
    color: #c0ff2e;
}

.join-branch:hover {
    color: #41185e;
}

.founder-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-green);
    border-radius: 20px;
    z-index: 0;
}

.founder-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: 20px 20px 0 rgba(93, 50, 124, 0.1);
    z-index: 1;
    position: relative;
    transition: transform 0.4s ease;
}

.founder-img:hover {
    transform: scale(1.02);
    box-shadow: 25px 25px 0 var(--accent-green);
}

/* Weekly Services Section */
.services-section {
    background-color: var(--light-bg);
}

.week-service {
    font-size: 2rem;
}

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

.service-card {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--primary-mauve) 0%, rgba(93, 50, 124, 0.8) 40%, transparent 100%);
    padding: 30px 20px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 50%;
    transition: height 0.4s ease;
}

.service-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: var(--accent-green);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.service-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.service-time {
    font-size: 0.9rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    width: fit-content;
    backdrop-filter: blur(5px);
}

.service-time i {
    margin-right: 5px;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card:hover .service-overlay {
    height: 100%;
    background: linear-gradient(to top, var(--primary-mauve) 0%, rgba(93, 50, 124, 0.315) 60%, rgba(93, 50, 124, 0.26) 100%);
}

.service-card:hover .service-overlay h3 {
    transform: translateY(-10px);
}

/* Call to Action (CTA) Section */
.cta-section {
    background-color: var(--primary-mauve);
    background: linear-gradient(rgba(93, 50, 124, 0.692), rgba(93, 50, 124, 0.781)), url('images/cta2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--white);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: "Montserrat", sans-serif;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 1;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.btn-cta {
    background-color: #b3ec2b;
    color: var(--primary-mauve);
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

.btn-cta:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-mauve);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Map Section (Home) */
.map-section {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    margin-bottom: 0;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Responsive Home */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .image-decoration {
        display: none;
    }

    .founder-img {
        box-shadow: none;
        border: 5px solid var(--accent-green);
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 400px;
    }

    .cta-section {
        padding: 60px 15px;
        background-attachment: scroll;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .btn-cta {
        padding: 12px 30px;
        width: 100%;
        max-width: 300px;
        font-size: 1rem;
    }

    .map-section {
        height: 300px;
    }
}

/* 5. ABOUT PAGE STYLES*/
.section-title {
    color: var(--primary-mauve);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-green);
    margin: 10px auto 0;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
}

.branches-hero {
    background: linear-gradient(rgba(93, 50, 124, 0.85), rgba(93, 50, 124, 0.85)), url('departments/pastoral.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.branches-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--accent-green);
}

/* New Section Background for Mission & Vision*/
.mv-section-bg {
    background-color: var(--light-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* NEW: Mission & Vision Styles*/
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.mv-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.mv-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.mv-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* 1. Mauve Background */
.mauve-bg {
    background-color: #d6e632;
    color: var(--primary-mauve);
}

/* 2. Lemon Green Background */
.green-bg {
    background-color: var(--primary-mauve);
    color: var(--white);
}

.green-bg .mv-icon {
    color: var(--white);
}

/* --- Core Values --- */
.core-values {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.value-tag {
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--primary-mauve);
    font-weight: 600;
}

/* --- Lead Pastor Section Styles --- */
.pastor-section {
    background-color: var(--white);
}

.pastor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns: Image Left, Text Right */
    gap: 50px;
    align-items: center;
}

/* Left Column: Image Styling */
.pastor-image-box {
    position: relative;
    z-index: 1;
}

.pastor-image-box img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0 var(--accent-green);
    transition: var(--transition);
}

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

/* Right Column: Text Styling */
.pastor-info-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align text to the left */
}

.pastor-label {
    color: var(--primary-mauve);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.pastor-name {
    color: var(--primary-mauve);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.pastor-title {
    color: var(--accent-green);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 0 25px 0;
    text-transform: uppercase;
}

.pastor-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* --- Responsive About --- */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        margin-bottom: 20px;
    }

    .mv-grid {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .pastor-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 30px;
    }

    /* On mobile, you can choose order. 
           Currently: Image Top, Text Bottom (based on HTML order) */
    .pastor-name {
        font-size: 1.8rem;
    }

    .pastor-image-box img {
        box-shadow: none;
        /* Cleaner on mobile */
        border: 5px solid var(--accent-green);
    }
}

/* 6. BRANCHES PAGE STYLES (UPGRADED)*/

/* 1. Hero Banner (Consistent with other pages) */
.branches-hero {
    background: linear-gradient(rgba(93, 50, 124, 0.85), rgba(93, 50, 124, 0.85)), url('departments/pastoral.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.branches-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* --- Main Section --- */
.branches-section {
    background-color: var(--light-bg);
}

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

.branch-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #41185e;
    color: #b3ec2b;
    font-weight: 800;
    font-size: 8px;
    padding: 2px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
    animation: fadeInDown 0.6s ease-out;
}

/* --- Card Styling --- */
.branch-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-top: 5px solid var(--accent-green);
    position: relative;
    overflow: hidden;
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(93, 50, 124, 0.2);
}

/* Distinct Style for HQ */
.hq-card {
    border-top-color: var(--primary-mauve);
    background-color: #fffdf4;
}

/* Circular Icon Wrapper */
.branch-icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(93, 50, 124, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-mauve);
    font-size: 2rem;
    transition: var(--transition);
}

.hq-card .branch-icon-circle {
    background-color: var(--accent-green);
    /* Green bg for HQ */
    color: var(--primary-mauve);
}

.branch-card:hover .branch-icon-circle {
    background-color: var(--primary-mauve);
    color: var(--accent-green);
    transform: rotate(15deg);
    /* Slight rotation on hover */
}

/* Text Styling */
.branch-card h3 {
    color: var(--primary-mauve);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.branch-address {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Footer of Card (Time + Map Button) */
.branch-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    gap: 10px;
}

.branch-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.branch-time i {
    color: var(--accent-green);
    margin-right: 5px;
}

/* Map Button */
.btn-map {
    padding: 8px 18px;
    background-color: var(--accent-green);
    color: var(--primary-mauve);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-map:hover {
    background-color: var(--primary-mauve);
    color: var(--white);
    transform: scale(1.05);
}

/* Responsive Styles for Branches*/
@media (max-width: 900px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .branches-hero {
        padding: 60px 0;
        background-attachment: scroll;
        margin-top: 80px;
    }

    .branches-hero h1 {
        font-size: 1.8rem;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }

    .branch-footer {
        flex-direction: column;
        gap: 15px;
    }

    .btn-map {
        width: 100%;
        padding: 12px 0;
        text-align: center;
    }
}

/* BRANCH MODAL POPUP STYLES */

/* The Overlay Background */
.branch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    /* Above header/footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Overlay Dark Background */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(93, 50, 124, 0.8);
    /* Mauve tint */
    backdrop-filter: blur(5px);
}

/* The Actual Popup Box */
.modal-content {
    position: relative;
    background-color: var(--white);
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
    display: flex;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    background-color: var(--primary-mauve);
    color: var(--white);
}

/* Modal Body Layout */
.modal-body {
    display: flex;
    width: 100%;
}

/* Left: Image */
.modal-img-wrapper {
    flex: 1;
    position: relative;
    background-color: #f0f0f0;
    min-height: 300px;
}

.modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-name-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--accent-green);
    color: var(--primary-mauve);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Right: Info */
.modal-info-wrapper {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-header-tag {
    display: inline-block;
    background-color: rgba(93, 50, 124, 0.1);
    color: var(--primary-mauve);
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 10px;
    align-self: flex-start;
}

.modal-info-wrapper h2 {
    color: var(--primary-mauve);
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.modal-bio {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.modal-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.modal-contact-row span {
    font-weight: 600;
    color: var(--primary-mauve);
}

.modal-contact-btn {
    background-color: var(--primary-mauve);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.modal-contact-btn:hover {
    background-color: var(--accent-green);
    color: var(--primary-mauve);
}

/* Hidden Utility Class */
.hidden {
    display: none !important;
}

/* Modal Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* MOBILE: BRANCH MODAL (SQUARE SPLIT LAYOUT) */

@media (max-width: 768px) {

    /*1. The Modal Container (The Square)*/
    .branch-modal {
        position: fixed;

        background: transparent;
        z-index: 3000;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 20px;
    }

    .modal-content {
        position: relative;
        background-color: var(--white);
        width: 90%;
        max-width: 400px;
        height: 85vh;
        max-height: 600px;
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        animation: scaleUp 0.4s ease-out;
    }

    /*2. Top Part: Image (The "Top Half")*/
    .modal-body {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .modal-img-wrapper {
        /* This is the "Top Division" */
        width: 100%;
        height: 50%;
        position: relative;
        background-color: #f0f0f0;
        overflow: hidden;
        border-bottom: 1px solid #eee;
    }

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

    /* Floating Badge inside the Image Half */
    .modal-name-badge {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--accent-green);
        color: var(--primary-mauve);
        padding: 5px 15px;
        border-radius: 15px;
        font-weight: 700;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }

    /*3. Bottom Part: Text (The "Bottom Half") */
    .modal-info-wrapper {
        flex: 1;
        width: 100%;
        padding: 30px 25px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        background-color: var(--white);
    }

    .modal-header-tag {
        display: inline-block;
        background-color: rgba(93, 50, 124, 0.1);
        color: var(--primary-mauve);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.8rem;
        padding: 5px 12px;
        border-radius: 5px;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

    /* Pastor Name - Main Header */
    #m-pastor {
        color: var(--primary-mauve);
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        font-size: 1.5rem;
        margin: 0 0 15px 0;
        line-height: 1.2;
    }

    /* Bio Text */
    .modal-bio {
        font-size: 0.95rem;
        color: var(--text-light);
        line-height: 1.6;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* Contact Row */
    .modal-contact-row {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        padding-top: 10px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .modal-contact-row span {
        font-weight: 600;
        color: var(--primary-mauve);
        font-size: 0.95rem;
    }

    .modal-contact-row i {
        color: var(--accent-green);
        margin-right: 5px;
        font-size: 1rem;
    }

    .modal-contact-btn {
        display: inline-block;
        padding: 8px 20px;
        background-color: var(--primary-mauve);
        color: var(--white);
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        transition: var(--transition);
    }

    .modal-contact-btn:hover {
        background-color: var(--accent-green);
        color: var(--primary-mauve);
        transform: translateY(-2px);
    }

    /* Close Button Positioning for this layout */
    .close-modal {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.8);
    }

    /* Scale Up Animation */
    @keyframes scaleUp {
        from {
            opacity: 0;
            transform: scale(0.8);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

/* MOBILE OPTIMIZATION (< 430px) */
@media (max-width: 430px) {
    .branch-modal {
        padding: 0px;
        z-index: 5000;
        background-color: rgba(255, 255, 255, 0.95);
    }

    /* --- 2. Main Content Box --- */
    .modal-content {
        /* width: %; */
        max-height: 90vh;
        border-radius: 20px;
        background-color: var(--white);
        padding: 0;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        animation: slideUp 0.4s ease-out;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    /* 3. Top Part: Image Wrapper (45% Height)*/
    .modal-img-wrapper {
        width: 100%;
        height: 45%;
        position: relative;
        background-color: #f0f0f0;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin: 0;
        overflow: hidden;
    }

    .modal-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        /* Focuses on Pastor's face */
    }

    /* Badge inside Image Wrapper */
    .modal-name-badge {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--accent-green);
        color: var(--primary-mauve);
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 2;
    }

    /* 4. Bottom Part: Text Wrapper (Remaining 55%)*/
    .modal-info-wrapper {
        width: 100%;
        height: 55%;
        flex: 1;
        padding: 5px 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        background-color: var(--white);
        border-top: 1px solid #fff4f4;
    }

    /* 5. Text Sizing (Optimized for 430px width)*/
    .modal-header-tag {
        font-size: 0.75rem;
        margin-bottom: 10px;
        display: block;
    }

    #m-pastor {
        color: var(--primary-mauve);
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        font-size: 1.5rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    #m-bio {
        color: var(--text-light);
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 10px 0;
        margin-bottom: 10px;
        max-height: 80px;
        overflow-y: auto;
    }

    /* --- 6. Contact Row (Compact) --- */
    .modal-contact-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        border-top: none;
        padding-top: 5px;
        margin-top: 5px;
    }

    .modal-contact-row span {
        font-weight: 600;
        color: var(--primary-mauve);
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-top: 5px;
    }

    /* --- 7. Close Button --- */
    .close-modal {
        position: absolute;
        top: 15px;
        right: 15px;
        background-color: rgba(255, 250, 250, 0.562);
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        color: var(--text-dark);
        font-size: 1.2rem;
        transition: var(--transition);
        z-index: 10;
    }
}

/* 7. EVENTS PAGE STYLES (UPDATED)*/
/*Hero Header (Consistent with Branches)*/
.branches-hero {
    background: linear-gradient(rgba(93, 50, 124, 0.705), rgba(93, 50, 124, 0.712)), url('images/theme\ of\ the\ year.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.branches-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- TikTok Section --- */
.tiktok-section {
    background-color: var(--white);
}

/* --- Video Wrapper --- */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(93, 50, 124, 0.1);
    /* Subtle mauve border */
}

/* --- Video Badge (Top Right) --- */
.video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #41185e;
    color: #b3ec2b;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 10px 20px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
    animation: fadeInDown 0.6s ease-out;
}

/* --- The Iframe --- */
.tiktok-iframe {
    width: 100%;
    height: auto;
    min-height: 450px;
    display: block;
    border-radius: 15px;
}

/*7. EVENTS PAGE STYLES (SIDE-BY-SIDE LAYOUT) */

/* --- Section Background & Spacing --- */
.events-section {
    background: var(--light-bg);
    padding: 100px 0;
}

.events-section .section-title {
    margin-bottom: 15px;
}

.events-section .section-subtitle {
    max-width: 700px;
    margin: 0 auto 60px;
}

/* --- Vertical Stack Grid --- */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

/* --- Event Card (Side-by-Side Layout) --- */
.event-card {
    display: flex;
    flex-direction: row;
    min-height: 500px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(93, 50, 124, 0.08);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(93, 50, 124, 0.05);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(93, 50, 124, 0.12);
}

/* --- Left Side: Image Wrapper --- */
.event-image-wrapper {
    flex: 0 0 40%;
    height: auto;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.event-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-image-wrapper img {
    transform: scale(1.05);
}

/* --- Date Badge (Top Right of Image) --- */
.event-date-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--white);
    color: var(--primary-mauve);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 75px;
    z-index: 2;
}

.badge-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.badge-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-top: 3px;
}

.datebadge{
    color: var(--primary-mauve);
}

/* Special Badge Colors */
.event-date-badge.special-badge {
    background: var(--accent-green);
    color: var(--primary-mauve);
}

.event-date-badge.mega-badge {
    background: var(--primary-mauve);
    color: var(--accent-green);
}

/* --- Right Side: Content Area --- */
.event-content {
    flex: 0 0 60%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    background: rgba(196, 214, 0, 0.15);
    color: var(--primary-mauve);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.event-tag.ministry-tag {
    background: rgba(93, 50, 124, 0.1);
}

.event-tag.mega-tag {
    background: linear-gradient(135deg, var(--primary-mauve), var(--accent-green));
    color: var(--white);
}

.event-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-mauve);
    margin-bottom: 20px;
    line-height: 1.3;
}

.event-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* --- Footer with Location & Button --- */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(93, 50, 124, 0.1);
}

.event-location {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-location i {
    color: var(--accent-green);
    font-size: 1rem;
}

.event-register-btn {
    background: var(--accent-green);
    color: var(--primary-mauve);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-register-btn:hover {
    background: var(--primary-mauve);
    color: var(--accent-green);
    transform: translateX(5px);
}

.event-register-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.event-register-btn:hover i {
    transform: translateX(4px);
}

/* --- CTA Section --- */
.events-cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.events-cta-wrapper .btn-primary {
    padding: 16px 36px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

/* RESPONSIVE BREAKPOINTS*/

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .event-card {
        min-height: 450px;
    }

    .event-image-wrapper {
        flex: 0 0 45%;
        min-height: 450px;
    }

    .event-content {
        flex: 0 0 55%;
        padding: 40px;
    }

    .event-title {
        font-size: 1.7rem;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .events-section {
        padding: 70px 0;
    }

    .event-card {
        flex-direction: column;
        min-height: auto;
    }

    .event-image-wrapper {
        flex: 0 0 280px;
        width: 100%;
        min-height: 280px;
    }

    .event-content {
        flex: 1;
        padding: 30px;
    }

    .event-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .event-register-btn {
        align-self: flex-end;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .event-image-wrapper {
        flex: 0 0 240px;
        min-height: 240px;
    }

    .event-content {
        padding: 25px;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .event-footer {
        padding-top: 20px;
    }

    .event-register-btn {
        width: 100%;
        justify-content: center;
    }
}



/* 8. CONTACT PAGE STYLES */
.contact-hero-section {
    background: linear-gradient(rgba(93, 50, 124, 0.85), rgba(93, 50, 124, 0.85)), url('images/contact4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.contact-split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: stretch;
}

/* --- Left Panel --- */
.contact-left-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.contact-left-panel h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
    position: relative;
}

/* Lemon Green Underline from "Get" */
.contact-left-panel h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-green);
    margin: 10px 0 0 0;
}

.contact-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-details-list .info-item {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item i {
    color: #a3db21;
    font-size: 1.4rem;
    margin-top: 4px;
}

.info-item strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.contact-socials-wrapper {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.social-mini-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a3db21;
    margin-bottom: 15px;
}

.social-links-row {
    display: flex;
    gap: 15px;
}

.social-link-card {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link-card:hover {
    background-color: #c0ff2e;
    color: var(--primary-mauve);
    transform: translateY(-3px);
}

.contact-map-wrapper {
    margin-top: auto;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Right Panel --- */
.contact-right-panel {
    flex: 1;
    min-width: 300px;
}

.contact-form-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-mauve);
    margin-bottom: 25px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-mauve);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(93, 50, 124, 0.1);
}

.btn-submit-request {
    width: 100%;
    padding: 15px;
    background-color: #a3db21;
    color: var(--primary-mauve);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 10px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-submit-request:hover {
    background-color: #c0ff2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 214, 0, 0.4);
}

/* --- Responsive Contact --- */
@media (max-width: 900px) {
    .contact-split-layout {
        flex-direction: column;
    }

    .contact-map-wrapper {
        margin-top: 20px;
    }

    .contact-form-card {
        height: auto;
    }
}

@media (max-width: 600px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .contact-hero-section {
        padding: 40px 0;
        background-attachment: scroll;
    }

    .contact-left-panel h2 {
        font-size: 1.6rem;
    }

    .contact-form-card {
        padding: 25px;
    }
}


/* SUCCESS MODAL (BEAUTIFUL & RESPONSIVE) */

/* --- Modal Overlay (Background Blur) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(93, 50, 124, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Hidden State (For JS toggling) */
.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Modal Content Card --- */
.modal-card {
    background-color: var(--white);
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 2px var(--accent-green);
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* Animation State */
.modal:not(.hidden) .modal-card {
    transform: scale(1);
    opacity: 1;
}

/* --- Close Button --- */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--light-bg);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background-color: var(--primary-mauve);
    color: var(--white);
    transform: rotate(90deg);
}

/* --- Success Icon --- */
.success-icon-wrapper {
    width: 90px;
    height: 90px;
    background-color: rgba(163, 219, 33, 0.1);
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-icon-wrapper i {
    font-size: 3.5rem;
    color: var(--primary-mauve);
    text-shadow: 0 4px 10px rgba(163, 219, 33, 0.2);
    animation: bounceIn 0.6s ease forwards;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Success Typography --- */
.success-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    color: var(--primary-mauve);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}


/* --- OK Button (CTA) --- */
.btn-success-ok {
    padding: 15px 40px;
    background-color: var(--primary-mauve);
    color:#c0ff2e;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(163, 219, 33, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-success-ok:hover {
    background-color: var(--primary-mauve);
    color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(93, 50, 124, 0.3);
}


/* FORM LOADING STATE STYLES*/

/* Overlay specifically for the form */
.contact-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.contact-loader-overlay.show-loader {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid var(--primary-mauve);
    border-radius: 50%;
    animation: spin 3s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.contact-loader-overlay p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-mauve);
    font-size: 1rem;
}

/* Button State */
.btn-submit-request.loading .btn-text {
    display: none;
}

.btn-submit-request.loading .btn-loader {
    display: inline-block;
}


/* RESPONSIVE MODAL STYLES */

/* Tablet / Small Laptop */
@media (max-width: 768px) {
    .modal-card {
        max-width: 400px;
        width: 90%;
        padding: 40px 30px;
    }

    .success-title {
        font-size: 1.6rem;
    }
}

/* Mobile Phone */
@media (max-width: 480px) {
    .modal-card {
        width: 95%;
        padding: 35px 20px;
        margin: 20px 0;
        /* Slight margin to prevent touching top */
    }

    .success-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .success-icon-wrapper i {
        font-size: 2.8rem;
    }

    .success-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .success-message {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .btn-success-ok {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    /* Adjust modal overlay on mobile to be less dark/more transparent? optional. usually standard dark is fine */
}






/*  9. DONATE PAGE STYLES */
/* No specific CSS needed now as it uses global page header and utilities. 
   Placeholder content uses standard text-center utilities. */

/* 10. GLOBAL UTILITIES & FLOATING WA */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.float-wa:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* 11. DEPARTMENTS PAGE STYLES (UPDATED)*/

/* Page Subtitle */
.page-subtitle {
    color: var(--white);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 5px;
    display: block;
}

/* Wrapper for spacing */
.departments-wrapper {
    background-color: var(--light-bg);
    background: #fdecec;
}

/* Alternating Grid Layout */
.dept-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

/* Card Base Styling */
.dept-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* --- TEXT BOX --- */
.dept-text-box {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dept-tag {
    display: inline-block;
    background-color: rgba(93, 50, 124, 0.1);
    color: var(--primary-mauve);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.dept-text-box h2 {
    color: var(--primary-mauve);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 15px;
}

.dept-text-box p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* --- IMAGE BOX --- */
.dept-img-box {
    flex: 1;
    height: 400px;
}

.dept-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* THE ALTERNATING LAYOUT LOGIC */

/* DESKTOP: ODD CARDS (Img Left, Text Right) */
@media (min-width: 769px) {
    .dept-card.odd {
        flex-direction: row-reverse;
    }
}

/* DESKTOP: EVEN CARDS (Text Left, Img Right) */
@media (min-width: 769px) {
    .dept-card.even {
        flex-direction: row;
    }
}

/* MOBILE: ALL CARDS (Text Top, Img Bottom) */
@media (max-width: 768px) {
    .dept-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
        padding-bottom: 0;
    }

    .dept-img-box {
        width: 380px;
        height: 100%;
        margin-bottom: 0;
        order: 2;
    }

    .dept-text-box {
        order: 1;
        width: 100%;
        padding: 0;
    }

    .dept-text-box h2 {
        font-size: 1.5rem;
    }
}

/* 9. DONATE PAGE STYLES */

/* --- Hero Banner ---*/
.donate-hero {
    /* Uses same Hero background logic as other pages */
    background: linear-gradient(rgba(93, 50, 124, 0.85), rgba(93, 50, 124, 0.85)),
        url('images/donate-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

.donate-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-give {
    background-color: var(--accent-green);
    color: var(--primary-mauve);
    border-color: var(--accent-green);
}

.btn-give:hover {
    background-color: var(--white);
    color: var(--primary-mauve);
}

/* --- Why Give Section --- */
.why-give-section {
    background-color: var(--white);
}

.method-grid {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr;
    gap: 40px;
    align-items: start;
    /* Aligns top */
}

/* --- Payment Methods Cards --- */
.method-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent-green);
    transition: var(--transition);
    text-align: center;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(93, 50, 124, 0.15);
}

.method-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(197, 214, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-mauve);
    font-size: 2rem;
}

.method-card h3 {
    color: var(--primary-mauve);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.method-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
}

.method-list {
    list-style: none;
    text-align: left;
    padding-left: 20px;
    display: inline-block;
}

.method-list li {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.method-list i {
    color: var(--accent-green);
    font-size: 0.8rem;
}

/* Featured Card (Mobile Money) */
.featured-card {
    background-color: #f0f8f0;
    border-color: var(--accent-green);
    border-width: 6px;
    padding: 40px 30px;
}

.featured-card .method-icon-wrapper {
    background-color: var(--accent-green);
    color: var(--primary-mauve);
    width: 90px;
    height: 90px;
    font-size: 2.5rem;
}

/* Bank Details */
.bank-details {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    margin-top: 20px;
    border: 1px dashed #ddd;
}

.bank-details strong {
    color: var(--primary-mauve);
    font-weight: 700;
}

/* --- Donation Form --- */
.donate-form-wrapper {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    align-self: stretch;
}

.form-header {
    color: var(--primary-mauve);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-intro {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* --- Responsive Donate Page --- */
@media (max-width: 900px) {
    .method-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .donate-form-wrapper {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .donate-hero h1 {
        font-size: 1.8rem;
    }

    .method-grid {
        gap: 20px;
    }

    .method-card {
        padding: 25px;
    }
}