/* ============================================
   DELIVERANCE CHURCH SOUTHERN BYPASS
   Professional Modern CSS with Gradients
   Version: 4.0 - Fixed Hero & Ministry Cards
   ============================================ */

/* ===== CSS RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
    /* Primary Colors */
    --primary: #2C5282;
    --primary-dark: #1A365D;
    --primary-light: #4299E1;
    --secondary: #D69E2E;
    --secondary-dark: #B7791F;
    --accent: #38B2AC;
    --accent-light: #4FD1C5;
    
    /* Gradient Colors */
    --gradient-faith: linear-gradient(135deg, #2C5282 0%, #4C51BF 100%);
    --gradient-prophetic: linear-gradient(135deg, #D69E2E 0%, #ED8936 100%);
    --gradient-healing: linear-gradient(135deg, #38B2AC 0%, #319795 100%);
    --gradient-hope: linear-gradient(135deg, #4C51BF 0%, #805AD5 100%);
    --gradient-joy: linear-gradient(135deg, #ED8936 0%, #DD6B20 100%);
    --gradient-peace: linear-gradient(135deg, #319795 0%, #2C7A7B 100%);
    
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #FAFAFA;
    --light: #F7FAFC;
    --light-gray: #EDF2F7;
    --gray: #A0AEC0;
    --dark-gray: #4A5568;
    --dark: #2D3748;
    --black: #1A202C;
    
    /* Utility Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --gradient-light: linear-gradient(135deg, var(--off-white) 0%, var(--light) 100%);
    --gradient-dark: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
    
    /* Typography - Updated with creative fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE ELEMENTS ===== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

p {
    margin-bottom: var(--space);
    color: var(--dark-gray);
    line-height: 1.7;
}

.center {
    text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes gentlePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.9; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6B46C1 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    z-index: 1000;
    transition: box-shadow 0.3s ease; /* Smooth transition for shadow */
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo__image img {
    height: 45px;
    width: auto;
    border-radius: var(--radius);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__main {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.logo__sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--space);
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: var(--space-sm) var(--space);
    border-radius: var(--radius);
    position: relative;
    transition: all var(--transition);
}

.nav__link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-2px);
}

.nav__link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--white);
    border-radius: var(--radius-full);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 8px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: var(--radius-full);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #6B46C1 0%, #5B21B6 100%);
    padding: var(--space);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 999;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: var(--space) var(--space-lg);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: var(--space-xs);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    padding-left: var(--space-2xl);
}

/* ===== HERO SECTION FIXED ===== */
.hero {
    position: relative;
    height: 900px;
    overflow: hidden;
    margin-top: 0px;
    z-index: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6B46C1 100%);
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero .container {
    padding: 0;
    max-width: 100%;
}

.slide {
    position: absolute;
    top: -10px; /* Extend beyond container */
    left: -10px; /* Extend beyond container */
    width: calc(100% + 20px); /* Compensate for extension */
    height: calc(100% + 20px); /* Compensate for extension */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
    filter: brightness(0.9);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1);
    pointer-events: none;
}

/* Fix slide overlays - allow clicks to pass through */
.slide::before,
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.slide:nth-child(1)::before {
    background: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.3) 0%, 
        rgba(44, 82, 130, 0.2) 50%,
        transparent 100%);
}

.slide:nth-child(2)::before {
    background: linear-gradient(135deg, 
        rgba(214, 158, 46, 0.25) 0%, 
        rgba(237, 137, 54, 0.2) 100%);
}

.slide:nth-child(3)::before {
    background: linear-gradient(135deg, 
        rgba(56, 178, 172, 0.25) 0%, 
        rgba(49, 151, 149, 0.2) 100%);
}

.slide:nth-child(4)::before {
    background: linear-gradient(135deg, 
        rgba(76, 81, 191, 0.25) 0%, 
        rgba(128, 90, 213, 0.2) 100%);
}

.slide:nth-child(5)::before {
    background: linear-gradient(135deg, 
        rgba(237, 137, 54, 0.25) 0%, 
        rgba(221, 107, 32, 0.2) 100%);
}

.slide-content {
    position: relative;
    z-index: 20;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: var(--space);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.slide-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.slide-content .btn {
    position: relative;
    z-index: 30;
}

.slide-controls {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 25;
}

.prev-slide,
.next-slide {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 30;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slide-dots {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 25;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 30;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--white);
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.dot.active {
    background: transparent;
    border-color: var(--white);
    transform: scale(1.2);
}

.dot.active::before {
    width: 6px;
    height: 6px;
}

.dot:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.4);
}

.autoplay-toggle {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-xl);
    z-index: 25;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.autoplay-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.toggle-switch {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-switch.active {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(56, 178, 172, 0.5);
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(16px);
}

/* ===== SECTION STYLES ===== */
section {
    padding: var(--space-3xl) 0;
}

.section-header {
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
}

.ministries-section .section-header h2::after {
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.services-section .section-header h2::after {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.sermons-section .section-header h2::after {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.events-section .section-header h2::after {
    background: linear-gradient(90deg, #4C51BF, #805AD5);
}

.leadership-section .section-header h2::after {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-header .badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-xs) var(--space);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space);
}

.section-header .subtitle {
    font-size: 1.125rem;
    color: var(--black);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.section-intro {
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-sm);
    padding-bottom: 4px;
    border-bottom: 2px solid rgba(214, 158, 46, 0.3);
}

.section-intro h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space);
    line-height: 1.2;
}

.section-intro .intro-text {
    font-size: 1.125rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.welcome-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    height: 400px;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.welcome-image:hover img {
    transform: scale(1.03);
}

.welcome-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(44, 82, 130, 0.1), transparent);
    z-index: 1;
}

.welcome-text {
    padding: var(--space);
}

.welcome-message p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: var(--space);
}

.welcome-message p:last-child {
    margin-bottom: var(--space-xl);
}

.pastors-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space);
    margin-bottom: var(--space-xl);
    padding-top: var(--space);
    border-top: 1px solid var(--light-gray);
}

.pastor h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.pastor span {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

.welcome-actions {
    display: flex;
    gap: var(--space);
    margin-top: var(--space);
}

.welcome-actions .btn {
    flex: 1;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .welcome-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        max-width: 700px;
        margin: 0 auto;
    }
    
    .welcome-image {
        height: 350px;
        order: -1;
    }
    
    .section-intro h2 {
        font-size: 2rem;
    }
    
    .section-intro .intro-text {
        font-size: 1.0625rem;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        padding: var(--space-xl) 0;
    }
    
    .section-intro h2 {
        font-size: 1.75rem;
    }
    
    .section-intro .intro-text {
        font-size: 1rem;
    }
    
    .welcome-image {
        height: 300px;
    }
    
    .pastors-info {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .welcome-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .welcome-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .welcome-content {
        gap: var(--space-lg);
    }
    
    .welcome-image {
        height: 250px;
    }
    
    .section-intro h2 {
        font-size: 1.5rem;
    }
}

/* ===== MINISTRIES SECTION ===== */
.ministries-section {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.ministries-section .section-intro {
    margin-bottom: var(--space-xl);
}

.ministries-section .section-label {
    color: var(--accent);
    border-bottom-color: rgba(56, 178, 172, 0.3);
}

.ministries-section h2 {
    color: var(--primary-dark);
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.ministry-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ministry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ministry-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ministry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ministry-card:hover .ministry-image img {
    transform: scale(1.05);
}

.ministry-overlay {
    position: absolute;
    top: var(--space);
    left: var(--space);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.ministry-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ministry-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ministry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.ministry-content p {
    font-size: 0.9375rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: var(--space);
    flex-grow: 1;
}

.ministry-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space);
    font-size: 0.875rem;
    color: var(--gray);
}

.ministry-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--light-bg);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-weight: 500;
}

.ministry-features i {
    color: var(--accent);
    width: 14px;
}

.ministry-content .btn-primary {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
}

.section-cta {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--light-gray);
}

.section-cta p {
    color: var(--dark-gray);
    margin-bottom: var(--space);
    font-size: 1.0625rem;
}

.section-cta .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.section-cta .btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Alternative: If you want to use ministry logos instead of photos */
.ministry-logo {
    height: 200px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.ministry-logo img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Responsive Design */
@media (max-width: 768px) {
    .ministries-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .ministry-image {
        height: 180px;
    }
    
    .ministry-features {
        flex-direction: column;
        gap: 8px;
    }
    
    .ministry-features span {
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .ministries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* If you prefer using your ministry logo PNGs */
.ministry-logo-container {
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.ministry-logo-container img {
    max-width: 140px;
    height: auto;
    object-fit: contain;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.1) 0%, rgba(237, 137, 54, 0.1) 100%);
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    animation: gentlePulse 4s ease-in-out infinite;
    color: var(--white);
}

.service-card.highlight:hover {
    animation: none;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-8px) scale(1.02) rotate(1deg);
}

.service-card:nth-child(1) { border-color: rgba(44, 82, 130, 0.3); }
.service-card:nth-child(2) { border-color: transparent; }
.service-card:nth-child(3) { border-color: rgba(56, 178, 172, 0.3); }

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space);
    padding-bottom: var(--space);
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    z-index: 1;
}

.service-card.highlight .service-header {
    border-color: rgba(255, 255, 255, 0.2);
}

.service-day {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-time {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
}

.service-card.highlight .service-day,
.service-card.highlight .service-time,
.service-card.highlight h3,
.service-card.highlight p {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space);
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--gray);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* ===== PROFESSIONAL SERMONS SECTION ===== */
.sermons-professional {
    padding: var(--space-2xl) 0;
    background: var(--white);
    position: relative;
}

/* Header */
.professional-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space);
    border-bottom: 1px solid var(--light-gray);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.904);
    border-radius: var(--radius-full);
    margin-bottom: var(--space);
}

.professional-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--dark-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Professional Grid Layout - FIXED PROPORTIONS */
.sermon-professional-grid {
    display: grid;
    grid-template-columns: 60% 40%; /* Perfect 60/40 split */
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    align-items: start;
}

/* Video Column - ENLARGED */
.professional-video-col {
    display: flex;
    flex-direction: column;
    gap: var(--space);
}

.video-professional {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
    height: fit-content;
}

.video-wrapper-professional {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video-wrapper-professional iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-actions-professional {
    display: flex;
    gap: var(--space);
    margin-top: var(--space);
}

.btn-professional {
    flex: 1;
    padding: 14px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-professional.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-professional.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 82, 130, 0.2);
}

.btn-professional.secondary {
    background: transparent;
    border-color: var(--light-gray);
    color: var(--primary);
}

.btn-professional.secondary:hover {
    border-color: var(--primary);
    background: var(--light-bg);
    transform: translateY(-2px);
}

/* Content Column - ADJUSTED */
.professional-content-col {
    display: flex;
    flex-direction: column;
}

.content-professional {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-header-professional {
    margin-bottom: var(--space);
    padding-bottom: var(--space);
    border-bottom: 1px solid var(--light-gray);
}

.content-header-professional h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
}

.message-details {
    display: flex;
    gap: var(--space);
    flex-wrap: wrap;
}

.detail-item {
    font-size: 0.875rem;
    color: var(--dark-gray);
    background: var(--light-bg);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-weight: 500;
}

/* Scripture Professional */
.scripture-professional {
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.03) 0%, rgba(56, 178, 172, 0.03) 100%);
    padding: var(--space);
    border-radius: var(--radius);
    border-left: 3px solid var(--secondary);
    margin-bottom: var(--space);
}

.scripture-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 4px;
    font-style: italic;
}

.scripture-reference {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Message Content */
.message-content {
    flex: 1;
    margin-bottom: var(--space);
}

.message-content p {
    font-size: 0.9375rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: var(--space);
}

.message-content strong {
    color: var(--secondary);
    font-weight: 700;
}

.message-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: var(--space);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.highlight-marker {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.highlight-item span {
    font-size: 0.875rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* Content Actions */
.content-actions {
    display: flex;
    gap: var(--space);
    padding-top: var(--space);
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
}

.action-btn {
    flex: 1;
    padding: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--light-gray);
    background: var(--light-bg);
    color: var(--primary);
}

.action-btn:hover {
    border-color: var(--primary);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.action-btn.share-action {
    background: transparent;
}

/* ===== MINIMIZED PLATFORMS SECTION ===== */
.professional-platforms {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--light-gray);
    margin-top: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.professional-platforms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(44, 82, 130, 0.02) 0%, 
        rgba(56, 178, 172, 0.02) 100%);
}

.platforms-content {
    position: relative;
    z-index: 1;
}

.platforms-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.platforms-content h4::before,
.platforms-content h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--light-gray));
}

.platforms-content h4::after {
    background: linear-gradient(90deg, var(--light-gray), transparent);
}

.platforms-grid {
    display: flex;
    gap: var(--space);
    justify-content: center;
    align-items: stretch;
}

.platform-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-lg);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    width: 180px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.platform-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.platform-item:hover::before {
    opacity: 1;
}

.platform-item h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.platform-item p {
    font-size: 0.8125rem;
    color: var(--gray);
    margin-bottom: var(--space);
    line-height: 1.4;
    flex-grow: 1;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: var(--light-bg);
    min-width: 120px;
}

.platform-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.platform-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.platform-link:hover i {
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .professional-platforms {
        padding: var(--space);
        margin-top: var(--space-lg);
    }
    
    .platforms-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-item {
        width: 100%;
        max-width: 280px;
    }
    
    .platforms-content h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .professional-platforms {
        padding: var(--space-sm);
    }
    
    .platform-item {
        padding: var(--space);
    }
    
    .platform-link {
        width: 100%;
    }
}

/* Alternative minimalist style */
.minimal-platforms .professional-platforms {
    background: transparent;
    border: 1px solid var(--light-gray);
    padding: var(--space);
}

.minimal-platforms .platforms-content h4 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.minimal-platforms .platforms-grid {
    gap: var(--space-sm);
}

.minimal-platforms .platform-item {
    background: transparent;
    border: none;
    padding: 0;
    width: auto;
}

.minimal-platforms .platform-item:hover {
    transform: none;
    box-shadow: none;
    border: none;
}

.minimal-platforms .platform-item h5 {
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.minimal-platforms .platform-item p {
    display: none;
}

.minimal-platforms .platform-link {
    background: transparent;
    border: 1px solid var(--light-gray);
    padding: 6px 12px;
    min-width: auto;
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sermon-professional-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .professional-header h2 {
        font-size: 2rem;
    }
    
    .video-professional {
        order: -1; /* Video first on mobile */
    }
}

@media (max-width: 768px) {
    .sermons-professional {
        padding: var(--space-xl) 0;
    }
    
    .video-actions-professional {
        flex-direction: column;
    }
    
    .content-professional {
        padding: var(--space);
    }
    
    .content-actions {
        flex-direction: column;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .platforms-content h4 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .professional-header h2 {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .content-header-professional h3 {
        font-size: 1.25rem;
    }
    
    .scripture-text {
        font-size: 1rem;
    }
    
    .message-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .professional-platforms {
        padding: var(--space);
    }
}

/* Alternative: If you want the video to be even larger, use this grid: */
/* 
.sermon-professional-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;  Even larger video column 
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    align-items: start;
}
*/

/* For perfect 60/40 split: */
/* 
.sermon-professional-grid {
    display: grid;
    grid-template-columns: 60% 40%;  Perfect 60/40 split 
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    align-items: start;
}
*/

/* ===== MODERN EVENTS CAROUSEL ===== */
.events-carousel-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.events-carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(76, 81, 191, 0.08) 0%, rgba(128, 90, 213, 0.08) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}

.events-carousel-container {
    position: relative;
}

/* Filter Tabs */
.events-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-tab i {
    font-size: 0.875rem;
}

/* Events Carousel */
.events-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.events-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--space-lg);
    padding: var(--space-sm) 0;
}

.event-card-carousel {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 320px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-card-carousel:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.event-card-carousel.past-event {
    opacity: 0.9;
}

.event-card-carousel.past-event::after {
    content: 'Past Event';
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.event-card-carousel.upcoming-event {
    border-left: 4px solid var(--accent);
}

.event-card-carousel.live-event {
    border-left: 4px solid #48BB78;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { border-color: #48BB78; }
    50% { border-color: #9AE6B4; }
}

.event-date-carousel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.event-date-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.event-date-carousel .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-carousel .month {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 4px 0;
    font-weight: 600;
}

.event-date-carousel .year {
    font-size: 0.75rem;
    opacity: 0.9;
}

.event-content-carousel {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-content-carousel h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-dark);
    line-height: 1.4;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: var(--space);
    margin-bottom: var(--space);
    flex-wrap: wrap;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--gray);
}

.event-meta i {
    color: var(--secondary);
    width: 14px;
}

.event-description-carousel {
    font-size: 0.9375rem;
    color: var(--dark-gray);
    margin-bottom: var(--space);
    line-height: 1.6;
    flex-grow: 1;
}

.event-tags {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space);
    flex-wrap: wrap;
}

.event-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--light-bg);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.event-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
}

.event-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.875rem;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space);
    margin-top: var(--space-xl);
}

.carousel-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav button:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.1);
}

.carousel-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Empty State */
.no-events-message {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--gray);
}

.no-events-message i {
    font-size: 3rem;
    margin-bottom: var(--space);
    color: var(--light-gray);
}

/* View All Button */
.events-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .event-card-carousel {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .events-carousel-section {
        padding: var(--space-xl) 0;
    }
    
    .events-filter {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .event-card-carousel {
        flex: 0 0 calc(100% - 20px);
        min-width: 280px;
    }
    
    .event-content-carousel {
        padding: var(--space);
    }
    
    .carousel-nav {
        margin-top: var(--space-lg);
    }
    
    .carousel-nav button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .events-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== LEADERSHIP SECTION ===== */
.leadership-section {
    background: linear-gradient(135deg, var(--off-white) 0%, #ffffff 100%);
    position: relative;
}

.leadership-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
    clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 100%);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.leader-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.leader-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.leader-card:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: var(--shadow-xl);
}

.leader-card:hover::before {
    opacity: 0.05;
}

.leader-image {
    flex-shrink: 0;
    width: 120px;
    height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(135deg, var(--white), var(--light)) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    transition: var(--transition);
}

.leader-card:hover .leader-image {
    border-color: var(--accent);
    transform: scale(1.05);
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.leader-card:hover .leader-image img {
    transform: scale(1.05);
}

.leader-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.leader-content h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--primary-dark);
}

.leader-role {
    display: block;
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leader-content p {
    font-size: 0.9375rem;
    color: var(--gray);
    margin-bottom: var(--space);
    line-height: 1.6;
}

.leader-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}

.leader-email:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--black) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) 0;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(66, 153, 225, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(214, 158, 46, 0.2) 0%, transparent 50%);
    animation: gentlePulse 6s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    background: linear-gradient(135deg, #ffffff 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: var(--space);
    animation: float 4s ease-in-out infinite;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

.cta-actions {
    display: flex;
    gap: var(--space);
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 10;
    pointer-events: auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(44, 82, 130, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 15px rgba(44, 82, 130, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    color: var(--primary);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-outline:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(44, 82, 130, 0.2);
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    transition: all 0.3s ease;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.btn-text:hover {
    color: var(--accent);
    padding-left: 8px;
}

.btn-text:hover::after {
    width: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--black) 0%, #2D3748 100%);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 20%, 
        var(--secondary) 50%, 
        var(--primary) 80%, 
        transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--space);
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--white) 0%, #CBD5E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-section > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--space);
    margin-top: var(--space);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.service-times .time-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-times .day {
    color: var(--white);
    font-weight: 500;
}

.service-times .time {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.contact-info i {
    width: 16px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: var(--space-sm);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .welcome-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    
    .ministries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        height: 500px;
    }

    .slide {
        top: -5px;
        left: -5px;
        width: calc(100% + 10px);
        height: calc(100% + 10px);
    }
    
    .slide-content {
        padding: var(--space-xl);
        align-items: center;
        text-align: center;
    }
    
    .slide-content h1 {
        font-size: 2rem;
        animation: none;
    }
    
    .slide-content p {
        font-size: 1.125rem;
    }
    
    .slide-dots {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .slide-controls {
        right: var(--space);
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
    
    .welcome-actions,
    .cta-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .welcome-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }
    
    .pastors-signature {
        grid-template-columns: 1fr;
        gap: var(--space);
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .leader-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .leader-image {
        width: 150px;
        height: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .service-times .time-item {
        justify-content: space-between;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .ministries-section::before,
    .services-section::before,
    .events-section::before,
    .leadership-section::before {
        height: 150px;
    }
    
    .ministries-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-primary:hover,
    .btn-outline:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    .ministry-card:hover {
        transform: translateY(-4px);
    }
}

@media (min-width: 1200px) {
    .ministries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space);
    }
    
    .hero {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header h2::after {
        width: 40px;
    }
    
    .services-grid,
    .sermons-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        min-height: 60px;
        gap: var(--space);
    }
    
    .event-date .day {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .autoplay-toggle {
        left: 10px;
        bottom: 20px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* Add this to your existing CSS file */

/* Section Background Styles */
.welcome-section,
.ministries-section,
.sermons-professional,
.events-carousel-section,
.leadership-section,
.cta-section {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay for better text readability */
.welcome-section::before,
.ministries-section::before,
.sermons-professional::before,
.events-carousel-section::before,
.leadership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95));
    z-index: 0;
}

/* CTA Section specific overlay */
.cta-section::before {
    background: linear-gradient(rgba(44, 82, 130, 0.85), rgba(26, 32, 44, 0.95));
}

/* Ensure content stays above background */
.welcome-section .container,
.ministries-section .container,
.sermons-professional .container,
.events-carousel-section .container,
.leadership-section .container,
.cta-section .container {
    position: relative;
    z-index: 1;
}

/* Remove existing background patterns from some sections */
.ministries-section::before,
.events-carousel-section::before,
.leadership-section::before {
    background: none;
}

/* Adjust specific section backgrounds */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--black) 100%), var(--cta-bg) center/cover no-repeat fixed;
    animation: gradientShift 8s ease infinite;
    background-blend-mode: overlay;
}

/* Parallax effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .welcome-section,
    .ministries-section,
    .sermons-professional,
    .events-carousel-section,
    .leadership-section,
    .cta-section {
        background-attachment: fixed;
    }
}

/* Fallback for mobile devices */
@media (max-width: 768px) {
    .welcome-section,
    .ministries-section,
    .sermons-professional,
    .events-carousel-section,
    .leadership-section,
    .cta-section {
        background-attachment: scroll;
        background-size: cover;
    }
}

/* Ensure cards maintain white background on top of section backgrounds */
.ministry-card,
.content-professional,
.event-card-carousel,
.leader-card {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

/* Add to existing CSS */
@media (max-width: 768px) {
  .hero {
    height: 500px; /* Reduce from 900px on mobile */
  }
  .hero .slide-content h1 {
    font-size: 2rem; /* Smaller font on mobile */
  }
}

/* Add to style.css */
/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
:focus {
    outline: 3px solid var(--accent) !important;
    outline-offset: 2px !important;
}

:focus:not(:focus-visible) {
    outline: none !important;
}

:focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 2px !important;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .high-contrast {
        --primary: #0000FF;
        --secondary: #FFA500;
        --accent: #008000;
        --white: #FFFFFF;
        --black: #000000;
    }
    
    .btn {
        border: 2px solid #000;
    }
    
    .nav__link {
        border: 1px solid #000;
    }
    
    .ministry-card,
    .event-card-carousel,
    .leader-card {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reduced-motion *,
    .reduced-motion *::before,
    .reduced-motion *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero .slide,
    .slide-content,
    .ministry-card:hover,
    .event-card-carousel:hover,
    .leader-card:hover {
        transition: none !important;
        transform: none !important;
    }
    
    .live-indicator,
    .dot.active {
        animation: none !important;
    }
}

/* Color Contrast Fixes */
.cta-content h2 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.footer-section h3,
.footer-logo h3 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* Ensure sufficient color contrast */
.btn-primary {
    background: linear-gradient(135deg, #2C5282 0%, #1A365D 100%);
    color: #FFFFFF;
}

.btn-outline {
    background: #FFFFFF;
    border: 2px solid #2C5282;
    color: #2C5282;
}

/* Form accessibility */
input:invalid,
textarea:invalid,
select:invalid {
    border-color: #E53E3E;
}

input:invalid:focus,
textarea:invalid:focus,
select:invalid:focus {
    outline-color: #E53E3E;
}

/* Required field indicators */
.form-group label[for]::after {
    content: " *";
    color: #E53E3E;
}

/* Error states */
.form-error {
    color: #C53030;
    background-color: #FED7D7;
    border-left: 4px solid #C53030;
    padding: 12px;
    margin: 12px 0;
    border-radius: var(--radius);
}

/* Success states */
.form-success {
    color: #276749;
    background-color: #C6F6D5;
    border-left: 4px solid #276749;
    padding: 12px;
    margin: 12px 0;
    border-radius: var(--radius);
}

/* Link contrast */
a {
    color: #2C5282;
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #1A365D;
    text-decoration: none;
}

/* Button states */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Image alt text fallback */
img {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

/* Ensure text zoom works */
html {
    font-size: 100%;
}

body {
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .btn {
        border: 1px solid #000 !important;
        background: none !important;
        color: #000 !important;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.875rem;
    }
}