/* ================================================================
   home.css  —  LNMS College Default.aspx (Home Page)
   Covers: Hero · Leaders · Welcome · Academics Cards ·
           Image Gallery · Video Gallery
   All original class names kept; only visual overrides added.
   ================================================================ */

/* ── Font import (shared tokens already in master.css) ──────────
   Import again here for standalone use; browser dedupes.       */
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* ── local token mirror (safe to duplicate) ──────────────────── */
:root {
    --hero-primary: #1E3A8A;
    --hero-accent: #22C55E;
    --hero-accent-dk: #16A34A;
    --hero-overlay: rgba(15, 23, 42, 0.62);
    --hero-white: #ffffff;
    --hero-trans: 0.3s ease;
    --blue: #1E3A8A;
    --blue-dark: #162d6e;
    --blue-mid: #2a4fa8;
    --blue-light: #dbeafe;
    --green: #22C55E;
    --green-dark: #16a34a;
    --green-light: #dcfce7;
    --bg: #F8FAFC;
    --card: #ffffff;
    --text: #0F172A;
    --text-muted: #475569;
    --border: #e2e8f0;
    --grad-main: linear-gradient(135deg,#1E3A8A 0%,#22C55E 100%);
    --grad-hero: linear-gradient(160deg,rgba(15,23,42,.90) 0%, rgba(30,58,138,.74) 55%,rgba(34,197,94,.22) 100%);
    --shadow-sm: 0 2px 10px rgba(15,23,42,.08);
    --shadow-md: 0 6px 24px rgba(15,23,42,.12);
    --shadow-lg: 0 16px 48px rgba(15,23,42,.18);
    --shadow-blue: 0 8px 28px rgba(30,58,138,.28);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 50px;
    --t: 0.3s ease;
    --font: 'Poppins','Noto Sans Devanagari',sans-serif;
}



/* ── SECTION SHELL ─────────────────────────────────────────── */
.lnms-hero {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 520px;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

/* ── SLIDES ─────────────────────────────────────────────────── */
.lnms-hero__track {
    position: absolute;
    inset: 0;
}

.lnms-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

    .lnms-hero__slide.is-active {
        opacity: 1;
        z-index: 1;
    }

/* Placeholder gradient slides (used when real images aren't loaded) */
.lnms-hero__slide--s1 {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 58, 138, 0.4) 50%, rgba(3, 105, 161, 0.4) 100%), url('../assets/banner/b1.jpg');
    background-blend-mode: multiply;
}

.lnms-hero__slide--s2 {
    background-image: linear-gradient(135deg, rgba(6, 78, 59, 0.35) 0%, rgba(6, 95, 70, 0.35) 40%, rgba(4, 120, 87, 0.35) 100%), url('../assets/banner/b2.jpg');
    background-blend-mode: multiply;
}

.lnms-hero__slide--s3 {
    background-image: linear-gradient(135deg, rgba(30, 27, 75, 0.35) 0%, rgba(49, 46, 129, 0.35) 50%, rgba(67, 56, 202, 0.35) 100%), url('../assets/banner/b3.jpg');
    background-blend-mode: multiply;
}

.lnms-hero__slide--s4 {
    background-image: linear-gradient(135deg, rgba(28, 25, 23, 0.3) 0%, rgba(41, 37, 36, 0.3) 50%, rgba(68, 64, 60, 0.3) 100%), url('../assets/banner/b1.jpg');
    background-blend-mode: multiply;
}

/* ── DARK OVERLAY ───────────────────────────────────────────── */
.lnms-hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

    /* Subtle noise texture over overlay */
    .lnms-hero__overlay::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
        opacity: 0.18;
        pointer-events: none;
    }

/* ── BOTTOM GRADIENT FADE ───────────────────────────────────── */
.lnms-hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top, rgba(5, 10, 30, 0.55) 0%, transparent 100%);
    z-index: 2;
}

/* ── CONTENT WRAPPER ────────────────────────────────────────── */
.lnms-hero__body {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

/* ── EYEBROW BADGE ──────────────────────────────────────────── */
.lnms-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: var(--hero-accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(16px);
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.lnms-hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--hero-accent);
    border-radius: 50%;
    animation: heroPulse 2s ease-in-out infinite;
}

/* ── HEADING ────────────────────────────────────────────────── */
.lnms-hero__heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 800;
    color: var(--hero-white);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    max-width: 780px;
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

    .lnms-hero__heading em {
        font-style: normal;
        color: var(--hero-accent);
        position: relative;
    }

        /* Underline accent on "LNMS" */
        .lnms-hero__heading em::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 100%;
            height: 3px;
            background: var(--hero-accent);
            border-radius: 2px;
            transform-origin: left;
            transform: scaleX(0);
            animation: heroUnderline 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
        }

/* ── SUBTEXT ────────────────────────────────────────────────── */
.lnms-hero__sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.65;
    margin: 0 0 36px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

/* ── CTA BUTTONS ────────────────────────────────────────────── */
.lnms-hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.78s forwards;
}

/* Primary CTA */
.lnms-hero__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--hero-accent);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 13px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background var(--hero-trans), transform var(--hero-trans), box-shadow var(--hero-trans);
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.35);
}

    .lnms-hero__btn-primary:hover,
    .lnms-hero__btn-primary:focus {
        background: var(--hero-accent-dk);
        transform: scale(1.05) translateY(-1px);
        box-shadow: 0 8px 32px rgba(34, 197, 94, 0.45);
        color: #fff;
        text-decoration: none;
    }

/* Secondary CTA (ghost) */
.lnms-hero__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 13px 32px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background var(--hero-trans), border-color var(--hero-trans), transform var(--hero-trans);
    backdrop-filter: blur(6px);
}

    .lnms-hero__btn-secondary:hover,
    .lnms-hero__btn-secondary:focus {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.04) translateY(-1px);
        color: #fff;
        text-decoration: none;
    }

/* ── SLIDE DOTS ─────────────────────────────────────────────── */
.lnms-hero__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    align-items: center;
}

.lnms-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.4s ease, background 0.4s ease;
}

    .lnms-hero__dot.is-active {
        width: 28px;
        background: var(--hero-accent);
    }

/* ── SCROLL HINT ────────────────────────────────────────────── */
.lnms-hero__scroll {
    position: absolute;
    bottom: 36px;
    right: 36px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.lnms-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: heroScrollPulse 2s ease-in-out infinite;
}

/* ── DECORATIVE CORNER RING ─────────────────────────────────── */
.lnms-hero__ring {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 60px solid rgba(30, 58, 138, 0.18);
    z-index: 3;
    pointer-events: none;
}

.lnms-hero__ring--sm {
    top: auto;
    bottom: -60px;
    right: auto;
    left: -60px;
    width: 200px;
    height: 200px;
    border-width: 40px;
    border-color: rgba(34, 197, 94, 0.10);
}

/* ── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroUnderline {
    to {
        transform: scaleX(1);
    }
}

@keyframes heroPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes heroScrollPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.15);
    }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lnms-hero {
        height: 82vh;
        min-height: 480px;
    }

    .lnms-hero__scroll {
        display: none;
    }

    .lnms-hero__ring {
        width: 200px;
        height: 200px;
        border-width: 40px;
    }

    .lnms-hero__btn-primary,
    .lnms-hero__btn-secondary {
        padding: 11px 24px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .lnms-hero__cta {
        flex-direction: column;
        gap: 12px;
    }

    .lnms-hero__btn-primary,
    .lnms-hero__btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ================================================================
   2. LEADERS / PROFILE SECTION  (undergraduate-area)
      FIX: equal card size · full image (contain) · circular frame
   ================================================================ */
.undergraduate-area {
    background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden; /* clips decorative blobs at section edge */
    width: 100%;
    max-width: 100%; /* FIX: hard cap so blobs can't widen page */
}

    /* Background blobs — FIX: repositioned so they don't extend past
   the RIGHT edge of the section (which is the page edge).
   Before fix: right: -80px caused the blob to be 80px outside right
   edge of the section, which overflow:hidden clips but can still
   cause layout reflow in some browsers.
   After fix: using left/top/bottom positioning only, never right
   with a negative value.                                           */
    .undergraduate-area::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px; /* clip: overflow:hidden handles this     */
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(34,197,94,.07);
        pointer-events: none;
        /* FIX: pointer-events none + overflow:hidden on parent is enough */
    }

    .undergraduate-area::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -60px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255,255,255,.04);
        pointer-events: none;
    }

/* ── Section header ── */
.profile-section-label {
    text-align: center;
    margin-bottom: 44px;
    position: relative;
}

    .profile-section-label .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--green);
        background: rgba(34,197,94,.15);
        padding: 5px 15px;
        border-radius: var(--r-pill);
        margin-bottom: 10px;
    }

    .profile-section-label h2 {
        font-size: clamp(1.5rem, 3vw, 2.2rem);
        font-weight: 800;
        color: #fff;
    }

        .profile-section-label h2 span {
            color: var(--green);
        }

/* ── 3-column equal-height grid ── */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px; /* slightly more breathing room      */
    max-width: 1020px;
    margin: 0 auto 52px;
    padding: 0 28px;
    align-items: stretch; /* all rows same height              */
}

/* ══════════════════════════════════════════════════════════
   LEADER CARD — banner image style
   Structure: [IMAGE full-width] [Name] [Designation]
   No circular frames. Image is a card banner (top section).
   ══════════════════════════════════════════════════════════ */
.lnms-profile-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0; /* image flush to top edge           */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* image & text fill full card width */
    height: 100%;
    overflow: hidden; /* card clips image corners          */
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    transition: transform .3s ease, box-shadow .3s ease;
}

    /* Remove old top accent stripe — image replaces it */
    .lnms-profile-card::before {
        display: none;
    }

    .lnms-profile-card.governor::before {
        display: none;
    }

    /* Hover: lift + stronger shadow */
    .lnms-profile-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 48px rgba(0,0,0,.28);
    }

/* ── Banner image container ─────────────────────────────────
   .profile-avatar-ring is reused as the image wrapper.
   It is now a full-width rectangle, NOT a circle.
   ──────────────────────────────────────────────────────── */
.profile-avatar-ring {
    position: relative;
    width: 100%; /* full card width                   */
    height: 220px; /* consistent across all 3 cards     */
    margin: 0; /* flush to top                      */
    flex-shrink: 0;
    overflow: hidden;
    background: #e8eef6; /* neutral fallback if image missing */
}

    /* Remove old circular gradient ring */
    .profile-avatar-ring::before {
        display: none;
    }

    /* Subtle gradient overlay at bottom of image → blends into card body */
    .profile-avatar-ring::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, .35) 100%);
        z-index: 1;
        pointer-events: none;
    }

    /* ── Banner image ────────────────────────────────────────────
   Full-width, consistent height, NOT circular.
   object-fit: cover so the face is never stretched.
   object-position: top center keeps the face in frame.
   ──────────────────────────────────────────────────────── */
    .profile-avatar-ring img.flex {
        position: relative;
        z-index: 0;
        width: 100%;
        height: 100% !important; /* !important overrides global img{height:auto} */
        border-radius: 0;
        object-fit: cover;
        object-position: top center;
        background: #e8eef6;
        border: none;
        margin: 0;
        display: block;
        transition: transform .4s ease;
    }

/* Gentle zoom on image when card is hovered */
.lnms-profile-card:hover .profile-avatar-ring img.flex {
    transform: scale(1.04);
}

/* ── Fallback placeholder (shown if image 404s) ─────────────
   Also full-width banner style, not circular.
   ──────────────────────────────────────────────────────── */
.profile-avatar-placeholder {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    margin: 0;
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255,255,255,.85);
}

/* ── Card text body ─────────────────────────────────────────
   Sits below the image. Dark background so text is readable.
   ──────────────────────────────────────────────────────── */
.lnms-profile-card .card-body {
    /* wrapper added in HTML if needed — handled via padding on
       .profile-name and .role-badge instead so HTML stays clean */
}

.profile-name {
    font-size: .92rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.45;
    padding: 18px 16px 8px;
    margin: 0;
    flex-grow: 0;
    text-align: center; /* explicit centre on all cards      */
    width: 100%;
}

.role-badge {
    display: inline-block;
    padding: 4px 14px;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #16a34a;
    margin: 0 auto 20px; /* auto left/right → centred         */
    align-self: center; /* same on every card                */
}

/* ── All cards identical — no per-card overrides ─────────────
   Governor, VC, and Principal must look exactly the same.

   The VC card has classes: .col-lg-12 .col-xm-12 .item
   The Principal card has:  .col-lg-12 .col-xm-12 .item .blk
   The original style.css may set background/padding on .item
   and .blk.  We hard-reset everything that could differ.
   ──────────────────────────────────────────────────────── */

/* 1. Governor — no special border */
.lnms-profile-card.governor {
    border-left: none; /* same border as other cards */
}

/* 2. Neutralise .item styles when used inside a leader card */
.lnms-profile-card.item {
    background: #ffffff !important;
    padding: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.18) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    color: inherit !important;
}

/* 3. Neutralise .blk styles when used inside a leader card */
.lnms-profile-card.blk {
    background: #ffffff !important;
    padding: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.18) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    color: inherit !important;
}

/* 4. Neutralise Bootstrap col classes that may set width/padding
      when those classes are also on a leader card element.
      width must come from the CSS grid, not Bootstrap columns.    */
.profiles-grid > .col-lg-12,
.profiles-grid > .col-xm-12 {
    width: auto !important; /* grid controls width, not Bootstrap */
    max-width: none !important;
    flex: none !important;
    padding: 0 !important; /* grid gap handles spacing           */
}

/* ── Responsive: tablet → 2 col, mobile → 1 col ─────────── */
@media (max-width: 991px) {
    .profiles-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 640px;
    }
}

@media (max-width: 600px) {
    .profiles-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        gap: 20px;
    }

    .profile-avatar-ring {
        height: 200px;
    }
}

/* ── Welcome card ── */
.welcome-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 28px;
}

.welcome-card {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-xl);
    padding: 42px 46px 36px;
    position: relative;
    overflow: hidden;
}

    .welcome-card::before {
        content: '';
        position: absolute;
        inset: 0 auto 0 0;
        width: 5px;
        background: var(--grad-main);
        border-radius: 4px 0 0 4px;
    }

    .welcome-card .wc-tag {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        background: rgba(34,197,94,.14);
        color: var(--green);
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .10em;
        text-transform: uppercase;
        padding: 5px 15px;
        border-radius: var(--r-pill);
        margin-bottom: 14px;
    }

    /* ── HINDI TEXT FIX ── */
    .welcome-card h3,
    .undergraduate-area h3 {
        font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif !important;
        font-size: clamp(1.1rem, 2.5vw, 1.55rem);
        font-weight: 800;
        color: #fff;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .welcome-card .wc-body,
    .undergraduate-area .wc-body {
        font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif !important;
        font-size: .9rem;
        color: rgba(255,255,255,.8);
        line-height: 1.95;
    }

    .welcome-card .default-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 24px;
        padding: 11px 30px;
        background: linear-gradient(135deg,#22C55E,#16a34a);
        color: #fff;
        font-family: var(--font);
        font-size: .87rem;
        font-weight: 700;
        border-radius: var(--r-pill);
        box-shadow: 0 6px 22px rgba(34,197,94,.35);
        transition: transform var(--t), box-shadow var(--t);
        text-decoration: none;
    }

        .welcome-card .default-btn:hover {
            transform: translateX(6px);
            box-shadow: 0 12px 32px rgba(34,197,94,.5);
        }

        .welcome-card .default-btn::after {
            content: ' →';
        }

/* ================================================================
   3. ACADEMICS CARDS  (Event / News / Notice)
   ================================================================ */
.academics-area {
    padding: 80px 0;
    background: var(--card);
    position: relative;
    overflow-x: hidden; /* FIX: contain Bootstrap row bleed       */
    width: 100%;
    max-width: 100%;
}

    .academics-area::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--grad-main);
    }

    /* Section heading */
    .academics-area .lnms-title-block {
        text-align: center;
        margin-bottom: 52px;
    }

.lnms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-light);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 10px;
}

.lnms-heading {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--blue);
    line-height: 1.2;
    margin-bottom: 10px;
}

    .lnms-heading span {
        color: var(--green);
    }

.lnms-sub {
    font-size: .92rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* Card */
.academics-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 38px 26px 34px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .academics-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--grad-main);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--t);
    }

    .academics-item:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: var(--shadow-blue);
        border-color: var(--blue-light);
    }

        .academics-item:hover::after {
            transform: scaleX(1);
        }

/* Icon wrap */
.acad-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.9rem;
    color: var(--blue);
    transition: background var(--t), color var(--t);
}

.academics-item:hover .acad-icon {
    background: var(--grad-main);
    color: #fff;
}

.acad-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: filter var(--t);
}

.academics-item:hover .acad-icon img {
    filter: brightness(0) invert(1);
}

.academics-item h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.academics-item p {
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.78;
    margin-bottom: 22px;
}

.academics-item > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--green);
    transition: gap var(--t), color var(--t);
    text-decoration: none;
}

    .academics-item > a:hover {
        gap: 14px;
        color: var(--blue);
    }

/* ================================================================
   4. IMAGE GALLERY  (activities-area)
   ================================================================ */
.activities-area {
    padding: 40px 0;
    background: var(--bg);
    overflow-x: hidden; /* FIX: contain Bootstrap row bleed       */
    width: 100%;
    max-width: 100%;
}

    .activities-area .section-title {
        text-align: center;
        margin-bottom: 52px;
    }

        .activities-area .section-title .sub-title {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: .72rem;
            font-weight: 700;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: var(--green);
            background: var(--green-light);
            padding: 5px 14px;
            border-radius: var(--r-pill);
            margin-bottom: 10px;
        }

            .activities-area .section-title .sub-title p {
                margin: 0;
                font-size: inherit;
            }

        .activities-area .section-title h6 {
            font-size: clamp(1rem, 3vw, 2rem);
            font-weight: 800;
            color: var(--blue);
        }

/* Card */
.activities-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--card);
    transition: transform var(--t), box-shadow var(--t);
    height: 100%;
}

    .activities-card:hover {
        transform: translateY(-10px) scale(1.015);
        box-shadow: var(--shadow-lg);
    }

    .activities-card .image {
        position: relative;
        overflow: hidden;
        height: 230px;
    }

        .activities-card .image img {
            width: 100%;
            height: 100% !important; /* !important overrides global img{height:auto} in master.css */
            object-fit: cover;
            transition: transform .55s ease;
            display: block;
        }

    .activities-card:hover .image img {
        transform: scale(1.10);
    }

    /* Gradient overlay on hover */
    .activities-card .image .img-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(30,58,138,.88) 0%, transparent 60%);
        opacity: 0;
        transition: opacity var(--t);
        display: flex;
        align-items: flex-end;
        padding: 16px;
    }

    .activities-card:hover .image .img-overlay {
        opacity: 1;
    }

    .activities-card .image .img-overlay span {
        font-family: 'Noto Sans Devanagari','Poppins',sans-serif;
        font-size: .82rem;
        font-weight: 700;
        color: #fff;
    }

    /* Zoom icon */
    .activities-card .image .zoom-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%) scale(.7);
        opacity: 0;
        z-index: 3;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255,255,255,.22);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.25rem;
        transition: all .38s cubic-bezier(.34,1.56,.64,1);
    }

    .activities-card:hover .image .zoom-icon {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1);
    }

    .activities-card .content {
        padding: 15px 18px 17px;
        border-top: 3px solid var(--blue-light);
        background: var(--card);
    }

        .activities-card .content h2 {
            font-family: 'Noto Sans Devanagari','Poppins',sans-serif !important;
            font-size: .95rem;
            font-weight: 700;
            color: var(--blue);
            line-height: 1.45;
        }

            .activities-card .content h2 a {
                color: inherit;
                transition: color var(--t);
                text-decoration: none;
            }

                .activities-card .content h2 a:hover {
                    color: var(--green);
                }

/* ================================================================
   5. VIDEO GALLERY  (success-area)
   ================================================================ */
.success-area {
    padding: 40px 0;
    background: var(--card);
    position: relative;
    overflow-x: hidden; /* FIX: contain Bootstrap row bleed       */
    width: 100%;
    max-width: 100%;
}

    .success-area::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, var(--blue-light) 1px, transparent 1px);
        background-size: 28px 28px;
        opacity: .45;
        pointer-events: none;
    }

    .success-area .section-title {
        text-align: center;
        margin-bottom: 52px;
        position: relative;
    }

        .success-area .section-title h6 {
            font-size: clamp(1.6rem, 3vw, 2.4rem);
            font-weight: 800;
            color: var(--blue);
        }

.success-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--blue);
    transition: transform var(--t), box-shadow var(--t);
}

    .success-card:hover {
        transform: translateY(-8px) scale(1.015);
        box-shadow: var(--shadow-blue);
    }

    .success-card .image {
        position: relative;
        height: 230px;
        overflow: hidden;
    }

        .success-card .image img {
            width: 100%;
            height: 100% !important; /* !important overrides global img{height:auto} in master.css */
            object-fit: cover;
            transition: transform .55s ease;
            display: block;
        }

    .success-card:hover .image img {
        transform: scale(1.08);
    }

    /* Overlay on image */
    .success-card .image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(15,23,42,.52);
        z-index: 1;
        transition: background var(--t);
    }

    .success-card:hover .image::before {
        background: rgba(15,23,42,.68);
    }

    .success-card .content {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

        .success-card .content ul {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }

            /* Play button */
            .success-card .content ul .play a {
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 66px;
                height: 66px;
                border-radius: 50%;
                background: linear-gradient(135deg,#22C55E,#16a34a);
                color: #fff;
                font-size: 1.85rem;
                box-shadow: 0 0 0 10px rgba(34,197,94,.22);
                transition: transform var(--t), box-shadow var(--t);
                text-decoration: none;
            }

    .success-card:hover .content ul .play a {
        transform: scale(1.12);
        box-shadow: 0 0 0 18px rgba(34,197,94,.18);
    }
    /* Pulse ring */
    .success-card .content ul .play a::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid rgba(34,197,94,.55);
        animation: vPulse 2.2s infinite;
    }

@keyframes vPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.success-card .content ul li:not(.play) a h3 {
    font-family: 'Noto Sans Devanagari','Poppins',sans-serif !important;
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
    line-height: 1.45;
}

/* ================================================================
   6. SHARED CTA — "More Images" / "All Videos" buttons
   ================================================================ */
.section-btn {
    margin-top: 20px;
}

    .section-btn p {
        margin: 0;
    }

    .section-btn a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 13px 36px;
        border: 2px solid var(--blue);
        color: var(--blue);
        font-family: var(--font);
        font-size: .88rem;
        font-weight: 700;
        border-radius: var(--r-pill);
        transition: background var(--t), color var(--t), transform var(--t), box-shadow var(--t);
        text-decoration: none;
    }

        .section-btn a:hover {
            background: var(--blue);
            color: #fff;
            transform: translateY(-4px);
            box-shadow: var(--shadow-blue);
        }

/* ================================================================
   7. ROW SPACING  (Bootstrap column gutters)
   ================================================================ */
.academics-area .row > [class*="col-"],
.activities-area .row > [class*="col-"],
.success-area .row > [class*="col-"] {
    margin-bottom: 28px;
}

@media (min-width: 992px) {
    .academics-area .row > [class*="col-"],
    .activities-area .row > [class*="col-"],
    .success-area .row > [class*="col-"] {
        margin-bottom: 0;
    }
}

/* ================================================================
   7a. FLEX / GRID OVERFLOW PREVENTION
   FIX

================================================================*/
.profiles-grid > *,
.academics-area .row > [class*="col-"] > *,
.activities-area .row > [class*="col-"] > *,
.success-area .row > [class*="col-"] > * {
    min-width: 0; 
    max-width: 100%; 
}


.row {
    max-width: 100%;
}

/* FIX: Ensure .container and .container-fluid never exceed
   their parent, and their inner content doesn't bleed.          */
.container,
.container-fluid {
    width: 100%;
    max-width: 100%;
}

/* ================================================================
   8. RESPONSIVE 
   ================================================================ */
@media (max-width: 991px) {
    /* profiles-grid breakpoint handled in leaders section */
    .academics-area, .activities-area, .success-area {
        padding: 64px 0;
    }

    .welcome-card {
        padding: 30px 24px 26px;
    }
}

@media (max-width: 767px) {
    /* profiles-grid breakpoint handled in leaders section */
    .welcome-card::before {
        display: none;
    }

    .welcome-card {
        padding: 26px 18px 22px;
    }

    .academics-area, .activities-area, .success-area {
        padding: 50px 0;
    }

    .activities-card, .success-card {
        margin-bottom: 22px;
    }
}

@media (max-width: 480px) {
    .section-btn a {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================================
   LIGHTBOX — Recent Images full-screen popup
   Triggered by clicking .gallery-lightbox inside .activities-card
   ================================================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    padding-top: 60px;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

    /* JS sets display:flex to open */
    .lightbox-overlay.is-open {
        display: flex;
    }

    /* Image inside lightbox */
    .lightbox-overlay .lb-img {
        display: block;
        max-width: 92vw;
        max-height: 82vh;
        width: auto;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 24px 80px rgba(0,0,0,.6);
        cursor: default;
        object-fit: contain;
        /* Smooth pop-in */
        animation: lbFadeIn .22s ease both;
    }

@keyframes lbFadeIn {
    from {
        opacity: 0;
        transform: scale(.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close button */
.lightbox-overlay .lb-close {
    position: absolute;
    top: 16px;
    right: 28px;
    font-size: 2.4rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
    z-index: 1;
}

    .lightbox-overlay .lb-close:hover {
        background: rgba(255,255,255,.15);
        color: #22C55E;
    }

/* Caption below image */
.lightbox-overlay .lb-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Noto Sans Devanagari','Poppins',sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}

/* Gallery images show pointer cursor to hint they're clickable */
.activities-card .image {
    cursor: pointer;
}
