﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', sans-serif;
}

/* ?곷떒諛??ㅼ젙 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 110px;
    z-index: 1000;
    background: transparent;
    transition: 0.4s ease;
    display: flex;
    align-items: center;
}

header.scrolled {
    background: rgba(120, 120, 120, 0.6);
    /* Lighter gray transparent background on scroll */
    backdrop-filter: blur(8px);
    height: 85px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ... existing logo styles ... */

header.scrolled .logo a {
    color: white;
}

/* ... existing nav styles ... */

header.scrolled .nav-item>a {
    color: white;
    text-shadow: none;
}

/* ... existing mobile btn ... */

header.scrolled .mobile-menu-btn {
    color: #333;
}

/* 濡쒓퀬 ?쇱そ, 硫붾돱 ?ㅻⅨ履???諛곗튂 */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
    height: 100%;
}

.logo a {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo {
    margin-left: -80px;
    width: 250px;
    /* Fixed width to prevent nav items from shifting */
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo a img.header-logo {
    height: 100px;
    /* Increased from 85px */
    width: auto;
    display: block;
}



/* 硫붾돱 ?ㅽ??? ?ㅻⅨ履??뺣젹 諛??볦? 媛꾧꺽 */
#main-nav {
    display: flex;
    gap: 10px;
    list-style: none;
    height: 100%;
    margin-right: 100px;
    margin-left: 20px;
}

.nav-item {
    position: relative;
    /* Dropdown now aligns to each item individually */
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item>a {
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
    /* Slightly reduced to prevent overlap */
    /* 湲???ш린 議곗젙 */
    font-weight: 600;
    /* Medium-Bold ?ъ씠 */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    /* 諛곌꼍 ?꾩뿉????蹂댁씠寃?*/
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    padding: 8px 16px;
}

header.scrolled .nav-item>a {
    color: white;
    text-shadow: none;
}

.nav-item>a:hover {
    color: #2e7d32;
}

header.scrolled .nav-item>a:hover {
    color: #2e7d32;
}

/* ?쒕∼?ㅼ슫: ?ъ쑀 ?덈뒗 ?ш린 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    /* Align left edge of dropdown to left edge of parent */
    background: white;
    display: none;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    /* Rounded bottom corners only */
    padding: 15px 0;
    border-top: 3px solid #2C5E4F;
    /* Top border accent */
    /* Removed to fix hover gap issue */
    top: 100%;
    /* Ensure it connects directly */
    list-style: none;
    /* Removed bullet points */
}

/* Add invisible bridge for hover safety per item */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown li a {
    color: #444;
    padding: 10px 25px;
    display: block;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: default;
    line-height: 1.3;
    /* Adjusted for two lines */
}

.sub-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #777;
    display: block;
    margin-top: 4px;
}

.dropdown li a:hover .sub-label {
    color: #eee;
    /* Lighten on hover */
}

.dropdown li a:hover {
    background: #2e7d32;
    /* Deep Green background on hover */
    color: white;
    /* White text on hover */
}

/* 紐⑤컮??硫붾돱 踰꾪듉 (湲곕낯 ?④?) */
.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: #333;
}

/* --- 諛섏쓳??(紐⑤컮?? --- */
@media (max-width: 1100px) {
    #main-nav {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        transition: 0.4s;
        padding-top: 50px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    #main-nav.active {
        right: 0;
    }

    #main-nav .nav-item>a {
        color: #333;
        padding: 20px;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-btn {
        display: block;
    }

    .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        width: 100%;
    }
}

/* ?щ씪?대뜑 諛곌꼍 */
#hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 1.5s ease-in-out;
}

.hero-content h1 {
    font-size: 5rem;
    color: white;
    text-align: center;
}

/* Main Page Modernization Overrides */

/* Hero Section - Full Screen & Video */
#hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

video.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darken for text readability */
    z-index: -1;
}

.hero-content {
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
}

.hero-content h1 {
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.6rem;
    color: white;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    /* Increased size */
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Section (News & Sermons) */
.main-content-section {
    padding: 80px 5%;
    background-color: #f9f9f9;
}

.container-split {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.nextgen-intro strong {
    font-weight: 800;
}

.nextgen-info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.nextgen-info-box {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    transition: transform 0.3s ease, border-left 0.3s ease;
    border-left: 4px solid transparent;
}

.nextgen-info-box:hover {
    transform: translateX(5px);
    border-left-color: #2C5E4F;
}

.nextgen-info-box i {
    font-size: 2rem;
    color: #2C5E4F;
    width: 45px;
    text-align: center;
    margin-bottom: 0;
}

.nextgen-info-box h3 {
    font-size: 1.35rem;
    color: #2C5E4F;
    font-weight: 800;
    min-width: 140px;
    padding: 10px 22px;
    background: #f0f7f4;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 0;
}

.nextgen-info-box p {
    flex: 1;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 0;
}

.main-column {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #2C5E4F;
    /* Deep Green */
    font-weight: 700;
}

.section-header .sub-text {
    font-size: 1rem;
    color: #aaa;
    font-weight: 300;
    margin-left: 10px;
}

.more-link {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: 0.3s;
}

.more-link:hover {
    color: #2C5E4F;
    font-weight: bold;
}

/* News Cards */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 12px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.news-card:hover {
    background: #fdfdfd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #eee;
    transform: translateX(5px);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f0f5f3;
    border-radius: 12px;
    color: #2C5E4F;
}

.news-date .day {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.news-date .month {
    font-size: 0.8rem;
    font-weight: 500;
}

.news-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.news-info p {
    font-size: 0.9rem;
    color: #999;
}

/* Sermon Cards */
.sermon-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sermon-card {
    cursor: pointer;
    transition: 0.3s;
}

.sermon-card:hover .play-overlay {
    opacity: 1;
}

.sermon-card:hover h3 {
    color: #2C5E4F;
}

.sermon-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.nextgen-photo-container {
    width: 100%;
    height: 300px;
    /* Reduced half size */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sermon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.play-overlay i {
    font-size: 3rem;
    color: white;
}

.sermon-info h3 {
    font-size: 1.1rem;
    color: #444;
    font-weight: 600;
    line-height: 1.4;
}

/* Footer */
#main-footer {
    background: #222;
    color: white;
    padding: 20px 0 10px;
    /* Reduced padding from 30px to 20px */
}

#main-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Changed from flex-start to center */
    flex-wrap: wrap;
    gap: 20px;
    /* Reduced gap from 30px to 20px */
}

.footer-logo-section {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 200px;
}

.footer-logo-img {
    height: 180px;
    /* Reduced from 270px to 180px */
    width: auto;
    filter: brightness(0) invert(1) opacity(0.8);
    /* Make the logo white/light for dark footer */
    transition: 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section.location {
    text-align: left;
}

.footer-section.contact {
    text-align: right;
}

.footer-section h3 {
    font-size: 1.15rem;
    /* Reduced from 1.3rem */
    color: #81c784;
    margin-bottom: 8px;
    /* Reduced from 10px */
}

.footer-section p {
    color: #ccc;
    font-size: 1rem;
    /* Reduced from 1.1rem */
    line-height: 1.5;
    /* Reduced from 1.6 */
}

.footer-copyright {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    /* Reduced from 20px */
    padding-top: 8px;
    /* Reduced from 10px */
    border-top: 1px solid #333;
    font-size: 0.85rem;
    /* Reduced from 0.9rem */
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .container-split {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

/* Featured Gallery Section */
.featured-gallery-section {
    padding: 60px 40px;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

.gallery-grid-featured {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item-featured {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item-featured .img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item-featured:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item-featured:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Responsive for Gallery */
@media (max-width: 1000px) {
    .gallery-grid-featured {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid-featured {
        grid-template-columns: 1fr;
    }
}

/* Pastor Greeting Section */
.pastor-greeting-header {
    max-width: 1100px;
    margin: 40px auto 0;
    border-bottom: 2px solid #2C5E4F;
    padding-bottom: 10px;
}

.pastor-greeting-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 30px 0 60px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

.pastor-photo-wrapper {
    flex: 0 0 350px;
    padding-top: 25px;
    /* Alignment with greeting-body top padding */
    overflow: hidden;
    border-radius: 12px;
    height: 450px;
}

.pastor-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.greeting-content-wrapper {
    flex: 1;
}

.greeting-title {
    font-size: 2.2rem;
    color: #2C5E4F;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

/* Removed side line */

.greeting-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    padding: 25px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.greeting-body p {
    margin-bottom: 20px;
}

.greeting-body p:last-child {
    margin-bottom: 0;
}

.greeting-signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.signature-name-kr {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 3.5rem;
    color: #000;
    margin-bottom: 0;
    line-height: 1;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.signature-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 12px;
}

.signature-name-en {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #444;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .pastor-greeting-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px;
    }

    .pastor-photo-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin-bottom: 40px;
    }

    .greeting-body {
        border-left: none;
        border-top: 5px solid #2C5E4F;
        border-radius: 0 0 15px 15px;
    }

    .greeting-signature {
        align-items: center;
    }
}

/* Subpage Layout Styles */
.subpage-banner {
    width: 100%;
    height: 35vh;
    min-height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    margin-top: 0;
    background: #2C5E4F;
    /* Fallback */
}

.subpage-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.subpage-banner-bg .bg-half {
    flex: 1;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.subpage-banner h1 {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    text-align: center;
}

.subpage-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    padding: 60px 2%;
    gap: 40px;
}

.subpage-sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.5rem;
    color: #2C5E4F;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #D4C5B0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 1.1rem;
    background: #f8f9f8;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-menu li a:hover {
    background: #f0f5f3;
    color: #2C5E4F;
    transform: translateX(5px);
}

.sidebar-menu li a:hover .sub-label {
    color: #2C5E4F;
    opacity: 0.7;
}

.sidebar-menu li a.active .sub-label {
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-menu li a.active {
    background: #2C5E4F;
    color: white;
    box-shadow: 0 5px 15px rgba(44, 94, 79, 0.2);
}

.subpage-main-content {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Responsive Subpage */
@media (max-width: 1024px) {
    .subpage-container {
        flex-direction: column;
        gap: 40px;
    }

    .subpage-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }

    .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }

    .subpage-banner h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .sidebar-menu {
        grid-template-columns: 1fr;
    }

    .subpage-banner {
        height: 25vh;
    }

    .subpage-banner h1 {
        font-size: 2rem;
    }
}

/* Admin Login Button Styling */
.admin-login-btn {
    display: inline-block;
    background: #444;
    color: white !important;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    margin-top: 15px;
}

.admin-login-btn:hover {
    background: #666;
    color: white !important;
}

/* Team Section Styles */
.team-container {
    padding: 20px 0;
}

.team-category-section {
    margin-bottom: 60px;
}

.team-category-title {
    font-size: 1.8rem;
    color: #2C5E4F;
    border-left: 5px solid #2C5E4F;
    padding-left: 15px;
    margin-bottom: 30px;
    font-weight: 800;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
}

.team-member-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 180px;
    height: 240px;
    /* Fixed dimensions for all team members */
    flex-shrink: 0;
    overflow: hidden;
    /* Ensure images don't overflow the container */
}

/* Elder section uses default member-photo size (180px x 240px) */

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Automatically crop and center images to fit container */
    object-position: center;
    /* Center the image within the container */
    display: block;
    /* Remove any inline spacing */
}

.member-info {
    flex: 1;
    padding: 22px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-primary {
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
    margin-right: 10px;
}

.member-position {
    font-size: 1.05rem;
    color: #2C5E4F;
    font-weight: 600;
}

.member-secondary {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.8;
}

.member-secondary div {
    margin-bottom: 6px;
}

.member-secondary i {
    width: 24px;
    color: #aaa;
    margin-right: 6px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-member-card {
        flex-direction: column;
    }

    .member-photo {
        width: 100%;
        height: 280px;
    }

    .member-secondary {
        font-size: 1.2rem;
    }
}

/* Worship Schedule Table Styles */
.worship-schedule-container {
    padding: 20px 0;
}

.worship-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.worship-table thead {
    background: linear-gradient(135deg, #2C5E4F 0%, #3a7a64 100%);
    color: white;
}

.worship-table thead th {
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    border-bottom: 3px solid #D4C5B0;
}

.worship-table tbody tr {
    transition: all 0.3s ease;
}

.worship-table tbody tr.schedule-row-0 {
    background: #f8faf9;
}

.worship-table tbody tr.schedule-row-1 {
    background: #ffffff;
}

.worship-table tbody tr:hover:not(.schedule-note-row) {
    background: #e8f5f1;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(44, 94, 79, 0.1);
}

.worship-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
}

.schedule-name {
    font-weight: 700;
    color: #2C5E4F;
    font-size: 1.1rem;
}

.schedule-time {
    color: #555;
    font-weight: 600;
}

.schedule-location {
    color: #666;
}

.schedule-note-row {
    background: #fff9e6 !important;
}

.schedule-note-row:hover {
    background: #fff3cc !important;
}

.schedule-note {
    padding: 12px 20px !important;
    font-size: 0.95rem;
    color: #d97706;
    font-style: italic;
}

.schedule-note i {
    margin-right: 8px;
    color: #f59e0b;
}

@media (max-width: 768px) {

    .worship-table thead th,
    .worship-table tbody td {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .schedule-name {
        font-size: 1rem;
    }
}

/* Worship Schedule Notes (outside table) */
.schedule-notes {
    margin-top: 20px;
    padding: 0;
}

.schedule-note-item {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 1rem;
    color: #92400e;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.schedule-note-item i {
    color: #f59e0b;
    margin-right: 10px;
    font-size: 1.1rem;
}





/* Online Offering Styles (Refined) */
.offering-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.offering-subtitle {
    font-size: 1.3rem;
    color: #2C5E4F;
    font-weight: 600;
    margin-bottom: 30px;
}

.offering-bank-info {
    background: linear-gradient(135deg, #2C5E4F 0%, #3a7a65 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 12px;
    margin: 0 auto 25px auto;
    width: 100%;
    /* Wide layout */
    max-width: 800px;
    box-shadow: 0 8px 30px rgba(44, 94, 79, 0.25);
    text-align: left;
    /* Left align text */
}

.offering-bank-info .bank-line {
    margin: 4px 0;
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 4px;
}

.offering-bank-info .bank-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.offering-bank-info .label {
    font-size: 1rem;
    font-weight: 700;
    margin-right: 15px;
    min-width: 60px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.offering-bank-info .value {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.offering-accounts-wrapper {
    margin: 0 auto 30px auto;
    width: 100%;
    max-width: 800px;
}

.offering-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.offering-table thead {
    background: #f0f4f3;
    color: #2C5E4F;
    border-bottom: 2px solid #2C5E4F;
}

.offering-table th {
    padding: 18px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
}

.offering-table td {
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
}

.offering-table .account-row-0 {
    background: #fcfcfc;
}

.offering-table .account-purpose {
    font-weight: 700;
    color: #2C5E4F;
    text-align: left;
    padding-left: 40px;
}

.offering-table .account-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

.offering-note {
    background: #fff9e6;
    border-left: 4px solid #f0ad4e;
    padding: 15px 20px;
    border-radius: 8px;
    color: #856404;
    font-size: 0.95rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.offering-note i {
    margin-right: 10px;
    color: #f0ad4e;
}

@media (max-width: 768px) {
    .offering-bank-info {
        padding: 20px;
    }

    .offering-bank-info .value {
        font-size: 1.1rem;
    }

    .offering-table th,
    .offering-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .offering-table .account-purpose {
        padding-left: 15px;
    }
}

/* Location Page Styles */
.location-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.location-photo-wrapper {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    animation: fadeInUp 0.7s ease-out;
}

.location-photo-wrapper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    transform: scale(var(--base-scale, 1));
}

.location-photo-wrapper:hover img {
    transform: scale(calc(var(--base-scale, 1) * 1.05));
}

.map-wrapper {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    animation: fadeInUp 0.8s ease-out;
}

.location-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #f0f5f3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #2C5E4F;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-content .info-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
    line-height: 1.5;
}

.directions-btn-wrapper {
    text-align: center;
    margin-top: 20px;
    animation: fadeInUp 1.2s ease-out;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #2C5E4F;
    color: white !important;
    text-decoration: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(44, 94, 79, 0.2);
}

.directions-btn:hover {
    background: #1e4136;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(44, 94, 79, 0.3);
}

.directions-btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .location-info-grid {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        height: 350px;
    }

    .directions-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 25px;
    }
}

/* Next Gen Detail Page Styles */
.nextgen-detail-container {
    max-width: 1100px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.nextgen-header {
    text-align: left;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nextgen-page-title {
    font-size: 2.5rem;
    color: #2C5E4F;
    font-weight: 800;
    margin-bottom: 20px;
}

.nextgen-intro {
    font-size: 1.4rem;
    line-height: 1.7;
    color: #444;
    font-weight: 500;
}

.nextgen-photo-container {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nextgen-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nextgen-photo-container:hover img {
    transform: scale(1.02);
}

.nextgen-info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.nextgen-info-box {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    transition: transform 0.3s ease, border-left 0.3s ease;
    border-left: 4px solid transparent;
}

.nextgen-info-box:hover {
    transform: translateX(5px);
    border-left-color: #2C5E4F;
}

.nextgen-info-box i {
    font-size: 2rem;
    color: #2C5E4F;
    width: 45px;
    text-align: center;
    margin-bottom: 0;
}

.nextgen-info-box h3 {
    font-size: 1.35rem;
    color: #2C5E4F;
    font-weight: 800;
    min-width: 140px;
    padding: 10px 22px;
    background: #f0f7f4;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 0;
}

.nextgen-info-box p {
    flex: 1;
    font-size: 1.25rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 0;
}

.verse-text {
    font-style: italic;
    color: #2C5E4F;
    font-weight: 500;
}

@media (max-width: 900px) {
    .nextgen-photo-container {
        height: 350px;
    }
}

/* Mission List Styles */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.mission-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mission-card.no-photo {
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfb 100%);
}

.mission-content-centered {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mission-icon {
    font-size: 3rem;
    color: #a5d6a7;
    margin-bottom: 5px;
}

.mission-name-large {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2C5E4F;
    margin: 0;
}

.mission-ministry-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 1.15rem;
    font-weight: 700;
}

.mission-field-tag {
    font-size: 1.2rem;
    color: #555;
    margin-top: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Map Markers */
.world-map-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.world-map-image {
    width: 100%;
    height: auto;
    display: block;
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    color: #e91e63;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.marker-label {
    display: block;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 4px;
    white-space: nowrap;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Back Button Style */
.btn-back-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: #2C5E4F;
    color: white;
    border: 1px solid #2C5E4F;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(44, 94, 79, 0.3);
    margin-bottom: 20px;
}

.btn-back-list:hover {
    background-color: #1e4036;
    color: white;
    border-color: #1e4036;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(44, 94, 79, 0.5);
}

.btn-back-list i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.btn-back-list:hover i {
    transform: translateX(-3px);
}