/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
}

/* Mobile menu toggle button - Make sure this is visible */
.mobile-menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile menu toggle active state */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* About Page Styles */
.page-header {
    background: linear-gradient(rgba(32, 27, 27, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/church.jpg') center/cover;
    color: white;
    padding: 6rem 0 3rem;
    text-align: center;
    margin-top: 70px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    margin-bottom: 1rem;
    color: white;
    padding: 0 1rem;
}

.page-header p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    opacity: 0.9;
    padding: 0 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-header h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.section-header p {
    color: #666;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
}

/* History Section */
.history-section {
    padding: 3rem 1rem;
    background-color: white;
}

.history-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.history-milestone {
    margin-bottom: 2rem;
}

.history-milestone h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.history-milestone p {
    color: #666;
    line-height: 1.8;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.history-image {
    width: 100%;
    position: relative;
    margin: 2rem 0;
}

.history-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Leadership Section */
.leadership-section {
    padding: 3rem 1rem;
    background-color: #f8f9fa;
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.leader-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.leader-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    color: white;
    font-size: 3rem;
}

.leader-role {
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.leader-bio {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.leader-email {
    color: #3498db;
    font-size: 0.9rem;
}

/* Faith Section */
.faith-section {
    padding: 3rem 1rem;
    background-color: white;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.belief-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.belief-card:hover {
    border-color: #2ecc71;
    transform: translateY(-3px);
}

.belief-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.belief-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.belief-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========== TABLET STYLES (768px and up) ========== */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none; /* Keep hidden on tablet/desktop if you have regular menu */
    }
    
    .page-header {
        padding: 8rem 0 4rem;
        margin-top: 80px;
    }
    
    .history-section,
    .leadership-section,
    .faith-section {
        padding: 4rem 2rem;
    }
    
    .history-content {
        flex-direction: row;
        gap: 3rem;
    }
    
    .history-milestones {
        flex: 2;
    }
    
    .history-image {
        flex: 1;
        margin-top: 0;
    }
    
    .history-image img {
        max-height: 500px;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .beliefs-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
}

/* ========== DESKTOP STYLES (1024px and up) ========== */
@media (min-width: 1024px) {
    .page-header {
        padding: 10rem 0 5rem;
    }
    
    .history-content {
        gap: 4rem;
    }
    
    .history-section,
    .leadership-section,
    .faith-section {
        padding: 5rem;
    }
}

/* ========== VERY SMALL MOBILE (360px and below) ========== */
@media (max-width: 360px) {
    .page-header {
        margin-top: 60px;
        padding: 4rem 1rem 2rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .history-section,
    .leadership-section,
    .faith-section {
        padding: 2rem 1rem;
    }
    
    .leader-card,
    .belief-card {
        padding: 1.2rem;
    }
    
    .leader-photo {
        width: 100px;
        height: 100px;
    }
}

/* ========== FIX FOR HORIZONTAL SCROLLING ========== */
body {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ========== MOBILE MENU VISIBILITY ========== */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex; /* Show on mobile */
    }
    
    /* Hide regular menu on mobile, show mobile menu */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
}