/* ==========================================================================
   Immersions — Figma Homepage 5622:2748 / 5622:2756 (1440 desktop)
   ========================================================================== */

.ashrams-immersions {
    width: 100%;
    padding: 96px 0 80px;
    background: #ffffff;
    box-sizing: border-box;
}

.ashrams-immersions__head {
    width: 100%;
    max-width: 736px;
    margin: 0 auto 48px;
    text-align: center;
    box-sizing: border-box;
}

.ashrams-immersions__title {
    margin: 0 0 24px;
    font-family: 'Cormorant Infant', var(--ashrams-serif, Georgia), serif;
    font-size: 45px;
    font-weight: 400;
    line-height: 48px;
    color: #4a4a4a;
    text-align: center;
}

.ashrams-immersions__subtitle {
    margin: 0 auto;
    max-width: 320px;
    font-family: 'Inter', var(--ashrams-inter, system-ui), sans-serif;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    line-height: 29.25px;
    color: #737373;
    text-align: center;
}

.ashrams-immersions__main {
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
    position: relative;
}

.ashrams-immersions__panel {
    display: none;
}

.ashrams-immersions__panel.is-active {
    display: block;
}

.ashrams-immersions__media {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 0 48px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.ashrams-immersions__frame {
    position: relative;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    height: 400px;
    background: #eceae6;
}

.ashrams-immersions__frame--primary {
    width: 750px;
    max-width: calc(100% - 32px - min(759px, 48%));
}

.ashrams-immersions__frame--secondary {
    /* Figma 5622:2767 — 826 wide; parent overflow clips peek */
    width: 826px;
    max-width: none;
}

.ashrams-immersions__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.ashrams-immersions__frame--secondary .ashrams-immersions__img {
    object-position: center center;
}

/* Figma nav controls — frosted white 160×60 on primary frame */
.ashrams-immersions__controls {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    width: 160px;
    height: 60px;
    background: rgba(255, 255, 255, 0.69);
    border-radius: 5px;
    overflow: hidden;
    z-index: 2;
}

.ashrams-immersions__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 60px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1a1a1a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ashrams-immersions__nav + .ashrams-immersions__nav {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.ashrams-immersions__caption {
    display: flex;
    align-items: flex-start;
    gap: 100px;
    width: 100%;
    max-width: 1173px;
    margin: 51px 0 0;
    padding: 0 48px 5px;
    box-sizing: border-box;
}

.ashrams-immersions__caption-left {
    flex: 0 0 320px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ashrams-immersions__eyebrow {
    margin: 0;
    font-family: 'Inter', var(--ashrams-inter, system-ui), sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666666;
}

.ashrams-immersions__heading {
    margin: 0;
    font-family: 'Cormorant Infant', var(--ashrams-serif, Georgia), serif;
    font-size: 30px;
    font-weight: 500;
    font-style: italic;
    line-height: 36px;
    color: #1a1a1a;
}

.ashrams-immersions__heading-line {
    display: block;
}

.ashrams-immersions__caption-right {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 653px;
}

.ashrams-immersions__body {
    margin: 0;
    font-family: 'Montserrat', var(--ashrams-sans, system-ui), sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #666666;
}

@media (max-width: 1199px) {
    .ashrams-immersions__media {
        padding: 0 24px;
        gap: 20px;
    }

    .ashrams-immersions__frame--primary,
    .ashrams-immersions__frame--secondary {
        width: calc(50% - 10px);
        max-width: none;
        height: clamp(240px, 32vw, 360px);
    }

    .ashrams-immersions__caption {
        gap: 48px;
        padding: 0 24px;
        margin-top: 40px;
    }
}

@media (max-width: 999px) {
    .ashrams-immersions {
        padding: 64px 0 56px;
    }

    .ashrams-immersions__title {
        font-size: 36px;
        line-height: 40px;
    }

    .ashrams-immersions__subtitle {
        font-size: 16px;
        line-height: 26px;
    }

    .ashrams-immersions__media {
        flex-direction: column;
        gap: 16px;
        padding: 0 20px;
    }

    .ashrams-immersions__frame--primary,
    .ashrams-immersions__frame--secondary {
        width: 100%;
        height: min(56vw, 320px);
    }

    .ashrams-immersions__caption {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        margin-top: 28px;
    }

    .ashrams-immersions__caption-left {
        flex: none;
        width: 100%;
    }

    .ashrams-immersions__heading {
        font-size: 26px;
        line-height: 32px;
    }
}

/* Phone — single image rail (Figma mobile); homepage CSS may refine further */
@media (max-width: 767px) {
    .ashrams-immersions__frame--secondary {
        display: none;
    }

    .ashrams-immersions__frame--primary {
        height: 13.9375rem;
        border-radius: 0.625rem;
    }

    .ashrams-immersions__media {
        padding: 0 1.5rem;
        gap: 0.75rem;
    }
}
