/* --- 1. GLOBAL STYLES & VARIABLES --- */
:root {
    --color-primary-start: #6A3FDB;
    --color-primary-end: #2B3A8E;
    --gradient-primary: linear-gradient(90deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
    --gradient-secondary: linear-gradient(135deg, #8A63F8 0%, #5A58E6 100%);

    --color-dark: #2c2c2c;
    --color-grey: #6c757d;
    --color-light: #ffffff;
    --bg-light: #f7f8fa;
    --shadow-soft: 0px 10px 30px rgba(0, 0, 0, 0.07);
    --radius: 16px;

    --font-family: 'Inter', sans-serif;
}

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

html, body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--color-grey);
    margin-bottom: 1rem;
}

a { text-decoration: none; }

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary-start);
    color: var(--color-light);
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s ease-in-out;
}

.skip-link:focus {
    top: 0;
    outline: none;
}


.page-section { padding: 6rem 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}
.section-title.align-left { text-align: left; }

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* --- 2. HEADER & NAVIGATION --- */
.main-header {
    background: var(--color-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #eeeeee;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 35px;
    width: auto;
}

.logo-placeholder {
    display: none;
}

.nav-links-main {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links-main a {
    color: var(--color-dark);
    font-weight: 500;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-links-main a:hover {
    color: var(--color-primary-start);
}

.nav-links-main a.active {
    font-weight: 700;
    color: var(--color-primary-start);
    border-bottom-color: var(--color-primary-start);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-give-link {
    color: var(--color-dark);
    font-weight: 500;
}

.nav-give-link:hover {
    color: var(--color-primary-start);
}

.menu-burger { display: none; }


/* --- 3. BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-light);
}
.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--color-light);
}
.btn-light {
    background: var(--color-light);
    color: var(--color-primary-start);
}
.btn-lang {
    padding: 7px 18px;
    font-size: 0.85rem;
    background: var(--gradient-primary);
    color: var(--color-light);
}

/* Focus states for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--color-primary-start);
    outline-offset: 3px;
    border-radius: 4px;
}


/* --- 4. HERO SECTION --- */
.hero-section {
    background-image: linear-gradient(to right, rgba(43, 58, 142, 0.6), rgba(106, 63, 219, 0.6)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding-top: calc(70px + 2rem);
    padding-bottom: 6rem;
    color: var(--color-light);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-content {
    align-items: center;
    padding-top: 3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-light);
    margin-bottom: 1.5rem;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.2);
}

.hero-content h1 {
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: inherit;
    font-size: 3.5rem;
}
.hero-content .subtitle-hero {
    font-size: 1.3rem;
    color: rgba(255,255,255, 0.8);
    display: block;
    margin-top: 0;
}
.hero-content .tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255, 0.9);
    margin-bottom: 3rem;
}

.hero-info-cards {
    display: flex;
    gap: 1.5rem;
    position: absolute;
    bottom: -40px; /* Adjusted to a negative value to push cards lower */
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%; /* Ensure it doesn't exceed parent width */
    justify-content: center; /* Center the flex items within this container */
    flex-wrap: nowrap; /* Keep cards on a single line */
}
.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    flex-shrink: 0;
}
.info-card img {
    height: 28px;
}


/* --- 5. GRID & CARD STYLES --- */
.grid-2-col, .grid-3-col { display: grid; gap: 2rem; }
.grid-2-col { grid-template-columns: repeat(2, 1fr); }
.grid-3-col { grid-template-columns: repeat(3, 1fr); }
.slim-gap { gap: 1rem; }

/* Campaign Cards */
.campaign-card {
    padding: 2.5rem;
    border-radius: var(--radius);
    color: var(--color-light);
    background: var(--gradient-primary);
}
.campaign-card.style-2 { background: var(--gradient-secondary); }

.campaign-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.campaign-card h3 { margin-bottom: 0.5rem; }
.campaign-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

/* New Visitor Cards with Images */
.visitor-card {
    background: var(--color-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.visitor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.visitor-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.visitor-card-content {
    padding: 1.5rem;
}
.visitor-card-content h4 {
    margin-bottom: 0.5rem;
}

/* About Us Section */
.grid-2-col-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.feature-list {
    list-style: none;
    margin-top: 2rem;
}
.feature-list li {
    padding-left: 30px;
    position: relative;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-light);
    background: var(--gradient-primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Message & Partner Cards */
.message-card, .partner-card {
    background: var(--color-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.message-card:hover, .partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.message-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.message-content { padding: 1.5rem; }
.message-content h4 { margin-bottom: 0.5rem; }
.message-link {
    font-weight: 700;
    color: var(--color-primary-start);
}
.partner-card {
    padding: 2rem;
    text-align: center;
}
.partner-icon {
    height: 60px;
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--color-light);
    margin: 2% auto;
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.ways-to-give {
    max-width: 600px;
    text-align: left;
}

.close {
    color: var(--color-grey);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--color-dark);
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 1rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cash-app-handle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-start);
    margin: 1rem 0;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.modal-content p {
    margin-bottom: 1rem;
    color: var(--color-grey);
}

.bank-transfer-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.bank-transfer-section h4 {
    color: var(--color-primary-start);
    margin-bottom: 1rem;
    text-align: center;
}

.bank-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.qr-instruction {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.qr-codes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.qr-card {
    background-color: var(--color-light);
    border: 2px solid var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.qr-card h5 {
    color: var(--color-primary-start);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.qr-code {
    width: 150px;
    height: 150px;
    margin: 1rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-email, .cash-app-handle {
    font-weight: 600;
    color: var(--color-dark);
    margin: 0.5rem 0;
}

.qr-scan-text {
    font-size: 0.8rem;
    color: var(--color-grey);
    margin: 0.5rem 0;
}

.qr-label {
    font-weight: 700;
    color: var(--color-primary-start);
    margin: 0.5rem 0 1rem 0;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}
.disclaimer {
    margin-top: 2rem;
    font-size: 0.8rem;
}

/* --- 6. FOOTER --- */
.main-footer {
    background: #222;
    color: var(--color-grey);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.anchor-scripture-card {
    margin: 0 auto 2rem auto;
    max-width: 600px;
    text-align: center;
}

.scripture-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scripture-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.social-links a {
    color: var(--color-light);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-primary-start);
}

/* --- 7. RESPONSIVE DESIGN --- */

/* Desktop Event Card - Show on larger screens */
@media (min-width: 993px) {
    .desktop-event {
        display: block;
    }
    
    .mobile-event-card {
        display: none;
    }
}

@media (max-width: 992px) {
    .navbar { height: 60px; }
    .logo img { height: 30px; }
    .nav-links-main a { font-size: 0.9rem; padding: 0.2rem 0; }
    .nav-actions { gap: 1rem; }
    .btn-lang { padding: 6px 16px; font-size: 0.8rem; }

    .hero-content h1 { font-size: 3rem; }
    .hero-content .subtitle-hero { font-size: 1.2rem; }
    .hero-content .tagline { font-size: 1rem; }
    .hero-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .hero-section {
        padding-top: calc(60px + 1.5rem);
        padding-bottom: 100px;
    }
    .hero-info-cards {
        bottom: 1.5rem;
    }
    .info-card {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    .info-card img { height: 24px; }

    .logo-placeholder { display: none; }

    .nav-links-main, .nav-actions {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--color-light);
        box-shadow: var(--shadow-soft);
        padding: 1rem 0;
    }

    .nav-links-main.nav-open,
    .nav-actions.nav-open {
        display: flex;
    }

    .nav-links-main li {
        margin: 0.5rem 0;
    }

    .nav-actions {
        padding-top: 0;
    }

    .navbar {
        justify-content: space-between;
        position: relative;
    }
    .logo {
        display: block;
    }

    .menu-burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .menu-burger span {
        width: 25px;
        height: 3px;
        background: var(--color-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .menu-burger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-burger.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-burger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .grid-2-col, .grid-3-col, .grid-2-col-about {
        grid-template-columns: 1fr;
    }
    .about-text { order: 2; }
    .about-image { order: 1; }
    .section-title.align-left { text-align: center; }
    
    /* Hide desktop event card on mobile */
    .desktop-event {
        display: none !important;
    }
    
    /* Show mobile event card on mobile */
    .mobile-event-card {
        display: block !important;
    }
}

@media (max-width: 768px) {
    /* Ensure mobile event card shows on smaller screens too */
    .desktop-event {
        display: none !important;
    }
    
    .mobile-event-card {
        display: block !important;
    }
    
    .hero-info-cards {
        position: static; /* Moved here from global scope */
        flex-direction: column;
        transform: none; /* Reset transform for static positioning */
        margin-top: 2rem;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }
    .info-card {
        width: 100%;
        max-width: 400px;
    }
    .hero-section {
        padding-bottom: 4rem;
    }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content .subtitle-hero { font-size: 1rem; }
    .hero-content .tagline { font-size: 0.9rem; }
    .hero-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    
    .modal-content {
        margin: 1% auto;
        max-height: 95vh;
        padding: 1rem;
    }
    
    .ways-to-give {
        max-width: 95%;
    }
    
    .qr-codes {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
    }
    
    
}

.english-content { display: block; }
.spanish-content { display: none; }

/* Add a little margin-top to the main to avoid overlap with fixed header */
main {
    flex-grow: 1;
    margin-top: 70px;
}
/* Re-adjust hero-section padding-top to account for the margin-top on main */
.hero-section {
    padding-top: 2rem;
}
/* Adjust hero content for vertical centering within the remaining space */
.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 6rem;
}

/* --- 8. EVENTS SECTION --- */
.event-card {
    background: var(--color-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

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

.event-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}

.event-content {
    padding: 2rem;
    text-align: center;
}

.event-content h3 {
    color: var(--color-primary-start);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.event-theme {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-dates {
    font-weight: 500;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
}

.event-speakers {
    color: var(--color-grey);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Mobile Event Card Styles */
.mobile-event-card {
    display: none;
    background: var(--color-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

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

.mobile-event-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}

.mobile-event-content {
    padding: 1.5rem;
    text-align: center;
}

.mobile-event-content h3 {
    color: var(--color-primary-start);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.mobile-event-theme {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.mobile-event-dates {
    font-weight: 500;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.mobile-event-speakers {
    color: var(--color-grey);
    margin-bottom: 1.5rem;
    font-style: italic;
    font-size: 0.9rem;
}

.mobile-register-btn {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 1rem;
}

/* --- 9. MINISTRIES SECTION --- */
.ministry-card {
    background: var(--color-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.ministry-card img {
    width: 100%;
    display: block; /* Prevents extra space below the image */
}
@media (min-width: 993px) {
  .grid-3-col .ministry-card:last-child:nth-child(3n + 1) {
    grid-column-start: 2;
  }
}


/* Ensure info cards are at the bottom of the hero section when not scrolled */
/* These rules were moved into the media query above for mobile screens */
/* .hero-info-cards {
    position: static;
    margin-top: auto;
    margin-bottom: 2rem;
} */
