@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
}

/* ═══════════════════════════════════════
           HERO SECTION
        ═══════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    /* hero sits full height — white navbar overlaps from top */
    padding-top: 80px;
}

/* Slides — smooth crossfade + Ken Burns slow zoom */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.8s ease-in-out;
    /* will-change removed to free GPU memory */
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 8s ease-in-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.12);
    }
}

.hero-slide-1 {
    background-image: url('img/home page/hero/church image 3.webp');
}

.hero-slide-2 {
    background-image: url('img/home page/hero/church image 2.webp');
}

.hero-slide-3 {
    background-image: url('img/home page/hero/church image 1.webp');
}

/* Overlay — natural dark gradient, no color tint */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.20) 0%,
            rgba(0, 0, 0, 0.43) 55%,
            rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

/* Gold light beam decoration */
.hero-beam {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(107, 101, 101, 0.4) 40%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    max-width: 920px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.9s 0.4s ease forwards;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0;
    opacity: 0;
    animation: fadeUp 0.9s 0.7s ease forwards;
}

.hero-title span {
    display: block;
    color: var(--gold-light);
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.9s 1.8s ease forwards;
}

.hero-scroll span {
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(176, 184, 200, 0.8), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.1);
    }
}

/* Hero slide indicators */
.hero-dots {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--gold);
    transform: scale(1.5);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════
           SCRIPTURE BANNER
        ═══════════════════════════════════════ */
.scripture-banner {
    background: var(--navy);
    padding: 64px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.scripture-banner::before {
    content: '\201C';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
    font-size: 20rem;
    color: rgba(176, 184, 200, 0.05);
    line-height: 1;
    pointer-events: none;
}

.scripture-text {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto 16px;
}

.scripture-ref {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

/* ═══════════════════════════════════════
           SERVICE TIMES STRIP
        ═══════════════════════════════════════ */
.service-strip {
    background: var(--gold);
    padding: 18px 24px;
}

.service-strip-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-item i {
    color: var(--navy);
    font-size: 1.1rem;
}

.service-item-text strong {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy-mid);
    font-weight: 700;
}

.service-item-text span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
}

.service-strip-divider {
    width: 1px;
    height: 32px;
    background: rgba(61, 0, 82, 0.2);
}

/* ═══════════════════════════════════════
           SECTION SHARED STYLES
        ═══════════════════════════════════════ */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════
           ABOUT SECTION
        ═══════════════════════════════════════ */
.about-section {
    position: relative;
    overflow: hidden;
    padding: 120px 24px;
    background: var(--cream);
    /* Skip rendering until near viewport */
    content-visibility: auto;
    contain-intrinsic-size: 0 900px;
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;

}

.about-media {
    position: relative;
}

/* ─── ABOUT MEDIA LAYERS ─── */
.about-bg-text-top {
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    font-size: 100px;
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(123, 44, 191, 0.25);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.about-bg-text-right {
    position: absolute;
    top: 10%;
    right: -15%;
    font-size: 100px;
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(123, 44, 191, 0.25);
    white-space: nowrap;
    z-index: 0;
    writing-mode: vertical-rl;
    pointer-events: none;
    user-select: none;
}

.about-shape-tl {
    position: absolute;
    top: 5%;
    left: -5%;
    width: 240px;
    height: 340px;
    background: rgba(175, 107, 226, 0.35);
    border-radius: 60px;
    z-index: 1;
    pointer-events: none;
}

.about-shape-br {
    position: absolute;
    bottom: -10%;
    right: 15%;
    width: 140px;
    height: 200px;
    background: rgba(175, 107, 226, 0.35);
    border-radius: 60px;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 992px) {

    .about-bg-text-top,
    .about-bg-text-right {
        font-size: 56px;
    }

    .about-bg-text-right {
        right: -25%;
        bottom: 5%;
    }

    .about-shape-tl {
        width: 160px;
        height: 260px;
    }

    .about-shape-br {
        width: 140px;
        height: 220px;
        right: -5%;
    }
}

@media (max-width: 768px) {

    .about-bg-text-top,
    .about-bg-text-right {
        font-size: 35px;
        -webkit-text-stroke: 1px rgba(123, 44, 191, 0.25);
    }

    .about-bg-text-right {
        right: -20%;
        bottom: 10%;
    }

    .about-shape-tl {
        width: 100px;
        height: 160px;
        top: -5%;
        left: 0%;
        border-radius: 30px;
    }

    .about-shape-br {
        width: 90px;
        height: 140px;
        right: 0%;
        bottom: 0%;
        border-radius: 30px;
    }
}

.about-img-frame {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.2); /* Optimized shadow */
}

.about-img-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid var(--gold);
    border-radius: 24px;
    z-index: 1;
    opacity: 0.6;
}

.about-img-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--gold);
    color: var(--navy);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 12px rgba(176, 184, 200, 0.4); /* Optimized shadow */
    z-index: 2;
}

.about-badge strong {
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1;
}

.about-badge span {
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}

.about-text .section-title {
    color: var(--navy);
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-style: normal;
}

.about-text p {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: justify;
}

.btn-navy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: #fff !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 12px rgba(61, 0, 82, 0.25); /* Optimized shadow */
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-img-frame img {
        height: 320px;
    }

    .about-badge {
        width: 96px;
        height: 96px;
        bottom: -16px;
        right: -16px;
    }
}

/* ═══════════════════════════════════════
           PASTOR SECTION
        ═══════════════════════════════════════ */
.pastor-section {
    padding: 120px 24px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    margin: 60px 24px;
    /* Skip rendering until near viewport */
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}

.pastor-section::before {
    content: 'PASTOR';
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--font-display);
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    pointer-events: none;
}

.pastor-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.pastor-img-wrap {
    position: relative;
}

.pastor-img-inner {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.pastor-img-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 0, 82, 0.6) 0%, transparent 60%);
}

.pastor-img-inner img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.pastor-corner {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 80px;
    height: 80px;
    border-top: 3px solid var(--gold);
    border-left: 3px solid var(--gold);
}

.pastor-corner-br {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 80px;
    height: 80px;
    border-bottom: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
}

.pastor-text .section-eyebrow {
    color: var(--gold);
}

.pastor-text .section-title {
    color: #fff;
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-style: normal;
}

.pastor-text p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: justify;
}

.pastor-signature {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.pastor-sig-line {
    flex: 1;
    height: 1px;
    background: rgba(176, 184, 200, 0.3);
}

.pastor-sig-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold-light);
    letter-spacing: 2px;
}

.pastor-sig-role {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

@media (max-width: 960px) {
    .pastor-section {
        border-radius: 24px;
        margin: 30px 16px;
        padding: 80px 16px;
    }

    .pastor-grid {
        grid-template-columns: 1fr;
    }

    .pastor-img-inner img {
        height: 340px;
    }
}

/* ═══════════════════════════════════════
           SERMONS SECTION — NETFLIX STYLE
        ═══════════════════════════════════════ */

/* ── Layer 1: Full-bleed static background ── */
.sn-wrap {
    margin-top: 100px;
    margin-bottom: 100px;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    /* Skip rendering until near viewport */
    content-visibility: auto;
    contain-intrinsic-size: 0 900px;
}

.sn-bg-container {
    position: absolute;
    inset: -5%;
    z-index: 0;
    overflow: hidden;
}

.sn-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* will-change removed to free GPU memory */
    filter: blur(2px) brightness(0.4);
    transform: scale(1.05);
}

.sn-bg.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* ── Layer 2: Apple Vision Pro Glass Panel ── */
.sn-glass-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    /* Slightly wider to accommodate larger cards */
    border-radius: 32px;
    background: rgba(15, 10, 25, 0.85); /* Darkened for missing blur */
    /* Reduced blur from 8px→4px — half the paint cost, visually identical */
    /* backdrop-filter removed for perf */
    /* -webkit-backdrop-filter removed for perf */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Optimized shadow */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sn-glass-inner {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ── Top Layout: Sidebar + Hero ── */
.sn-top-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
}

/* ── Trending Sidebar ── */
.sn-trending-sidebar {
    width: 195px;
    /* Increased by ~20% from 160px */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sn-trending-title {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding-left: 5px;
}

.sn-trending-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 482px;
    /* Exactly fits 4 cards + gaps */
    overflow-y: auto;
    padding-right: 6px;
    /* space for scrollbar */
    overscroll-behavior: contain;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* Custom thin glass scrollbar for Webkit */
.sn-trending-list::-webkit-scrollbar {
    width: 4px;
}

.sn-trending-list::-webkit-scrollbar-track {
    background: rgba(25, 25, 30, 0.8); /* Opaque fallback */
    border-radius: 4px;
}

.sn-trending-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sn-trending-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.sn-trend-card {
    position: relative;
    width: 100%;
    height: 110px;
    /* Increased from 90px */
    border-radius: 12px;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    text-decoration: none;
    background: rgba(25, 25, 30, 0.8); /* Opaque fallback */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Optimized shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    /* will-change removed: static GPU layers for all cards wastes VRAM */
}

.sn-trend-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    transition: filter 0.2s ease;
}

.sn-trend-card:hover {
    transform: scale(1.05) translateX(4px);
    border-color: rgba(155, 93, 229, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Optimized shadow */
    z-index: 5;
}

.sn-trend-card:hover img {
    filter: brightness(0.5);
}

.sn-trend-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    padding-right: 40px;
    /* Space for the play button */
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.6) 70%, transparent);
}

.sn-trend-title {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    line-height: 1.3;
}

/* Play Button - Trending */
.sn-trend-play {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.65rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Optimized shadow */
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    padding-left: 2px;
    /* Center the play triangle */
}

.sn-trend-card:hover .sn-trend-play {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4); /* Optimized shadow */
}

/* ── Top: Hero Preview Area (Netflix Style) ── */
.sn-hero-container {
    position: relative;
    flex-grow: 1;
    width: 100%;
    height: 50vh;
    /* slightly taller */
    min-height: 380px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2); /* Optimized shadow */
}

.sn-hero-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.sn-hero-img-bg.active {
    opacity: 1;
}

.sn-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 2, 10, 1) 0%, rgba(5, 2, 10, 0.5) 70%, transparent 100%) /* Simplified gradient */;
    pointer-events: none;
}

.sn-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 10;
}

.sn-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-self: flex-start;
}

.sn-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sn-hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.sn-hero-title.snft,
.sn-hero-desc.snft {
    opacity: 0;
    transform: translateY(10px);
}

.sn-hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sn-btn-watch,
.sn-btn-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease;
}

.sn-btn-watch {
    background: #fff;
    color: #000 !important;
    border: none;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2); /* Optimized shadow */
}

.sn-btn-watch:hover {
    transform: translateY(-3px) scale(1.03);
    background: #e6e6e6;
}

.sn-btn-info {
    background: rgba(100, 100, 100, 0.5);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sn-btn-info:hover {
    background: rgba(120, 120, 120, 0.7);
    transform: translateY(-3px) scale(1.03);
}

/* ── Bottom: Category Tabs & Landscape Cards ── */
.sn-cards-container {
    position: relative;
}

.sn-category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sn-category-tabs::-webkit-scrollbar {
    display: none;
}

.sn-category-btn {
    background: rgba(25, 25, 30, 0.8); /* Opaque fallback */
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sn-category-btn:hover {
    color: #fff;
    background: rgba(40, 40, 45, 0.9); /* Hover opaque fallback */
}

.sn-category-btn.active {
    color: #fff;
    background: rgba(155, 93, 229, 0.4);
    border-color: #9b5de5;
}

.sn-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Switched to 4 columns for larger cards */
    gap: 20px;
    /* Slightly wider gap */
    opacity: 1;
    transition: opacity 0.4s ease;
    /* 400ms transition */
}

.sn-cards-grid.fade-out {
    opacity: 0;
}

.sn-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    /* Increased thumbnail height slightly */
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Optimized shadow */
    display: block;
    text-decoration: none;
    /* will-change removed: static GPU layers for every card wastes VRAM */
}

.sn-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: brightness(0.85);
}

/* Hover Effects - Netflix Style */
.sn-card:hover {
    transform: scale(1.05) translateY(-5px);
    /* Smooth Netflix lift */
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.7), 0 0 12px rgba(155, 93, 229, 0.2); /* Optimized shadow */
}

.sn-card:hover img {
    transform: scale(1.03);
    /* Subtle internal image scale */
    filter: brightness(0.35);
    /* Darken sufficiently for text to pop */
}

/* Description Overlay */
.sn-card-overlay {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align content to bottom */
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.sn-card:hover .sn-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.sn-card-title-hover {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    /* Larger for better readability */
    margin-bottom: 6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
}

.sn-card-desc-hover {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Exactly 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Play Button - Recommendation */
.sn-card-play {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    /* backdrop-filter removed from card play button — invisible in normal use, creates extra paint layer */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1rem;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.5); /* Optimized shadow */
    padding-left: 3px;
}

.sn-card:hover .sn-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Regular info (always visible unless hovered) */
.sn-card-info-static {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.2) 100%);
    transition: opacity 0.2s ease;
}

.sn-card:hover .sn-card-info-static {
    opacity: 0;
}

.sn-card-static-title {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.sn-card-badge-static {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #9b5de5;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* Optimized shadow */
}

@media (max-width: 1024px) {
    .sn-top-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .sn-trending-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
    }

    .sn-trending-title {
        margin-right: 15px;
        margin-bottom: 0;
    }

    .sn-trending-list {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
    }

    .sn-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .sn-hero-container {
        height: 35vh;
    }
}

@media (max-width: 768px) {
    .sn-wrap {
        margin-top: 60px;
        margin-bottom: 60px;
        padding: 20px 10px;
    }

    .sn-glass-inner {
        padding: 20px 18px;
        gap: 22px;
    }

    .sn-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Trending: title stacks above the scrolling video strip ── */
    .sn-trending-sidebar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .sn-trending-title {
        margin-right: 0 !important;
        margin-bottom: 0;
    }

    .sn-trending-list {
        width: 100%;
    }

    /* ── Fix: trending cards keep their natural proportions on mobile ── */
    .sn-trend-card {
        /* Fixed width so the card isn't stretched across the full screen width */
        width: 160px;
        flex-shrink: 0;
        height: 110px;
    }

    .sn-trend-card img {
        /* Preserve the original image proportions — no stretch, no squash */
        object-fit: contain;
        background: #000;
    }

    /* ── Featured Sermon: compact landscape card ── */
    .sn-hero-container {
        height: 220px;
        min-height: unset;
        border-radius: 16px;
    }

    /* Show more of the image — less zoomed */
    .sn-hero-img-bg {
        background-size: 130%;
        background-position: center center;
    }

    /* Content anchored bottom-left, landscape style */
    .sn-hero-content {
        position: absolute;
        inset: auto 0 0 0;
        padding: 14px 18px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
    }

    .sn-hero-badge {
        align-self: flex-start;
        margin-bottom: 6px;
        font-size: 0.6rem;
        padding: 3px 10px;
    }

    .sn-hero-title {
        font-size: 1.15rem;
        line-height: 1.15;
        margin-bottom: 5px;
    }

    /* Hide description in landscape to keep it tight */
    .sn-hero-desc {
        display: none;
    }

    .sn-hero-btns {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .sn-btn-watch,
    .sn-btn-info {
        width: auto;
        height: auto;
        padding: 8px 18px;
        font-size: 0.78rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sn-cards-grid {
        grid-template-columns: 1fr;
    }

    .sn-hero-container {
        height: 200px;
    }

    .sn-hero-title {
        font-size: 1rem;
    }

    .sn-btn-watch,
    .sn-btn-info {
        padding: 7px 14px;
        font-size: 0.72rem;
    }
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 560px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ─── Global Standard Mobile Spacing ─── */
@media (max-width: 768px) {

    .about-section,
    .pastor-section {
        padding: 60px 20px !important;
    }
}

/* Sunday School Timeline Locations */

/* Make sticky work on desktop, unstick on mobile */
@media (min-width: 992px) {
    .sticky-desktop {
        position: sticky;
        top: 120px;
    }
}

/* ─── MOBILE HERO: LANDSCAPE BANNER (All Pages) ─── */
@media (max-width: 768px) {

    /* 1. Landscape banner height — driven by content, not 100svh */
    .hero,
    .ref-hero {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 70px !important;
        padding-bottom: 50px !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Override Bootstrap h-100 inside hero to allow auto expansion */
    .hero .h-100,
    .ref-hero .h-100 {
        height: auto !important;
        min-height: unset !important;
    }

    /* 2. Content Centering & Formatting */
    .hero-content,
    .ref-hero-text {
        text-align: center;
        margin: 0 auto;
        width: 100%;
        padding: 0 15px;
        position: relative;
        z-index: 5;
    }

    /* Center the eyebrow badge */
    .hero-eyebrow {
        justify-content: center;
        margin-bottom: 8px !important;
        font-size: 0.72rem !important;
    }

    /* 3. Scale heading for landscape — fewer lines, tighter fit */
    .hero-title,
    .ref-heading {
        font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 10px !important;
    }

    /* 4. Compact description */
    
    .ref-intro {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
        margin-left: auto;
        margin-right: auto;
        max-width: 100% !important;
    }

    /* 5. Buttons — keep vertically stacked but tight */
    
    .ref-hero-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    .ref-btn-primary,
    .ref-btn-outline {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* 6. Hide scroll indicators to save vertical space */
    .hero-dots,
    .hero-scroll {
        display: none !important;
    }

    /* 7. Background image — cover, optimised per-page via ID below */
    .hero-slide {
        background-position: center 20% !important;
        background-size: cover !important;
        animation: none !important;
    }

    .ref-hero {
        background-position: center 15% !important;
        background-size: cover !important;
    }

    /* 8. Subpage hero ::before — HIDE by default on mobile.
          about-us.css sets .ref-hero::before to url('img/IMG_1244.webp').
          Displaying it on ALL subpages paints the wrong image over each
          page's own background-image (which lives on the element itself).
          Only the About page genuinely uses ::before as its image source;
          all other pages (Contact, Gallery, Ministries, Offering) carry
          their background on the <section> element directly. */
    .ref-hero::before {
        display: none !important;
        animation: none !important;
    }

    /* About page exception: restore ::before (it IS the background image),
       fix the mobile-breaking fixed attachment. */
    #about-hero::before {
        display: block !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center 15% !important;
        animation: none !important;
    }

    /* 9. Overlay — lighten for mobile so the image shows through.
          Original was rgba(0,0,0,0.95) left → total blackout on a narrow screen. */
    .hero-overlay,
    .ref-hero::after {
        background: linear-gradient(to right,
                rgba(0, 0, 0, 0.75) 0%,
                rgba(0, 0, 0, 0.45) 50%,
                rgba(128, 70, 180, 0.25) 100%) !important;
    }

    /* 10. Home page slider — dedicated optimised mobile images */
    .hero-slide-1 {
        background-image: url('img/IMG_1244-mobile.webp') !important;
        background-position: center 20% !important;
    }

    .hero-slide-2 {
        background-image: url('img/img3-mobile.webp') !important;
        background-position: center 25% !important;
    }

    .hero-slide-3 {
        background-image: url('img/IMG_0103-mobile.webp') !important;
        background-position: center 20% !important;
    }

    /* ── Per-page background-position fine-tuning ── */

    /* About fine-tuning already handled in the #about-hero::before block above */



    /* Ministries — inline background-image on the <section> itself */
    #ministries-hero {
        background-size: cover !important;
        background-position: center 25% !important;
        background-attachment: scroll !important;
    }

    /* Contact — inline background-image on the <section> itself. */
    #contact-hero {
        background-size: cover !important;
        background-position: center 30% !important;
        background-attachment: scroll !important;
    }

    /* Offering — consistent framing */
    #offering-hero {
        background-size: cover !important;
        background-position: center 20% !important;
        background-attachment: scroll !important;
    }

}

/* end @media (max-width: 768px) — mobile hero visibility */

/* ─── HOME PAGE: MOBILE LAYOUT PRIORITY ─── */
@media (max-width: 768px) {

    /* Hero gets ~25% more vertical space than the default landscape banner.
       The .hero class is only used on the Home page slider. */
    .hero {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
        min-height: 55vh !important;
    }

    /* Verse section — compact it so the hero has clear visual priority */
    .verse-section {
        padding: 16px 20px !important;
        min-height: 0 !important;
    }

    /* Tighten internal verse element spacing only */
    .verse-label {
        margin-bottom: 5px !important;
        font-size: 11px !important;
    }

    .verse-text {
        font-size: clamp(16px, 4.5vw, 22px) !important;
        margin-bottom: 6px !important;
        line-height: 1.45 !important;
    }

    .verse-ref {
        font-size: 14px !important;
    }

    /* Scripture banner — compact to ~37% shorter on mobile */
    .scripture-banner {
        padding: 40px 20px !important;
    }

}

/* ─── MINISTRY TWO-COLUMN LAYOUT DESKTOP GAP ─── */
@media (min-width: 992px) {
    .ministry-row {
        --bs-gutter-x: 80px;
    }
}

/* ─── JOIN US THIS SUNDAY SECTION ─── */
.join-sunday-wrapper {
    padding: 60px 20px;
    background-color: transparent;
    display: flex;
    justify-content: center;
}

.join-sunday-section {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    padding: 60px 40px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.15); /* Optimized shadow */
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.join-parallax-bg {
    position: absolute;
    top: -50%;
    bottom: -50%;
    left: 0;
    right: 0;
    background-image: url('img/worship_bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    /* will-change removed to free GPU memory */
}

.join-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 10, 50, 0.85) 0%, rgba(10, 5, 20, 0.7) 100%);
    z-index: 1;
}

.join-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.join-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.join-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

.join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6d28d9;
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 8px rgba(109, 40, 217, 0.4); /* Optimized shadow */
}

.join-btn:hover {
    background-color: #5b21b6;
    transform: translateY(-3px);
    box-shadow: 0 10px 12px rgba(109, 40, 217, 0.6); /* Optimized shadow */
    color: #fff;
}

.join-locations {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    margin-top: auto;
}

.loc-item {
    flex: 1;
    min-width: 0;
    padding: 15px 10px;
    background: rgba(25, 25, 30, 0.8); /* Opaque fallback */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    /* backdrop-filter removed for perf */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loc-item:hover {
    background: rgba(40, 40, 45, 0.9); /* Hover opaque fallback */
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
}

.loc-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.loc-time {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c9a9ff;
    margin-top: auto;
}

@media (max-width: 992px) {
    .join-locations {
        flex-direction: column;
        gap: 12px;
    }

    .loc-item {
        width: 100%;
        padding: 12px;
    }

    .join-sunday-section {
        padding: 40px 20px;
        border-radius: 16px;
        height: auto;
        min-height: 500px;
    }

    .join-title {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════
   THIS WEEK'S VERSE
═══════════════════════════════════════ */
.verse-section {
    position: relative;
    z-index: 10;
    padding: 28px 24px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, var(--cream) 0%, var(--white) 100%);
    text-align: center;
}

.verse-waves {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.vw-shape {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    border-radius: 50%;
    filter: blur(15px);
}

.vw-1 {
    width: max(800px, 80vw);
    height: max(340px, 34vw);
    background: #EDE7F6;
    opacity: 0.12;
}

.vw-2 {
    width: max(600px, 60vw);
    height: max(280px, 28vw);
    background: #7B2CBF;
    opacity: 0.10;
}

.vw-3 {
    width: max(450px, 45vw);
    height: max(210px, 21vw);
    background: #6A1B9A;
    opacity: 0.08;
}

.vw-4 {
    width: max(300px, 30vw);
    height: max(145px, 15vw);
    background: #4A148C;
    opacity: 0.07;
}

.vw-5 {
    width: max(160px, 16vw);
    height: max(80px, 8vw);
    background: #2D004D;
    opacity: 0.06;
}

.verse-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.verse-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy-mid);
    margin-bottom: 8px;
}

.verse-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
    font-style: normal;
}

.verse-ref {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 1px;
}

/* ─── DECORATIVE WAVE BACKGROUND (HOME ABOUT) ─── */
.wave-bg-home-about {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600'%3E%3Cdefs%3E%3Cfilter id='blur' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='20' /%3E%3C/filter%3E%3C/defs%3E%3Cpath fill='%23b388ff' fill-opacity='0.10' filter='url(%23blur)' d='M0,150 C400,300 800,0 1440,250 L1440,600 L0,600 Z'%3E%3C/path%3E%3Cpath fill='%237b2cbf' fill-opacity='0.08' d='M0,350 C400,200 800,500 1440,350 L1440,600 L0,600 Z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-size: cover !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    /* Changed from fixed → scroll: fixed forces full-page repaint on every scroll pixel */
    background-attachment: scroll !important;
}

/* --- Premium Sermon Section Animations --- */
@keyframes snFadeUpSection {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes snSlideInHero {
    0% {
        opacity: 0;
        transform: translateX(-60px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes snSlideInCard {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes snFadeUpText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes snParallaxBg {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

.sn-wrap:not(.sn-animated) {
    opacity: 0;
}

.sn-wrap:not(.sn-animated) .sn-hero-container,
.sn-wrap:not(.sn-animated) .sn-trend-card,
.sn-wrap:not(.sn-animated) .sn-card,
.sn-wrap:not(.sn-animated) .sn-hero-desc,
.sn-wrap:not(.sn-animated) .sn-hero-btns {
    opacity: 0;
}

.sn-wrap.sn-animated {
    animation: snFadeUpSection 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sn-wrap.sn-animated .sn-hero-container {
    animation: snSlideInHero 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.8s;
}

.sn-wrap.sn-animated .sn-bg-container {
    animation: snParallaxBg 10s ease-out forwards;
    animation-delay: 0.8s;
}

.sn-wrap.sn-animated .sn-trend-card:nth-child(1),
.sn-wrap.sn-animated .sn-card:nth-child(1) {
    animation: snSlideInCard 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.80s;
}

.sn-wrap.sn-animated .sn-trend-card:nth-child(2),
.sn-wrap.sn-animated .sn-card:nth-child(2) {
    animation: snSlideInCard 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.88s;
}

.sn-wrap.sn-animated .sn-trend-card:nth-child(3),
.sn-wrap.sn-animated .sn-card:nth-child(3) {
    animation: snSlideInCard 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.96s;
}

.sn-wrap.sn-animated .sn-trend-card:nth-child(4),
.sn-wrap.sn-animated .sn-card:nth-child(4) {
    animation: snSlideInCard 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.04s;
}

.sn-wrap.sn-animated .sn-trend-card:nth-child(5),
.sn-wrap.sn-animated .sn-card:nth-child(5) {
    animation: snSlideInCard 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.12s;
}

.sn-wrap.sn-animated .sn-trend-card:nth-child(n+6),
.sn-wrap.sn-animated .sn-card:nth-child(n+6) {
    animation: snSlideInCard 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.20s;
}

.sn-wrap.sn-animated .sn-hero-desc,
.sn-wrap.sn-animated .sn-hero-btns {
    animation: snFadeUpText 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.6s;
}

.sn-trend-card:hover,
.sn-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    border-color: rgba(155, 93, 229, 0.8) !important;
    box-shadow: 0 8px 12px rgba(155, 93, 229, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3) !important; /* Optimized shadow */
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}
