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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

main {
    margin-top: 0;
    padding-top: 0;
}

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

/* Header Styles */
body.page-loaded .header {
    background: transparent !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

body.page-loaded .header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
}

/* Fallback for immediate load */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Top Left Logo - Separate from navigation */
.top-left-logo {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1200;
}

.top-left-logo .logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

/* Hide original logo in navigation on desktop */
.nav-wrapper .logo {
    display: none;
}

/* Desktop navigation styles - restore proper layout */
@media (min-width: 769px) {
    .main-nav .nav-list {
        display: flex !important;
        list-style: none;
        gap: 2rem;
        margin: 0;
        padding: 0;
        align-items: center;
    }
    
    .main-nav .nav-item {
        position: relative;
        margin: 0;
        padding: 0;
        width: auto;
    }
    
    .main-nav .nav-link {
        color: #fff !important;
        font-weight: 500 !important;
        padding: 0.5rem 0 !important;
        transition: all 0.3s ease !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
        font-size: 1rem !important;
        text-decoration: none !important;
        display: block !important;
        white-space: nowrap !important;
        border: none !important;
        margin: 0 !important;
        width: auto !important;
    }
    
    .header.scrolled .main-nav .nav-link {
        color: #333 !important;
        text-shadow: none !important;
    }
    
    .main-nav .nav-link:hover {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .header.scrolled .main-nav .nav-link:hover {
        color: #252629 !important;
    }
    
    /* Hide mobile submenus on desktop */
    .main-nav .mobile-submenu {
        display: none !important;
    }
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

.header.scrolled .logo-img {
    filter: none;
}

/* Base navigation styles */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header.scrolled .nav-link {
    color: #333 !important;
    text-shadow: none;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.header.scrolled .nav-link:hover {
    color: #252629 !important;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 2rem;
    min-width: 1000px;
    max-width: 1200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.header.scrolled .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0;
}

.dropdown-section {
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 12px;
    cursor: pointer;
    display: block;
    text-decoration: none !important;
}

.dropdown-section:hover {
    background: rgba(37, 38, 41, 0.05);
}

.dropdown-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.dropdown-section:last-child::after {
    display: none;
}

.dropdown-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
}

.dropdown-icon svg {
    width: 28px;
    height: 28px;
    stroke: #333;
    stroke-width: 1.5;
    fill: none;
}

.dropdown-section:hover .dropdown-icon svg {
    stroke: #252629;
}

.dropdown-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.dropdown-section p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.dropdown-section a {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
    padding: 0;
    transition: none;
}

.dropdown-section a:hover {
    text-decoration: none !important;
}

.dropdown-section:hover h3 {
    color: #252629;
}

.dropdown-section:hover p {
    color: #252629;
}

/* Remove all possible underlines */
.dropdown-section,
.dropdown-section a,
.dropdown-section:link,
.dropdown-section:visited,
.dropdown-section:hover,
.dropdown-section:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Additional specificity for link removal */
.dropdown-menu a,
.dropdown-menu a:link,
.dropdown-menu a:visited,
.dropdown-menu a:hover,
.dropdown-menu a:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.give-btn {
    background: rgb(255, 255, 255);
    color: rgb(40, 40, 40);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.give-btn:hover {
    background: #f8f9fa;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.header.scrolled .menu-toggle span {
    background: #333;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #1a1c1f;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

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

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

/* Hero Navigation */
.hero-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 1rem;
}

.hero-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav-btn.active,
.hero-nav-btn:hover {
    background: white;
}

/* Hero Arrows */
.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 2rem;
}

.hero-arrow-next {
    right: 2rem;
}

/* What's Happening Section */
.whats-happening {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.section-link {
    color: #252629;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #1a1c1f;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.event-date {
    text-align: center;
    min-width: 60px;
}

.event-month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.event-day {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.event-description {
    color: #666;
    margin-bottom: 0.5rem;
}

.event-time {
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 500;
}

/* Current Series Section */
.current-series {
    padding: 5rem 0;
    background: white;
}

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

.series-title {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.series-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.series-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.series-actions {
    display: flex;
    gap: 1rem;
}

.series-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Latest Content Section */
.latest-content {
    padding: 5rem 0;
    background: #f8f9fa;
}

.content-tabs {
    display: flex;
    gap: 1rem;
}

.tab-btn {
    background: transparent;
    border: 2px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: #252629;
    color: white;
    border-color: #252629;
}

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

.content-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.content-image {
    position: relative;
    height: 200px;
    background: #ddd;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(37, 38, 41, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.content-info {
    padding: 1.5rem;
}

.content-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.content-meta {
    font-size: 0.9rem;
    color: #007bff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.content-description {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

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

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

.social-link:hover {
    color: #007bff;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #666;
}

/* Page-specific Styles */
.page-hero {
    background: linear-gradient(135deg, #252629 0%, #1a1c1f 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 0;
    padding-top: 10rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Sermon Page Styles */
.sermon-filter {
    background: white;
    padding: 2rem 0;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 2px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #252629;
    color: white;
    border-color: #252629;
}

.sermon-grid-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.sermon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.sermon-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sermon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.sermon-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.sermon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(37, 38, 41, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(37, 38, 41, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.sermon-info {
    padding: 1.5rem;
}

.sermon-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.sermon-meta {
    font-size: 0.9rem;
    color: #007bff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.sermon-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.sermon-actions {
    display: flex;
    gap: 0.5rem;
}

.sermon-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Congregations Page Styles */
.congregations-intro {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.intro-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.intro-content p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.congregations-grid {
    padding: 4rem 0;
    background: #f8f9fa;
}

.congregation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.congregation-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.congregation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.congregation-image {
    height: 200px;
    overflow: hidden;
}

.congregation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.congregation-info {
    padding: 2rem;
}

.congregation-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.congregation-address {
    color: #666;
    margin-bottom: 1.5rem;
}

.congregation-times h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.congregation-times p {
    color: #666;
    margin-bottom: 0.3rem;
}

.congregation-times {
    margin-bottom: 1.5rem;
}

.congregation-description {
    color: #666;
    margin-bottom: 2rem;
}

.congregation-actions {
    display: flex;
    gap: 1rem;
}

.visit-us {
    padding: 4rem 0;
    background: white;
}

.visit-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.visit-content > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.visit-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.visit-feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.visit-feature p {
    color: #666;
}

/* Ministry Page Styles */
.life-stages {
    padding: 4rem 0;
    background: white;
}

.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.ministry-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ministry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ministry-image {
    height: 200px;
    overflow: hidden;
}

.ministry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ministry-content {
    padding: 2rem;
}

.ministry-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.ministry-age {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ministry-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.ministry-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.ministry-features li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.ministry-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.community-groups {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.groups-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.groups-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.groups-info ul {
    margin-bottom: 1rem;
}

.groups-info li {
    color: #666;
    margin-bottom: 0.5rem;
}

.groups-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.groups-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.special-ministries {
    padding: 4rem 0;
    background: white;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.special-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.special-card:hover {
    transform: translateY(-2px);
}

.special-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.special-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.ministry-contact {
    padding: 4rem 0;
    background: #252629;
    color: white;
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-actions .btn-primary {
    background: white;
    color: #252629;
}

.contact-actions .btn-primary:hover {
    background: #f8f9fa;
}

.contact-actions .btn-outline {
    border-color: white;
    color: white;
}

.contact-actions .btn-outline:hover {
    background: white;
    color: #252629;
}

/* Get Involved Page Styles */
.new-here {
    padding: 4rem 0;
    background: white;
}

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

.new-here-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.new-here-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.new-here-info p {
    color: #666;
    margin-bottom: 1rem;
}

.new-here-info ul {
    margin-bottom: 2rem;
}

.new-here-info li {
    color: #666;
    margin-bottom: 0.8rem;
}

.new-here-actions {
    display: flex;
    gap: 1rem;
}

.welcome-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.next-steps {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-2px);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #252629;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.step-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.baptism {
    padding: 4rem 0;
    background: white;
}

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

.baptism-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.baptism-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.baptism-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.baptism-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.membership {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.membership-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.membership-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.membership-info ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.membership-info ol li {
    color: #666;
    margin-bottom: 0.5rem;
}

.membership-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.membership-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.volunteer {
    padding: 4rem 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.volunteer-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.volunteer-card:hover {
    transform: translateY(-2px);
}

.volunteer-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.volunteer-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.volunteer-commitment {
    background: white;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    color: #007bff;
    font-size: 0.9rem;
}

.volunteer-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.volunteer-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.volunteer-cta p {
    color: #666;
    margin-bottom: 2rem;
}

.give {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.give-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.give-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.give-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.give-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Events Page Styles */
.page-header {
    background: linear-gradient(135deg, #252629 0%, #1a1c1f 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 0;
    padding-top: 10rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.events-content {
    padding: 4rem 0;
}

.event-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #252629;
    background: transparent;
    color: #252629;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #252629;
    color: white;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    gap: 1rem;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.event-item.past {
    opacity: 0.7;
}

.event-date-badge {
    background: #252629;
    color: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

.event-date-badge .event-month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.event-date-badge .event-day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: white;
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.event-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-time,
.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.event-time svg,
.event-location svg {
    opacity: 0.7;
}

.btn-outline {
    background: transparent;
    border: 2px solid #252629;
    color: #252629;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.load-more-section {
    text-align: center;
    margin-top: 2rem;
}

.no-events {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: #dc3545;
}

.error-message h3 {
    margin-bottom: 1rem;
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .series-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .series-name {
        font-size: 2.5rem;
    }
    
    .events-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .dropdown-menu {
        min-width: 300px;
        left: -100px;
    }
    
    .dropdown-content {
        grid-template-columns: 1fr;
    }
    
    .content-tabs {
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .series-name {
        font-size: 2rem;
    }
    
    .whats-happening,
    .current-series,
    .latest-content {
        padding: 3rem 0;
    }
    
    .event-card {
        padding: 1.5rem;
    }
}

/* Welcome Section Styles */
.welcome-section {
    padding: 6rem 0 0 0;
    background: #f8f9fa;
    overflow: hidden;
}

.welcome-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.welcome-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.welcome-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0;
}

.carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    animation: slideLeft 10s linear infinite;
    will-change: transform;
    padding-left: 2rem;
}

.carousel-slide {
    flex: 0 0 auto;
    margin-right: 2rem;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.carousel-slide:hover {
    transform: scale(1.02);
}

.carousel-image {
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Portrait images - standard size */
.slide-portrait .carousel-image {
    width: 300px;
    height: 400px;
}

/* Tall images - extra height */
.slide-tall .carousel-image {
    width: 280px;
    height: 480px;
}

/* Wide images - landscape orientation */
.slide-wide .carousel-image {
    width: 450px;
    height: 300px;
}

.carousel-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.carousel-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.carousel-text-left {
    left: 2rem;
}

.carousel-text-right {
    right: 2rem;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.welcome-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-section {
        padding: 4rem 0;
    }
    
    .welcome-title {
        font-size: 1.75rem;
    }
    
    .welcome-carousel {
        height: 300px;
        margin-top: 3rem;
    }
    
    .carousel-image {
        width: 250px;
        height: 300px;
    }
    
    .carousel-text {
        font-size: 0.875rem;
    }
}

/* Austin Stone Style Hero Section */
.page-structure-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Side Bars */
.side-bar {
    position: fixed;
    width: 120px;
    height: 100vh;
    top: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 0;
}

.side-bar.left-align {
    left: 0;
}

.side-bar:not(.left-align) {
    right: 0;
}

.page-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-title-container.right {
    align-items: flex-end;
    padding-right: 2rem;
}

.button.small.filled {
    background: white;
    color: #282828;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    writing-mode: horizontal-tb;
    text-align: center;
    min-width: 100px;
}

.button.lightest.small {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 100px;
}

.button.small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.divider.page-title {
    width: 20px;
    height: 2px;
    background: white;
    margin: 1rem 0;
}

/* Vertical text and divider styles for Austin Stone layout */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
}

.button.small.filled.vertical-text,
.button.lightest.small.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    min-width: auto;
    min-height: 80px;
    width: 50px;
    padding: 1rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

/* Austin Stone specific button colors */
.button.lightest.small.vertical-text {
    background-color: rgb(223, 223, 223);
    color: rgb(40, 40, 40);
    border-color: rgb(223, 223, 223);
}

.button.small.filled.vertical-text {
    background-color: rgb(51, 51, 51);
    color: rgb(255, 255, 255);
}

.page-title-container.vertical .divider.page-title {
    width: 30px;
    height: 2px;
    margin: 1rem 0;
}

.page-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0;
}

/* Progress Bar */
.scroll-bar-container {
    position: relative;
    width: 4px;
    height: 100px;
    margin: 2rem auto;
}

.left-side-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.left-side-bar.progress {
    background: rgba(255, 255, 255, 0.2);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

/* Hero Austin Stone Style */
.hero-austin {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.darken-light-images-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-grid {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 0 0 140px; /* 왼쪽 사이드바 너비(120px) + 작은 여백(20px) */
    padding-right: 140px; /* 오른쪽 사이드바를 위한 공간 */
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-content-wrapper {
    width: 100%;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
}

.text-container {
    text-align: left;
    color: white;
}

.home-hero-center-text {
    margin-bottom: 4rem;
}

.we-are-fixed {
    margin-right: 1rem;
    margin-bottom: 0;
}

.we-are-text {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.hero-text-animation-container {
    height: 8rem; /* 텍스트 높이만큼 설정 */
    overflow: hidden;
    position: relative;
}

.hero-animation-div {
    position: relative;
    animation: textSlideUp 9s infinite;
}

.church-name-text {
    font-size: 4.8rem; /* We Are(5rem)와 거의 비슷한 크기 */
    font-weight: 700;
    line-height: 1;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
    height: 8rem;
    display: flex;
    align-items: center;
}

@keyframes textSlideUp {
    0%, 30% {
        transform: translateY(0);
    }
    33%, 63% {
        transform: translateY(-8rem);
    }
    66%, 96% {
        transform: translateY(-16rem);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-action-wrapper {
    margin-top: 3rem;
}

.flex-horizontal {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.top-margin {
    margin-top: 2.5rem;
}

.button.white.ghost {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button.white.ghost:hover {
    background: white;
    color: #333;
}

/* Hero Top Left Banner */
.hero-top-left-banner {
    position: absolute;
    top: 12rem;
    left: 140px; /* We Are와 같은 왼쪽 정렬 */
    z-index: 100;
}

.hero-banner-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Jump Links */
.hero-jump-links {
    display: flex;
    gap: 8rem; /* Austin Stone처럼 간격 증가 */
    justify-content: center;
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.jump-link-container-div {
    text-align: left;
    position: relative;
    height: 6.5rem; /* 높이 고정 */
}

.jump-link-container {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0 0 0 2rem; /* 세로선을 위한 왼쪽 패딩 */
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* 왼쪽 세로선 */
.jump-link-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: white;
    opacity: 0.6;
}

/* 텍스트 클립 컨테이너 */
.featured-jumplink-text-clip {
    height: 70%;
    overflow: hidden;
    position: relative;
}

.featured-jumplink-text-container {
    transition: transform 0.3s ease;
    transform: translateY(0);
}

/* 호버 시 텍스트 위로 이동 */
.jump-link-container:hover .featured-jumplink-text-container {
    transform: translateY(-2.5rem); /* 한 줄 위로 이동 */
}

.hero-menu-link {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.8;
    line-height: 2.5rem;
}

.hero-menu-link-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 2.5rem;
}

/* 화살표 */
.featured-jumplink-arrow {
    position: absolute;
    opacity: 0;
    transition: all 0.3s ease;
}

.featured-jumplink-arrow.right {
    right: 0;
    top: 50%;
    transform: translateX(-2rem) translateY(-50%);
}

.featured-jumplink-arrow.down {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-2rem);
}

.jump-link-container:hover .featured-jumplink-arrow.right {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
}

.jump-link-container:hover .featured-jumplink-arrow.down {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.jump-link-arrow {
    width: 16px;
    height: 16px;
    color: white;
}

.jump-link-arrow path {
    stroke: white;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .side-bar {
        width: 80px;
    }
    
    .hero-grid {
        padding: 0 100px 0 100px;
    }
    
    .we-are-text {
        font-size: 4rem;
    }
    
    .church-name-text {
        font-size: 3.8rem; /* We Are(4rem)와 거의 비슷한 크기 */
        height: 6rem;
    }
    
    .hero-text-animation-container {
        height: 6rem;
    }
    
    .hero-jump-links {
        bottom: 6rem;
        gap: 6rem;
    }
    
    .jump-link-container-div {
        height: 6.5rem;
    }
    
    .jump-link-container:hover .featured-jumplink-text-container {
        transform: translateY(-2rem);
    }
    
    @keyframes textSlideUp {
        0%, 30% {
            transform: translateY(0);
        }
        33%, 63% {
            transform: translateY(-6rem);
        }
        66%, 96% {
            transform: translateY(-12rem);
        }
        100% {
            transform: translateY(0);
        }
    }
}

@media (max-width: 768px) {
    .side-bar {
        display: none;
    }
    
    .hero-grid {
        padding: 0 20px;
    }
    
    .we-are-text {
        font-size: 3rem;
    }
    
    .church-name-text {
        font-size: 1.5rem !important; /* 모바일에서 긴 텍스트가 화면에 맞도록 크기 축소 */
        height: 2.5rem !important;
        line-height: 1.2 !important; /* 줄 간격 조정 */
        max-width: calc(100vw - 40px) !important; /* 화면 너비에 맞춤 */
        word-break: keep-all !important; /* 단어 단위로 줄바꿈 */
        overflow: hidden !important; /* 넘치는 부분 숨김 */
    }
    
    .hero-text-animation-container {
        height: 2.5rem !important;
        overflow: hidden !important;
        width: calc(100vw - 40px) !important; /* 화면 너비에 맞춤 */
    }
    
    .hero-jump-links {
        flex-direction: column;
        gap: 2rem;
        bottom: 4rem;
    }
    
    .jump-link-container {
        padding: 0 0 0 1.5rem;
    }
    
    /* Mobile hero banner positioning */
    .hero-top-left-banner {
        left: 20px !important; /* We Are와 동일하게 좌측 정렬 */
        top: 8rem !important; /* 모바일에서 적절한 높이 조정 */
    }
    
    .hero-banner-logo {
        height: 35px !important; /* 모바일에서 크기 조정 */
    }
    
    @keyframes textSlideUp {
        0%, 30% {
            transform: translateY(0);
        }
        33%, 63% {
            transform: translateY(-2.5rem);
        }
        66%, 96% {
            transform: translateY(-5rem);
        }
        100% {
            transform: translateY(0);
        }
    }
}

/* Mobile Navigation Responsive Styles */
@media (max-width: 768px) {
    /* Show hamburger menu - 모든 디바이스 호환 */
    .menu-toggle {
        display: flex !important;
        z-index: 999999 !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        user-select: none !important;
        cursor: pointer;
        padding: 12px !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 50px !important;
        height: 50px !important;
        border-radius: 8px !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        /* Galaxy S25+ 크롬 브라우저 클릭 문제 해결 */
        pointer-events: auto !important;
        overflow: visible !important;
        transform: translateZ(0) !important;
        will-change: transform !important;
        -webkit-transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
    
    /* 터치 피드백 */
    .menu-toggle:active {
        background: rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Hamburger menu spans - 강제로 표시 */
    .menu-toggle span {
        display: block !important;
        width: 22px !important;
        height: 3px !important;
        background-color: #fff !important;
        background: #fff !important;
        margin: 2px 0 !important;
        transition: 0.3s;
        border-radius: 1px;
        pointer-events: none;
        -webkit-user-select: none;
        user-select: none;
        opacity: 1 !important;
        visibility: visible !important;
        content: "" !important;
        min-height: 3px !important;
        flex-shrink: 0 !important;
    }
    
    /* 햄버거 스팬이 확실히 보이도록 추가 스타일 */
    .menu-toggle span:nth-child(1),
    .menu-toggle span:nth-child(2),
    .menu-toggle span:nth-child(3) {
        background: #ffffff !important;
        background-color: #ffffff !important;
        width: 22px !important;
        height: 3px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        border: none !important;
        box-shadow: none !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    /* Galaxy S25+ 고해상도 디스플레이 전용 보정 */
    @media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 3dppx) {
        .menu-toggle span {
            background: #ffffff !important;
            background-color: #ffffff !important;
            color: #ffffff !important;
            border: 1px solid #ffffff !important;
            box-shadow: 0 0 0 1px #ffffff !important;
        }
    }
    
    /* Samsung Internet 브라우저 특별 대응 */
    @media screen and (-webkit-min-device-pixel-ratio: 0) {
        _::-webkit-full-page-media, _:future, :root .menu-toggle span {
            background: #ffffff !important;
            background-color: #ffffff !important;
            background-image: none !important;
            border: none !important;
            box-shadow: none !important;
            filter: brightness(1) contrast(1) !important;
            -webkit-filter: brightness(1) contrast(1) !important;
        }
    }
    
    /* Samsung Internet 강제 적용 */
    @supports ((-webkit-appearance: none) or (-moz-appearance: none)) {
        .menu-toggle span {
            background: white !important;
            background-color: white !important;
            background-image: none !important;
            border: none !important;
            box-shadow: none !important;
            filter: brightness(1) !important;
            -webkit-filter: brightness(1) !important;
            /* Samsung 브라우저 색상 강제 */
            color: white !important;
            fill: white !important;
            stroke: white !important;
        }
    }
    
    /* Galaxy S25+ 해상도 및 삼성 브라우저 대응 */
    @media screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) {
        .menu-toggle span {
            background: rgb(255, 255, 255) !important;
            background-color: rgb(255, 255, 255) !important;
            fill: white !important;
            stroke: white !important;
            -webkit-text-fill-color: white !important;
        }
    }
    
    /* Samsung Internet 브라우저 CSS 핵 */
    @media screen and (-webkit-min-device-pixel-ratio:0) and (min-color-index:0) {
        .menu-toggle span::-webkit-input-placeholder {
            background: #ffffff !important;
        }
        .menu-toggle span {
            background: #ffffff !important;
            background-color: #ffffff !important;
            background-image: linear-gradient(to right, #ffffff, #ffffff) !important;
        }
    }
    
    /* Samsung 브라우저 강제 클래스 */
    .menu-toggle span.samsung-fix,
    .menu-toggle span[data-samsung-fix="true"] {
        background: rgb(255, 255, 255) !important;
        background-color: rgb(255, 255, 255) !important;
        background-image: linear-gradient(to right, rgb(255, 255, 255), rgb(255, 255, 255)) !important;
        color: rgb(255, 255, 255) !important;
        fill: rgb(255, 255, 255) !important;
        stroke: rgb(255, 255, 255) !important;
        border: none !important;
        box-shadow: none !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    /* Hide main navigation by default on mobile */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #1a1a1a;
        z-index: 999998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: none;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    /* Show navigation when active */
    .main-nav.mobile-active {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }
    
    /* Hide nav list by default, show when mobile-active */
    .main-nav .nav-list {
        display: none;
    }
    
    .main-nav.mobile-active .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: left;
        padding: 2rem 0 4rem 0;
        width: 100%;
        margin: 0;
        list-style: none;
        min-height: calc(100vh - 80px);
        box-sizing: border-box;
    }
    
    /* Style navigation links for mobile ONLY */
    .main-nav.mobile-active .nav-link {
        font-size: 1.8rem !important;
        color: #fff !important;
        text-shadow: none !important;
        padding: 1rem 0 !important;
        margin: 0 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: calc(100% - 30px);
        display: block;
        font-weight: 500 !important;
        letter-spacing: 0.5px;
        text-align: left;
    }
    
    /* Ensure nav items are full width with no margin on mobile only */
    .main-nav.mobile-active .nav-item {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Remove border from last item on mobile */
    .main-nav.mobile-active .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    /* Mobile submenu items - only show on mobile when menu is active */
    .main-nav.mobile-active .mobile-submenu {
        display: block;
        margin-top: 0.2rem;
        margin-bottom: 0.5rem;
        padding-left: 0;
    }
    
    .main-nav.mobile-active .mobile-submenu a {
        display: block;
        font-size: 1.1rem !important;
        color: #999 !important;
        text-decoration: none !important;
        padding: 0.2rem 0 !important;
        margin: 0 15px !important;
        font-weight: 400 !important;
        border: none !important;
        width: calc(100% - 30px) !important;
    }
    
    .main-nav.mobile-active .mobile-submenu a:hover {
        color: #ccc !important;
    }
    
    /* Hide dropdown menus on mobile for now */
    .dropdown-menu {
        display: none !important;
    }
    
    /* Animate hamburger menu */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: #fff !important;
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: #fff !important;
    }
    
    /* Ensure hamburger icon is always visible when active */
    .menu-toggle.active {
        position: fixed;
        z-index: 1003;
    }
    
    /* Adjust navigation actions for mobile */
    .nav-actions {
        gap: 0.5rem;
    }
    
    .give-btn {
        display: none !important; /* 모바일에서 New Heart 버튼 숨김 */
    }
    
    /* Hide the separate top-left logo on mobile to avoid conflicts */
    .top-left-logo {
        display: none;
    }
    
    /* Show logo in header for mobile */
    .nav-wrapper .logo {
        display: block !important;
    }
    
    .nav-wrapper .logo .logo-img {
        height: 35px;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    }
    
    /* Logo on dark mobile menu background */
    .main-nav.mobile-active .logo .logo-img {
        filter: brightness(0) invert(1);
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-wrapper {
        padding: 0.75rem 0;
    }
    
    .main-nav .nav-link {
        font-size: 1.3rem !important;
    }
    
    .give-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .menu-toggle {
        padding: 1.2rem !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 3px;
    }
}
