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

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-size: 16px;
}

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

/* Navigation */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    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: 160px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo .logo {
    height: 125px;
    width: auto;
}

.nav-logo .church-name {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: rgb(50, 162, 68);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
}

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

.dropdown-menu li {
    padding: 0;
}

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

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: rgb(50, 162, 68);
}

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

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

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

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

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

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    max-width: 600px;
    margin-left: auto;
    margin-right: 0;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-time {
    font-size: 1.5rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

.service-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    margin-bottom: 60px;
}

.service-info-btn:hover {
    color: rgb(50, 162, 68);
    border-bottom-color: rgb(50, 162, 68);
}

.arrow {
    transition: transform 0.3s ease;
}

.service-info-btn:hover .arrow {
    transform: translateX(5px);
}

.featured-section {
    margin-top: 40px;
}

.featured-label {
    color: #999;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.featured-section h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.featured-section h2:hover {
    color: rgb(50, 162, 68);
}

.featured-section h2 a {
    color: inherit;
    text-decoration: none;
}

.featured-section h2 a:hover {
    color: rgb(50, 162, 68);
}

.featured-section h3 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.featured-details {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.4;
}

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

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
}

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

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 0;
}

@media (max-width: 1200px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.stat-card {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    width: auto;
    height: auto;
    display: block;
    flex: none;
}

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

.stat-card h3 {
    color: rgb(50, 162, 68);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1;
}

.stat-card p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legacy stat styles for backwards compatibility */
.stat {
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    font-weight: 600;
    color: rgb(50, 162, 68);
    margin-bottom: 10px;
}

.stat p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Ministries Section */
.ministries {
    padding: 80px 0;
    background: white;
}

.ministries h2 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 600;
}

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

/* Carousel Container */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    padding: 0 20px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .ministries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.ministry-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    width: auto;
    flex: none;
}

.ministry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgb(50, 162, 68);
}

.ministry-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    filter: none;
}

.ministry-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.ministry-card p {
    color: #666;
    line-height: 1.6;
}

/* Desktop carousel wrapper - should behave like normal flow */
.carousel-wrapper {
    overflow: visible;
}

/* Desktop - Hide carousel navigation and ensure normal grid behavior */
.carousel-nav {
    display: none;
}

.ministries .carousel-wrapper,
.get-involved .carousel-wrapper {
    overflow: visible;
}

/* Carousel Navigation */
.carousel-nav {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    background: rgb(50, 162, 68);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgb(40, 132, 58);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: rgb(50, 162, 68);
}

/* Leadership Section */
.leadership {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.leadership h2 {
    text-align: center;
    color: #333;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 600;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.leader-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgb(50, 162, 68);
}

.leader-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.leader-title {
    color: rgb(50, 162, 68);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.leader-card p:last-child {
    color: #666;
    line-height: 1.6;
}

/* Featured Sermons Section */
.featured-sermons {
    padding: 80px 0;
    background: #f8f9fa;
}

.featured-sermons h2 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 600;
}

.featured-sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.featured-sermon-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.featured-sermon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgb(50, 162, 68);
}

.featured-sermon-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.featured-sermon-card h3 a {
    color: inherit;
    text-decoration: none;
}

.featured-sermon-card h3:hover {
    color: rgb(50, 162, 68);
}

.featured-sermon-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.featured-sermon-speaker {
    font-weight: 600;
    color: rgb(50, 162, 68);
}

.featured-sermon-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-sermon-audio {
    width: 100%;
    margin: 15px 0;
}

.featured-sermon-video {
    margin: 15px 0;
}

.featured-sermon-video iframe,
.featured-sermon-video video {
    width: 100%;
    border-radius: 4px;
}

.featured-sermon-scripture {
    background: #f8f9fa;
    padding: 10px 15px;
    border-left: 4px solid rgb(50, 162, 68);
    margin: 15px 0;
    font-style: italic;
    color: #666;
}

.featured-sermon-series {
    display: inline-block;
    background: rgb(50, 162, 68);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 15px;
}

.sermons-cta {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid rgb(50, 162, 68);
    color: rgb(50, 162, 68);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline:hover {
    background: rgb(50, 162, 68);
    color: white;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.home-contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 600;
}

.contact-detail {
    margin-bottom: 30px;
}

.contact-detail h3 {
    color: rgb(50, 162, 68);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-detail p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-logo .logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo .church-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.footer-text {
    color: #ccc;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
}

.footer-bottom p {
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
}

/* Sunday Call to Action Section */
.sunday-cta {
    background: linear-gradient(135deg, rgb(50, 162, 68) 0%, rgb(40, 132, 58) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sunday-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.sunday-cta .container {
    position: relative;
    z-index: 2;
}

.sunday-cta h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sunday-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-times {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.service-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.service-time .icon {
    font-size: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: white;
    color: rgb(50, 162, 68);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: rgb(50, 162, 68);
}

.church-address {
    font-size: 1rem;
    opacity: 0.8;
}

/* Location Section */
.location {
    padding: 80px 0;
    background: #f8f9fa;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-info h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 600;
}

.location-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-detail {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.location-detail strong {
    color: #333;
}

.location-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Get Involved Section */
.get-involved {
    padding: 80px 0;
    background: white;
}

.get-involved h2 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 600;
}

.get-involved .section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .involvement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .ministries-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .involvement-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.involvement-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    width: auto;
    flex: none;
}

.involvement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgb(50, 162, 68);
}

.involvement-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.involvement-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.involvement-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.involvement-card .btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid rgb(50, 162, 68);
    color: rgb(50, 162, 68);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.involvement-card .btn-outline:hover {
    background: rgb(50, 162, 68);
    color: white;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        height: 120px;
    }
    
    .nav-logo .logo {
        height: 80px;
    }
    
    .hero {
        margin-top: 120px;
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 60px 40px;
        max-width: 500px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .ministries-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .featured-sermons-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .carousel-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 80px;
    }
    
    .nav-logo .logo {
        height: 50px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
        padding: 20px 0;
        z-index: 999;
        pointer-events: none;
    }

    .nav-menu.active {
        left: 0;
        pointer-events: auto;
    }

    .nav-item {
        margin: 10px 0;
        padding: 0 20px;
    }
    
    .nav-link {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
    }
    
    .dropdown-menu a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hamburger {
        display: flex;
        background: none;
        border: none;
        padding: 5px;
        z-index: 1001;
    }
    
    .bar {
        background-color: #333;
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #333;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #333;
    }

    .hero {
        margin-top: 80px;
        min-height: 80vh;
    }

    .hero-content {
        padding: 40px 20px;
        max-width: 100%;
        margin: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-time {
        font-size: 1.2rem;
    }

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

    .about-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .stat-card {
        width: 100%;
        max-width: none;
        min-width: auto;
        padding: 25px 20px;
        border-radius: 15px;
        margin-right: 0;
    }

    .stat-card h3 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .stat-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .stat h3 {
        font-size: 2rem;
    }

    /* Mobile Carousel Styles */
    .carousel-container {
        overflow: hidden;
        position: relative;
        margin: 0 -10px;
    }
    
    .carousel-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        touch-action: pan-x;
    }
    
    .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .ministries .carousel-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        touch-action: pan-x;
    }
    
    .ministries .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .ministries-grid {
        display: flex;
        gap: 15px;
        padding: 0 15px 0 15px;
        min-width: max-content;
        width: max-content;
        overflow: visible;
    }

    .ministry-card {
        flex: 0 0 calc(85vw);
        max-width: 280px;
        min-width: 260px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-right: 0;
    }

    .carousel-nav {
        display: none;
    }

    .featured-sermons-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 0 15px 0 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        width: 100%;
        touch-action: pan-x;
    }
    
    .featured-sermons-grid::-webkit-scrollbar {
        display: none;
    }

    .featured-sermon-card {
        flex: 0 0 calc(85vw);
        max-width: 300px;
        min-width: 280px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .get-involved .carousel-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        touch-action: pan-x;
    }
    
    .get-involved .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .involvement-grid {
        display: flex;
        gap: 15px;
        padding: 0 15px 0 15px;
        min-width: max-content;
        width: max-content;
        overflow: visible;
    }

    .involvement-card {
        flex: 0 0 calc(85vw);
        max-width: 250px;
        min-width: 230px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-right: 0;
    }

    .leadership-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 0 15px 0 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        touch-action: pan-x;
    }
    
    .leadership-grid::-webkit-scrollbar {
        display: none;
    }

    .leader-card {
        flex: 0 0 calc(80vw);
        max-width: 220px;
        min-width: 200px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .location-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .location-info h2 {
        font-size: 2rem;
    }

    .sunday-cta h2 {
        font-size: 2rem;
    }

    .service-times {
        flex-direction: column;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-logo .church-name {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-time {
        font-size: 1.1rem;
    }

    .about-text h2,
    .ministries h2,
    .leadership h2,
    .contact-info h2 {
        font-size: 1.8rem;
    }

    .about-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .stat-card {
        width: 100%;
        max-width: none;
        min-width: auto;
        padding: 25px 20px;
        border-radius: 15px;
        margin-right: 0;
    }

    .stat-card h3 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .stat-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .ministry-card {
        flex: 0 0 calc(85vw);
        max-width: 260px;
        padding: 30px 20px;
    }

    .featured-sermon-card {
        flex: 0 0 calc(85vw);
        max-width: 280px;
        padding: 25px 20px;
    }

    .involvement-card {
        flex: 0 0 calc(85vw);
        max-width: 230px;
        padding: 30px 20px;
    }

    .leader-card {
        flex: 0 0 calc(80vw);
        max-width: 200px;
        padding: 25px 20px;
    }

    .sunday-cta h2 {
        font-size: 1.8rem;
    }

    .sunday-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .stat-card {
        width: 100%;
        max-width: none;
        min-width: auto;
        padding: 20px 18px;
    }

    .stat-card h3 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .stat-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .ministry-card {
        flex: 0 0 calc(85vw);
        max-width: 240px;
    }

    .featured-sermon-card {
        flex: 0 0 calc(85vw);
        max-width: 260px;
    }

    .involvement-card {
        flex: 0 0 calc(85vw);
        max-width: 210px;
    }

    .leader-card {
        flex: 0 0 calc(80vw);
        max-width: 180px;
    }

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

/* Utility Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* Focus States for Accessibility */
.nav-link:focus,
.service-info-btn:focus,
.carousel-btn:focus,
.carousel-dot:focus {
    outline: 2px solid rgb(50, 162, 68);
    outline-offset: 2px;
}

/* Smooth scrolling for carousel */
.carousel-container {
    scroll-behavior: smooth;
}

/* Touch indicators */
@media (hover: none) and (pointer: coarse) {
    .ministry-card:hover,
    .featured-sermon-card:hover,
    .involvement-card:hover,
    .leader-card:hover,
    .stat-card:hover {
        transform: none;
    }
    
    .btn-outline:hover,
    .cta-btn:hover {
        transform: none;
    }
}