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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: 'Pyunji R';
    src: local('Pyunji R'), local('PyunjiR-HM');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Navigation Bar */
.navbar {
    background-color: #e6dfd5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: multiply;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #8b7355;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    padding: 10px 0;
    margin-top: 5px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f8f8f8;
    color: #8b7355;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 50vw;
    max-height: 600px;
    min-height: 400px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-background-image {
    filter: blur(5px);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 1;
    padding-left: 35px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-dot.active {
    background: #fff;
}

.hero-quote {
    color: #fff;
    max-width: 520px;
    padding-right: 20px;
}

.hero-quote-text {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    word-break: keep-all;
}

.hero-quote-ref {
    margin-top: 16px;
    font-size: 22px;
    font-weight: 500;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.worship-schedule {
    background-color: transparent;
    padding: 28px;
    border-radius: 8px;
    max-width: 650px;
}

.worship-schedule h2 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 40px;
    row-gap: 8px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.schedule-item:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 500;
    color: #fff;
    font-size: 24px;
    text-align: left;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.5);
}

.service-time {
    color: #fff;
    font-size: 23px;
    text-align: left;
    min-width: 90px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.5);
}

.service-venue {
    color: #fff;
    font-size: 23px;
    text-align: left;
    min-width: 70px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.5);
}


/* Intro Section */
.intro-section {
    padding: 100px 0;
    background-color: #f8f8f8;
}

.section-tight-bottom {
    padding-bottom: 50px;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-main {
    font-size: 24px;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 500;
}

.intro-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.intro-title {
    margin-bottom: 30px;
}

.section-title {
    font-size: 36px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title-tight {
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #8b7355;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
    font-size: 16px;
}

.read-more-btn:hover {
    background-color: #6b5a42;
}

/* Worship Media Section */
.worship-media-section {
    padding: 100px 0;
    background-color: #fff;
}

.section-tight {
    padding-top: 50px;
    padding-bottom: 50px;
}

.worship-media-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 30px;
    background-color: transparent;
    border: none;
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

.worship-video-link {
    width: 100%;
    max-width: 600px;
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.worship-video-link img {
    width: 100%;
    display: block;
}

.worship-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.3s;
}

.worship-video-link:hover .worship-video-play {
    background: rgba(0, 0, 0, 0.3);
}

.worship-info-content .worship-media-card {
    margin-top: 30px;
}

.worship-media-text {
    font-size: 20px;
    color: #666;
    font-weight: 500;
}

.youtube-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background-color: #c53030;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.youtube-link-btn:hover {
    background-color: #a32626;
    transform: translateY(-2px);
}

/* Notice Section */
.notice-section {
    padding: 100px 0;
    background-color: #fff;
}

.section-tight-top {
    padding-top: 50px;
}

.notice-list {
    max-width: 800px;
    margin: 0 auto;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f8f8f8;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #8b7355;
}

a.notice-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.notice-item.featured {
    background-color: #e6dfd5;
    border-left-color: #6b5a42;
}

.notice-item.featured .notice-title,
.notice-item.featured .notice-date {
    font-weight: 700;
}

.notice-date {
    font-size: 14px;
    color: #8b7355;
    font-weight: 500;
    min-width: 60px;
    margin-right: 20px;
}

.notice-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.band-action {
    max-width: 800px;
    margin: 28px auto 0;
    text-align: center;
}

.naver-band-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background-color: #03c75a;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.naver-band-btn:hover {
    background-color: #02b350;
    transform: translateY(-2px);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

.footer-section p {
    font-size: 15px;
    line-height: 2;
    color: #e0e0e0;
}

.footer-icons {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
}

.footer-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-icons img {
    height: 38px;
    width: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #b0b0b0;
    font-size: 14px;
}

/* Page Section Styles (for subpages) */
.page-section {
    padding: 80px 0;
    min-height: 60vh;
    background-color: #fff;
}

.page-title {
    font-size: 36px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 2px;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 16px;
    color: #555;
}

.page-content h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    margin-top: 40px;
}

.page-content p {
    margin-bottom: 15px;
}

.pyunji-font {
    font-family: 'Pyunji R', 'Noto Sans KR', sans-serif;
    font-size: 18px;
}

.double-space-after {
    margin-bottom: 30px;
}

.impact-line {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 30px 0 20px;
    letter-spacing: 0.5px;
}

.impact-quote {
    font-size: 18px;
    color: #555;
    font-weight: 500;
    text-align: center;
    margin: 30px auto;
    max-width: 800px;
    line-height: 1.8;
}

.motto-image {
    display: block;
    max-width: 680px;
    width: 100%;
    margin: 30px auto 15px;
}

.greeting-message {
    max-width: 560px;
    margin: 45px auto;
    text-align: left;
}

.greeting-message p {
    margin-bottom: 12px;
}

.signature {
    margin-top: 24px;
    font-weight: 600;
    text-align: right;
    color: #2c3e50;
}

/* Collapsible gallery sections */
.gallery-section {
    margin-bottom: 40px;
}

.gallery-section:last-child {
    margin-bottom: 0;
}

.gallery-section .gallery-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 24px;
    color: #2c3e50;
    padding: 16px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s;
    margin: 0;
    border: none;
}

.gallery-section-title:focus {
    outline: 2px solid #8b7355;
    outline-offset: 2px;
}

.gallery-section-title:hover {
    background-color: #e6dfd5;
}

.gallery-section-title.collapsed .gallery-section-toggle {
    transform: rotate(-90deg);
}

.gallery-section-toggle {
    font-size: 14px;
    color: #8b7355;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
}

.gallery-section-content {
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.gallery-section-content.collapsed {
    max-height: 0 !important;
    overflow: hidden;
}

.gallery-section-content:not(.collapsed) {
    max-height: 5000px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.gallery-section-content .gallery-grid {
    padding-top: 24px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

/* Video Container Styles */
.video-container {
    max-width: 1000px;
    margin: 40px auto;
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.map-container {
    max-width: 1000px;
    margin: 30px auto 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Staff Page Styles */
.staff-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.staff-member {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.staff-image {
    width: 200px;
    height: 200px;
}

.staff-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-info h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.staff-info p {
    font-size: 16px;
    color: #666;
}

/* Worship Page Styles */
.worship-page-section {
    padding: 80px 0;
    background-color: #fff;
}

.worship-schedule-section,
.worship-info-section {
    margin-bottom: 60px;
}

.worship-section-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.worship-schedule-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.worship-info-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-size: 16px;
    color: #555;
}

.worship-info-content p {
    margin-bottom: 20px;
}

.worship-schedule-table-wrap {
    max-width: 640px;
    margin: 0 auto 40px;
}

.worship-schedule-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.worship-schedule-table td {
    border: none;
    padding: 16px 20px;
    font-size: 18px;
    color: #555;
    vertical-align: middle;
}

.worship-schedule-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
    width: 45%;
}

.worship-schedule-table td:last-child {
    text-align: right;
}

.worship-schedule-table tr:not(.worship-schedule-featured) {
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.worship-schedule-table tr:not(.worship-schedule-featured):last-child {
    border-bottom: none;
}

.worship-schedule-featured td {
    background: linear-gradient(135deg, #e6dfd5 0%, #f5f0e8 100%);
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    padding: 22px 24px;
    border-radius: 0;
}

.worship-schedule-featured td:first-child {
    border-radius: 12px 0 0 12px;
    font-size: 22px;
    font-weight: 700;
}

.worship-schedule-featured td:last-child {
    border-radius: 0 12px 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #8b7355;
}

.worship-channel-action {
    text-align: center;
    margin-top: 10px;
}

/* Responsive Design */
/* Tablet and below (mobile menu) */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

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

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background-color: #f8f8f8 !important;
        padding: 0 !important;
        margin-top: 0 !important;
        display: none;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        border-bottom: 1px solid #e8e8e8;
    }

    .dropdown-menu a {
        padding: 12px 40px;
        color: #555;
    }

    .hamburger {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 0;
    }

    .worship-schedule {
        margin-left: 0;
        margin-right: 14px;
        padding: 21px;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        border-radius: 8px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        height: 60vw;
        min-height: 400px;
    }

    .hero-content {
        justify-content: flex-start;
        padding-left: 15px;
        padding-right: 0;
        align-items: center;
    }

    .worship-schedule {
        margin-left: 0;
        margin-right: 15px;
        padding: 20px 15px;
        max-width: calc(100% - 30px);
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        border-radius: 8px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo a {
        font-size: 20px;
    }

    .logo-img {
        height: 32px;
    }

    .worship-schedule h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hero-quote-text {
        font-size: 28px;
    }

    .hero-quote-ref {
        font-size: 16px;
    }

    .hero-dots {
        bottom: 16px;
    }

    .schedule-item {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 6px 0;
    }

    .service-name {
        font-size: 18px;
        font-weight: 600;
        min-width: auto;
        margin-bottom: 3px;
    }

    .service-time {
        font-size: 16px;
        min-width: auto;
        padding-left: 0;
    }

    .service-venue {
        font-size: 16px;
        min-width: auto;
        padding-left: 0;
    }

    .service-time::before {
        content: "시간: ";
        font-weight: 500;
    }

    .service-venue::before {
        content: "장소: ";
        font-weight: 500;
    }

    .section-title {
        font-size: 28px;
    }


    .video-container {
        margin: 30px auto;
        padding-bottom: 56.25%;
    }

    .intro-section {
        padding: 60px 0;
    }

    .intro-main {
        font-size: 20px;
    }

    .intro-description {
        font-size: 16px;
    }

    .worship-media-card {
        padding: 50px 20px;
        gap: 20px;
    }

    .worship-media-text {
        font-size: 17px;
    }

    .youtube-link-btn {
        width: 100%;
        max-width: 280px;
        font-size: 16px;
        padding: 12px 24px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-section {
        padding: 60px 0;
    }

    .impact-line {
        font-size: 20px;
        margin: 24px 0 16px;
    }

    .impact-quote {
        font-size: 16px;
    }

    .signature {
        text-align: left;
    }

    .worship-section-title {
        font-size: 24px;
    }

    .worship-schedule-box {
        padding: 30px 20px;
    }

    .staff-member {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }

    .staff-image {
        margin: 0 auto;
        width: 150px;
        height: 150px;
    }

    .notice-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .notice-date {
        margin-bottom: 8px;
        margin-right: 0;
    }

    .notice-title {
        font-size: 15px;
    }

    .gallery-section-title {
        font-size: 20px;
        padding: 14px 16px;
    }

    .gallery-section-content .gallery-grid {
        padding-top: 20px;
        gap: 16px;
    }

    .worship-schedule-table td {
        font-size: 16px;
        padding: 14px 12px;
    }

    .worship-schedule-featured td:first-child {
        font-size: 18px;
    }

    .worship-schedule-featured td:last-child {
        font-size: 16px;
    }

    .naver-band-btn {
        width: 100%;
        max-width: 320px;
        font-size: 16px;
        padding: 12px 24px;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-section p {
        font-size: 14px;
        line-height: 1.8;
    }

    .footer-icons {
        justify-content: flex-start;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-section {
        height: 70vw;
        min-height: 380px;
    }

    .hero-content {
        justify-content: flex-start;
        padding-left: 12px;
        padding-right: 0;
        align-items: center;
    }

    .worship-schedule {
        padding: 16px 12px;
        margin-left: 0;
        margin-right: 12px;
        max-width: calc(100% - 24px);
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        border-radius: 8px;
    }

    .worship-schedule h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .hero-quote-text {
        font-size: 24px;
    }

    .hero-quote-ref {
        font-size: 14px;
    }

    .hero-quote {
        max-width: 320px;
    }

    .service-name {
        font-size: 16px;
    }

    .service-time,
    .service-venue {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .page-title {
        font-size: 24px;
    }

    .intro-main {
        font-size: 18px;
    }

    .intro-description {
        font-size: 15px;
    }

    .impact-line {
        font-size: 18px;
    }

    .motto-image {
        max-width: 360px;
    }

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

    .gallery-section {
        margin-bottom: 24px;
    }

    .gallery-section-title {
        font-size: 18px;
        padding: 12px 14px;
    }

    .gallery-section-title-text {
        flex: 1;
        word-break: keep-all;
    }

    .gallery-section-content .gallery-grid {
        padding-top: 16px;
        gap: 12px;
    }

    .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 32px;
    }

    .lightbox {
        padding: 20px 12px;
    }

    .worship-media-card {
        padding: 40px 16px;
    }

    .worship-media-text {
        font-size: 16px;
    }
}

/* Desktop view - ensure proper display */
@media (min-width: 969px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background-color: transparent !important;
        width: auto !important;
        box-shadow: none !important;
        padding: 0 !important;
        left: auto !important;
        top: auto !important;
    }

    .hamburger {
        display: none !important;
    }

    .nav-item {
        width: auto !important;
        border-bottom: none !important;
    }

    .nav-link {
        padding: 10px 0 !important;
        width: auto !important;
    }
}
