/* ============================================================================
   TERNA GBS — EXTRA BLOCKS
   ----------------------------------------------------------------------------
   Two sections that are not part of the terna-dark.css build:

     1. USP STRIP      the five icon cards directly under the hero banner
     2. ORANGE CTA     the rounded orange box with the cut-out photo

   Load order:
       terna-dark.css     structure and layout
       terna-theme.css    palette
       terna-blocks.css   <-- this file, last

   It reads the --td-* variables from terna-theme.css, so re-branding there
   carries through to both blocks and nothing here needs touching.

   Content for both lives in index.php: $tnUsps and $tnCtaBanner.
   ============================================================================ */


/* ============================================================================
   1. USP STRIP
   ============================================================================ */
.tnd-usp-sec {
    position: relative;
    z-index: 4;
    padding: 34px 0 6px;
    background: #fff;
    font-family: var(--td-ff);
}

/* These sections are not .tnd-sec, so the icon reset in terna-dark.css
   (".tnd-sec svg") does not reach them. Without this the tnIcon() paths fall
   back to the browser default of fill:black and render as solid blobs — the
   same thing that was happening in the stats strip. */
.tnd-usp-sec svg,
.tnd-ctab-sec svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tnd-usps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    padding-bottom: 10px;

}

/* icon on the left, label on the right */
.tnd-usp {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    border: 1px solid var(--td-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(13, 42, 68, .07);
    text-align: left;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.tnd-usp:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 106, 27, .34);
    box-shadow: 0 18px 40px rgba(13, 42, 68, .12);
}

.tnd-usp-ic {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    padding: 13px;
    border-radius: 50%;
    background: rgba(242, 106, 27, .12);
    color: var(--td-o);
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.tnd-usp:hover .tnd-usp-ic {
    background: linear-gradient(135deg, var(--td-o), var(--td-o-d));
    color: #fff;
    transform: translateY(-2px);
}

.tnd-usp-l {
    min-width: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--td-w);
}

@media (max-width: 1199px) {
    .tnd-usps {
        gap: 14px;
        padding-bottom: 10px;

    }

    .tnd-usp {
        gap: 11px;
        padding: 16px 13px;
    }

    .tnd-usp-ic {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 11px;
    }

    .tnd-usp-l {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .tnd-usp-sec {
        padding: 26px 0 4px;
    }

    .tnd-usps {
        grid-template-columns: repeat(3, 1fr);
        padding-bottom: 10px;

    }
}

@media (max-width: 575px) {
    .tnd-usps {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-bottom: 10px;

    }

    .tnd-usp {
        gap: 10px;
        padding: 13px 11px;
        border-radius: 14px;
    }

    .tnd-usp-ic {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        padding: 9px;
    }

    .tnd-usp-l {
        font-size: 12.5px;
        line-height: 1.4;
    }
}


/* ============================================================================
   2. ORANGE CTA BANNER

   The gradient deepens from left to right on purpose. White copy on the brand
   orange measures about 3:1, which is under the WCAG AA floor; the photo sits
   at the light end and all of the text sits from the middle rightwards, where
   the orange is dark enough for white to clear 4.5:1.
   ============================================================================ */
.tnd-ctab-sec {
    padding: 20px 0 76px;
    background: #fff;
    font-family: var(--td-ff);
}

.tnd-ctab {
    position: relative;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 260px;
    align-items: center;
    gap: 34px;
    min-height: 250px;
    padding: 42px 46px;
    border-radius: 24px;
    background: linear-gradient(100deg, #f5903f 0%, #f26a1b 30%, #d4560c 72%, #c24e08 100%);
    box-shadow: 0 22px 50px rgba(242, 106, 27, .26);
    /* visible, not hidden: the cut-out is meant to rise above the top edge */
    overflow: visible;
}

/* no photo on the server yet (or it failed to load) — close the gap */
.tnd-ctab.is-noimg {
    grid-template-columns: minmax(0, 1fr) 260px;
}

/* ---- the cut-out photo ---- */
.tnd-ctab-ph {
    position: relative;
    align-self: end;
    min-width: 0;
}

.tnd-ctab-ph img {
    display: block;
    width: 100%;
    max-width: 320px;
    /* The column reserves its space from aspect-ratio rather than from the
       file. Without this the image is loading="lazy", has no width/height
       attributes and so measures 0 until it decodes — the column collapses
       and the whole box jumps when the photo arrives. object-fit:contain
       means a cut-out of any shape still sits correctly inside the reserved
       area, so you do not have to match this ratio when you swap the photo. */
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    /* lifts the figure above the top edge of the box, as in the reference */
    margin: -74px auto -42px;
}

/* ---- copy ---- */
.tnd-ctab-tx {
    min-width: 0;
}

.tnd-ctab-tx h2 {
    margin: 0 0 14px;
    color: #fff;
    font-family: var(--td-ff);
    font-size: clamp(27px, 2.9vw, 42px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.4px;
}

.tnd-ctab-tx p {
    margin: 0;
    color: #fff;
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 500;
    line-height: 1.5;
}

/* the dark kicker line — navy rather than black, to stay in the palette */
.tnd-ctab-tx strong {
    display: block;
    margin-top: 12px;
    color: #0d2a44;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.5;
}

/* ---- buttons ---- */
.tnd-ctab-btns {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.tnd-ctab-b1,
.tnd-ctab-b2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 22px;
    border-radius: 8px;
    font-family: var(--td-ff);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tnd-ctab-b1 {
    border: 1.6px solid #fff;
    background: #fff;
    color: var(--td-w);
    box-shadow: 0 10px 24px rgba(13, 42, 68, .18);
}

.tnd-ctab-b1:hover,
.tnd-ctab-b1:focus-visible {
    transform: translateY(-2px);
    background: var(--td-w);
    border-color: var(--td-w);
    color: #fff;
}

.tnd-ctab-b2 {
    border: 1.6px solid rgba(255, 255, 255, .85);
    background: transparent;
    color: #fff;
}

.tnd-ctab-b2:hover,
.tnd-ctab-b2:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    border-color: #fff;
    color: var(--td-w);
}

/* ---- tablet ---- */
@media (max-width: 1199px) {
    .tnd-ctab {
        grid-template-columns: 240px minmax(0, 1fr) 230px;
        gap: 24px;
        padding: 36px 32px;
    }

    .tnd-ctab-ph img {
        margin: -58px auto -36px;
    }
}

@media (max-width: 991px) {

    /* the photo would squeeze the copy to nothing in three columns, so it
       drops out and the box becomes copy + buttons side by side */
    .tnd-ctab,
    .tnd-ctab.is-noimg {
        grid-template-columns: minmax(0, 1fr) 230px;
        min-height: 0;
        padding: 32px 28px;
    }

    .tnd-ctab-ph {
        display: none;
    }
}

/* ---- mobile ---- */
@media (max-width: 767px) {
    .tnd-ctab-sec {
        padding: 14px 0 52px;
    }

    .tnd-ctab,
    .tnd-ctab.is-noimg {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 28px 22px;
        border-radius: 18px;
        text-align: center;
    }

    .tnd-ctab-btns {
        align-items: center;
    }

    .tnd-ctab-b1,
    .tnd-ctab-b2 {
        max-width: 320px;
    }
}

/* ============================================================================
   3. WHY CHOOSE US — matched columns

   The two-column grid was align-items:center, so the text column and the
   video column each took their own height and the shorter one floated in the
   middle. They now stretch to the same height and the video frame fills its
   column instead of holding a fixed 16:10 box.

   The height of the pair is set by the copy on the left, so the list in
   $tnWhy['points'] is kept to three one-line items. Add a fourth and the
   video card grows with it.
   ============================================================================ */
.tnd-why-sec .tnd-two {
    align-items: stretch;
}

.tnd-why-sec .tnd-two-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tnd-why-sec .tnd-two-media {
    display: flex;
    flex-direction: column;
}

.tnd-why-sec .tnd-vframe {
    flex: 1 1 auto;
    /* aspect-ratio would keep forcing 16:10 and win over the stretch */
    aspect-ratio: auto;
    min-height: 420px;
}

.tnd-why-sec .tnd-vframe>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {

    /* stacked: the frame has no column to match, so give it its shape back */
    .tnd-why-sec .tnd-vframe {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
}


/* ============================================================================
   4. TESTIMONIALS — portrait student card, highlighted caption on the video

   Left: the student photo is a standing portrait rather than a letterbox.
   It is capped in width and centred, because at full card width a 3:4 crop
   would be over 700px tall on a desktop.

   Right: the video keeps the same portrait frame so the two cards line up,
   and the name / role / programme sits under it on a tinted band with an
   orange rule, so the caption reads as part of the card rather than as
   leftover space.
   ============================================================================ */
.tnd-sv {
    align-items: stretch;
}

.tnd-sv-left,
.tnd-sv-right {
    display: flex;
}

.tnd-sv-left .tnd-rail,
.tnd-sv-right .tnd-sv-card {
    width: 100%;
}

/* Two classes, to match ".tnd-sv .tnd-sv-ph" in terna-dark.css — that rule
   pins both frames to 16:10 capped at 290px, and a one-class selector here
   loses to it however late this file loads.

   Both media are square and the same size on each side, capped at 300px so
   the pair stays short: 300px of image plus the caption puts each card at
   roughly 470px instead of the 640px a portrait crop produced. */
.tnd-sv .tnd-sv-ph,
.tnd-sv .tnd-sv-frame {
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    aspect-ratio: 1 / 1;
    max-height: none;
    border-radius: 16px;
    overflow: hidden;
}

/* the quote / caption blocks, kept level on both sides */
.tnd-sv {
    --sv-txt: 132px;
}

.tnd-sv-ph img,
.tnd-sv-frame>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* the role pill was pinned to the corner of a full-bleed photo; it now sits
   on the bottom edge of the portrait */
.tnd-sv-badge {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* The name / designation / company sit directly under the square, inside the
   same card. The tinted band and the rule that used to divide them are gone —
   they made the caption read as a second card stacked on the first. */
.tnd-sv-vcard .tnd-sv-b {
    margin: 0;
    padding-top: 18px;
    border-top: 0;
    background: none;
    text-align: center;
}

.tnd-sv-vcard .tnd-sv-meta {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.tnd-sv-vcard .tnd-sv-meta strong {
    font-size: 19px;
}

/* same on the quote side, so the two cards read as a matched pair */
.tnd-sv-left .tnd-sv-who {
    border-top: 0;
    padding-top: 6px;
}

/* terna-dark.css re-caps max-height at each of these breakpoints, so each one
   has to be answered or the portrait collapses back to a letterbox */
@media (max-width: 1199px) {

    .tnd-sv .tnd-sv-ph,
    .tnd-sv .tnd-sv-frame {
        max-width: 280px;
        max-height: none;
    }

    .tnd-sv {
        --sv-txt: 156px;
    }
}

@media (max-width: 991px) {

    .tnd-sv .tnd-sv-ph,
    .tnd-sv .tnd-sv-frame {
        max-width: 300px;
        max-height: none;
    }
}

@media (max-width: 575px) {

    .tnd-sv .tnd-sv-ph,
    .tnd-sv .tnd-sv-frame {
        max-width: 240px;
        margin-top: 16px;
    }
}


/* ============================================================================
   5. ICON-LEFT / TEXT-RIGHT PAIRS

   Three blocks share the same shape — a round icon on the left, a figure and
   its label stacked on the right — so they share one rule set:
     .tnd-vstrip-ic   the Campus / Established / Alumni strip under the film
     .tnd-kpi-ic      Average / Highest package and Duration on each programme
     .tnd-i3-fact     the statistics tiles
   ============================================================================ */
.tnd-vstrip-ic>div,
.tnd-kpi-ic>div,
.tnd-i3-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-align: left;
}

.tnd-vstrip-i,
.tnd-kpi-i,
.tnd-i3-fact-ic {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 11px;
    background: rgba(242, 106, 27, .13);
    color: var(--td-o-l);
}

.tnd-vstrip-i svg,
.tnd-kpi-i svg,
.tnd-i3-fact-ic svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tnd-vstrip-ic em,
.tnd-kpi-ic em,
.tnd-i3-fact em {
    display: block;
    min-width: 0;
    font-style: normal;
}

.tnd-vstrip-ic strong,
.tnd-kpi-ic strong,
.tnd-i3-fact strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--td-w);
}

.tnd-vstrip-ic small,
.tnd-kpi-ic small,
.tnd-i3-fact small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--td-t-dim);
}

/* --- the campus strip: compact, three across, no tall boxes --- */
.tnd-vstrip-ic {
    gap: 10px;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: none;
}

.tnd-vstrip-ic>div {
    padding: 12px 14px;
    border: 1px solid var(--td-line);
    border-radius: 12px;
    background: var(--td-surf);
}

.tnd-vstrip-ic strong {
    font-size: 16px;
}

/* --- programme KPIs --- */
.tnd-kpi-ic>div {
    padding: 13px 15px;
}

/* --- statistics tiles: one grid, nine short facts --- */
.tnd-i3-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tnd-i3-fact {
    padding: 15px 16px;
    border: 1px solid var(--td-line);
    border-radius: 14px;
    background: var(--td-surf);
    transition: border-color .3s ease, background .3s ease;
}

.tnd-i3-fact:hover {
    border-color: rgba(242, 106, 27, .34);
    background: var(--td-surf-2);
}

/* the second statistics block is the blue one */
.tnd-i3-block:nth-of-type(even) .tnd-i3-fact-ic,
.tnd-i3-block.tnd-i3-alt .tnd-i3-fact-ic {
    background: rgba(43, 138, 224, .14);
    color: var(--td-b-d);
}

@media (max-width: 575px) {

    .tnd-vstrip-ic,
    .tnd-kpi-ic {
        grid-template-columns: 1fr;
        display: grid;
    }
}


/* ============================================================================
   6. ADMISSION GUIDE — topics on the left, image card on the right
   ============================================================================ */
.tnd-guide {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.tnd-guide-nav {
    display: grid;
    gap: 10px;
}

.tnd-guide-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 18px;
    border: 1px solid var(--td-line);
    border-radius: 14px;
    background: var(--td-surf);
    color: var(--td-w);
    font-family: var(--td-ff);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background .28s ease, border-color .28s ease, color .28s ease, transform .28s ease;
}

.tnd-guide-tab:hover {
    border-color: rgba(242, 106, 27, .40);
    background: var(--td-surf-2);
}

.tnd-guide-tab.is-on {
    border-color: transparent;
    background: linear-gradient(100deg, var(--td-o) 0%, var(--td-o-d) 100%);
    color: #fff;
    box-shadow: var(--td-sh-o);
}

.tnd-guide-n {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--td-o-l);
    transition: color .28s ease;
}

.tnd-guide-tab.is-on .tnd-guide-n {
    color: rgba(255, 255, 255, .78);
}

.tnd-guide-t {
    flex: 1 1 auto;
    min-width: 0;
}

.tnd-guide-go {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .28s ease, transform .28s ease;
}

.tnd-guide-go svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tnd-guide-tab.is-on .tnd-guide-go {
    opacity: 1;
    transform: none;
}

/* --- the panel --- */
.tnd-guide-panel {
    display: none;
}

.tnd-guide-panel.is-on {
    display: block;
}

.tnd-guide-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--td-line);
    border-radius: 20px;
    background: linear-gradient(165deg, #fff 0%, var(--td-bg-2) 100%);
    box-shadow: var(--td-sh);
    animation: tndGuideIn .4s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes tndGuideIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.tnd-guide-img {
    position: relative;
    min-height: 100%;
    background: var(--td-well);
}

.tnd-guide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tnd-guide-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 42, 68, .05), rgba(13, 42, 68, .45));
}

.tnd-guide-tag {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 28px);
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--td-o-badge);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.tnd-guide-tag svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tnd-guide-body {
    padding: 28px 30px 26px;
}

.tnd-guide-lead {
    margin: 0 0 16px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--td-t);
}

.tnd-guide-lead strong {
    color: var(--td-w);
}

.tnd-guide-list {
    display: grid;
    gap: 11px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.tnd-guide-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--td-t);
}

.tnd-guide-list li svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    padding: 4px;
    border-radius: 50%;
    background: rgba(242, 106, 27, .14);
    color: var(--td-o-l);
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tnd-guide-list strong {
    color: var(--td-w);
}

.tnd-guide-list a {
    color: var(--td-o-l);
    font-weight: 600;
}

@media (max-width: 1199px) {
    .tnd-guide {
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .tnd-guide-card {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {

    .tnd-guide,
    .tnd-guide-card {
        grid-template-columns: 1fr;
    }

    .tnd-guide-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .tnd-guide-img {
        min-height: 0;
        aspect-ratio: 16 / 7;
    }
}

@media (max-width: 575px) {
    .tnd-guide-nav {
        grid-template-columns: 1fr;
    }

    .tnd-guide-tab {
        padding: 14px 15px;
        font-size: 14px;
    }

    .tnd-guide-body {
        padding: 22px 20px 22px;
    }
}


/* ============================================================================
   7. ABOUT — tile grid and the typewriter line
   ============================================================================ */
.tnd-ab-h {
    margin-bottom: 16px;
}

/* the typed phrase. min-width stops the whole heading reflowing on every
   keystroke as the word grows and shrinks */
.tnd-tw {
    color: var(--td-o-l);
    white-space: nowrap;
}

.tnd-tw.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: .95em;
    margin-left: 3px;
    vertical-align: -.1em;
    background: var(--td-o);
    animation: tndCaret 1s steps(1) infinite;
}

@keyframes tndCaret {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.tnd-ab-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 0;
}

.tnd-ab-cell {
    min-width: 0;
    padding: 14px 12px 13px;
    border: 1px solid var(--td-line);
    border-radius: 14px;
    background: var(--td-surf);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

html.tn-js .tnd-rv.is-in .tnd-ab-cell {
    animation: tndCellIn .6s cubic-bezier(.2, .7, .3, 1) var(--d, 0ms) both;
}

@keyframes tndCellIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.tnd-ab-cell:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 106, 27, .34);
    background: var(--td-surf-2);
}

.tnd-ab-cell>span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 11px;
    padding: 9px;
    border-radius: 10px;
    background: rgba(242, 106, 27, .13);
    color: var(--td-o-l);
}

.tnd-ab-cell>span svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tnd-ab-cell strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--td-w);
}

.tnd-ab-cell small {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--td-t-dim);
}

@media (max-width: 991px) {
    .tnd-ab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================================
   8. CONTACT — number and button only
   The institute name and the postal address were removed from the markup;
   what is left is the heading, a large tappable phone number, and Apply Now.
   ============================================================================ */
.tnd-ct-ph a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 26px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.tnd-ct-ph a svg {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 50%;
    background: rgba(242, 106, 27, .16);
    color: var(--td-o-l);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


@media (prefers-reduced-motion: reduce) {

    .tnd-usp,
    .tnd-usp-ic,
    .tnd-ctab-b1,
    .tnd-ctab-b2,
    .tnd-ab-cell,
    .tnd-guide-tab {
        transition: none;
    }

    .tnd-usp:hover,
    .tnd-ctab-b1:hover,
    .tnd-ctab-b2:hover,
    .tnd-ab-cell:hover {
        transform: none;
    }

    .tnd-guide-card,
    html.tn-js .tnd-rv.is-in .tnd-ab-cell {
        animation: none;
    }

    .tnd-tw.is-typing::after {
        animation: none;
    }
}


/* ============================================================================
   9. FIXES (latest round)
   ============================================================================ */

/* --- Internship & Recruitment Statistics: always 1 row of 3, desktop + mobile --- */
.tnd-i3-hero,
.tnd-i3-facts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
}

/* --- hover: white tiles and tabs turn brand blue with white text --- */
.tnd-i3-fact,
.tnd-i3-hi,
.tnd-tab {
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.tnd-i3-fact:hover,
.tnd-i3-hi:hover,
.tnd-tab:not(.is-on):hover {
    background: var(--td-b-d) !important;
    border-color: var(--td-b-d) !important;
}

.tnd-i3-fact:hover strong,
.tnd-i3-fact:hover small,
.tnd-i3-hi:hover,
.tnd-i3-hi:hover *,
.tnd-tab:not(.is-on):hover {
    color: #fff !important;
}

.tnd-i3-fact:hover .tnd-i3-fact-ic,
.tnd-i3-hi:hover .tnd-i3-hi-ic {
    background: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
}

/* phones: three tiles across, so each tile stacks icon over text */
@media (max-width: 575px) {
    .tnd-i3-fact,
    .tnd-i3-hi {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 12px 6px;
        text-align: center;
    }

    .tnd-i3-fact-ic {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        padding: 8px;
    }

    .tnd-i3-fact strong { font-size: 14px; }
    .tnd-i3-fact small  { font-size: 10.5px; }
    .tnd-i3-hi-ic       { margin: 0 auto; }
    .tnd-i3-hi-n        { font-size: 18px; }
    .tnd-i3-hi-l        { font-size: 10.5px; }
}

/* --- CTA banner: Apply Now, Call Now, Download Brochure stacked --- */
.tnd-ctab-call svg {
    width: 17px;
    height: 17px;
    margin-right: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================================
   10. STUDENT COVERFLOW  (3 cards, centre highlighted) + ALUMNI AUTO-SLIDER
       + CONTACT ROW.  New class names (tnd-cf / tnd-al / tnd-ct-info) so none
       of the older slider rules apply to these.
   ============================================================================ */

/* ---- shared: photo card, crimson gradient, text + package box on the photo ---- */
.tnd-cf,
.tnd-al {
    --pg-grad: linear-gradient(180deg, rgba(242, 106, 27, 0) 24%, rgba(242, 106, 27, .78) 56%, rgba(168, 62, 6, .97) 100%);
}

.tnd-pg {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    color: #fff;
    text-align: left;
}

.tnd-pg-name {
    display: inline-block;
    max-width: 100%;
    padding: 5px 13px;
    border-radius: 99px;
    background: #fff;
    color: #0d2a44;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.tnd-pg-sub {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, .88);
}

.tnd-pg-sub:empty {
    display: none;
}

.tnd-pg-role {
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

/* company name: navy pill, white text */
.tnd-pg-co {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 5px 12px 5px 6px;
    border-radius: 99px;
    background: #0d2a44;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}

.tnd-pg-co[hidden] {
    display: none;
}

.tnd-pg-co img {
    flex: none;
    width: 22px;
    height: 22px;
    padding: 2px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(13, 42, 68, .12);
}

.tnd-pg-co i {
    flex: none;
    width: 8px;
    height: 8px;
    margin: 0 3px 0 6px;
    border-radius: 50%;
    background: #ff9348;
}

.tnd-pg-co em {
    font-style: normal;
}

/* package: frosted box with a cash icon, label over figure */
.tnd-pg-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 3px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px rgba(120, 40, 0, .25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.tnd-pg-box[hidden] {
    display: none;
}

.tnd-pg-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 50%;
    background: #fff;
    color: #d4560c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.tnd-pg-ic svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tnd-pg-tx {
    min-width: 0;
}

.tnd-pg-box small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, .9);
}

.tnd-pg-box b {
    display: block;
    margin-top: 1px;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.2px;
    color: #fff;
}

.tnd-cf-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.tnd-cf-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}

.tnd-cf-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tnd-cf-btn:hover,
.tnd-cf-btn:focus-visible {
    background: #f26a1b;
    border-color: #f26a1b;
}

/* ---- students ---- */
.tnd-cf {
    --cw: clamp(250px, 25vw, 320px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--cw);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    margin-top: 34px;
}

.tnd-cf-left {
    min-width: 0;
}

.tnd-cf-stage {
    position: relative;
    height: calc(var(--cw) * 1.3);
    overflow: hidden;
    touch-action: pan-y;
}

.tnd-cf-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--cw);
    height: calc(var(--cw) * 1.3);
    margin-left: calc(var(--cw) / -2);
    border-radius: 20px;
    overflow: hidden;
    background: #0d2a44;
    transition: transform .55s cubic-bezier(.2, .7, .3, 1), opacity .45s ease, filter .45s ease;
}

.tnd-cf-card>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tnd-cf-card:not(.tnd-cf-vcard)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--pg-grad);
    pointer-events: none;
}

.tnd-cf-card.is-c {
    z-index: 3;
    transform: none;
    box-shadow: 0 0 0 3px #f26a1b, 0 26px 50px rgba(0, 0, 0, .38);
}

.tnd-cf-card.is-l,
.tnd-cf-card.is-r {
    z-index: 2;
    opacity: .72;
    filter: brightness(.72);
    cursor: pointer;
}

.tnd-cf-card.is-l {
    transform: translateX(calc(var(--cw) * -.62)) scale(.82);
}

.tnd-cf-card.is-r {
    transform: translateX(calc(var(--cw) * .62)) scale(.82);
}

.tnd-cf-card.is-x {
    z-index: 1;
    opacity: 0;
    transform: scale(.7);
    pointer-events: none;
}

/* the video card: same size as the highlighted card */
.tnd-cf-right {
    position: relative;
    width: var(--cw);
    height: calc(var(--cw) * 1.3);
}

.tnd-cf-vcard {
    left: 0;
    margin-left: 0;
    box-shadow: 0 0 0 3px #f26a1b, 0 26px 50px rgba(0, 0, 0, .38);
}

.tnd-cf-frame {
    position: absolute;
    inset: 0;
}

.tnd-cf-frame>img,
.tnd-cf-frame>iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.tnd-cf-frame:not(.is-playing)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--pg-grad);
    pointer-events: none;
}

.tnd-cf-frame.is-playing~.tnd-pg {
    display: none;
}

.tnd-cf-play {
    position: absolute;
    top: 38%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f26a1b;
    color: #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 26px rgba(242, 106, 27, .5);
    transition: transform .25s;
}

.tnd-cf-play[hidden] {
    display: none;
}

.tnd-cf-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.tnd-cf-play svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    stroke: currentColor;
}

.tnd-cf-soon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 99px;
    background: rgba(13, 42, 68, .78);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
}

.tnd-cf-soon[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .tnd-cf {
        --cw: min(66vw, 280px);
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .tnd-cf-left {
        width: 100%;
    }
}

/* ---- alumni: auto-sliding image cards ---- */
.tnd-al {
    margin-top: 34px;
}

.tnd-al-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 2px 10px;
}

.tnd-al-track::-webkit-scrollbar {
    display: none;
}

.tnd-al-card {
    position: relative;
    flex: 0 0 calc((100% - 54px) / 4);
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    background: #0d2a44;
}

.tnd-al-card>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tnd-al-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--pg-grad);
    pointer-events: none;
}

.tnd-al-batch {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .95);
    color: #0d2a44;
    font-size: 11.5px;
    font-weight: 700;
}

@media (max-width: 1199px) {
    .tnd-al-card {
        flex-basis: calc((100% - 36px) / 3);
    }
}

@media (max-width: 991px) {
    .tnd-al-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 575px) {
    .tnd-al-card {
        flex-basis: 78%;
    }
}

/* ---- contact: logos, then email | phone | address in one plain row ---- */
.tnd-ct-info {
    display: flex;
    flex-direction: column;   /* one under another, top to bottom */
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 36px auto 0;
    text-align: center;
}

/* let the contact band use the full desktop width */
.tnd-ct-sec .tnd-ct-bare-in {
    max-width: none;
    width: 100%;
}

@media (min-width: 1200px) {
    .tnd-ct-sec>.tnd-wrap {
        max-width: min(1680px, 94vw);
    }

    .tnd-ct-item {
        font-size: 18px;
    }

    .tnd-ct-ic {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        padding: 15px;
    }
}

.tnd-ct-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: #fff;
    font-size: 16px;
    font-style: normal;
    line-height: 1.5;
    text-decoration: none;
    transition: color .25s;
}

address.tnd-ct-item {
    max-width: 680px;
    text-align: left;
}

a.tnd-ct-item:hover,
a.tnd-ct-item:focus-visible {
    color: #ff9348;
}

.tnd-ct-ic {
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 14px;
    border: 1px solid rgba(255, 147, 72, .75);
    border-radius: 50%;
    background: rgba(242, 106, 27, .12);
    color: #ff9348;
}

.tnd-ct-ic svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}



/* ============================================================================
   TERNA GBS — 2027–29 LANDING PAGE ORDER + SINGLE HERO ENQUIRY FORM
   ============================================================================ */
#thHeroForm { width:100%; }
.th-inline-form { display:block !important; }
.th-inline-form .th-form-card { width:100%; }
[data-scroll-hero-form] { cursor:pointer; }
@media (max-width: 991px) {
    .th-hero .th-inner { align-items:stretch; }
    .th-hero .th-inline-form { display:block !important; width:100%; max-width:560px; margin:24px auto 0; }
}
@media (max-width: 575px) {
    .th-hero .th-inline-form { padding:0 12px; }
    #thHeroForm { scroll-margin-top:80px; }
}


/* ============================================================================
   11. PLACEMENT SUCCESS + ALUMNI — card slider (.tnd-cv)
   Left : square cards, middle one highlighted, two behind it.
          Each card = round photo, quote, then name / designation / company.
   Right: video card of the highlighted student (students section only).
   .tnd-cv-solo = alumni version (no video column, wider stage).
   ============================================================================ */
.tnd-cv {
    --cw: 300px;
    --ch: 450px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
    margin-top: 34px;
}

.tnd-cv-solo {
    grid-template-columns: minmax(0, 1fr);
    --ch: 400px;
}

.tnd-cv-left {
    min-width: 0;
}

.tnd-cv-stage {
    position: relative;
    height: calc(var(--ch) + 30px);
    overflow: hidden;
    touch-action: pan-y;
}

/* ---- the card ---- */
.tnd-cv-card {
    position: absolute;
    top: 15px;
    left: 50%;
    width: var(--cw);
    height: var(--ch);
    margin-left: calc(var(--cw) / -2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 22px 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    background: linear-gradient(165deg, #1a4672 0%, #0f2f50 55%, #0a2036 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
    transition: transform .55s cubic-bezier(.2, .7, .3, 1), opacity .45s ease, filter .45s ease, box-shadow .45s ease;
}

.tnd-cv-card.is-c {
    z-index: 3;
    transform: none;
    box-shadow: 0 0 0 2px #f26a1b, 0 26px 50px rgba(0, 0, 0, .4);
}

.tnd-cv-card.is-l,
.tnd-cv-card.is-r {
    z-index: 2;
    opacity: .55;
    filter: brightness(.7);
    cursor: pointer;
}

.tnd-cv-card.is-l {
    transform: translateX(calc(var(--cw) * -.74)) scale(.86);
}

.tnd-cv-card.is-r {
    transform: translateX(calc(var(--cw) * .74)) scale(.86);
}

.tnd-cv-card.is-x {
    z-index: 1;
    opacity: 0;
    transform: scale(.7);
    pointer-events: none;
}

/* the alumni stage is wide, so the back cards can sit further out */
.tnd-cv-solo .tnd-cv-card.is-l {
    transform: translateX(calc(var(--cw) * -1.08)) scale(.86);
}

.tnd-cv-solo .tnd-cv-card.is-r {
    transform: translateX(calc(var(--cw) * 1.08)) scale(.86);
}

/* ---- round photo ---- */
.tnd-cv-ph {
    flex: 0 0 auto;
    width: 118px;
    height: 118px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #0d2a44;
    box-shadow: 0 0 0 3px #f26a1b, 0 10px 22px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.tnd-cv-ph img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ---- quote ---- */
.tnd-cv-quote {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .92);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tnd-cv-quote::before {
    content: "\201C";
    display: block;
    margin-bottom: 4px;
    font-family: Georgia, serif;
    font-size: 36px;
    line-height: .6;
    color: #ff9348;
}

/* ---- name / designation / company ---- */
.tnd-cv-who {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.tnd-cv-who-c {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 0;
}

.tnd-cv-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.tnd-cv-role {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #ff9348;
}

.tnd-cv-sub {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .7);
}

.tnd-cv-sub:empty {
    display: none;
}

/* company: white pill, navy text (logo or a dot on its left) */
.tnd-cv-co {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin-top: 6px;
    padding: 6px 14px 6px 8px;
    border-radius: 99px;
    background: #fff;
    color: #0d2a44;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
}

.tnd-cv-co[hidden] {
    display: none;
}

.tnd-cv-co i {
    flex: none;
    width: 8px;
    height: 8px;
    margin: 0 2px 0 4px;
    border-radius: 50%;
    background: #f26a1b;
}

.tnd-cv-co img {
    flex: none;
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
}

.tnd-cv-co em {
    font-style: normal;
}

.tnd-cv-pkg {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 6px;
    color: #fff;
}

.tnd-cv-pkg[hidden] {
    display: none;
}

.tnd-cv-pkg small {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .7);
}

.tnd-cv-pkg b {
    font-size: 16px;
    font-weight: 800;
    color: #ff9348;
}

.tnd-cv-batch {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .95);
    color: #0d2a44;
    font-size: 11.5px;
    font-weight: 700;
}

/* ---- right: video card, same height as the cards ---- */
.tnd-cv-right {
    min-width: 0;
}

.tnd-cv-vcard {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: var(--ch);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    background: linear-gradient(165deg, #1a4672 0%, #0f2f50 55%, #0a2036 100%);
    box-shadow: 0 0 0 2px #f26a1b, 0 26px 50px rgba(0, 0, 0, .4);
    overflow: hidden;
}

.tnd-cv-frame {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    background: #06182a;
}

.tnd-cv-frame > img,
.tnd-cv-frame > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.tnd-cv-frame .tnd-cf-play {
    top: 50%;
}

.tnd-cv-cap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    padding: 16px 24px 18px;
    text-align: left;
}

.tnd-cv-cap .tnd-cv-name {
    font-size: 20px;
}

/* ---- tablet / mobile ---- */
@media (max-width: 1199px) {
    .tnd-cv {
        grid-template-columns: minmax(0, 1fr) 380px;
    }
}

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

    .tnd-cv-left {
        width: 100%;
    }

    .tnd-cv-right {
        width: 100%;
        max-width: 440px;
    }

    .tnd-cv-vcard {
        height: auto;
    }
}

@media (max-width: 575px) {
    .tnd-cv {
        --cw: min(74vw, 290px);
        --ch: 470px;
    }

    .tnd-cv-solo {
        --ch: 410px;
    }

    .tnd-cv-card.is-l {
        transform: translateX(calc(var(--cw) * -.8)) scale(.84);
    }

    .tnd-cv-card.is-r {
        transform: translateX(calc(var(--cw) * .8)) scale(.84);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tnd-cv-card {
        transition: none;
    }
}


/* ============================================================================
   12. OUTCOMES — Internship & Recruitment Statistics layout fix
   The block's heading was dropping below the tiles. The block is now a plain
   column in a fixed order: heading, three counters, nine tiles.
   ============================================================================ */
.tnd-i3-block {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
    padding: 26px !important;
    border: 1px solid var(--td-line) !important;
    border-radius: 22px !important;
    background: #fff;
    box-shadow: 0 16px 40px rgba(13, 42, 68, .08);
    overflow: hidden;
}

.tnd-i3-block > .tnd-i3-head {
    position: static !important;
    order: 1;
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin: 0 !important;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--td-line);
    text-align: left;
}

.tnd-i3-block > .tnd-i3-hero {
    order: 2;
}

.tnd-i3-block > .tnd-i3-facts {
    order: 3;
}

.tnd-i3-head .tnd-i3-n {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--td-o), var(--td-o-d));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.tnd-i3-head h3 {
    margin: 0 0 3px;
    font-size: 20px;
    font-weight: 700;
    color: var(--td-w);
}

.tnd-i3-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--td-t-dim);
}

@media (max-width: 575px) {
    .tnd-i3-block {
        padding: 16px !important;
    }
}


/* ============================================================================
   13. SQUARE PHOTOS (students + alumni) and OUTCOMES (.tnd-oc, own markup)
   ============================================================================ */

/* ---- students: the photo is a square with rounded corners, not a circle ---- */
.tnd-cv-ph {
    width: 150px;
    height: 150px;
    border: 3px solid #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 2px #f26a1b, 0 10px 22px rgba(0, 0, 0, .35);
}

.tnd-cv-card:not(.tnd-cv-alumni) {
    padding-top: 22px;
}

.tnd-cv-card:not(.tnd-cv-alumni) .tnd-cv-quote {
    margin-top: 12px;
    -webkit-line-clamp: 3;
}

.tnd-cv-card:not(.tnd-cv-alumni) .tnd-cv-quote::before {
    font-size: 28px;
    margin-bottom: 2px;
}

/* ---- alumni: full-bleed square photo card, text sits on the photo ---- */
.tnd-cv-alumni {
    padding: 0;
    justify-content: flex-end;
    align-items: stretch;
}

.tnd-cv-solo {
    --cw: 310px;
    --ch: 390px;
}

.tnd-cv-alumni .tnd-cv-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.tnd-cv-alumni::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 24, 42, 0) 38%, rgba(6, 24, 42, .82) 68%, rgba(3, 14, 26, .97) 100%);
    pointer-events: none;
}

.tnd-cv-alumni .tnd-cv-who {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 18px 20px;
    border: 0;
}

@media (max-width: 575px) {
    .tnd-cv-solo {
        --cw: min(74vw, 290px);
        --ch: 380px;
    }
}


/* ---- OUTCOMES ---- */
.tnd-oc {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--td-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(13, 42, 68, .08);
}

.tnd-oc-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--td-line);
    text-align: left;
}

.tnd-oc-n {
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--td-o), var(--td-o-d));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.tnd-oc-head h3 {
    margin: 0 0 3px;
    font-size: 20px;
    font-weight: 700;
    color: var(--td-w);
}

.tnd-oc-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--td-t-dim);
}

/* three counters on a navy band */
.tnd-oc-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(120deg, #0d2a44 0%, #12457f 100%);
}

.tnd-oc-hi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 26px 12px;
    text-align: center;
    color: #fff;
}

.tnd-oc-hi + .tnd-oc-hi {
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.tnd-oc-hi-ic {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.tnd-oc-hi-ic svg,
.tnd-oc-fact-ic svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tnd-oc-hi-n {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.tnd-oc-hi-n i {
    font-style: normal;
}

.tnd-oc-hi-l {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

/* nine tiles, three across */
.tnd-oc-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tnd-oc-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--td-line);
    border-radius: 14px;
    background: #f4f7fb;
    transition: background .25s, border-color .25s;
}

.tnd-oc-fact:hover {
    background: var(--td-b-d);
    border-color: var(--td-b-d);
}

.tnd-oc-fact-ic {
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 11px;
    background: rgba(242, 106, 27, .13);
    color: var(--td-o);
    transition: background .25s, color .25s;
}

.tnd-oc-fact-tx {
    min-width: 0;
}

.tnd-oc-fact strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--td-w);
    transition: color .25s;
}

.tnd-oc-fact small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--td-t-dim);
    transition: color .25s;
}

.tnd-oc-fact:hover strong,
.tnd-oc-fact:hover small {
    color: #fff;
}

.tnd-oc-fact:hover .tnd-oc-fact-ic {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.tnd-oc-foot {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

@media (max-width: 767px) {
    .tnd-oc {
        padding: 16px;
    }

    .tnd-oc-facts {
        gap: 8px;
    }

    .tnd-oc-fact {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 12px 6px;
        text-align: center;
    }

    .tnd-oc-fact-ic {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        padding: 8px;
    }

    .tnd-oc-fact strong { font-size: 14px; }
    .tnd-oc-fact small  { font-size: 10.5px; }
    .tnd-oc-hi { padding: 18px 6px; }
    .tnd-oc-hi-l { font-size: 10.5px; }
}


/* ============================================================================
   14. STUDENTS (photo + name + designation, no box) / VIDEO (square) /
       TIGHTER SECTION SPACING + ONE-LINE HEADINGS / CONTACT GAP
   ============================================================================ */

/* ---- students: no card box, just the square photo and the name under it ---- */
.tnd-cv-sq {
    --cw: 300px;
    --ch: calc(var(--cw) + 84px);
    grid-template-columns: minmax(0, 1fr) var(--cw);
    margin-top: 22px;
}

.tnd-cv-sq .tnd-cv-card {
    padding: 0;
    border: 0;
    background: none;
    overflow: visible;
    box-shadow: none !important;
    align-items: stretch;
}

.tnd-cv-sq .tnd-cv-card .tnd-cv-ph {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}

.tnd-cv-sq .tnd-cv-card.is-c .tnd-cv-ph {
    box-shadow: 0 0 0 3px #f26a1b, 0 22px 44px rgba(0, 0, 0, .4);
}

.tnd-cv-sq .tnd-cv-who {
    margin-top: 12px;
    padding: 0;
    border: 0;
}

/* ---- video: square frame, name / designation / company centred under it ---- */
.tnd-cv-sq .tnd-cv-vcard {
    height: auto;
    border: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}

.tnd-cv-sq .tnd-cv-frame {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 3px #f26a1b, 0 22px 44px rgba(0, 0, 0, .4);
}

.tnd-cv-sq .tnd-cv-cap {
    align-items: center;
    padding: 12px 0 0;
    text-align: center;
}

.tnd-cv-sq .tnd-cv-cap .tnd-cv-name {
    font-size: 18px;
}

@media (max-width: 991px) {
    .tnd-cv-sq {
        grid-template-columns: 1fr;
    }

    .tnd-cv-sq .tnd-cv-right {
        max-width: var(--cw);
    }
}

@media (max-width: 575px) {
    .tnd-cv-sq {
        --cw: min(72vw, 280px);
        --ch: calc(var(--cw) + 84px);
    }
}

/* ---- every section: smaller top / bottom gap ---- */
.tnd-sec {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
}

.tnd-usp-sec {
    padding: 22px 0 0;
}

@media (max-width: 767px) {
    .tnd-sec {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}

/* ---- section titles: small, title and subtitle each on one line ---- */
.tnd-head {
    margin-bottom: 20px !important;
}

.tnd-head h2 {
    margin: 0 0 6px !important;
    font-size: clamp(20px, 2.1vw, 28px) !important;
    line-height: 1.25 !important;
}

.tnd-head p {
    margin: 0 auto !important;
    max-width: none !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
}

.tnd-head .tnd-script,
.tnd-head .tnd-eyebrow {
    margin-bottom: 6px !important;
}

@media (min-width: 768px) {

    .tnd-head h2,
    .tnd-head p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ---- contact: no white strip below it ---- */
#contact-us {
    margin-bottom: 0 !important;
}

.tn-legacy-form {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}


/* ============================================================================
   15. PLACEMENT SUCCESS  (#student-reviews)

   LEFT  the card slider. Each card, top to bottom with NO empty space above
         the photo: programme chip, round photo, the student's 2-line quote,
         then name / designation / company. Centre card highlighted, one card
         behind on each side.

         A card whose quote is still empty gets .is-noquote from index.php,
         and when NO student has a quote yet the whole slider gets .is-noq,
         which simply makes every card shorter — that is what keeps the card
         filled instead of leaving a hole where the quote will go.

   RIGHT the selected student's video, in a card of EXACTLY the same width
         and height as the card on the left — the two read as a matched pair
         — with the programme, name, designation and company centred
         underneath it.

   Every rule is scoped to #student-reviews so the Alumni section is left
   alone. The #id beats the earlier .tnd-cv-* and .tnd-cv-sq rules in this
   file whatever order they end up in.

   TO RESIZE: --cw is the width and --ch the height, and BOTH cards use
   them, so they can never drift out of step. Change them here.
   ============================================================================ */
#student-reviews .tnd-cv {
    --cw: 300px;
    --ch: 350px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--cw);
    gap: clamp(24px, 3vw, 46px);
    /* top, not centre: the tall video card and the shorter card slider start
       on the same line, instead of the slider floating down the middle */
    align-items: start;
    margin-top: 26px;
}

/* nobody has a quote yet — short cards, so there is no gap waiting for one */
#student-reviews .tnd-cv.is-noq {
    --ch: 306px;
}

#student-reviews .tnd-cv-left {
    min-width: 0;
}

#student-reviews .tnd-cv-stage {
    max-width: 100%;
}

/* ---- the card: content starts at the top, name block sits on the bottom ---- */
#student-reviews .tnd-cv-card {
    padding: 18px 18px 16px;
    justify-content: flex-start;
}

/* the programme chip, in the flow at the very top of the card */
#student-reviews .tnd-cv-batch {
    position: static;
    z-index: auto;
    align-self: center;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 30px;
    background: rgba(5, 22, 39, .55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- round photo: directly under the chip, no space above it ---- */
#student-reviews .tnd-cv-ph {
    flex: 0 0 auto;
    margin: 0;
    width: 128px;
    height: 128px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #0d2a44;
    box-shadow: 0 0 0 2px rgba(242, 106, 27, .5), 0 10px 22px rgba(0, 0, 0, .35);
    overflow: hidden;
}

#student-reviews .tnd-cv-card.is-c .tnd-cv-ph {
    box-shadow: 0 0 0 3px #f26a1b, 0 14px 28px rgba(0, 0, 0, .42);
}

#student-reviews .tnd-cv-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ---- the quote: TWO lines of text, hidden while it is still empty ----
   the big opening quote mark is drawn by ::before as a block, so it takes one
   of the clamped lines itself — 3 here is what leaves 2 lines of text */
#student-reviews .tnd-cv-quote {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
}

#student-reviews .tnd-cv-quote::before {
    font-size: 26px;
    margin-bottom: 2px;
}

#student-reviews .tnd-cv-quote:empty {
    display: none;
}

/* ---- name / designation / company, pinned to the bottom of the card ---- */
#student-reviews .tnd-cv-who {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

#student-reviews .tnd-cv-name {
    font-size: 17px;
}

#student-reviews .tnd-cv-role {
    font-size: 12.5px;
}

#student-reviews .tnd-cv-co {
    justify-content: center;
    text-align: center;
}

/* ---- right: the video card, the same box as the card on the left ---- */
#student-reviews .tnd-cv-right {
    min-width: 0;
    width: var(--cw);
    justify-self: center;
}

#student-reviews .tnd-cv-vcard {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}

/* exactly --cw by --ch, the same box as the card on the left */
#student-reviews .tnd-cv-frame {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: var(--ch);
    aspect-ratio: auto;
    border-radius: 20px;
    background: #06182a;
    box-shadow: 0 0 0 3px #f26a1b, 0 22px 44px rgba(0, 0, 0, .42);
    overflow: hidden;
}

#student-reviews .tnd-cv-frame > img,
#student-reviews .tnd-cv-frame > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    /* the poster is a portrait photo or a video thumbnail cropped to a tall
       frame — bias the crop upwards so a face is never cut off at the chin */
    object-position: center 18%;
}

#student-reviews .tnd-cv-cap {
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 14px 2px 0;
    text-align: center;
}

#student-reviews .tnd-cv-cap .tnd-cv-sub {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

#student-reviews .tnd-cv-cap .tnd-cv-name {
    font-size: 19px;
}

#student-reviews .tnd-cv-cap .tnd-cv-role {
    font-size: 12.5px;
}

#student-reviews .tnd-cv-cap .tnd-cv-co {
    margin-top: 8px;
}

/* ---- tablet / mobile ---- */
@media (max-width: 1199px) {
    #student-reviews .tnd-cv {
        --cw: 280px;
        gap: 28px;
    }
}

@media (max-width: 991px) {
    #student-reviews .tnd-cv {
        --cw: 300px;
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: center;
    }

    #student-reviews .tnd-cv-left {
        width: 100%;
    }
}

@media (max-width: 575px) {
    #student-reviews .tnd-cv {
        --cw: min(74vw, 280px);
        --ch: 362px;
    }

    #student-reviews .tnd-cv.is-noq {
        --ch: 292px;
    }

    #student-reviews .tnd-cv-card.is-l {
        transform: translateX(calc(var(--cw) * -.8)) scale(.84);
    }

    #student-reviews .tnd-cv-card.is-r {
        transform: translateX(calc(var(--cw) * .8)) scale(.84);
    }

    #student-reviews .tnd-cv-ph {
        width: 112px;
        height: 112px;
    }
}


/* ============================================================================
   16. THREE MORE SECTIONS

   16a  RECRUITING PARTNERS   bigger, equal logo cards
   16b  CHOOSE YOUR SPECIALIZATION   square photo, equal card size
   16c  ALUMNI SUCCESS STORIES   one continuous slider

   All three are scoped to their section id, and they override rules that
   live in terna-dark.css — this file loads after it, and an #id outranks the
   class selectors there, so nothing in that file has to be touched.
   ============================================================================ */


/* ---------------------------------------------------------------------------
   16a. RECRUITING PARTNERS — the logo cards were small and uneven, because
   each card was sized by its own logo. Every card is one fixed size now and
   the logo is scaled to fit inside it, whatever shape the file is.
   TO RESIZE: change the width / height on .tnd-rc-card.
   --------------------------------------------------------------------------- */
#recruiting-partners .tnd-rc-group {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
}

#recruiting-partners .tnd-rc-card {
    flex: 0 0 auto;
    /* flex, not grid: the logo's 100% height then resolves against the card's
       own fixed height, so a tall logo is scaled down instead of overflowing */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 110px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

#recruiting-partners .tnd-rc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .26);
}

/* width + height + contain, rather than max-width / max-height: a very tall
   or very wide logo is then scaled to fit inside the card instead of
   spilling out of it, and nothing is cropped either way */
#recruiting-partners .tnd-rc-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 991px) {
    #recruiting-partners .tnd-rc-card {
        width: 160px;
        height: 96px;
        padding: 14px 16px;
    }

    #recruiting-partners .tnd-rc-group {
        gap: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 575px) {
    #recruiting-partners .tnd-rc-card {
        width: 134px;
        height: 82px;
        padding: 12px 14px;
        border-radius: 13px;
    }
}


/* ---------------------------------------------------------------------------
   16b. CHOOSE YOUR SPECIALIZATION — the photo card, kept as designed.

   This is the card as it looks on the page: the photograph fills the whole
   card, and the tag, title, description and link sit on top of it. Nothing
   about that is changed here. What IS fixed:

     1. EVERY CARD IS THE SAME SIZE. The card has a fixed shape, so six cards
        of different text lengths no longer come out at different heights.

     2. THE TEXT LINES UP ACROSS THE CARDS. The title has two lines reserved
        whether it needs them or not, so a long name like "Hospital
        Healthcare Mgmt" wrapping onto a second line no longer pushes that
        one card's description and link out of step with its neighbours.

     3. THE WORDS ARE READABLE ON ANY PHOTOGRAPH. The dark wash under the
        text is deeper and starts higher, so white type holds up over a
        bright or a busy picture instead of disappearing into it.

     4. THE TAG NO LONGER COLLIDES. It is capped in width, kept clear of the
        icon in the other corner, and held to two lines at most.

     5. FACES ARE NOT CROPPED OFF. A full-bleed photo has to fill the card,
        so a picture that is not this shape is always trimmed somewhere —
        the trim is now taken from the BOTTOM of the photo rather than the
        middle, which is what keeps people's heads in frame.

   The rules reset position and inset and carry !important because they have
   to sit on top of the same card in terna-dark.css, which this file cannot
   edit.
   --------------------------------------------------------------------------- */
/* The other sections sit in a 1240px wrap. This one uses the full width, so
   four cards across are still ~400px wide instead of ~295px. */
@media (min-width: 1200px) {
    #specialisations > .tnd-wrap {
        width: min(1720px, 94vw) !important;
        max-width: min(1720px, 94vw) !important;
    }
}

#specialisations .tnd-track {
    align-items: stretch;
}

#specialisations .tnd-slide {
    display: flex;
    height: auto !important;
}

#specialisations .tnd-ocard {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    /* the text block sits at the bottom of the card, in normal flow, which
       is what keeps every card the same height */
    justify-content: flex-end !important;
    align-items: stretch !important;
    width: 100%;
    /* THE CARD HEIGHT. min-height is the floor, and height:100% inside the
       stretched slide makes every card in the row match the tallest one —
       so they stay equal, and a card whose text needs more room grows the
       whole row with it instead of clipping its own title.

       >>> CARD HEIGHT: change the min-height below. <<<
       >>> CARD WIDTH:  change data-cols on the rail in index.php — fewer
           columns across means wider cards.                            <<< */
    height: 100% !important;
    min-height: 500px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 18px;
    background: #0d2a44 !important;
    box-shadow: 0 14px 32px rgba(13, 42, 68, .18);
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

#specialisations .tnd-ocard:hover,
#specialisations .tnd-ocard:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 22px 46px rgba(13, 42, 68, .3);
}

/* ---- the photograph, filling the card ---- */
#specialisations .tnd-ocard-img {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background-color: #0d2a44;
    background-size: cover !important;
    /* top, not centre: the trim comes off the bottom of the picture, so
       faces near the top stay in the frame */
    background-position: center top !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

#specialisations .tnd-ocard-img img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    transition: transform .5s ease;
}

#specialisations .tnd-ocard:hover .tnd-ocard-img img {
    transform: scale(1.05);
}

/* ---- the dark wash that the white type sits on ----
   It starts higher up the card and finishes darker than before, which is
   what makes the words hold up over a bright or busy photograph. */
#specialisations .tnd-ocard-img::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(4, 16, 28, .34) 0%,
        rgba(4, 16, 28, .10) 22%,
        rgba(4, 16, 28, .62) 48%,
        rgba(3, 12, 22, .90) 74%,
        rgba(2, 10, 18, .97) 100%);
    pointer-events: none;
}

#specialisations .tnd-ocard::before,
#specialisations .tnd-ocard::after {
    display: none !important;
    content: none !important;
}

/* ---- icon, top left ---- */
#specialisations .tnd-ocard-ic {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 3;
    display: grid !important;
    place-items: center;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    border-radius: 12px !important;
    background: rgba(6, 22, 38, .55) !important;
    color: #fff !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

#specialisations .tnd-ocard-ic svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- tag, top right ----
   capped so it can never reach the icon, and held to two lines at most */
#specialisations .tnd-ocard-tag {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 3;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: auto !important;
    max-width: calc(100% - 76px) !important;
    margin: 0 !important;
    padding: 7px 14px !important;
    border-radius: 99px !important;
    background: linear-gradient(100deg, var(--td-o, #f26a1b), var(--td-o-d, #d4560c)) !important;
    color: #fff !important;
    font-size: 11.5px !important;
    font-weight: 600;
    line-height: 1.32;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}

/* ---- the words, on the photo ---- */
#specialisations .tnd-ocard-body {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2;
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    gap: 9px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 22px 22px 20px !important;
    background: none !important;
    color: #fff !important;
    text-align: left !important;
    transform: none !important;
}

/* two lines are reserved whether the title needs them or not — this is what
   keeps the four cards' text in line with each other */
#specialisations .tnd-ocard-h {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    margin: 0 !important;
    font-size: 21px !important;
    font-weight: 700;
    line-height: 1.25;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

#specialisations .tnd-ocard-p {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em;
    margin: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.65;
    color: rgba(255, 255, 255, .88) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

#specialisations .tnd-ocard-go {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0 !important;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: #ff9348 !important;
    font-size: 14.5px;
    font-weight: 700;
}

#specialisations .tnd-ocard-go > span {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 50%;
    background: var(--td-o, #f26a1b);
    color: #fff;
    transition: transform .3s ease;
}

#specialisations .tnd-ocard-go svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#specialisations .tnd-ocard:hover .tnd-ocard-go > span {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    #specialisations .tnd-ocard {
        min-height: 470px !important;
    }
}

@media (max-width: 575px) {
    #specialisations .tnd-ocard {
        min-height: 440px !important;
    }

    #specialisations .tnd-ocard-body {
        padding: 18px 16px 16px !important;
    }

    #specialisations .tnd-ocard-h {
        font-size: 19px !important;
    }

    #specialisations .tnd-ocard-p {
        font-size: 13.5px !important;
    }
}


/* ---------------------------------------------------------------------------
   16c. ALUMNI SUCCESS STORIES — continuous slider you can also take hold of.

   The strip holds the list twice and terna-blocks.js winds it back by exactly
   half its width each time round, so the loop never shows a seam. The same
   script handles the swipe, the drag and the two arrows.

   Each card TURNS OVER to show that alumnus's own words: fill in 'quote' in
   $tnAlumni and the card gets a back, leave it empty and it stays a plain
   photo card that does not turn.

   TO CHANGE THE SPEED: data-alq-speed on the section in index.php, in pixels
   a second. TO RESIZE: --alq-w and --alq-h below.
   --------------------------------------------------------------------------- */
.tnd-alq {
    --alq-w: 250px;
    --alq-h: 330px;
    position: relative;
    margin-top: 24px;
    /* fades the cards out at both ends instead of cutting them off */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

/* the window the strip scrolls inside. overflow-x:auto is what gives the
   swipe on a phone for free; the scrollbar itself is hidden. */
.tnd-alq-vp {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* no scroll-snap: it would fight the drift */
    overscroll-behavior-x: contain;
    cursor: grab;
}

.tnd-alq-vp::-webkit-scrollbar {
    display: none;
}

.tnd-alq-vp.is-drag {
    cursor: grabbing;
    user-select: none;
}

.tnd-alq-track {
    display: flex;
    width: max-content;
}

/* Fallback only: if the script has not run, the strip still moves on CSS
   alone. terna-blocks.js adds .is-ready, which switches this off and takes
   over — the two never run together. */
.tnd-alq:not(.is-ready) .tnd-alq-track {
    animation: tndAlqRun var(--spd, 70s) linear infinite;
}

.tnd-alq:not(.is-ready):hover .tnd-alq-track {
    animation-play-state: paused;
}

@keyframes tndAlqRun {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* the two halves must be identical in width, so the gap is carried by
   padding-right on each group rather than by a gap on the track */
.tnd-alq-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

/* one item = one flip card */
.tnd-alq-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    width: var(--alq-w);
}

/* ---- THE FLIP CARD ----
   The front is the photograph. The back is the alumnus's own words. It turns
   over when the pointer rests on it, when it is tabbed to, and on a tap on a
   touch screen (terna-blocks.js adds .is-flipped for that).

   A card without a quote has no .has-quote and no back face, so it never
   turns — fill in 'quote' in $tnAlumni to bring a card to life. */
.tnd-alq-card {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: var(--alq-h);
    border-radius: 20px;
    background: transparent;
    perspective: 1200px;
}

.tnd-alq-card.has-quote {
    cursor: pointer;
}

.tnd-alq-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .72s cubic-bezier(.2, .7, .3, 1);
}

.tnd-alq-card.has-quote:hover .tnd-alq-inner,
.tnd-alq-card.has-quote:focus-visible .tnd-alq-inner,
.tnd-alq-card.has-quote.is-flipped .tnd-alq-inner {
    transform: rotateY(180deg);
}

.tnd-alq-card.has-quote:focus-visible {
    outline: 2px solid #ff9348;
    outline-offset: 3px;
}

.tnd-alq-face {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .34);
}

.tnd-alq-front {
    background: #0d2a44;
}

.tnd-alq-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    -webkit-user-drag: none;
    user-select: none;
}

.tnd-alq-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 24, 42, 0) 38%, rgba(6, 24, 42, .82) 68%, rgba(3, 14, 26, .97) 100%);
    pointer-events: none;
}

.tnd-alq-batch {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .95);
    color: #0d2a44;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

/* the little turn-over hint in the corner of a card that has a quote */
.tnd-alq-flip {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(6, 22, 38, .5);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.tnd-alq-flip svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tnd-alq-who {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 14px 16px;
    text-align: center;
}

.tnd-alq-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.tnd-alq-role {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #ff9348;
}

.tnd-alq-co {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    margin-top: 6px;
    padding: 5px 12px 5px 8px;
    border-radius: 99px;
    background: #fff;
    color: #0d2a44;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.tnd-alq-co i {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f26a1b;
}

.tnd-alq-co img {
    flex: none;
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
}

/* ---- the back: the testimonial ---- */
.tnd-alq-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 22px 20px;
    border: 1px solid rgba(255, 147, 72, .34);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(242, 106, 27, .22), transparent 62%),
        linear-gradient(165deg, #123250 0%, #0b2338 58%, #07192a 100%);
    color: #fff;
    text-align: left;
    transform: rotateY(180deg);
}

.tnd-alq-qt {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    margin: 0;
    font-size: 14px;
    line-height: 1.62;
    color: rgba(255, 255, 255, .94);
    overflow: hidden;
}

.tnd-alq-qt::before {
    content: "\201C";
    display: block;
    margin-bottom: 4px;
    font-family: Georgia, serif;
    font-size: 40px;
    line-height: .5;
    color: #ff9348;
}

.tnd-alq-sig {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    text-align: left;
}

.tnd-alq-sig .tnd-alq-name {
    font-size: 15px;
}

.tnd-alq-sig .tnd-alq-role {
    font-size: 11.5px;
}

.tnd-alq-sig-co {
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .72);
}

/* ---- the manual arrows ---- */
.tnd-alq-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 767px) {
    .tnd-alq {
        --alq-w: 200px;
        --alq-h: 272px;
    }

    .tnd-alq-group {
        gap: 14px;
        padding-right: 14px;
    }

    .tnd-alq-name { font-size: 15px; }
    .tnd-alq-role { font-size: 11.5px; }

    .tnd-alq-back {
        gap: 12px;
        padding: 18px 16px;
    }

    .tnd-alq-qt {
        -webkit-line-clamp: 6;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tnd-alq:not(.is-ready) .tnd-alq-track {
        animation: none;
    }

    .tnd-alq-inner {
        transition: none;
    }
}


/* ---------------------------------------------------------------------------
   16d. SPECIALISATION DETAILS WINDOW (#tndSpecPop)

   The top of the window is now two columns: the name and the description on
   the LEFT, the average package / highest package / duration stacked on the
   RIGHT. Key subjects, career roles, what you actually do and the buttons run
   full width underneath, in that order.

   terna-dark.js writes into #tndPopStats and does not care how it is laid
   out, so the rules below shape whatever it puts there.
   --------------------------------------------------------------------------- */
#tndSpecPop .tnd-pop-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
    gap: 26px;
    align-items: start;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--td-line);
}

#tndSpecPop .tnd-pop-lead-tx {
    min-width: 0;
}

/* the icon, tag and title, now inside the left column */
#tndSpecPop .tnd-pop-top {
    position: static;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

#tndSpecPop .tnd-pop-ic {
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(242, 106, 27, .13);
    color: var(--td-o);
}

#tndSpecPop .tnd-pop-ic svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#tndSpecPop .tnd-pop-tag {
    display: inline-block;
    margin-bottom: 6px;
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--td-o-badge, rgba(242, 106, 27, .95));
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
}

#tndSpecPop .tnd-pop-top h3 {
    margin: 0;
    font-size: clamp(19px, 2.2vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--td-w);
}

#tndSpecPop .tnd-pop-intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--td-t);
}

/* the three figures, stacked down the right-hand side.
   The small top offset keeps the first one clear of the close button in
   the corner. */
#tndSpecPop .tnd-pop-side {
    min-width: 0;
    margin-top: 8px;
}

/* terna-dark.js wraps each figure's text in <em>, which would otherwise
   come out italic */
#tndSpecPop .tnd-pop-stats em {
    display: block;
    min-width: 0;
    font-style: normal;
}

/* ONE ROW OF THREE, icon above the figure, each one colour-coded:
   1 average package = orange, 2 highest package = blue, 3 duration = navy. */
#tndSpecPop .tnd-pop-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

#tndSpecPop .tnd-pop-stats > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-width: 0;
    margin: 0;
    padding: 16px 10px 14px;
    border: 1px solid var(--td-line);
    border-radius: 16px;
    background: var(--td-surf, #f4f7fb);
    text-align: center;
}

#tndSpecPop .tnd-pop-stats svg {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 1 — average package: orange */
#tndSpecPop .tnd-pop-stats > *:nth-child(1) {
    border-color: rgba(242, 106, 27, .28);
    background: rgba(242, 106, 27, .08);
}

#tndSpecPop .tnd-pop-stats > *:nth-child(1) svg {
    background: rgba(242, 106, 27, .16);
    color: #d4560c;
}

/* 2 — highest package: blue */
#tndSpecPop .tnd-pop-stats > *:nth-child(2) {
    border-color: rgba(43, 138, 224, .28);
    background: rgba(43, 138, 224, .08);
}

#tndSpecPop .tnd-pop-stats > *:nth-child(2) svg {
    background: rgba(43, 138, 224, .16);
    color: #1f6fbd;
}

/* 3 — duration: navy */
#tndSpecPop .tnd-pop-stats > *:nth-child(3) {
    border-color: rgba(13, 42, 68, .22);
    background: rgba(13, 42, 68, .06);
}

#tndSpecPop .tnd-pop-stats > *:nth-child(3) svg {
    background: rgba(13, 42, 68, .12);
    color: #0d2a44;
}

#tndSpecPop .tnd-pop-stats strong,
#tndSpecPop .tnd-pop-stats b {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--td-w);
}

#tndSpecPop .tnd-pop-stats small,
#tndSpecPop .tnd-pop-stats span {
    display: block;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--td-t-dim);
}

@media (max-width: 767px) {
    #tndSpecPop .tnd-pop-lead {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    /* three across on a phone, so the figures do not push the copy down */
    #tndSpecPop .tnd-pop-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #tndSpecPop .tnd-pop-stats > * {
        flex-direction: column;
        gap: 6px;
        padding: 12px 8px;
        text-align: center;
    }

    #tndSpecPop .tnd-pop-stats svg {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        padding: 8px;
    }

    #tndSpecPop .tnd-pop-stats strong,
    #tndSpecPop .tnd-pop-stats b {
        font-size: 14px;
    }

    #tndSpecPop .tnd-pop-stats small,
    #tndSpecPop .tnd-pop-stats span {
        font-size: 10.5px;
    }
}


/* ============================================================================
   17. REVISIONS  (appended — loads after everything above, so it wins)
   17a  Placement Success: bigger video card on the right
   17b  About: centred tiles + gradient behind the two photos
   17c  Admission Guide: vertical (portrait) image card, desktop + mobile
   17d  Campus Film + Alumni Success Stories: photo backgrounds
   17e  Header: larger logos, active link, tighter mobile drawer
   17f  Footer quick links on mobile (selectors are a best guess — see note)
   ============================================================================ */

/* ---------- 17b. About — centred tiles ---------- */
.tnd-ab-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}
.tnd-ab-cell > span { margin: 0 auto 11px; }
.tnd-ab-cell strong,
.tnd-ab-cell small { width: 100%; text-align: center; }

/* the two photo cards show a branded gradient until the real photos exist */
.tnd-ab-main,
.tnd-ab-small {
    background: linear-gradient(135deg, #17466B 0%, #1f5f8f 55%, #F58220 140%);
}
.tnd-ab-main img,
.tnd-ab-small img { width: 100%; height: 100%; object-fit: cover; }


/* ---------- 17c. Admission Guide — vertical image card ---------- */
.tnd-guide-img {
    min-height: 430px;
    overflow: hidden;
    background: linear-gradient(160deg, #17466B 0%, #1f5f8f 60%, #F58220 150%);
}
.tnd-guide-panel:nth-child(2) .tnd-guide-img { background: linear-gradient(160deg, #103550 0%, #17466B 55%, #f58b3a 150%); }
.tnd-guide-panel:nth-child(3) .tnd-guide-img { background: linear-gradient(160deg, #F58220 -20%, #17466B 70%, #103550 120%); }
.tnd-guide-panel:nth-child(4) .tnd-guide-img { background: linear-gradient(160deg, #17466B 0%, #103550 50%, #F58220 160%); }
.tnd-guide-img img {
    position: absolute;
    inset: 0;
    z-index: 1;
    object-position: center top;
}
/* shown only when a topic has no photo yet */
.tnd-guide-ph {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding-bottom: 40px;
}
.tnd-guide-ph svg {
    width: 96px;
    height: 96px;
    padding: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 2px solid rgba(255, 255, 255, .45);
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tnd-guide-img::after { z-index: 1; pointer-events: none; }
.tnd-guide-tag { z-index: 3; }

@media (max-width: 991px) {
    .tnd-guide-img {
        min-height: 0;
        aspect-ratio: 4 / 5;
        max-height: 440px;
        width: 100%;
    }
}
@media (max-width: 575px) {
    .tnd-guide-img { aspect-ratio: 4 / 4.6; max-height: 400px; }
}


/* ---------- 17e. Header ---------- */
.terna-nav > a.is-active { color: var(--terna-orange); }
@media (max-width: 1279px) {
    /* drawer: tighter rows so the list is not a long scroll */
    .terna-nav > a { padding: 11px 4px; font-size: 14.5px; }
    .terna-drawer-extra { margin-top: 18px; }
}


/* ---------- 17f. Footer quick links on mobile ----------
   footer.php was not part of the upload, so these selectors are the common
   ones for this template. If the gap is still big, send footer.php. */
@media (max-width: 767px) {
    footer .links-widget .links-list li,
    footer .footer-widget .links-list li,
    footer .widget-section .links-list li,
    footer .footer-widget ul li { margin-bottom: 6px !important; padding: 0 !important; }
    footer .footer-widget,
    footer .footer-column { margin-bottom: 22px !important; }
    footer .widget-title,
    footer .footer-widget h3,
    footer .footer-widget h4 { margin-bottom: 12px !important; }
}


/* ============================================================================
   18. ROUND 2
   18a  Placement Success: left slider card and right video card, SAME size
   18b  About: ONE image card, as tall as the text column
   18c  Admission Guide: shorter vertical card
   18d  Campus Film + Alumni: photo backgrounds (real <div class="tnd-secbg">)
   18e  Internship & Recruitment Statistics: lower height, smaller type
   18f  Campus Film strip: one line of three square boxes on mobile
   ============================================================================ */

/* ---------- 18a. equal cards ----------
   Change --cw / --ch and BOTH cards follow (the video card reads them). */
#student-reviews .tnd-cv {
    --cw: 320px;
    --ch: 400px;
    --vw: var(--cw);
    --vh: var(--ch);
    grid-template-columns: minmax(0, 1fr) var(--vw);
    align-items: center;
}
#student-reviews .tnd-cv.is-noq { --ch: 350px; }
#student-reviews .tnd-cv-right { width: var(--vw); }
#student-reviews .tnd-cv-frame { height: var(--vh); }

@media (max-width: 1199px) {
    #student-reviews .tnd-cv { --cw: 300px; --ch: 380px; }
    #student-reviews .tnd-cv.is-noq { --ch: 340px; }
}
@media (max-width: 991px) {
    #student-reviews .tnd-cv { --cw: 320px; grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    #student-reviews .tnd-cv { --cw: min(74vw, 280px); --ch: 362px; }
    #student-reviews .tnd-cv.is-noq { --ch: 320px; }
}


/* ---------- 18b. About: one image card ---------- */
#about-us .tnd-two { align-items: stretch; }
#about-us .tnd-ab-media {
    position: relative;
    align-self: stretch;
    display: block;
    min-height: 440px;
}
#about-us .tnd-ab-main {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    border-radius: 22px;
    overflow: hidden;
}
#about-us .tnd-ab-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 991px) {
    #about-us .tnd-ab-media { min-height: 0; aspect-ratio: 4 / 3; }
}


/* ---------- 18c. Admission Guide: shorter vertical card ---------- */
.tnd-guide-card { grid-template-columns: 250px minmax(0, 1fr); }
.tnd-guide-img { min-height: 0; }
.tnd-guide-body { padding: 22px 24px 20px; }
.tnd-guide-list { gap: 8px; margin-bottom: 16px; }
@media (max-width: 1199px) {
    .tnd-guide-card { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 991px) {
    .tnd-guide-card { grid-template-columns: 1fr; }
    .tnd-guide-img { aspect-ratio: 4 / 3.2; max-height: 260px; }
}
@media (max-width: 575px) {
    .tnd-guide-img { aspect-ratio: 4 / 3; max-height: 220px; }
    .tnd-guide-body { padding: 18px 16px 18px; }
}


/* ---------- 18d. section photo backgrounds ---------- */
.tnd-secbg-sec { position: relative; overflow: hidden; }
.tnd-secbg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}
.tnd-secbg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 30, 48, .62) 0%, rgba(10, 30, 48, .80) 100%);
}
.tnd-secbg-sec > .tnd-wrap,
.tnd-secbg-sec > .tnd-alq { position: relative; z-index: 2; }


/* ---------- 18e. Internship & Recruitment Statistics: lower + smaller ---------- */
#placement-stats .tnd-oc { gap: 12px; padding: 18px 20px; border-radius: 18px; }
#placement-stats .tnd-oc-head { gap: 12px; padding-bottom: 10px; }
#placement-stats .tnd-oc-n { flex-basis: 36px; width: 36px; height: 36px; font-size: 13px; }
#placement-stats .tnd-oc-head h3 { font-size: 16.5px; margin-bottom: 1px; }
#placement-stats .tnd-oc-head p { font-size: 12.5px; }
#placement-stats .tnd-oc-hi { padding: 14px 10px; gap: 4px; }
#placement-stats .tnd-oc-hi-ic { width: 30px; height: 30px; padding: 7px; }
#placement-stats .tnd-oc-hi-n { font-size: clamp(20px, 2.3vw, 28px); }
#placement-stats .tnd-oc-hi-l { font-size: 12px; }
#placement-stats .tnd-oc-facts { gap: 8px; }
#placement-stats .tnd-oc-fact { gap: 10px; padding: 9px 12px; border-radius: 12px; }
#placement-stats .tnd-oc-fact-ic { flex-basis: 32px; width: 32px; height: 32px; padding: 8px; border-radius: 9px; }
#placement-stats .tnd-oc-fact strong { font-size: 14px; }
#placement-stats .tnd-oc-fact small { font-size: 11.5px; margin-top: 1px; }
#placement-stats .tnd-oc-foot { padding-top: 0; }
#placement-stats .tnd-oc-foot .tnd-btn { padding: 11px 22px; font-size: 14px; }
@media (max-width: 767px) {
    #placement-stats .tnd-oc { padding: 14px 12px; gap: 10px; }
    #placement-stats .tnd-oc-hi { padding: 12px 4px; }
    #placement-stats .tnd-oc-hi-n { font-size: 17px; }
    #placement-stats .tnd-oc-hi-l { font-size: 10px; }
    #placement-stats .tnd-oc-fact { padding: 9px 4px; gap: 4px; }
    #placement-stats .tnd-oc-fact strong { font-size: 12.5px; }
    #placement-stats .tnd-oc-fact small { font-size: 10px; }
}


/* ---------- 18f. Campus Film strip: ONE line, three square boxes on mobile ---------- */
@media (max-width: 767px) {
    #campus-video .tnd-vstrip-ic {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    #campus-video .tnd-vstrip-ic > div {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        aspect-ratio: 1 / 1;
        padding: 8px 4px;
        text-align: center;
    }
    #campus-video .tnd-vstrip-i { flex: 0 0 auto; width: 32px; height: 32px; padding: 7px; }
    #campus-video .tnd-vstrip-ic em { text-align: center; }
    #campus-video .tnd-vstrip-ic strong { font-size: 14px; white-space: nowrap; }
    #campus-video .tnd-vstrip-ic small { font-size: 10.5px; }
}


/* ============================================================================
   19. ROUND 3
   19a  Admission Guide: every topic card the SAME size, square image
   19b  About Us image on mobile: visible and larger
   19c  No gap between the header and the banner
   ============================================================================ */

/* ---------- 19a. equal cards ----------
   All four panels are stacked in ONE grid cell, so the box is as tall as the
   longest one and the other three are stretched to match: short or long text,
   same card. Only the .is-on panel is visible. */
.tnd-guide { align-items: stretch; }
.tnd-guide-panels { display: grid; align-items: stretch; }
.tnd-guide-panel {
    display: block !important;
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.tnd-guide-panel.is-on { visibility: visible; opacity: 1; pointer-events: auto; }
.tnd-guide-panel .tnd-guide-card { height: 100%; }

.tnd-guide-card { grid-template-columns: 290px minmax(0, 1fr); align-items: stretch; }
.tnd-guide-body { display: flex; flex-direction: column; justify-content: center; }

/* the image: a SQUARE card inside the left column */
.tnd-guide-img {
    align-self: center;
    justify-self: center;
    width: calc(100% - 36px);
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: none;
    margin: 18px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(13, 42, 68, .18);
}
@media (max-width: 1199px) {
    .tnd-guide-card { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (max-width: 991px) {
    .tnd-guide-card { grid-template-columns: 1fr; }
    .tnd-guide-img {
        width: min(100% - 36px, 260px);
        aspect-ratio: 1 / 1;
        max-height: none;
        margin: 18px auto 0;
    }
}
@media (max-width: 575px) {
    .tnd-guide-img { width: min(100% - 32px, 230px); margin: 16px auto 0; aspect-ratio: 1 / 1; max-height: none; }
}


/* ---------- 19b. About Us image on mobile ---------- */
@media (max-width: 991px) {
    #about-us .tnd-ab-media {
        height: clamp(340px, 92vw, 480px);
        min-height: 340px;
        aspect-ratio: auto;
        width: 100%;
    }
    #about-us .tnd-ab-main { border-radius: 18px; }
    #about-us .tnd-ab-main img { object-position: center; }
}


/* ---------- 19c. no gap above the banner ---------- */
.boxed_wrapper { padding-top: 0 !important; margin-top: 0 !important; }
#thHero { margin-top: 0 !important; }
.th-hero .th-banner { margin-top: 0 !important; }


/* ============================================================================
   20. ROUND 4 — About Us: HORIZONTAL (landscape) image card on the left
   (replaces the tall stretched card from 18b / 19b)
   ============================================================================ */
#about-us .tnd-two { align-items: center; }
#about-us .tnd-ab-media {
    position: relative;
    align-self: center;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;          /* landscape: change to 3 / 2 or 16 / 9 if you prefer */
}
#about-us .tnd-ab-main {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    border-radius: 22px;
    overflow: hidden;
}
#about-us .tnd-ab-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 991px) {
    #about-us .tnd-ab-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
    #about-us .tnd-ab-main { border-radius: 18px; }
}
@media (max-width: 575px) {
    #about-us .tnd-ab-media { aspect-ratio: 4 / 3; }   /* slightly taller on phones so it stays easy to see */
}


/* ============================================================================
   21. ROUND 5
   21a  Admission Guide: image only, no icon / tag on top of it
   21b  Campus Film: stat boxes smaller radius, no longer stretch wide
   21c  Contact Us: FAQ-style heading, no extra space underneath
   ============================================================================ */

/* ---------- 21a ---------- */
.tnd-guide-ph,
.tnd-guide-tag {
    display: none !important;
}

/* ---------- 21b ---------- */
#campus-video .tnd-two-media {
    min-width: 0;
}
#campus-video .tnd-vstrip-ic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
}
#campus-video .tnd-vstrip-ic > div {
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
}
#campus-video .tnd-vstrip-i {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 8px;
}
#campus-video .tnd-vstrip-ic strong {
    font-size: 15px;
    white-space: nowrap;
}
#campus-video .tnd-vstrip-ic small {
    font-size: 11.5px;
    white-space: nowrap;
}
@media (max-width: 767px) {
    #campus-video .tnd-vstrip-ic > div { border-radius: 8px; }
}

/* ---------- 21c. Contact Us: centred, one column, top to bottom ---------- */
#contact-us .tnd-ct-head {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}
#contact-us .tnd-ct-head h2 { color: #fff; }
#contact-us .tnd-ct-info {
    align-items: center;
    text-align: center;
    margin: 0 auto !important;
    gap: 18px;
}
#contact-us .tnd-ct-item { font-size: 16px; }
#contact-us .tnd-ct-ic { flex-basis: 52px; width: 52px; height: 52px; padding: 14px; }
#contact-us .tnd-ct-cta {
    display: flex;
    justify-content: center;
    margin: 22px 0 0;
}

/* ---------- 21d. nothing between Contact Us and the footer ---------- */
#contact-us.tnd-sec { margin-bottom: 0 !important; }
.boxed_wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}
.boxed_wrapper > :last-child { margin-bottom: 0 !important; }
#site-footer,
.terna-footer { margin-top: 0 !important; }
@media (min-width: 992px) {
    html, body { padding-bottom: 0 !important; margin-bottom: 0 !important; }
}


/* ============================================================================
   22. FLOATING WHATSAPP / CALL BUTTONS: visible from the first paint
   Desktop and tablet only; phones keep the sticky bar at the bottom.
   ============================================================================ */
@media (min-width: 768px) {
    .th-fabs {
        position: fixed !important;
        right: 20px !important;
        bottom: 22px !important;
        z-index: 99990 !important;
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    .th-fabs .th-fab-ic {
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}


/* ============================================================================
   23. ENQUIRY FORM — thank-you / error alert at the TOP of the form
   The old #thAlerts box sat below the whole banner, out of sight. This one is
   inside the form card, directly above the heading. Uses Bootstrap's
   .alert-success / .alert-danger colours, restyled to fit the card.
   ============================================================================ */
#thFormAlert[hidden] { display: none !important; }

#thFormAlert {
    position: relative;
    margin: 0 0 14px;
    padding: 12px 38px 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    text-align: left;
    animation: thAlertIn .35s ease both;
}

#thFormAlert.alert-success {
    background: #e7f6ec;
    border: 1px solid #9fd8b2;
    color: #14532d;
}

#thFormAlert.alert-danger {
    background: #fdecec;
    border: 1px solid #f1aeae;
    color: #7f1d1d;
}

#thFormAlert .th-alert-x {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: .6;
}

#thFormAlert .th-alert-x:hover { opacity: 1; }

.th-submit.is-loading {
    opacity: .7;
    pointer-events: none;
}

/* the old bottom-of-banner alert box is no longer used */
#thAlerts { display: none !important; }

@keyframes thAlertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}


/* ============================================================================
   22. ROUND 6
   22a  Specialisation popup: clean professional layout + colour system
   22b  Admission Guide: no gradient flash, smooth image + content reveal
   ============================================================================ */

/* ---------- 22a. Specialisation popup ----------
   Colour system:  navy #0d2a44 (headings) · slate #4a5b6e (body) · muted #7a8a9c
                   orange #e8590c (brand accent) · blue #1f6fbd · line #e3e9f0     */
#tndSpecPop .tnd-pop-card,
#tndSpecPop .tnd-pop-card * { font-family: 'Poppins', var(--td-ff, system-ui), sans-serif; }

#tndSpecPop .tnd-pop-card {
    background: #fff;
    border: 1px solid #e3e9f0;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(13, 42, 68, .28);
}

/* close button */
#tndSpecPop .tnd-pop-x {
    background: #0d2a44;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(13, 42, 68, .3);
    transition: background .2s, transform .2s;
}
#tndSpecPop .tnd-pop-x:hover { background: #e8590c; transform: rotate(90deg); }

/* header: icon, tag, title */
#tndSpecPop .tnd-pop-ic {
    background: #fff1e8;
    border: 1px solid #fbd5bd;
    color: #e8590c;
    box-shadow: none;
}
#tndSpecPop .tnd-pop-tag {
    background: #fff1e8;
    color: #c2410c;
    border: 1px solid #fbd5bd;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
#tndSpecPop .tnd-pop-top h3 {
    font-family: 'Poppins', sans-serif;
    color: #0d2a44;
    letter-spacing: -.01em;
}
#tndSpecPop .tnd-pop-intro { color: #4a5b6e; }
#tndSpecPop .tnd-pop-lead { border-bottom-color: #e3e9f0; }

/* the three figures: ONE tile, ONE icon, no ghost shapes */
#tndSpecPop .tnd-pop-stats > *,
#tndSpecPop .tnd-pop-stats > *::before,
#tndSpecPop .tnd-pop-stats > *::after,
#tndSpecPop .tnd-pop-stats svg::before,
#tndSpecPop .tnd-pop-stats svg::after { background-image: none; }
#tndSpecPop .tnd-pop-stats > *::before,
#tndSpecPop .tnd-pop-stats > *::after { content: none !important; }
#tndSpecPop .tnd-pop-stats > * {
    justify-content: center;
    min-height: 128px;
    box-shadow: none;
    transition: transform .2s, box-shadow .2s;
}
#tndSpecPop .tnd-pop-stats > *:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(13, 42, 68, .08); }
#tndSpecPop .tnd-pop-stats svg {
    flex: 0 0 42px; width: 42px; height: 42px; padding: 10px;
    border-radius: 12px; box-shadow: none; filter: none;
}
#tndSpecPop .tnd-pop-stats svg * { fill: none; }
#tndSpecPop .tnd-pop-stats > *:nth-child(1) { background: #fff6f0; border-color: #fbd5bd; }
#tndSpecPop .tnd-pop-stats > *:nth-child(1) svg { background: #ffe6d4; color: #e8590c; }
#tndSpecPop .tnd-pop-stats > *:nth-child(2) { background: #f1f7fe; border-color: #c9defa; }
#tndSpecPop .tnd-pop-stats > *:nth-child(2) svg { background: #dcebfc; color: #1f6fbd; }
#tndSpecPop .tnd-pop-stats > *:nth-child(3) { background: #f4f6f9; border-color: #dbe2ea; }
#tndSpecPop .tnd-pop-stats > *:nth-child(3) svg { background: #e4e9f0; color: #0d2a44; }
#tndSpecPop .tnd-pop-stats strong,
#tndSpecPop .tnd-pop-stats b { color: #0d2a44; font-size: 15.5px; }
#tndSpecPop .tnd-pop-stats small,
#tndSpecPop .tnd-pop-stats span { color: #7a8a9c; font-size: 12px; }

/* section labels: sans, tracked, orange with a short rule */
#tndSpecPop .tnd-pop-cols h4,
#tndSpecPop .tnd-pop-hl h4 {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: #e8590c;
}
#tndSpecPop .tnd-pop-cols h4::after,
#tndSpecPop .tnd-pop-hl h4::after { content: ''; flex: 1; height: 1px; background: #e3e9f0; }

#tndSpecPop .tnd-pop-cols ul,
#tndSpecPop .tnd-pop-hl ul { list-style: none; margin: 0; padding: 0; }
#tndSpecPop .tnd-pop-cols li { color: #2b3d52; font-size: 14px; }
#tndSpecPop .tnd-pop-cols li > :first-child:not(:last-child) {
    background: #fff1e8; color: #e8590c; border-radius: 9px;
}
#tndSpecPop .tnd-pop-cols li > :first-child svg { stroke: currentColor; }

/* "what you actually do": soft cards */
#tndSpecPop .tnd-pop-hl li {
    padding: 14px 16px;
    border: 1px solid #e3e9f0;
    border-radius: 14px;
    background: #f9fbfd;
}
#tndSpecPop .tnd-pop-hl li strong,
#tndSpecPop .tnd-pop-hl li b,
#tndSpecPop .tnd-pop-hl li h5 { color: #0d2a44; font-weight: 600; }
#tndSpecPop .tnd-pop-hl li p,
#tndSpecPop .tnd-pop-hl li small,
#tndSpecPop .tnd-pop-hl li span:not(:first-child) { color: #5a6b7e; }
#tndSpecPop .tnd-pop-hl li > :first-child:not(:last-child) {
    background: #ffe6d4; color: #e8590c; border-radius: 50%;
}

/* footer buttons */
#tndSpecPop .tnd-pop-foot { border-top: 1px solid #e3e9f0; padding-top: 20px; }
#tndSpecPop .tnd-pop-foot .tnd-btn:not(.tnd-btn-ghost) {
    background: linear-gradient(135deg, #f26a1b, #e8590c);
    color: #fff; box-shadow: 0 10px 22px rgba(232, 89, 12, .3);
}
#tndSpecPop .tnd-pop-foot .tnd-btn-ghost {
    background: #fff; color: #17466B; border: 1.5px solid #c9d6e4; box-shadow: none;
}
#tndSpecPop .tnd-pop-foot .tnd-btn-ghost:hover { border-color: #17466B; background: #f1f6fb; }


/* ---------- 22b. Admission Guide ----------
   Cause of the colour flash: the gradient sat behind the photo, and the photo
   (loading="lazy" inside a hidden panel) only started loading AFTER the click.
   Fix: neutral placeholder (no gradient), photos preloaded at page load, each
   photo fades in only once decoded, and the panel + text cross-fade in. */
.tnd-guide-img,
.tnd-guide-panel:nth-child(2) .tnd-guide-img,
.tnd-guide-panel:nth-child(3) .tnd-guide-img,
.tnd-guide-panel:nth-child(4) .tnd-guide-img { background: #e9eff5; }

/* branded gradient only if a topic truly has no photo */
.tnd-guide-img:not(:has(img)) { background: linear-gradient(160deg, #17466B 0%, #1f5f8f 60%, #F58220 150%); }

.tnd-guide-img img { transition: opacity .55s ease, transform .9s ease; }
.tnd-guide-img img.is-fade:not(.is-loaded) { opacity: 0; }
.tnd-guide-img img.is-fade { transform: scale(1.04); }
.tnd-guide-img img.is-fade.is-loaded { opacity: 1; transform: scale(1); }

/* panel cross-fade (visibility delayed so the outgoing panel fades out) */
.tnd-guide-panel {
    transform: translateY(10px);
    transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.tnd-guide-panel.is-on {
    transform: none;
    transition: opacity .45s ease .05s, transform .45s ease .05s, visibility 0s;
}

/* text staggers in after the panel opens */
.tnd-guide-panel .tnd-guide-body > * { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.tnd-guide-panel.is-on .tnd-guide-body > * { opacity: 1; transform: none; }
.tnd-guide-panel.is-on .tnd-guide-body > *:nth-child(1) { transition-delay: .12s; }
.tnd-guide-panel.is-on .tnd-guide-body > *:nth-child(2) { transition-delay: .20s; }
.tnd-guide-panel.is-on .tnd-guide-body > *:nth-child(3) { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
    .tnd-guide-panel, .tnd-guide-panel.is-on,
    .tnd-guide-panel .tnd-guide-body > *,
    .tnd-guide-img img { transition: none !important; transform: none !important; }
}


/* ============================================================================
   23. CTA BUTTON ROWS — About Us, Campus Film, Start Your Journey, Admission Guide
   One row, two buttons, on every screen. The second button (Call / WhatsApp)
   is brand blue and changes colour on hover.
   ============================================================================ */
.tnd-cta-row.tnd-cta-pair { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.tnd-cta-row.tnd-cta-pair .tnd-btn { white-space: nowrap; justify-content: center; }

/* call / WhatsApp: blue */
.tnd-cta-row.tnd-cta-pair .tnd-btn-call,
.tnd-cta-row.tnd-cta-pair .tnd-btn-call:visited {
    background: #17466B;
    border: 1.5px solid #17466B;
    color: #fff;
    box-shadow: 0 8px 18px rgba(23, 70, 107, .25);
    transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.tnd-cta-row.tnd-cta-pair .tnd-btn-call svg { stroke: currentColor; }
/* hover / tap: blue -> white with blue text and an orange outline */
.tnd-cta-row.tnd-cta-pair .tnd-btn-call:hover,
.tnd-cta-row.tnd-cta-pair .tnd-btn-call:focus-visible,
.tnd-cta-row.tnd-cta-pair .tnd-btn-call:active {
    background: #fff;
    border-color: #F26A1B;
    color: #E8590C;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(242, 106, 27, .22);
}

.tnd-lab-short { display: none; }

@media (max-width: 575px) {
    .tnd-cta-row.tnd-cta-pair { gap: 8px; width: 100%; }
    .tnd-cta-row.tnd-cta-pair .tnd-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 12px 8px;
        font-size: 13px;
        gap: 6px;
    }
    /* "Apply Now" is short, the number is longer: give the call button the extra width */
    .tnd-cta-row.tnd-cta-pair .tnd-btn-call { flex: 1.35 1 0; font-size: 12.5px; }
    .tnd-cta-row.tnd-cta-pair .tnd-btn svg { width: 15px; height: 15px; flex: 0 0 15px; }
    .tnd-lab-full { display: none; }
    .tnd-lab-short { display: inline; }
}
@media (max-width: 359px) {
    .tnd-cta-row.tnd-cta-pair .tnd-btn { font-size: 12px; padding: 11px 6px; }
    .tnd-cta-row.tnd-cta-pair .tnd-btn-call { font-size: 11.5px; }
}


/* ============================================================================
   24. SPECIALISATION POPUP FOOTER — Apply Now + Talk to admissions, ONE ROW
   ============================================================================ */
#tndSpecPop .tnd-pop-foot {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
}
#tndSpecPop .tnd-pop-foot .tnd-btn {
    white-space: nowrap;
    justify-content: center;
    text-align: center;
}
@media (max-width: 575px) {
    #tndSpecPop .tnd-pop-foot { gap: 8px; width: 100%; }
    #tndSpecPop .tnd-pop-foot .tnd-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 12px 8px;
        font-size: 13px;
        line-height: 1.2;
    }
    #tndSpecPop .tnd-pop-foot .tnd-btn-lg { flex: 0.9 1 0; }
    #tndSpecPop .tnd-pop-foot .tnd-btn-ghost { flex: 1.1 1 0; }
}
@media (max-width: 359px) {
    #tndSpecPop .tnd-pop-foot .tnd-btn { font-size: 12px; padding: 11px 6px; }
}


/* ============================================================================
   25. FAQ IMAGE (mobile / tablet): show the whole vertical image, no cropping
   The card used a fixed height + object-fit: cover, which cut the top and
   bottom of the portrait photo. Here the card grows with the image instead.
   ============================================================================ */
@media (max-width: 991px) {
    #faqs .tnd-faq-side { height: auto; min-height: 0; }
    #faqs .tnd-faq-card,
    #faqs .tnd-faq-img {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }
    #faqs .tnd-faq-img { position: relative; overflow: hidden; }
    #faqs .tnd-faq-img img {
        position: static !important;
        display: block;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center top;
    }
}
@media (min-width: 576px) and (max-width: 991px) {
    /* on tablets keep the portrait card a sensible width, centred */
    #faqs .tnd-faq-side { max-width: 460px; margin-left: auto; margin-right: auto; }
}
