/* --- GLOBAL RESET & VARIABLES --- */
.mobile-toggle {
    display: none; /* HIDDEN BY DEFAULT ON ALL SCREENS */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #e6b91d;
    --color-primary-dark: #d1a005;
    --color-primary-light: #fff9e4;
    --color-meteorite: #ffdb85;
    --color-dark: #1d1e20;
    --color-gray: #727586;
    --color-gray-light: #f2f3f6;
    --color-light: #fff;
    --color-success: #00b090;
    --color-warning: #ffcd35;
}

/* --- NAVIGATION STYLES (DESKTOP & MOBILE BASE) --- */
nav {
    background: #0f2418;
    opacity: 0.87;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

nav a {
    display: block;
    color: var(--color-light);
    text-decoration: none;
    padding: 15px 25px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background-color: var(--color-primary);
}

/* --- OTHER STYLES (Header, Body, etc.) --- */
header {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/aes_home_bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no repeat;
    background-attachment: fixed;
    color: var(--color-light);
    padding: 290px 20px;
    opacity: 0.99;
    background-color: var(--color-dark);
    text-align: center;
}

header h1 {
    font-family: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 4.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-light);
}

header p {
    font-family: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 4.3rem;
    opacity: 0.95;
    margin-bottom: 15px;
}

.tagline {
    font-family: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--color-light);
    margin-top: 25px;
}

body {
    font-family: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--color-dark);
    background: #d1e8b8;
    line-height: 1.6;
}

main {
    font-family: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 60vh;
}

.hero-section {
    background: #0f2418;
    padding: 60px 40px;
    border-radius: 12px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-section h2 {
    font-size: 2.7rem;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    font-weight: 647; /* Note: 647 is not standard, usually 600 or 700 */
}

.hero-section p {
    font-size: 1.17rem;
    color: var(--color-light);
    max-width: 777px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

.bible-verse {
    font-style: bold;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 20px;
    font-size: 1.1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 7px 0;
}

.card {
    background: #0f2418;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--color-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.card p {
    color: var(--color-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.card ul {
    margin-left: 20px;
    color: var(--color-light);
}

.card li {
    margin-bottom: 8px;
}

.gallery-footer-section {
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    margin-top: 0;
}

.gallery-footer-container {
    max-width: 1170px;
    margin: 0 auto;
    background: #0f2418;
    padding: 50px 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.gallery-footer-container h3 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.gallery-footer-container p {
    font-size: 14px;
    color: var(--color-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.gallery-footer-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-primary);
    color: var(--color-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gallery-footer-button:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.gallery-footer-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

footer {
    background: #0f2418;
    color: var(--color-light);
    padding: 40px 20px;
    text-align: center;
    margin-top: 5px;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

footer a {
    color: var(--color-meteorite);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-primary-light);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    padding: 8px;
    background-color: var(--color-primary);
    border-radius: 5px;
    transition: background-color 0.3 ease, transform 0.3s ease;
}

.social-links a img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(1);
    transition: filter 0.3 ease;
}

.social-links a:hover {
    background-color: var(--color-light);
    transform: scale(1.1);
}

.social-links a:hover img {
    filter: brightness(1.2);
}

/* --- MOBILE STYLES (768px AND BELOW) --- */
@media (max-width: 768px) {
    
    /* --- CRITICAL FIX FOR BACKGROUND ZOOMING --- */
    header {
        background-attachment: scroll !important; /* Stops the zoom/jump glitch */
        background-position: center top !important; /* Locks image to top */
        background-size: cover !important;
        padding: 180px 20px; /* Adjusted padding for mobile view */
    }

    /* 1. The Custom Hamburger Button */
    .mobile-toggle {
        display: block !important;
        position: absolute;
        top: 18px;
        right: 25px;
        width: 30px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
        padding: 0;
        -webkit-appearance: none;
        appearance: none;
    }

    /* The 3 Lines (Bars) */
    .mobile-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-light);
        margin: 5px 0;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Transform to 'X' */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-primary);
    }
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-primary);
    }

    /* 2. The Menu List */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #121212;
        padding: 0;
        margin: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 100;
        border-top: 1px solid rgba(255,255,255,0.1);
        justify-content: center;
        align-items: center;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
    }

    nav ul.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        justify-content: center;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 18px 0;
        font-size: 18px;
        color: var(--color-light);
        text-decoration: none;
        transition: background-color 0.3s ease, color 0.3s ease;
        font-weight: 500;
    }

    nav a:hover {
        background-color: rgba(230, 185, 29, 0.1);
        color: var(--color-primary);
    }
    header h1 {
                font-size: 2rem;
            }
            
    header p {
                font-size: 1.3rem;
            }

    header .tagline {
                font-size: 1.07rem;
        }
    
    main .hero-section {
                padding: 40px 20px;
            }
            
    main .hero-section h2 {
                font-size: 1.8rem;
            }

    main .hero-section p {
                font-size: 1.15rem;
            }

    main .hero-section .bible-verse {
                font-size: 1.1rem;
            }
    main .content-grid {
                grid-template-columns: 1fr;
            }

/* Hide button on Desktop */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none !important;
    }
}
