/* Institutional History — page hero (desktop split + mobile full-bleed) */
.ih-hero {
    position: relative;
    overflow: hidden;
}

.ih-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    align-items: stretch;
    min-height: clamp(300px, 34vw, 480px);
}

.ih-hero__left {
    position: relative;
    background-color: #fef6f8;
    background-image: url("institutional/inner-hero-5.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.75rem, 4vw, 3.25rem)
        clamp(1.5rem, 4vw, 3rem);
}

.ih-hero__left-inner {
    position: relative;
    z-index: 1;
    max-width: 26rem;
}

.ih-hero__title {
    margin: 0 0 0.65rem;
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.65rem, 3.2vw, 2.6rem);
    line-height: 1.12;
    color: #111418;
}

.ih-hero__crumb {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
    font-weight: 500;
    color: #1a1f24;
}

.ih-hero__crumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ih-hero__crumb a:hover {
    color: #6ba0dc;
}

.ih-hero__sep {
    margin: 0 0.2rem;
    font-weight: 400;
    color: #3a4249;
}

.ih-hero__crumb-current {
    font-weight: 500;
}

.ih-hero__right {
    position: relative;
    min-height: clamp(300px, 34vw, 480px);
    background-color: #e5efe8;
    background-image: url("institutional/right-side-image.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.ih-hero__bn {
    position: absolute;
    right: clamp(1rem, 3vw, 2.75rem);
    bottom: clamp(0.85rem, 2.2vw, 2rem);
    margin: 0;
    max-width: min(92%, 22rem);
    text-align: right;
    font-family: "Noto Sans Bengali", "Poppins", sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.6rem);
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

/* Intro: illustration + story (desktop side-by-side, mobile stacked) */
.ih-intro {
    background-color: #ffffff;
}

.ih-intro__inner {
    box-sizing: border-box;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 3.75rem);
    align-items: center;
    padding: clamp(2.5rem, 6vw, 5.25rem) clamp(1.25rem, 4vw, 2.75rem);
}

.ih-intro__media {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.ih-intro__media img {
    width: 100%;
    max-width: min(100%, 520px);
    height: auto;
    display: block;
}

.ih-intro__heading {
    margin: 0 0 clamp(1rem, 2.5vw, 1.35rem);
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.65rem, 2.65vw, 2.35rem);
    line-height: 1.18;
    color: #14191d;
}

.ih-intro__body {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.72;
    color: #5a636c;
}

/* Legacy: split #ECF9FF / #FFF0F3 + overlapping photo card (desktop) */
.ih-legacy {
    position: relative;
    overflow: visible;
}

.ih-legacy__shell {
    position: relative;
    width: 100%;
    margin: 0 auto;
    min-height: clamp(320px, 40vw, 500px);
}

.ih-legacy__split {
    display: grid;
    grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
    align-items: stretch;
    min-height: inherit;
}

.ih-legacy__left {
    position: relative;
    z-index: 1;
    background-color: #ecf9ff;
    display: flex;
    align-items: center;
    padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 3.5vw, 2.75rem) clamp(2.25rem, 5vw, 4.5rem)
        clamp(1.25rem, 4vw, 3.5rem);
}

.ih-legacy__copy {
    max-width: min(36rem, 100%);
    padding-right: clamp(0.5rem, 2vw, 1.5rem);
}

.ih-legacy__heading {
    margin: 0 0 clamp(0.85rem, 2vw, 1.15rem);
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2.15rem);
    line-height: 1.2;
    color: #14191d;
}

.ih-legacy__body {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.72;
    color: #5a636c;
}

.ih-legacy__right {
    position: relative;
    z-index: 0;
    min-height: inherit;
    background-color: #fff0f3;
}

.ih-legacy__card {
    position: absolute;
    top: 50%;
    /* Split ≈ 65% (13fr / 20fr); shift left by 25% of card width so ~¼ sits on blue, ~¾ on pink */
    left: 65%;
    z-index: 2;
    width: min(52vw, 560px);
    max-width: calc(100% - 2rem);
    margin: 0;
    transform: translate(-25%, -50%);
    border-radius: clamp(12px, 1.4vw, 18px);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(20, 25, 30, 0.12);
}

.ih-legacy__card img {
    display: block;
    width: 100%;
    height: auto;
}

/* Kaviraj Sri Manoranjan Pakrashi — split #FFFFFF / #F7FFE0; card on seam, slightly left-weighted */
.ih-profile {
    overflow: visible;
}

.ih-profile__shell {
    position: relative;
    width: 100%;
    margin: 0 auto;
    min-height: clamp(320px, 42vw, 520px);
}

.ih-profile__split {
    display: grid;
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
    align-items: stretch;
    min-height: inherit;
}

.ih-profile__left {
    background-color: #ffffff;
    min-height: inherit;
}

.ih-profile__card {
    position: absolute;
    top: 50%;
    left: 29%;
    z-index: 2;
    width: min(40vw, 474px);
    max-width: calc(100% - 2rem);
    margin: 0;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 14px 40px rgba(20, 25, 30, 0.12));
}

.ih-profile__card-inner {
    position: relative;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: clamp(12px, 1.4vw, 16px);
    padding: clamp(18px, 2.5vw, 30px) clamp(18px, 2.5vw, 30px) clamp(32px, 4vw, 52px);
    box-shadow: 0 14px 42px rgba(20, 25, 30, 0.1);
}

.ih-profile__photo {
    border-radius: clamp(8px, 1vw, 12px);
    overflow: hidden;
    background-color: #f0eeeb;
    line-height: 0;
}

.ih-profile__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.ih-profile__card-lead {
    margin: clamp(0.85rem, 2vw, 1.1rem) 0 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
    font-weight: 400;
    line-height: 1.65;
    color: #4a525c;
}

.ih-profile__kolka {
    position: absolute;
    pointer-events: none;
    line-height: 0;
}

.ih-profile__kolka img {
    display: block;
    width: 100%;
    height: auto;
}

.ih-profile__kolka--bl {
    left: clamp(0.35rem, 1.2vw, 0.65rem);
    bottom: clamp(0.35rem, 1.2vw, 0.65rem);
    width: min(20%, 160px);
}

.ih-profile__kolka--br {
    right: clamp(0.35rem, 1.2vw, 0.65rem);
    bottom: clamp(0.35rem, 1.2vw, 0.65rem);
    width: min(20%, 160px);
}

.ih-profile__main {
    position: relative;
    z-index: 0;
    background-color: #f7ffe0;
    min-height: inherit;
    padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.35rem, 4vw, 3.25rem) clamp(2.25rem, 5vw, 4.5rem)
        clamp(1.25rem, 4vw, 2.75rem);
    padding-left: clamp(10rem, 23vw, 13.5rem);
}

.ih-profile__name {
    margin: 0 0 0.35rem;
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    line-height: 1.15;
    color: #0f1216;
}

.ih-profile__dates {
    margin: 0 0 clamp(1.1rem, 2.5vw, 1.5rem);
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.65vw, 1.2rem);
    color: #0f1216;
}

.ih-profile__main-bio {
    max-width: 56rem;
}

.ih-profile__bio-text {
    position: relative;
}

.ih-profile__main-bio--expanded .ih-profile__bio-text {
    max-height: none !important;
    overflow: visible;
}

.ih-profile__readmore {
    margin-top: clamp(0.5rem, 1.5vw, 0.75rem);
    padding: 0.35rem 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.875rem, 1.05vw, 0.9375rem);
    font-weight: 600;
    color: #3d7a9e;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.ih-profile__readmore:hover {
    color: #2a5f7c;
}

.ih-profile__readmore:focus-visible {
    outline: 2px solid #3d7a9e;
    outline-offset: 2px;
}

@media (min-width: 901px) {
    .ih-profile__main-bio:not(.ih-profile__main-bio--expanded) .ih-profile__bio-text {
        max-height: min(28rem, 55vh);
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .ih-profile__main-bio:not(.ih-profile__main-bio--expanded) .ih-profile__bio-text::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3rem;
        background: linear-gradient(to bottom, rgba(247, 255, 224, 0), #f7ffe0);
        pointer-events: none;
        z-index: 1;
    }

    .ih-profile__main-bio--expanded .ih-profile__bio-text::after {
        display: none;
    }

    .ih-profile--ramkanta .ih-profile__main-bio:not(.ih-profile__main-bio--expanded) .ih-profile__bio-text::after {
        background: linear-gradient(to bottom, rgba(255, 240, 243, 0), #fff0f3);
    }
}

.ih-profile__para {
    margin: 0 0 clamp(1rem, 2vw, 1.25rem);
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.9375rem, 1.08vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.75;
    color: #2a3038;
    text-align: justify;
    text-justify: inter-word;
}

.ih-profile__bio-text .ih-profile__para:last-child {
    margin-bottom: 0;
}

/* Kaviraj Sri Ramakanta Pakrashi — #FFF0F3 (text) / #FFFFFF (image); mirrored layout */
.ih-profile__right {
    min-height: inherit;
    background-color: #ffffff;
}

.ih-profile--ramkanta .ih-profile__split {
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
}

.ih-profile--ramkanta .ih-profile__main--ramkanta {
    background-color: #fff0f3;
    padding: clamp(2.25rem, 5vw, 4.5rem) clamp(10rem, 23vw, 15.5rem) clamp(2.25rem, 5vw, 4.5rem)
        clamp(1.25rem, 4vw, 2.75rem);
}

.ih-profile--ramkanta .ih-profile__card {
    /* Seam 65%; offset mirrors Manoranjan card (~6% toward image column) */
    left: 71%;
}

.ih-profile--ramkanta .ih-profile__card-lead {
    text-align: center;
}

.ih-main {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.5rem);
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #5c656e;
}

@media (max-width: 900px) {
    /* Tall single-column hero: only mobile art; desktop two-column UI is hidden */
    .ih-hero {
        background-color: #fef6f8;
        background-image: url("institutional/mobile-background-hero-section.png");
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
    }

    .ih-hero__grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(clamp(400px, 130vw, 720px), auto);
        align-items: start;
    }

    .ih-hero__right {
        display: none;
    }

    .ih-hero__left {
        grid-row: 1;
        grid-column: 1;
        width: 100%;
        background-image: none;
        background-color: transparent;
        align-items: flex-start;
        min-height: 0;
        /* Title + breadcrumb on the light top band (stacked like mobile mockup) */
        padding: clamp(6.25rem, 4.5vw, 2rem) clamp(1.1rem, 4vw, 1.5rem) clamp(2rem, 10vw, 4rem);
    }

    .ih-hero__left-inner {
        max-width: none;
    }

    .ih-hero__title {
        font-size: clamp(1.5rem, 5.8vw, 2rem);
    }

    .ih-hero__crumb {
        font-size: clamp(0.8125rem, 3.2vw, 0.9375rem);
    }

    .ih-intro__inner {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 5vw, 2.25rem);
        padding: clamp(2rem, 5vw, 3rem) clamp(1.1rem, 4vw, 1.5rem);
    }

    .ih-intro__media {
        justify-content: center;
    }

    .ih-intro__media img {
        max-width: min(100%, 420px);
    }

    .ih-intro__heading {
        font-size: clamp(1.45rem, 5.5vw, 1.9rem);
        text-align: left;
    }

    .ih-profile__shell {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .ih-profile__split {
        display: flex;
        flex-direction: column;
        order: 2;
        min-height: 0;
    }

    .ih-profile__left {
        display: none;
    }

    .ih-profile__right {
        display: none;
    }

    .ih-profile__main {
        padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.1rem, 4vw, 1.5rem) clamp(2rem, 6vw, 3rem);
        padding-left: clamp(1.1rem, 4vw, 1.5rem);
    }

    .ih-profile__card {
        position: relative;
        order: 1;
        top: auto;
        left: auto;
        transform: none;
        width: calc(100% - clamp(1.25rem, 5vw, 2rem));
        max-width: 400px;
        margin: clamp(1.5rem, 4vw, 2rem) auto clamp(1rem, 3vw, 1.5rem);
        filter: drop-shadow(0 12px 32px rgba(20, 25, 30, 0.1));
    }

    /* Ramakanta: desktop grid / padding / card offset must not win on small screens */
    .ih-profile--ramkanta .ih-profile__split {
        display: flex;
        flex-direction: column;
    }

    .ih-profile--ramkanta .ih-profile__main--ramkanta {
        padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.1rem, 4vw, 1.5rem) clamp(2rem, 6vw, 3rem);
    }

    .ih-profile--ramkanta .ih-profile__card {
        left: auto;
    }

    .ih-profile__para {
        text-align: left;
    }

    .ih-profile__bio-text {
        max-height: none !important;
        overflow: visible !important;
    }

    .ih-profile__readmore {
        display: none !important;
    }

    .ih-legacy__shell {
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .ih-legacy__split {
        display: flex;
        flex-direction: column;
        order: 2;
    }

    .ih-legacy__right {
        display: none;
    }

    .ih-legacy__left {
        align-items: flex-start;
        background-color: #ecf9ff;
        padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.1rem, 4vw, 1.5rem) clamp(2rem, 6vw, 3rem);
    }

    .ih-legacy__copy {
        max-width: none;
        padding-right: 0;
    }

    .ih-legacy__card {
        position: relative;
        order: 1;
        top: auto;
        left: auto;
        transform: none;
        width: calc(100% - clamp(1.25rem, 5vw, 2rem));
        max-width: 520px;
        margin: clamp(1.5rem, 4vw, 2rem) auto clamp(1.25rem, 3vw, 1.75rem);
    }
}

@media (max-width: 480px) {
    .ih-hero__title {
        font-size: clamp(1.4rem, 6.2vw, 1.85rem);
    }
}
