/* ═══════════════════════════════════════
   HOME PAGE — Premium CSS
   ═══════════════════════════════════════ */

/* ─── Hero — Split Layout ─── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: var(--nav-h) 6vw 4rem;
    background: var(--dark);
    overflow: hidden;
    box-sizing: border-box;
}

/* Subtle dark radial glow backdrop */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 70% at 70% 50%, rgba(207, 170, 110, 0.06) 0%, transparent 65%),
        radial-gradient(ellipse 60% 80% at 20% 40%, rgba(17, 26, 11, 0.6) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-overlay {
    display: none;
}

/* ── Left: editorial content ── */
.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent);
    opacity: 0.7;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem, 6.5vw, 5.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.0;
    letter-spacing: -0.01em;
    margin: 0;
}

.hero-dot {
    color: var(--accent);
}

.hero-sub {
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.55);
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    line-height: 1.75;
    font-weight: 300;
    margin: 0;
    animation: heroFadeUp 1.2s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* CTA buttons */
.hero-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    animation: heroFadeUp 1.2s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.7rem;
    background: var(--accent);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 100px;
    letter-spacing: 0.03em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary-hero:hover {
    background: #e8c97a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(207, 170, 110, 0.3);
}

.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 100px;
    letter-spacing: 0.03em;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.btn-outline-hero:hover {
    border-color: rgba(207, 170, 110, 0.5);
    color: #cfaa6e;
    background: rgba(207, 170, 110, 0.06);
    transform: translateY(-2px);
}

.footer {
    background: #111a0b;
    padding: 8rem 0 4rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* Sync with carousel */
}

/* Stats row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    animation: heroFadeUp 1.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #cfaa6e;
    line-height: 1;
}

.hero-stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

/* ── Right: animated SVG logo ── */
.hero-svg-wrap {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: heroFadeUp 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-svg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(207, 170, 110, 0.10) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.85);
    }

    to {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.hero-svg-inner {
    position: relative;
    width: clamp(380px, 44vw, 560px);
    aspect-ratio: 1;
}

.hero-svg-inner svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ── SVG Circle Rotation animations ── */

/* Outer ring: slowly rotates ANTI-CLOCKWISE */
@keyframes svg-spin-ccw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Inner ring: very slowly rotates CLOCKWISE */
@keyframes svg-spin-cw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Applied by JS to the actual <g> elements inside the embedded SVG */
.hero-svg-inner svg .svg-outer-anim {
    transform-origin: 300px 300px;
    animation: svg-spin-ccw 40s linear infinite;
}

.hero-svg-inner svg .svg-inner-anim {
    transform-origin: 300px 300px;
    animation: svg-spin-cw 80s linear infinite;
}

.hero-svg-caption {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.hero-svg-caption span {
    color: var(--accent);
    margin: 0 0.2em;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollFadeUp 1.4s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    z-index: 2;
}

.hero-scroll-hint .chevron {
    width: 16px;
    height: 16px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    animation: scrollBounce 2.5s 2s ease-in-out infinite;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes scrollFadeUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: calc(var(--nav-h) + 1rem) 5vw 2rem;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
        gap: 2rem;
    }

    .hero-label::before {
        display: none;
    }

    .hero-tagline {
        font-size: clamp(2.5rem, 9vw, 4rem);
        margin-bottom: -1rem;
        /* Pull SVG a little closer to the title */
    }

    .hero-svg-wrap {
        width: 100%;
    }

    .hero-svg-inner {
        width: clamp(220px, 65vw, 340px);
    }

    .hero-svg-glow {
        width: 300px;
        height: 300px;
    }

    .hero-cta-row {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        padding-top: 1.5rem;
        /* Balanced spacing to prevent overlap */
        width: 100%;
        max-width: 440px;
        margin-bottom: 4rem;
        /* Ensure space for scroll hint */
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero-svg-inner {
        width: 200px;
    }
}



@keyframes scrollBounce {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.5;
    }

    50% {
        /* When rotated 45deg, translating X and Y equally results in a straight vertical move down */
        transform: rotate(45deg) translate(6px, 6px);
        opacity: 1;
    }
}

/* ═══════════════════════════════════ */
/* ─── Partner Strip ─── */
/* ═══════════════════════════════════ */
.partner-strip {
    background: #0a1107;
    /* Very dark green to match theme */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 4rem 0 2.5rem;
    position: relative;
    z-index: 5;
}

.partner-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .partner-strip-inner {
        gap: 0.85rem;
        padding: 0 1rem;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .partner-logo {
        max-height: 24px;
    }

    .naseeha-logo {
        max-height: 28px;
        /* More aggressive pull for visual center */
    }
}

.partner-logo {
    max-height: 52px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.5);
    transition: filter var(--trans-fast), transform var(--trans-fast);
}

.naseeha-logo {
    max-height: 56px;
}

.malja-logo {
    max-height: 48px;
}

.partner-logo:hover {
    filter: brightness(0) invert(1) opacity(0.9);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .partner-strip {
        padding: 3rem 0 2rem;
    }

    .partner-strip-inner {
        gap: 3rem;
    }

    .partner-logo {
        max-height: 40px;
    }

    .naseeha-logo {
        max-height: 44px;
    }

    .malja-logo {
        max-height: 36px;
    }
}

@media (max-width: 480px) {
    .partner-strip-inner {
        gap: 2rem;
        justify-content: space-evenly;
    }

    .partner-logo {
        max-height: 32px;
    }

    .naseeha-logo {
        max-height: 36px;
    }

    .malja-logo {
        max-height: 28px;
    }
}

/* ═══════════════════════════════════ */
/* ─── Gallery section ─── */
/* ═══════════════════════════════════ */
.gallery-section {
    background: var(--light);
    padding: 5rem 0 4rem;
    overflow: hidden;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 0.75rem;
}

.gallery-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1c2916;
    /* Dark theme green */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    transition: color 0.3s, transform 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.gallery-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .gallery-header {
        margin-bottom: 2rem;
    }
    .gallery-link {
        font-size: 0.75rem;
        border-bottom: 1.5px solid #1c2916;
        padding-bottom: 2px;
        margin-bottom: 1rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 16px;
    align-items: center;
}

.gallery-grid .g-item {
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--trans), box-shadow var(--trans);
}

.gallery-grid .g-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 0px var(--accent);
    transition: box-shadow var(--trans-fast);
    z-index: 2;
    pointer-events: none;
}

.gallery-grid .g-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 26, 11, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--trans);
    z-index: 1;
    pointer-events: none;
}

.gallery-grid .g-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.gallery-grid .g-item:hover::before {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.gallery-grid .g-item:hover::after,
.gallery-grid .g-item.active::after {
    opacity: 1;
}

.gallery-grid .g-item {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        z-index 0s;
}

.gallery-grid .g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: url(#duotone-green-cream);
    transition: filter 0.6s ease;
}

.gallery-grid .g-item:hover img,
.gallery-grid .g-item.active img {
    filter: none;
}

.gallery-grid .g-item:hover,
.gallery-grid .g-item.active {
    transform: translateY(-15px) scale(1.02);
    z-index: 10;
}

/* ── Collage specific positioning (Misaligned Grid) ── */
.g-item-1 {
    grid-column: 1 / 6;
    grid-row: 1 / 4;
    height: 480px;
    margin-top: 30px;
}

.g-item-2 {
    grid-column: 6 / 10;
    grid-row: 1 / 5;
    height: 500px;
    z-index: 2;
    transform: translateX(-10px);
}

.g-item-3 {
    grid-column: 10 / 13;
    grid-row: 1 / 5;
    height: 420px;
    margin-top: 0px;
}

.g-item-4 {
    grid-column: 1 / 7;
    grid-row: 5 / 8;
    height: 400px;
    margin-top: 0px;
    z-index: 3;
}

.g-item-5 {
    grid-column: 7 / 13;
    grid-row: 5 / 9;
    height: 420px;
    margin-top: -120px;
    transform: translateX(10px);
}

.g-item-6 {
    display: none;
}

/* ── Captions ── */
.g-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--trans-fast), transform var(--trans-fast);
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.gallery-grid .g-item:hover .g-item-caption,
.gallery-grid .g-item.active .g-item-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Collage Board ── */
@media (max-width: 767px) {
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: auto;
        gap: 6px;
        /* Ultra-tightened from 8px - Phase 33 */
        position: relative;
        height: auto;
        width: 100%;
        margin: 0;
        overflow: visible;
    }

    .gallery-grid .g-item {
        position: relative;
        /* Not absolute like previous scattered version */
        width: 100%;
        height: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        margin: 0;
        z-index: 1;
        animation: none;
        /* No wiggle as per user request for parallax parity */
        overflow: hidden;
    }

    .gallery-grid .g-item-1 {
        grid-column: 1 / 7;
        grid-row: 1 / 4;
        height: 240px;
        margin-top: 0;
    }

    .gallery-grid .g-item-2 {
        grid-column: 7 / 13;
        grid-row: 2 / 6;
        height: 280px;
        z-index: 2;
        transform: translateX(-5px);
        margin-top: 0;
    }

    .gallery-grid .g-item-3 {
        grid-column: 1 / 7;
        grid-row: 5 / 8;
        height: 220px;
        margin-top: 0;
    }

    .gallery-grid .g-item-4 {
        grid-column: 7 / 13;
        grid-row: 7 / 11;
        height: 260px;
        margin-top: 0;
        z-index: 3;
    }

    .gallery-grid .g-item-5 {
        grid-column: 1 / 7;
        grid-row: 9 / 13;
        height: 220px;
        margin-top: 0;
    }

    .gallery-grid .g-item-6 {
        display: block;
        grid-column: 7 / 13;
        grid-row: 12 / 16;
        height: 240px;
        margin-top: 0;
    }

    /* Gallery Overlay for Backdrop focus and blocking accidental clicks */
    #gallery-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    body.gallery-open #gallery-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Gallery Overlay - Deeper, more immersive backdrop */
    #gallery-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(15px) saturate(160%);
        -webkit-backdrop-filter: blur(15px) saturate(160%);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.gallery-open #gallery-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Dedicated Premium Viewer Box */
    #gallery-viewer {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -46%) scale(0.92);
        width: 92vw;
        max-width: 520px;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }

    body.gallery-open #gallery-viewer {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
    }

    /* The 'Lifting' Card with Glassmorphism */
    .viewer-card {
        position: relative;
        background: rgba(28, 41, 22, 0.65);
        /* Semi-translucent dark green base */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(201, 168, 76, 0.25);
        border-radius: var(--radius-lg);
        padding: 14px 14px 75px 14px;
        box-shadow:
            0 30px 100px rgba(0, 0, 0, 0.8),
            0 0 0 1px rgba(201, 168, 76, 0.1),
            inset 0 0 40px rgba(255, 255, 255, 0.05);
        overflow: hidden;
    }

    .viewer-image {
        width: 100%;
        max-height: 65vh;
        object-fit: cover;
        border-radius: var(--radius);
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
        display: block;
    }

    /* Premium Close Action Item */
    .viewer-close {
        position: absolute;
        top: -12px;
        right: -12px;
        width: 40px;
        height: 40px;
        background: var(--accent);
        border: 3px solid #1c2916;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        z-index: 5;
        cursor: pointer;
    }

    .viewer-close svg {
        width: 20px;
        height: 20px;
        stroke: #000;
    }

    /* Viewer Info Area */
    .viewer-info {
        position: absolute;
        bottom: 22px;
        left: 0;
        right: 0;
        text-align: center;
        padding: 0 25px;
    }

    .viewer-caption {
        font-family: 'Outfit', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        color: var(--white);
        line-height: 1.4;
        margin-bottom: 4px;
        letter-spacing: 0.01em;
    }

    .viewer-date {
        font-family: 'Outfit', sans-serif;
        font-size: 0.75rem;
        color: var(--accent);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        opacity: 0.9;
    }

    /* Body lock when gallery item is active */
    body.gallery-open {
        overflow: hidden !important;
    }

}

/* ═══════════════════════════════════ */
/* ─── Session + Join section ─── */
/* ═══════════════════════════════════ */
.session-join-section {
    background: var(--light);
    padding: 0rem 0 6rem;
    position: relative;
}

.session-join-inner {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.session-card {
    background: var(--gradient-dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow), 0 0 0 1px rgba(201, 168, 76, 0.06);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 320px;
    max-width: 950px;
    /* Increased from 800px */
    margin: 0 auto;
}

@media (max-width: 480px) {
    .session-card {
        padding: 1.5rem 1rem;
        min-width: unset;
        width: 100%;
        max-width: 100%;
    }
}

.session-card-body {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.calendar-wrapper {
    flex: 1;
    min-width: 250px;
    transition: all 0.4s ease;
}

/* ── Persistent Session Details Panel ── */
.session-details-panel {
    flex: 1;
    max-width: 320px;
    opacity: 1;
    overflow: hidden;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 767px) {
    .session-card-title {
        text-align: center;
    }

    .session-card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .calendar-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .session-details-panel {
        max-width: 100%;
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1.5rem 0 0;
        margin: 1rem 0 0;
        text-align: left;
    }

    .join-card {
        min-width: unset;
        width: 100%;
        max-width: 100%;
    }
}

.sd-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.sd-grid {
    display: grid;
    gap: 1.1rem;
    padding-left: 0.5rem;
}

.sd-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sd-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
}

.sd-val {
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.4;
    font-weight: 500;
}

.session-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-glow);
    pointer-events: none;
}

.session-card-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-2);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    position: relative;
    text-transform: uppercase;
}

/* Calendar */
.calendar {
    user-select: none;
    position: relative;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cal-nav-btn {
    color: var(--white);
    font-size: 1.1rem;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background var(--trans-fast), color var(--trans-fast);
}

.cal-nav-btn:hover {
    background: rgba(201, 168, 76, 0.15);
    color: var(--accent);
}

.cal-month {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
}

.cal-dow {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(201, 168, 76, 0.6);
    padding: 6px 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: background var(--trans-fast), transform var(--trans-fast);
    color: rgba(255, 255, 255, 0.65);
}

.cal-day:not(.other-month):hover {
    background: rgba(255, 255, 255, 0.06);
}

.cal-day.today {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-weight: 600;
}

.cal-day.highlighted {
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.3), 0 0 16px rgba(201, 168, 76, 0.2);
    animation: pulseCal 2.5s ease-in-out infinite;
}

@keyframes pulseCal {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.3), 0 0 16px rgba(201, 168, 76, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(201, 168, 76, 0.1), 0 0 24px rgba(201, 168, 76, 0.1);
    }
}

.cal-day.other-month {
    opacity: 0.25;
}

.session-notes {
    margin-top: 1.2rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    position: relative;
}

/* Join card */
.join-card {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    border: 1.5px solid rgba(201, 168, 76, 0.25);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.04) 0%, rgba(201, 168, 76, 0.01) 100%);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    text-align: center;
    transition: transform var(--trans-fast), box-shadow var(--trans-fast);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.join-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.join-card .btn {
    align-self: center;
    width: fit-content;
    min-width: 160px;
    justify-content: center;
}

.join-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.join-card p {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.join-perks {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--dark-2);
    font-weight: 500;
}

.perk-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ═══════════════════════════════════ */
/* ─── About section ─── */
/* ═══════════════════════════════════ */
.about-section {
    background: var(--dark);
    color: var(--white);
    padding: 0;
    /* Full bleed backgrounds */
    position: relative;
    overflow: hidden;
    transition: background 0.8s ease;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
    pointer-events: none;
}

.about-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.about-fx-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.about-slide.active .about-fx-layer {
    opacity: 1;
}

/* Slide 1: Seekers Glow & Stars */
.slide-1-fx .glow-ball {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    filter: blur(80px);
    animation: moveGlow 15s infinite alternate ease-in-out;
}

@keyframes moveGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30%, 20%) scale(1.2);
    }

    100% {
        transform: translate(-10%, 40%) scale(0.9);
    }
}

.shooting-star {
    position: absolute;
    top: 0;
    left: 50%;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: rotate(-45deg);
    opacity: 0;
}

.about-slide.active .shooting-star:nth-child(2) {
    animation: shoot 8s infinite 2s;
    top: 10%;
    left: 80%;
}

.about-slide.active .shooting-star:nth-child(3) {
    animation: shoot 12s infinite 5s;
    top: 40%;
    left: 100%;
}

.about-slide.active .shooting-star:nth-child(4) {
    animation: shoot 10s infinite 8s;
    top: 20%;
    left: 60%;
}

@keyframes shoot {
    0% {
        transform: rotate(-45deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        transform: rotate(-45deg) translateX(-1000px);
        opacity: 0;
    }

    100% {
        transform: rotate(-45deg) translateX(-1000px);
        opacity: 0;
    }
}

/* Slide 2: Naseeha Blueprint Grid */
.slide-2-fx {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
}

/* Slide 3: TMUC Simple Dark Red */
.slide-3-fx {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

.about-carousel {
    display: flex;
    align-items: stretch;
    /* Ensure all slides take full height of the row */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.about-slide {
    flex: 0 0 100%;
    width: 100%;
    opacity: 0.3;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(600px, 85vh, 850px);
    /* Standardized height for all slides */
    padding: 6rem 0;
    /* Slide content spacing */
}

/* Session Details mobile compression */
@media (max-width: 600px) {
    .session-details-panel {
        padding-top: 1rem !important;
        margin-top: 0.5rem !important;
    }
    .sd-heading {
        margin-bottom: 0.75rem !important;
    }
    .sd-grid {
        gap: 0.6rem !important;
    }
}

/* Join perks mobile hardening */
@media (max-width: 768px) {
    .join-perks {
        display: none !important;
    }
}

.about-slide.active {
    opacity: 1;
    transform: scale(1);
}

.about-slide .container {
    position: relative;
    z-index: 2;
}

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

.about-left {
    transform: translateX(50px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.8s ease 0.1s;
}

.about-slide.active .about-left {
    transform: translateX(0);
    opacity: 1;
}

.about-left .section-title.light {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 2rem;
}

.about-left p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.85;
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
}

.about-goals {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
}

.about-goal {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
    transition: background var(--trans-fast), transform var(--trans-fast);
}

.about-goal-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.about-goal-text {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.about-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    transform: translateX(80px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.8s ease 0.2s;
}

.about-slide.active .about-right {
    transform: translateX(0);
    opacity: 1;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.about-img.main-img {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}

.about-img-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-img-grid .about-img {
    aspect-ratio: 4/3;
}

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

/* Brand Image Slide (Naseeha / TMUC) */
.about-right.brand-side {
    display: block;
    grid-template-columns: none;
    gap: 0;
}

.about-right.brand-side .about-brand-img {
    max-width: none;
    width: 100%;
}

.about-brand-img {
    width: 100%;
    margin-left: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    aspect-ratio: 4/5;
    /* Standardized 4:5 ratio for brand images */
}

.about-brand-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Span the full right side without gaps */
    display: block;
}

.about-mobile-logo {
    display: none;
    width: auto;
    height: 60px;
    object-fit: contain !important;
    filter: brightness(0) invert(1) opacity(0.8);
    margin: 2rem auto;
}

/* ── Carousel Chevrons ── */
.about-chevron-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    /* Visual center for chevron char */
}

.about-chevron-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.about-chevron-btn.prev {
    left: 2rem;
}

.about-chevron-btn.next {
    right: 2rem;
}

@media (max-width: 1024px) {
    .about-chevron-btn {
        display: none;
        /* Mobile/Tablet rely on swipe/dots */
    }
}

/* Dots */
.about-carousel-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

@media (max-width: 1200px) {
    .about-inner {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .about-slide {
        min-height: 520px;
        /* Force stable height on mobile */
        padding: 4rem 0;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .about-left {
        transform: translateY(0);
        padding: 0 1rem;
    }

    .about-slide[data-index="0"] .about-right {
        display: none !important;
    }

    .about-slide:not([data-index="0"]) .about-right {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0.5rem 0 0;
        /* Tightened from 2rem - Phase 33 */
        height: auto;
        transform: none;
        position: relative;
    }

    .about-brand-img {
        height: auto;
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: 0;
        /* Square edges as requested */
        box-shadow: none;
        position: relative;
    }

    .about-brand-img::after {
        display: none !important;
    }

    .about-brand-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .divider {
        margin: 1rem auto 2rem;
    }

    .about-carousel-dots {
        bottom: 2rem;
    }
}

/* ═══════════════════════════════════ */
/* ─── Series CTA ─── */
/* ═══════════════════════════════════ */
.series-cta-section {
    background: var(--light);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.series-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

/* ═══════════════════════════════════ */
/* ─── Global Responsive Overrides ─── */
/* ═══════════════════════════════════ */
@media (max-width: 1200px) {
    .session-join-inner {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-bottom: 5vh;
    }

    .about-slide {
        padding: 4rem 0;
    }

    /* Remove lazy loading/reveal from calendar on mobile */
    .session-card.reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 480px) {
    #gallery-home-title {
        font-size: 1.8rem;
    }

    .hero-tagline {
        letter-spacing: 0.01em;
    }

    .about-goal {
        padding: 0.8rem 1rem;
    }
}

/* Homepage Mobile Logo Toggle — Phase 31 REPAIR (Broadened to 900px) */
@media (max-width: 900px) {
    .about-brand-img {
        aspect-ratio: auto !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0.5rem 0 !important;
        /* Tightened from 4.5rem - Phase 33 */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        min-height: unset !important;
    }

    .about-brand-img picture {
        display: none !important;
        /* Force kill the image */
    }

    .about-mobile-logo {
        display: block !important;
        width: auto !important;
        max-width: 80% !important;
        height: min(100px, 15vh) !important;
        /* Scale responsibly */
        margin: 0 auto !important;
        filter: brightness(0) invert(1) opacity(0.85) !important;
        /* Clean white punch */
    }

    .about-right.brand-side {
        padding: 0 10% !important;
        /* Keep it centered */
    }
}