* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Force Lato font for navigation */
.navbar,
.navbar ul,
.navbar li,
.navbar a,
.dropdown-toggle,
.dropdown-menu a {
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important;
    text-transform: uppercase !important;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
}

/* Navigation */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar li {
    position: relative;
}

.dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    display: block !important;
}

.navbar a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar a:hover,
.navbar a.active {
    color: #3498db;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 15px 0;
    margin-top: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
    display: block;
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 25px;
    display: block;
    color: #2c3e50;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f0f8ff;
    color: #3498db;
    padding-left: 30px;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease;
}

/* Hero Section - UPDATED TO SHOW FACES */
#hero {
    height: 65vh;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center; 
    justify-content: center;
    text-align: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* UPDATED: Shows more of the top to include faces, but not extreme */
    object-position: center 22%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay from about.css */
    background: linear-gradient(135deg,
        rgba(0, 102, 184, 0.85) 0%,
        rgba(0, 128, 200, 0.85) 25%,
        rgba(0, 160, 160, 0.85) 50%,
        rgba(0, 184, 142, 0.85) 75%,
        rgba(74, 201, 126, 0.85) 100%
    );
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    width: 90%;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.5rem; 
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    animation: fadeInUp 1s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 20px;
}

/* .hero-content h1::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: #3498db;
    margin: 15px auto 0;
    border-radius: 2px;
    animation: fadeIn 1.5s ease;
} */

.hero-content p {
    font-size: 22px;
    font-weight: 200;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    align-items: flex-end;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: translateY(0);
    text-decoration: none;
    pointer-events: auto;
}

.telegram-btn {
    background: white;
    width: auto;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.telegram-btn i {
    background: #0088cc;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.telegram-btn span {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.telegram-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top {
    background: #3498db;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #2980b9;
    transform: scale(1.1) translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Welcome Section */
#welcome-section {
    background: #f8f9fa;
    padding: 80px 20px;
}

.welcome-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: #3498db;
    margin: 0 auto 40px;
}

.service-info {
    margin-bottom: 40px;
}

.service-times,
.location {
    font-size: 16px;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 8px 0;
}

.welcome-text {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    max-width: 950px;
    margin: 0 auto;
}

/* Info Sections (What to Expect, Kids, Teens) */
.info-section {
    padding: 80px 20px;
    background: white;
}

.info-section:nth-child(even) {
    background: #f8f9fa;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* This is the key for alternating: reverse class flips the order */
.info-section.reverse .info-container {
    flex-direction: row-reverse;
}

.info-image {
    flex: 1;
    min-width: 0;
}

.info-image img {
    width: 100%;
    max-width: 500px;
    height: 350px;  
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Specific positioning for pastor image */
#what-to-expect .info-image img {
    object-position: center 10%;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.info-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

.info-content ul {
    list-style: none;
    padding: 0;
}

.info-content ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.info-content ul li::before {
    content: '•';
    color: #3498db; 
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Our Vision Section */
.our-vision {
    padding: 80px 20px;
    background: #f8f9fa; 
    text-align: center;
}

.our-vision-content {
    max-width: 800px; 
    margin: 0 auto;
}

.our-vision-content h3 {
    font-size: 32px; 
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.our-vision-content h3::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #3498db; 
    margin: 10px auto 0;
    border-radius: 2px;
}

.our-vision-content p {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 40px;
}

.learn-more-btn {
    display: inline-block; 
    padding: 12px 30px;
    background-color: #3498db; 
    color: #ffffff; 
    text-decoration: none; 
    font-weight: 600;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease; 
}

.learn-more-btn:hover {
    background-color: #2980b9; 
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        height: 70px;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-img {
        height: 40px;
    }

    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        transition: left 0.3s ease;
        padding: 20px;
        overflow-y: auto;
    }

    .navbar.active {
        left: 0;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .navbar li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .navbar a {
        padding: 15px 0;
        font-size: 16px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
        background: #f8f9fa;
        margin-top: 0;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .dropdown-menu a:hover {
        background: #e9ecef;
        padding-left: 20px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    /* MODIFIED: Changed height from calc(100vh - 70px) to 50vh */
    #hero {
        height: 50vh; 
        margin-top: 70px;
    }

    .hero-content h1 {
        font-size: 32px;
        padding-bottom: 15px;
    }

    .hero-content h1::after {
        margin-top: 10px;
        width: 80px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .floating-buttons {
        right: 15px;
        bottom: 20px;
        left: 15px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .telegram-btn {
        padding: 10px 15px;
        width: 100%;
        max-width: calc(100vw - 30px);
        justify-content: space-between;
    }

    .telegram-btn i {
        width: 40px;
        height: 40px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .telegram-btn span {
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .back-to-top {
        align-self: flex-end;
    }

    /* Mobile responsive for info sections */
    .info-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .info-section.reverse .info-container {
        flex-direction: column;
    }

    .info-section {
        padding: 60px 20px;
    }

    .info-content h3 {
        font-size: 24px;
    }

    .info-content p,
    .info-content ul li {
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .title-underline {
        width: 60px;
    }

    .our-vision {
        padding: 60px 20px;
    }

    .our-vision-content h3 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .info-content h3 {
        font-size: 22px;
    }

    .our-vision-content h3 {
        font-size: 24px;
    }

    .our-vision-content p {
        font-size: 16px;
    }
}