* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #b91c1c;
    --primary-dark: #7f1d1d;
    --primary-light: #fef2f2;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.site-header .container {
    padding: 0;
    max-width: 100%;
    width: 100%;
}

/* Site Header */
.site-header {
    background: #b91c1c;
    border-bottom: none;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.site-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
}

.site-header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.logo-link:hover {
    color: var(--primary);
}

.logo-link svg {
    color: var(--primary);
}

.logo-text {
    font-weight: 700;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.45) 0%, rgba(185, 28, 28, 0.45) 100%);
    z-index: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out;
}

/* Hero slide background images */
.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-slide p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

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

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

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

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem 0.5rem 1rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: var(--white);
}

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

.about-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services {
    background: var(--gray-50);
}

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

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.service-card {
    background: linear-gradient(to bottom, #ffffff 0%, #fefefe 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--gray-200);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 200px;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #dc2626 50%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(127, 29, 29, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    background: linear-gradient(to bottom, #ffffff 0%, #fff5f5 100%);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #dc2626);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.service-card:hover h3::after {
    width: 80px;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.read-more-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.service-card-link:hover .read-more-link {
    color: #dc2626;
}

.team-leaders {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-100);
    position: relative;
}

.team-leader-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-leader-label {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-leader-name {
    color: var(--primary);
    font-size: 0.9375rem;
    font-weight: 700;
}

.team-leader-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(127, 29, 29, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.25rem;
    overflow: visible;
    cursor: pointer;
}

.team-leader-avatar:hover {
    transform: translateY(-6px) scale(1.15);
    z-index: 10;
    box-shadow: 0 8px 20px rgba(127, 29, 29, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.team-leader-avatar::after {
    content: attr(data-name);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 20;
}

.team-leader-avatar::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 21;
}

.team-leader-avatar:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.team-leader-avatar:hover::before {
    opacity: 1;
    visibility: visible;
}

.team-leader-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-leader-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.service-schedule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.schedule-item {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.schedule-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.schedule-item:hover .schedule-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.schedule-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.schedule-icon i {
    font-size: 30px;
    color: white;
}

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

.schedule-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.schedule-time {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.schedule-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 300;
}

.schedule-divider {
    width: 2px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    flex-shrink: 0;
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for CTA */
@media (max-width: 768px) {
    .cta h2 {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .service-schedule {
        flex-direction: column;
        gap: 1.5rem;
    }

    .schedule-divider {
        width: 80px;
        height: 2px;
    }

    .schedule-item {
        max-width: 100%;
        width: 100%;
    }
}

/* Sermons Section */
.sermons {
    background: var(--white);
}

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

.sermon-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.sermon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.sermon-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
}

.sermon-content {
    padding: 1.5rem;
}

.sermon-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sermon-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.sermon-speaker {
    font-size: 0.9375rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sermon-speakers {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.sermon-speaker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, z-index 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-left: -8px;
    overflow: hidden;
}

.sermon-speaker-avatar:first-child {
    margin-left: 0;
    z-index: 3;
}

.sermon-speaker-avatar:nth-child(2) {
    z-index: 2;
}

.sermon-speaker-avatar:nth-child(3) {
    z-index: 1;
}

.sermon-speaker-avatar:hover {
    transform: translateY(-2px) scale(1.1);
    z-index: 10 !important;
}

.sermon-speaker-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sermon-scripture {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    line-height: 1.6;
}

.sermon-scripture strong {
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
    display: block;
    margin-bottom: 0.25rem;
}

.sermon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 0.3s;
}

.sermon-link:hover {
    gap: 0.75rem;
}

/* Devotionals Section */
.devotionals {
    background: var(--gray-50);
}

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

.devotional-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.devotional-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.devotional-date {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.devotional-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.devotional-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.devotional-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.devotional-link:hover {
    gap: 0.75rem;
}

.devotional-scripture {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    line-height: 1.6;
}

.devotional-scripture strong {
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
    display: block;
    margin-bottom: 0.25rem;
}

/* Blog Section */
.blog {
    background: var(--white);
}

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

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid rgba(185, 28, 28, 0.2);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(185, 28, 28, 0.5);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 0.3s;
}

.blog-link:hover {
    gap: 0.75rem;
}

.blog-author {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-author-link:hover {
    color: var(--primary);
}

.blog-author-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
}

/* Message from Elders Section */
.elders-message {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.05) 0%, rgba(185, 28, 28, 0.05) 100%);
}

.elders-message-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary);
}

.elders-message-header {
    text-align: center;
    margin-bottom: 2rem;
}

.elders-message-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.elders-message-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.elders-message-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.elders-message-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    gap: 2rem;
}

.elders-message-signature-text {
    flex: 1;
    text-align: right;
}

.elders-message-signature strong {
    display: block;
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.elders-message-signature span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.elders-avatars {
    display: flex;
    align-items: center;
    position: relative;
}

.elder-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, z-index 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.25rem;
    margin-left: -12px;
    overflow: visible;
    cursor: pointer;
}

.elder-avatar:first-child {
    margin-left: 0;
    z-index: 3;
}

.elder-avatar:nth-child(2) {
    z-index: 2;
}

.elder-avatar:nth-child(3) {
    z-index: 1;
}

.elder-avatar:hover {
    transform: translateY(-4px) scale(1.1);
    z-index: 10 !important;
}

.elder-avatar::after {
    content: attr(data-name);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.elder-avatar::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 21;
}

.elder-avatar:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.elder-avatar:hover::before {
    opacity: 1;
    visibility: visible;
}

.elder-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .elders-message-signature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .elders-message-signature-text {
        text-align: center;
    }

    .elder-avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .elder-avatar::after {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
        bottom: -30px;
    }
}

/* Events Section */
.events {
    background: var(--white);
}

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

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(185, 28, 28, 0.15);
    border-color: rgba(185, 28, 28, 0.2);
}

.event-card:hover::before {
    opacity: 1;
}

.event-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.75) 0%, rgba(185, 28, 28, 0.65) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.event-card:hover .event-image-overlay {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.85) 0%, rgba(185, 28, 28, 0.75) 100%);
}

.event-image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-date-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-card:hover .event-date-pill {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.event-title-on-image {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    letter-spacing: -0.3px;
}

.event-card:hover .event-title-on-image {
    transform: translateY(-2px);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.event-content {
    padding: 1.75rem;
    background: white;
    transition: background 0.3s ease;
}

.event-card:hover .event-content {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(254, 242, 242, 0.3) 100%);
}

.event-date {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card .event-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.event-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.event-time {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.event-link:hover {
    gap: 0.75rem;
    background: rgba(185, 28, 28, 0.1);
    color: var(--primary-dark);
    transform: translateX(4px);
}

.event-link svg {
    transition: transform 0.3s ease;
}

.event-link:hover svg {
    transform: translateX(2px);
}

/* Parallax Call Out Section */
.parallax-callout {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1511632765486-a01980e01a18?w=1920&q=80');
    background-position: center 0px;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.4) 0%, rgba(185, 28, 28, 0.4) 20%);
    z-index: 1;
    pointer-events: none;
}

.parallax-callout-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 4rem 2rem;
}

.parallax-callout-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.parallax-callout-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.parallax-callout-content .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.parallax-callout-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--primary-light);
}

@media (max-width: 768px) {
    .parallax-callout {
        min-height: 350px;
        background-attachment: scroll;
    }

    .parallax-callout-content {
        padding: 3rem 1.5rem;
    }

    .parallax-callout-content h2 {
        font-size: 2rem;
    }

    .parallax-callout-content p {
        font-size: 1.125rem;
    }
}

/* Announcements Section */
.announcements {
    background: var(--white);
}

.announcements-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

@media (max-width: 768px) {
    .announcements-list {
        grid-template-columns: 1fr;
    }
}

.announcement-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.announcement-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.announcement-header {
    margin-bottom: 1rem;
}

.announcement-item h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.announcement-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.announcement-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Call Out Section */
.callout {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem auto;
    max-width: 900px;
    border: 2px solid var(--primary-light);
}

.callout h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.callout p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.callout-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

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

    .hero p {
        font-size: 1.125rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .sermons-grid,
    .devotionals-grid {
        grid-template-columns: 1fr;
    }

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

    .callout {
        padding: 3rem 1.5rem;
    }


    .container {
        padding: 0 1.5rem;
    }

    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }

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

    .hero-slide p {
        font-size: 1.125rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow.prev {
        left: 1rem;
    }

    .slider-arrow.next {
        right: 1rem;
    }

    .slider-nav {
        bottom: 1.5rem;
    }
}

/* Sermons Tabs */
.sermons-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.sermon-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.sermon-tab-btn:hover {
    color: var(--primary);
}

.sermon-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.sermon-tab-btn svg {
    width: 20px;
    height: 20px;
}

.sermon-tab-content {
    display: none;
}

.sermon-tab-content.active {
    display: block;
}

/* Two Column Layout */
.sermons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.sermon-col-6 {
    width: 100%;
}

/* Featured Sermon */
.sermon-featured {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.sermon-featured-image {
    width: 100%;
    position: relative;
}

.sermon-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
}

.sermon-video-wrapper {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sermon-featured-content {
    padding: 1.5rem;
}

.sermon-player {
    margin: 1rem 0;
}

.audio-player {
    width: 100%;
    height: 50px;
}

/* Stacked Sermons */
.sermons-stacked {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sermon-stacked-item {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.sermon-stacked-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sermon-stacked-image {
    flex-shrink: 0;
    width: 120px;
}

.sermon-image-placeholder-small {
    width: 100%;
    height: 100%;
    min-height: 100px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
}

.sermon-stacked-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sermon-stacked-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.25rem 0;
    color: var(--text-primary);
}

.sermon-speakers-small {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.sermon-speaker-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    margin-left: -6px;
    overflow: hidden;
}

.sermon-speaker-avatar-small:first-child {
    margin-left: 0;
}

.sermon-speaker-avatar-small img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sermon-speaker-small {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sermon-scripture-small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sermon-scripture-small strong {
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
}

.sermon-link-small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: gap 0.3s;
}

.sermon-link-small:hover {
    gap: 0.5rem;
}

/* Col-4 Grid Layout for Devotionals, Blog, Events */
.content-grid-col4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Quick Links Call Out Section */
.quick-links-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #991b1b 100%);
    color: white;
    padding: 4rem 0;
}

.quick-links-content {
    text-align: center;
}

.quick-links-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.quick-links-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quick-links-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Auto-gridding: automatically fits cards with minimum width */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Flexible Grid - Precise control based on card count for optimal layouts */
.quick-links-grid[data-card-count="1"] {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.quick-links-grid[data-card-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.quick-links-grid[data-card-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.quick-links-grid[data-card-count="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* For 5 cards: 3 columns on first row, 2 on second */
.quick-links-grid[data-card-count="5"] {
    grid-template-columns: repeat(3, 1fr);
}

/* For 6 cards: 3 columns */
.quick-links-grid[data-card-count="6"] {
    grid-template-columns: repeat(3, 1fr);
}

/* For 7 cards: 4 columns (3+2+2) */
.quick-links-grid[data-card-count="7"] {
    grid-template-columns: repeat(4, 1fr);
}

/* For 8+ cards: 4 columns max */
.quick-links-grid[data-card-count="8"],
.quick-links-grid[data-card-count="9"],
.quick-links-grid[data-card-count="10"],
.quick-links-grid[data-card-count="11"],
.quick-links-grid[data-card-count="12"] {
    grid-template-columns: repeat(4, 1fr);
}

.quick-link-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    justify-content: flex-start;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.quick-link-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.quick-link-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
}

.quick-link-card:hover .quick-link-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.quick-link-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.quick-link-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Medium screens: 1200px - 1025px */
@media (max-width: 1200px) and (min-width: 1025px) {
    .quick-links-grid {
        gap: 1.75rem;
    }

    /* Adjust for medium screens */
    .quick-links-grid[data-card-count="4"] {
        grid-template-columns: repeat(4, 1fr);
    }

    .quick-links-grid[data-card-count="5"],
    .quick-links-grid[data-card-count="6"],
    .quick-links-grid[data-card-count="7"],
    .quick-links-grid[data-card-count="8"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
    .content-grid-col4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tablet: Auto-grid with minmax for responsive behavior */
    .quick-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    /* Tablet: Optimized layouts for specific card counts */
    .quick-links-grid[data-card-count="1"] {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .quick-links-grid[data-card-count="2"] {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 3 cards: 2 columns (2+1) */
    .quick-links-grid[data-card-count="3"] {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 4+ cards: 2 columns */
    .quick-links-grid[data-card-count="4"],
    .quick-links-grid[data-card-count="5"],
    .quick-links-grid[data-card-count="6"],
    .quick-links-grid[data-card-count="7"],
    .quick-links-grid[data-card-count="8"],
    .quick-links-grid[data-card-count="9"],
    .quick-links-grid[data-card-count="10"],
    .quick-links-grid[data-card-count="11"],
    .quick-links-grid[data-card-count="12"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sermons-row {
        grid-template-columns: 1fr;
    }

    .content-grid-col4 {
        grid-template-columns: 1fr;
    }

    .sermons-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .sermons-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .sermons-tabs::-webkit-scrollbar-track {
        background: var(--gray-200);
    }

    .sermons-tabs::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }

    .sermon-tab-btn {
        min-width: fit-content;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .sermon-stacked-item {
        flex-direction: column;
    }

    .sermon-stacked-image {
        width: 100%;
    }

    .sermon-image-placeholder-small {
        min-height: 150px;
    }

    .quick-links-cta {
        padding: 3rem 0;
    }

    .quick-links-content h2 {
        font-size: 2rem;
    }

    .quick-links-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Mobile: Always single column */
    .quick-links-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .quick-links-grid[data-card-count="1"],
    .quick-links-grid[data-card-count="2"],
    .quick-links-grid[data-card-count="3"],
    .quick-links-grid[data-card-count="4"],
    .quick-links-grid[data-card-count="5"],
    .quick-links-grid[data-card-count="6"],
    .quick-links-grid[data-card-count="7"],
    .quick-links-grid[data-card-count="8"],
    .quick-links-grid[data-card-count="9"],
    .quick-links-grid[data-card-count="10"],
    .quick-links-grid[data-card-count="11"],
    .quick-links-grid[data-card-count="12"] {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }

    .quick-link-card {
        padding: 1.5rem;
    }
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: 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: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--white);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 20px;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact li i {
    color: var(--white);
    font-size: 1.125rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.footer-contact li span {
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9375rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}