/* ============================================================
   INSTRUCTORS SECTION
   Editorial hero · gradient photo bleed · black & white
   File: /css/instructors-section.css
   ============================================================ */

/* ── Reset inside section ── */
.ins-section *,
.ins-section *::before,
.ins-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════════════
   SECTION
═══════════════════════════════════════════════ */
.ins-section {
    background: #000;
    color: #fff;
    overflow: hidden;
    position: relative;
    padding-bottom: 80px;
}

/* ═══════════════════════════════════════════════
   SLIDER
═══════════════════════════════════════════════ */
.ins-slider {
    position: relative;
    width: 100%;
}

.ins-slide {
    display: none;
    width: 100%;
}

.ins-slide.active {
    display: block;
    animation: insFadeIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ins-slide.ins-exit {
    display: block;
    animation: insFadeOut 0.35s ease forwards;
}

@keyframes insFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes insFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════
   HERO BLOCK — name left, photo right
═══════════════════════════════════════════════ */
.ins-hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* ── LEFT: Text ── */
.ins-hero-text {
    position: relative;
    z-index: 3;
    padding: 80px 0 80px 6vw;
    max-width: 52%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ins-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    font-family: inherit;
}

/* BIG editorial name */
.ins-name {
    font-size: clamp(64px, 9.5vw, 100px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -3px;
    text-transform: uppercase;
    color: #fff;
    font-family: inherit;
}

.ins-name-outline {
    color: #fff;
    -webkit-text-stroke: unset;
    display: block;
}

.ins-tagline {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-family: inherit;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 14px;
}

/* ── Social row ── */
.ins-social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ins-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.25s, transform 0.25s;
}

.ins-social-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.ins-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.ins-share-btn:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}

/* ── RIGHT: Photo ── */
.ins-hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 120%;
    z-index: 1;
}

.ins-photo-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.ins-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* position subject — photos have subject on right side */
    object-position: center top;
    display: block;
}

/* ── Gradient overlays — bleed photo into black ── */

/* LEFT fade: most important — text bleeds over */
.ins-photo-fade-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(to right,
            #000000 0%,
            #000000 20%,
            rgba(0, 0, 0, 0.92) 38%,
            rgba(0, 0, 0, 0.70) 55%,
            rgba(0, 0, 0, 0.25) 75%,
            transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* BOTTOM fade: bleeds into the bio section below */
.ins-photo-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.88) 75%,
            #000000 100%);
    z-index: 2;
    pointer-events: none;
}

/* TOP fade: subtle top edge blend */
.ins-photo-fade-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom,
            #000000 0%,
            transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   CONTENT WRAP (bio, achievements, gallery)
═══════════════════════════════════════════════ */
.ins-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6vw 20px;
    display: flex;
    flex-direction: column;
    gap: 72px;
    position: relative;
    z-index: 3;
}

/* ── Bio ── */
.ins-bio {
    border-left: 2px solid rgba(255, 255, 255, 0.12);
    padding-left: 28px;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ins-bio p {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.65);
    font-family: inherit;
    text-align: justify;
}

.ins-bio strong {
    color: #fff;
    font-weight: 600;
}

/* ── Section title (shared by achievements & gallery) ── */
.ins-block-title {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 36px;
    font-family: inherit;
    white-space: nowrap;
}

.ins-title-line {
    display: block;
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* ── Achievements grid ── */
.ins-ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.ins-ach-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s, background 0.3s;
}

.ins-ach-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.ins-ach-icon {
    color: #fff;
    font-size: 8px;
    margin-top: 6px;
    flex-shrink: 0;
}

.ins-ach-item strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    font-family: inherit;
}

.ins-ach-item p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
}

/* ── Gallery ── */
.ins-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ins-gallery-item {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

.ins-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ins-gallery-item:hover img {
    transform: scale(1.06);
}

.ins-gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    font-size: 22px;
}

.ins-gallery-item:hover .ins-gallery-hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════
   NAVIGATION — bottom arrows + dots
═══════════════════════════════════════════════ */
.ins-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 48px 0 24px;
    position: relative;
    z-index: 4;
}

.ins-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.25s, transform 0.25s;
    flex-shrink: 0;
}

.ins-arrow:hover {
    color: #fff;
}

.ins-arrow-prev:hover {
    transform: translateX(-4px);
}

.ins-arrow-next:hover {
    transform: translateX(4px);
}

/* Dots */
.ins-dots {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ins-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

/* the bar */
.ins-dot::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.35s ease, background 0.35s ease;
}

.ins-dot.active::before {
    width: 64px;
    background: #fff;
}

.ins-dot-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    font-family: inherit;
    transition: color 0.3s;
    white-space: nowrap;
}

.ins-dot.active .ins-dot-name {
    color: #fff;
}

/* ═══════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════ */
.ins-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ins-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.ins-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.ins-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ins-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ins-hero-text {
        max-width: 60%;
        padding: 70px 0 70px 5vw;
    }

    .ins-hero-photo {
        width: 85%;
        height: 60%;
    }

    .ins-name {
        font-size: clamp(52px, 8vw, 100px);
        letter-spacing: -2px;
    }
}

@media (max-width: 768px) {
    .ins-hero {
        flex-direction: column;
        min-height: auto;
    }

    .ins-hero-text {
        max-width: 100%;
        padding: 50px 6vw 30px;
        position: relative;
        z-index: 3;
    }

    .ins-hero-photo {
        position: relative;
        width: 100%;
        height: 60vw;
        min-height: 300px;
    }

    /* On mobile the photo is below the text, fade bottom only */
    .ins-photo-fade-left {
        display: none;
    }

    .ins-photo-fade-top {
        height: 30%;
        background: linear-gradient(to bottom, #000 0%, transparent 100%);
    }

    .ins-name {
        font-size: clamp(38px, 9vw, 68px);
        letter-spacing: -2px;
    }

    .ins-content-wrap {
        padding: 0 5vw 20px;
        gap: 52px;
    }

    .ins-ach-grid {
        grid-template-columns: 1fr;
    }

    .ins-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .ins-dots {
        gap: 16px;
    }

    .ins-dot-name {
        font-size: 11px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .ins-name {
        font-size: clamp(30px, 9vw, 48px);
        letter-spacing: -1px;
    }

    .ins-nav {
        gap: 20px;
    }

    .ins-arrow {
        width: 44px;
        height: 44px;
    }

    .ins-block-title {
        font-size: 10px;
        letter-spacing: 4px;
        white-space: normal;
        text-align: center;
    }
}