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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-image {
    height: 85px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c5aa0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2c5aa0;
    transition: width 0.3s ease;
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    top: 100%;
    left: 0;
    z-index: 1001;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: url('../images/church-photo.png') center center / cover no-repeat;
    padding: 96px 0 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: #2c5aa0;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #f3f4f6;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-info {
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

.info-item i {
    color: #ffffff;
    margin-right: 12px;
    width: 20px;
}

/* Remove blue highlight inside hero heading for better contrast */
.hero .highlight {
    color: #ffffff;
}

/* Hide standalone image when using background hero */
.hero-image {
    display: none;
}

/* Improve button contrast on dark hero */
.hero .btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.hero .btn-secondary:hover {
    background-color: #ffffff;
    color: #1e3d6f;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.hero-social-link:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.9);
    border-color: transparent;
}

.hero-social-link[aria-label="Facebook"]:hover {
    color: #1877f2;
}

.hero-social-link[aria-label="Instagram"]:hover {
    color: #e1306c;
}

.hero-social-link[aria-label="YouTube"]:hover {
    color: #ff0000;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #2c5aa0;
    color: white;
}

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

.btn-secondary {
    background-color: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-secondary:hover {
    background-color: #2c5aa0;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-outline:hover {
    background-color: #2c5aa0;
    color: white;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    border: 2px dashed #adb5bd;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.image-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* New image styles */
.hero-photo,
.about-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-photo:hover,
.about-photo:hover {
    transform: scale(1.02);
}

/* Sermon Section */
.sermon-section {
    padding: 80px 0;
    background-color: #fff;
}

.sermon-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.sermon-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container lite-youtube {
    border-radius: 12px;
}

.playlist-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.playlist-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sermon-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.sermon-info p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Activities Section */
.activities-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.activities-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.activities-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.calendar-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.calendar-header h3 {
    color: #333;
    font-size: 1.5rem;
}

.view-all {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #1e3d6f;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
    min-width: 60px;
}

.event-date .day {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.event-date .date {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
}

.event-details h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.event-details p {
    color: #666;
    font-size: 0.9rem;
}

.quick-links h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #2c5aa0;
}

.quick-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.quick-link span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #2c5aa0;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #bdc3c7;
    margin: 0;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #2c5aa0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .nav-menu a {
        margin: 1rem 0;
        font-size: 1.1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.3rem;
    }

    .sermon-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .activities-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-photo,
    .about-photo {
        height: 400px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .logo-image {
        height: 68px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .sermon-section h2,
    .activities-section h2,
    .about-text h2 {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}