:root {
    --primary-color: #2c5282;
    /* Deep Blue - Trust */
    --secondary-color: #f7fafc;
    /* Very Light Blue/Gray */
    --accent-color: #c05621;
    /* Warm Brown/Orange for accents */
    --bg-warm: #fdfbf7;
    /* Warm Beige Background */
    --text-main: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --font-heading: 'Song Myung', serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-warm);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 0;
    scroll-margin-top: 100px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    display: block;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #1a365d;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Quick Menu */
.quick-menu {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2.5rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 200px;
}

.quick-link-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pastor-message {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    /* Center content in pastor message */
}

.pastor-photo {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    /* Circular photo */
    margin: 1.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--secondary-color);
}

.baptist-spirit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.spirit-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Worship Section */
.worship-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.service-table th,
.service-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.service-table th {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* News Section */
.news-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    background: #ccc;
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Location */
.map-container {
    height: 400px;
    background-color: #eee;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 20px 20px #ffffff;
    pointer-events: none;
    z-index: 5;
    border-radius: 12px;
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-grid,
    .news-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Map Image Zoom Interaction */
.map-container img {
    transition: transform 0.4s ease;
    cursor: zoom-in;
    transform-origin: center center;
}

.map-container img:hover {
    transform: scale(2.0) !important;
    z-index: 10;
}

.map-container img.zoom-reset {
    transform: scale(1) !important;
    cursor: default;
}