/* =========================================================
   ZENITH KARATE ACADEMY
   HOMEPAGE INSTRUCTOR POLISH
========================================================= */

.meet-our-instructor {
    position: relative;
    z-index: 1;
    overflow: visible;
    isolation: isolate;
}

.meet-our-instructor::before {
    content: none;
}

.meet-our-instructor::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(76rem, 88%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), rgba(230, 15, 50, 0.45), transparent);
    pointer-events: none;
}

.meet-our-instructor .container {
    position: relative;
    z-index: 2;
}

.instructor-profile {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.instructor-profile::before {
    content: "SENSEI";
    position: absolute;
    top: 50%;
    right: calc(100% + clamp(2.25rem, 5vw, 5rem));
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 0;
    color: rgba(255, 255, 255, 0.13);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5.5rem, 9vw, 9.5rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: 0.08em;
    white-space: nowrap;
    pointer-events: none;
}

.instructor-profile::after {
    content: "";
    position: absolute;
    top: 16%;
    right: calc(100% + clamp(1.15rem, 2.4vw, 2rem));
    width: 2px;
    height: 68%;
    background: linear-gradient(180deg, transparent, rgba(230, 15, 50, 0.75) 35%, rgba(253, 178, 3, 0.6) 65%, transparent);
    z-index: 0;
    pointer-events: none;
}

.instructor-image {
    position: relative;
    z-index: 1;
}

.instructor-image::before {
    content: "";
    position: absolute;
    inset: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 0.35rem;
    transform: translate(0.7rem, 0.7rem);
    pointer-events: none;
    z-index: -1;
}

.instructor-image::after {
    content: "4TH DAN";
    position: absolute;
    left: 0.4rem;
    bottom: 0.7rem;
    padding: 0.35rem 0.65rem;
    background: rgba(8, 8, 8, 0.88);
    border-left: 2px solid #fdb203;
    color: #fdb203;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.13rem;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.instructor-details {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    padding-left: clamp(0rem, 1vw, 0.9rem);
}

.instructor-details::before {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #e60f32, #fdb203);
}

.instructor-details .secondaryInfoText {
    margin-bottom: 0.65rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0.04rem;
}

.instructor-details .title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0.5rem 0 0;
    padding: 0.4rem 0.65rem;
    background: rgba(253, 178, 3, 0.06);
    border: 1px solid rgba(253, 178, 3, 0.25);
    border-radius: 0.2rem;
    color: #fdb203;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.instructor-details p {
    position: relative;
    max-width: 32rem;
    margin: 1.8rem 0 0;
    padding: 1rem 0 0 1.2rem;
    border-left: 2px solid rgba(230, 15, 50, 0.8);
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    font-style: italic;
    line-height: 1.85;
}

.instructor-details p::before {
    content: "“";
    position: absolute;
    top: -0.6rem;
    left: 0.65rem;
    color: rgba(253, 178, 3, 0.35);
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .instructor-profile::before {
        right: calc(100% + 1.75rem);
        font-size: clamp(5rem, 8vw, 8rem);
    }

    .instructor-profile::after {
        right: calc(100% + 0.85rem);
    }
}

@media (max-width: 900px) {
    .instructor-profile::before {
        right: calc(100% + 1.35rem);
        font-size: clamp(4.5rem, 10vw, 7rem);
    }

    .instructor-profile::after {
        right: calc(100% + 0.55rem);
    }

    .instructor-image::before {
        inset: 0.5rem;
        transform: translate(0.5rem, 0.5rem);
    }
}

@media (max-width: 700px) {
    .meet-our-instructor {
        overflow: visible;
    }

    .instructor-profile {
        position: relative;
        z-index: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-top: 1rem;
    }

    .instructor-information > .titleText {
        display: block;
        width: 100%;
        font-size: clamp(2.3rem, 10vw, 4rem);
        line-height: 0.95;
        letter-spacing: 0.02em;
        text-wrap: balance;
        overflow-wrap: anywhere;
    }

    .instructor-profile::before {
        top: 0;
        right: auto;
        left: 50%;
        bottom: auto;
        transform: translateX(-50%);
        writing-mode: horizontal-tb;
        font-size: clamp(3.8rem, 15vw, 6rem);
        letter-spacing: 0.18em;
        color: rgba(255, 255, 255, 0.055);
        line-height: 1;
        z-index: 0;
    }

    .instructor-profile::after {
        top: 2.7rem;
        right: auto;
        left: 50%;
        bottom: auto;
        width: 3.5rem;
        height: 2px;
        transform: translateX(-50%);
        z-index: 0;
    }

    .instructor-image {
        position: relative;
        z-index: 2;
        width: min(100%, 22rem);
        margin-inline: auto;
        margin-top: 1.7rem;
    }

    .instructor-image::before {
        inset: 0.45rem;
        transform: translate(0.45rem, 0.45rem);
    }

    .instructor-details {
        position: relative;
        z-index: 3;
        width: min(100%, 32rem);
        max-width: 100%;
        margin-inline: auto;
        padding: 0 0.25rem;
        text-align: center;
    }

    .instructor-details::before {
        width: 2.75rem;
        height: 2px;
        margin: 0 auto 0.85rem;
    }

    .instructor-details .secondaryInfoText {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-bottom: 0.9rem;
        font-size: clamp(2rem, 8.5vw, 3rem);
        line-height: 0.95;
        letter-spacing: 0.015em;
        text-wrap: balance;
        overflow-wrap: anywhere;
    }

    .instructor-details .title {
        display: flex;
        width: fit-content;
        max-width: 100%;
        margin: 0.25rem auto 0;
        padding: 0.42rem 0.65rem;
        font-size: clamp(0.58rem, 2.5vw, 0.68rem);
        line-height: 1.2;
        letter-spacing: 0.065rem;
        text-align: center;
        white-space: normal;
    }

    .instructor-details p {
        max-width: 100%;
        margin: 1.35rem 0 0;
        padding: 0.9rem 0 0 0.95rem;
        font-size: clamp(0.86rem, 3.5vw, 0.98rem);
        line-height: 1.7;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .instructor-image::after {
        left: 50%;
        transform: translateX(-50%);
        font-size: clamp(0.54rem, 2.5vw, 0.62rem);
        padding: 0.32rem 0.55rem;
        letter-spacing: 0.1rem;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .instructor-image img {
        transition: none;
    }
}
