/* =========================================================
   INSTITUTE PAGES GLOBAL LAYOUT
   ========================================================= */
.institute-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(40px, calc(var(--unit) * 141), 141px);
    width: 100%;
}

/* =========================================================
   MASTER RIGHT-SIDE CONTENT ALIGNMENT
   ========================================================= */
.institute-main-content {
    flex-grow: 1;
    /* Locks the width */
    max-width: 1099px;

    /* STRICT TOP SPACING: Exactly 32px on desktop, scaling to 24px on mobile */
    padding-top: clamp(24px, calc(var(--unit) * 32), 32px) !important;

    /* STRICT BOTTOM SPACING: Exactly 96px on desktop, scaling to 64px on mobile */
    padding-bottom: clamp(64px, calc(var(--unit) * 96), 96px) !important;
}

/* Specific override for Director's Message so it follows the global rule */
.dm-main-content {
    flex-grow: 1;
    max-width: 958px;
    /* Kept its specific width from Figma */

    /* Inherit the exact same strict spacing */
    padding-top: clamp(24px, calc(var(--unit) * 32), 32px) !important;
    padding-bottom: clamp(64px, calc(var(--unit) * 96), 96px) !important;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(36px, calc(var(--unit) * 40), 40px);
    line-height: 1;
    color: #000D1B;
    margin-top: 0;
    margin-bottom: clamp(24px, calc(var(--unit) * 48), 48px);
}

.heading-members {
    margin-top: clamp(40px, calc(var(--unit) * 64), 64px);
}

/* =========================================================
   MEMBER CARD GRID SYSTEM
   ========================================================= */
.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(16px, calc(var(--unit) * 32), 32px);
    row-gap: clamp(12px, calc(var(--unit) * 16), 16px);
    width: 100%;
    max-width: 1098px;
}

.single-col-grid {
    display: flex;
    width: 100%;
    margin-bottom: clamp(32px, calc(var(--unit) * 48), 48px);
}

/* =========================================================
   GLOBAL RESPONSIVENESS
   ========================================================= */
@media (max-width: 1100px) {
    .institute-layout {
        flex-direction: column;
        gap: 40px;
        margin-top: 0;
    }

    .institute-main-content {
        max-width: 100%;
        padding-top: 0;
    }

    .single-col-grid {
        justify-content: center;
        margin: 0 auto;
    }

    .members-grid {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .members-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}


/* accordian */

.institute-accordion {
    width: 100%;
    max-width: 1099px;
    /* From Figma Layer */
}

.institute-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #BF7771;
    /* Matches Line 119 */
    background: transparent;
    margin-bottom: 0;
}

.institute-accordion .accordion-button {
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(20px, calc(var(--unit) * 24), 24px);
    /* 24px from Figma */
    color: #2A2B2C;
    padding: clamp(16px, calc(var(--unit) * 16), 16px) 0;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: ease-in-out;
}

/* Arrow Icon Customization */
/* Arrow Icon Customization - Updated for a Small, Thick, Professional look */
.institute-accordion .accordion-button::after {
    flex-shrink: 0;
    width: 14px;
    /* Reduced from 20px for a smaller look */
    height: 14px;
    /* Reduced from 20px */
    margin-left: auto;
    content: "";

    /* Using a custom thick chevron SVG */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232A2B2C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5l6 6 6-6'/%3e%3c/svg%3e");

    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease-in-out;
}

/* Active State Icon - Changes color to match the text */
.institute-accordion .accordion-button:not(.collapsed)::after {
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23BF7771' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); */
    transform: rotate(-180deg);
}

/* Active State (Open) */
.institute-accordion .accordion-button:not(.collapsed) {
    /* padding: clamp(16px, calc(var(--unit) * 20), 20px) 0; */
    background: transparent;
    color: #BF7771 !important;
    /* Active color from Figma Layer (e.g., 'A') */
    box-shadow: none;
}

.institute-accordion .accordion-body {
    padding: 0 0 clamp(24px, calc(var(--unit) * 40), 40px) 0;
    display: flex;
    flex-direction: column;
    /* gap: clamp(16px, calc(var(--unit) * 28), 28px); */
    /* Gap between rows */
}


/* FORCE REMOVE ROUNDED CORNERS ON LAST ITEM */
.institute-accordion .accordion-item:last-of-type,
.institute-accordion .accordion-item:last-of-type .accordion-button,
.institute-accordion .accordion-item:last-of-type .accordion-button.collapsed,
.institute-accordion .accordion-item:last-of-type .accordion-collapse {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-radius: 0 !important;
}

/* Ensure bottom border remains identical */
.institute-accordion .accordion-item:last-of-type {
    border: none !important;
    border-bottom: 1px solid #BF7771 !important;
    margin-bottom: 0;
}


/* =========================================================
   ACCORDION SHIFT FIX (Locks padding in place)
   ========================================================= */

/* 1. Force the button to stay flush left, even when opened */
.institute-accordion .accordion-button,
.institute-accordion .accordion-button:not(.collapsed) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
}

/* 2. Force the content body to stay perfectly aligned with the header */
.institute-accordion .accordion-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
}

/* 3. Keep the arrow icon completely stable while it rotates */
.institute-accordion .accordion-button::after,
.institute-accordion .accordion-button:not(.collapsed)::after {
    margin-left: auto !important;
    margin-right: 16px !important;
}



/* accordian css for specialization */

/* =========================================================
   SPECIALIZATION LEVEL FIX (No HTML changes needed)
   This uses direct child selectors (>) to target ONLY the 
   second-level accordions (Specializations) without affecting 
   the Departments or the Years.
   ========================================================= */

/* 1. Indent the Specialization item inward */
.institute-accordion>.accordion-item>.accordion-collapse>.accordion-body>.accordion-item {
    margin-left: clamp(16px, calc(var(--unit) * 32), 32px) !important;
}

/* 2. Change font size and color ONLY for the Specialization buttons */
.institute-accordion>.accordion-item>.accordion-collapse>.accordion-body>.accordion-item>.accordion-header>.accordion-button {
    font-size: clamp(16px, calc(var(--unit) * 20), 20px) !important;
    /* Keeps your blue color */
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}


/* no position available */
.no-positions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #F9FAFB;
    border: 1px dashed #A7AAAF;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(18px, calc(var(--unit) * 22), 22px);
    color: #545558;
    text-align: center;
}


/* =========================================================
       3. PROGRAMS SECTION (Full Bleed Background)
       ========================================================= */
/* .acad-programs-band {
        background-color: #e5c8c6;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 5%;
        margin-bottom: clamp(48px, calc(var(--unit) * 96), 96px);
    } */

.acad-programs-inner {
    max-width: 1450px;
    margin: 0 auto;

}

.acad-programs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: clamp(24px, calc(var(--unit) * 40), 40px);
}

.acad-programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, calc(var(--unit) * 24), 24px);
}

.acad-prog-card {
    background: #FFFBF6;
    border-radius: clamp(12px, calc(var(--unit) * 20), 20px);
    box-shadow: 1px 2px 4px #CCC4BA;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.acad-prog-card:hover {
    /* transform: translateY(-5px); */
}

.acad-prog-top {
    background: #F6F7F8;
    border-radius: 20px;
    padding: clamp(20px, calc(var(--unit) * 24), 24px) clamp(24px, calc(var(--unit) * 35), 35px);
    min-height: clamp(100px, calc(var(--unit) * 123), 123px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 1px 2px 4px #CCC4BA;
}

.acad-prog-top:hover {
    background: #F6F7F8;
    border-radius: 20px;
    padding: clamp(20px, calc(var(--unit) * 24), 24px) clamp(24px, calc(var(--unit) * 35), 35px);
    min-height: clamp(100px, calc(var(--unit) * 123), 123px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    filter: drop-shadow(1px 2px 4px #CCC4BA);
}



.acad-prog-card h3 {
    font-weight: 600;
    font-size: clamp(20px, calc(var(--unit) * 28), 28px);
    color: #2A2B2C;
    margin: 0 0 12px 0;
}

.acad-prog-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 300;
    font-size: clamp(14px, calc(var(--unit) * 16), 16px);
    color: #000305;
}

.acad-prog-divider {
    width: 2px;
    height: 16px;
    background: #D9D9D9;
}

.acad-prog-body {
    padding: clamp(24px, calc(var(--unit) * 35), 35px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.acad-prog-body p {
    font-weight: 400;
    font-size: clamp(14px, calc(var(--unit) * 16), 16px);
    line-height: 1.25;
    color: #000305;
    margin: 0 0 clamp(24px, calc(var(--unit) * 32), 32px) 0;
    flex-grow: 1;
}

.acad-read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: clamp(14px, calc(var(--unit) * 16), 16px);
    color: #000305;
    text-decoration: none;
}





