/* =====================================================================
   modern.css — Modernisation layer for HEMIPT University public site
   Loaded LAST in master.blade.php so every rule here cleanly cascades
   over the base theme.  No base files are modified; all changes are
   additive or targeted overrides.
   ===================================================================== */


/* ── 1. CSS Custom Properties ──────────────────────────────────────── */

:root {
    /* Refined primary — slightly desaturated lime green, easier on the eye */
    --ums-primary:           #28b845;
    --ums-primary-dark:      #22a03c;
    --ums-primary-glow:      rgba(40, 184, 69, 0.24);
    --ums-primary-glow-lg:   rgba(40, 184, 69, 0.18);

    /* Secondary (teal) — unchanged */
    --ums-secondary:         #125875;
    --ums-secondary-dark:    #0e4460;
    --ums-secondary-glow:    rgba(18, 88, 117, 0.22);

    /* Neutrals */
    --ums-dark:              #141b22;
    --ums-navy:              #1b2d45;
    --ums-text:              #5e6d82;   /* slightly bluer than #777 */
    --ums-light-bg:          #eff7ff;

    /* Geometry */
    --ums-radius-card:       10px;
    --ums-radius-sm:         6px;

    /* Elevation */
    --ums-shadow-xs:         0 1px 6px rgba(0, 0, 0, 0.06);
    --ums-shadow-sm:         0 2px 14px rgba(0, 0, 0, 0.07);
    --ums-shadow-md:         0 6px 26px rgba(0, 0, 0, 0.10);
    --ums-shadow-lg:         0 16px 44px rgba(0, 0, 0, 0.14);
    --ums-shadow-nav:        0 4px 26px rgba(0, 0, 0, 0.09);

    /* Easing tokens */
    --ums-ease-spring:       cubic-bezier(0.34, 1.56, 0.64, 1);
    --ums-ease-smooth:       cubic-bezier(0.23, 1,    0.32, 1);
    --ums-ease-out:          cubic-bezier(0.16, 1,    0.30, 1);
}


/* ── 2. Typography Refinements ─────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.018em;
}
h1 { letter-spacing: -0.026em; }
h2 { letter-spacing: -0.022em; }

p { line-height: 1.72; }

body { color: var(--ums-text); }

/* Smooth page-level scrolling */
html { scroll-behavior: smooth; }


/* ── 3. Colour Overrides (primary → refined green) ─────────────────── */

a:hover,
.main-menu ul li > a:hover,
.mean-container .mean-nav ul li.current a,
.readmore,
.blog-btn a,
.blog-content2 .blog-btn a,
.courses-content a.readmore {
    color: var(--ums-primary) !important;
}

.main-menu ul li.current > a,
.main-menu ul li:hover   > a {
    color: var(--ums-primary) !important;
}


/* ── 4. Buttons ─────────────────────────────────────────────────────── */

.btn {
    background:    var(--ums-primary);
    border-color:  var(--ums-primary);
    border-radius: var(--ums-radius-sm);
    transition:
        color        0.4s var(--ums-ease-smooth),
        border-color 0.4s var(--ums-ease-smooth),
        transform    0.22s ease,
        box-shadow   0.22s ease;
}

.btn::before {
    background:  var(--ums-secondary);
    transition:  all 0.42s var(--ums-ease-smooth);
}

.btn:hover {
    border-color: var(--ums-secondary);
    transform:    translateY(-2px);
    box-shadow:   0 7px 22px rgba(18, 88, 117, 0.28);
}

.btn:active {
    transform: translateY(0);
}

/* Keyboard focus ring */
.btn:focus-visible {
    outline:        3px solid var(--ums-primary);
    outline-offset: 3px;
    box-shadow:     none;
}

/* Header CTA — glowing Admission button */
.second-header-btn .btn {
    box-shadow: 0 4px 18px var(--ums-primary-glow);
}
.second-header-btn .btn:hover {
    box-shadow: 0 6px 22px var(--ums-secondary-glow);
}


/* ── 5. Sticky Navigation — Glassmorphism ───────────────────────────── */

/*
 * The existing main.js already toggles `.sticky-menu` when the user
 * scrolls past 200px. We just swap the background for a frosted-glass
 * effect.  `backdrop-filter` degrades gracefully to opaque white on
 * browsers that do not support it.
 */
.header-three .sticky-menu {
    background:   rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter:         blur(14px) saturate(180%);
    box-shadow:   var(--ums-shadow-nav) !important;
    /* Replace the abrupt fadeInDown with a smooth CSS-only fade */
    animation:    none !important;
    transition:   background 0.3s ease, box-shadow 0.3s ease !important;
}

/* Nav-link active/hover underline indicator */
.header-three .main-menu ul li > a {
    position:   relative;
    transition: color 0.22s ease;
}
.header-three .main-menu ul li > a::after {
    content:      '';
    position:     absolute;
    left:         50%;
    right:        50%;
    bottom:       -4px;
    height:       2px;
    background:   var(--ums-primary);
    border-radius: 2px;
    transition:   left 0.26s ease, right 0.26s ease;
}
.header-three .main-menu ul li.current > a::after,
.header-three .main-menu ul li:hover   > a::after {
    left:  0;
    right: 0;
}


/* ── 6. Hero Slider ─────────────────────────────────────────────────── */

/* Directional gradient overlay — contrast on left, opens up on right */
.slider-bg .overlay {
    background: linear-gradient(
        120deg,
        rgba(20, 27, 34, 0.76) 0%,
        rgba(20, 27, 34, 0.46) 52%,
        rgba(20, 27, 34, 0.18) 100%
    ) !important;
    opacity: 1 !important;
}

/* Text shadow for legibility on any background image */
.s-slider-content h2,
.slider-content h2 {
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.38);
}
.s-slider-content p,
.slider-content p {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
}

/* Hero CTA glow */
.slider-btn .btn {
    box-shadow: 0 6px 24px rgba(40, 184, 69, 0.36);
}


/* ── 7. Content Cards — Lift on Hover ───────────────────────────────── */

.courses-item,
.event-item,
.single-post2 {
    border-radius: var(--ums-radius-card);
    overflow:      hidden;
    box-shadow:    var(--ums-shadow-sm);
    transition:
        transform  0.32s var(--ums-ease-spring),
        box-shadow 0.32s ease !important;
    will-change: transform;
}

.courses-item:hover,
.event-item:hover,
.single-post2:hover {
    transform:  translateY(-7px);
    box-shadow: var(--ums-shadow-lg) !important;
}

/* Tone down the thumbnail zoom — from 1.2 (jarring) to 1.06 (polished) */
.hover-zoomin img {
    transition: transform 0.5s ease !important;
}
.hover-zoomin:hover img {
    transform: scale(1.06) !important;
}

/* "Read More" arrow — slides right on hover */
.readmore i,
.blog-btn a i,
.courses-content a.readmore i {
    display:    inline-block;
    transition: transform 0.22s ease;
}
.readmore:hover i,
.blog-btn a:hover i,
.courses-content a.readmore:hover i {
    transform: translateX(5px);
}


/* ── 8. Features / Services Boxes ───────────────────────────────────── */

.services-box07 {
    border-radius: var(--ums-radius-card);
    box-shadow:    var(--ums-shadow-sm);
    transition:
        transform  0.3s var(--ums-ease-spring),
        box-shadow 0.3s ease,
        background 0.3s ease !important;
}

.services-box07:hover {
    background: var(--ums-primary) !important;
    transform:  translateY(-5px);
    box-shadow: var(--ums-shadow-md) !important;
}

.services-box07.active {
    background: var(--ums-primary) !important;
    box-shadow: var(--ums-shadow-md) !important;
}


/* ── 9. Gallery — Overlay Slides Up ────────────────────────────────── */

/*
 * Replace the opacity-fade with a translateY slide-up from the bottom.
 * The `::before` icon fades in on top.
 */
.portfolio .col3 .grid-item .box {
    border-radius: 8px;
    overflow:      hidden;
}

.portfolio .col3 .grid-item .box a::after {
    background:  rgba(18, 88, 117, 0.90) !important;
    opacity:     1 !important;
    transform:   translateY(100%);
    transition:  transform 0.36s var(--ums-ease-out) !important;
}

.portfolio .col3 .grid-item .box a:hover::after {
    transform: translateY(0) !important;
}

.portfolio .col3 .grid-item .box a::before {
    z-index:    3;
    opacity:    0;
    transform:  translate(-50%, -35%);
    transition: opacity 0.25s ease 0.08s, transform 0.25s ease 0.08s !important;
}

.portfolio .col3 .grid-item .box a:hover::before {
    opacity:   1 !important;
    transform: translate(-50%, -50%) !important;
}


/* ── 10. Breadcrumb — Gradient Header ──────────────────────────────── */

.breadcrumb-area {
    background: linear-gradient(
        135deg,
        var(--ums-navy)      0%,
        var(--ums-secondary) 100%
    ) !important;
}

.breadcrumb-title h2 {
    color:       #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.breadcrumb-item a,
.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.82) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55) !important;
}


/* ── 11. Footer Refinements ─────────────────────────────────────────── */

footer.footer-bg {
    border-top: 3px solid var(--ums-primary);
}

/* Social icons — teal hover, subtle lift */
.footer-social a {
    transition: background 0.25s ease, transform 0.25s var(--ums-ease-spring) !important;
}

.footer-social a:hover {
    background: var(--ums-primary) !important;
    transform:  translateY(-3px) scale(1.10);
}

/* Footer links — indent on hover */
.footer-link ul li a {
    transition: color 0.22s ease, padding-left 0.22s ease !important;
}

.footer-link ul li a:hover {
    color:        var(--ums-primary) !important;
    padding-left: 5px;
}

/* Language / copyright dropdown button */
.copyright-wrap .dropdown .btn {
    background:    rgba(255, 255, 255, 0.14) !important;
    border:        1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 4px !important;
    color:         #fff !important;
    padding:       8px 14px !important;
    font-size:     14px !important;
    box-shadow:    none !important;
    transform:     none !important;
}

.copyright-wrap .dropdown .btn:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    transform:  none !important;
}


/* ── 12. Scroll-to-top Button ───────────────────────────────────────── */

#scrollUp {
    background: var(--ums-secondary) !important;
    box-shadow: 0 4px 16px rgba(18, 88, 117, 0.38);
    transition: transform 0.26s ease, box-shadow 0.26s ease !important;
}

#scrollUp:hover {
    background: var(--ums-secondary) !important;
    transform:  translateY(-3px) !important;
    box-shadow: 0 8px 22px rgba(18, 88, 117, 0.44) !important;
}


/* ── 13. Form Input Focus Rings ─────────────────────────────────────── */

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--ums-primary)     !important;
    box-shadow:   0 0 0 3px var(--ums-primary-glow) !important;
    outline:      none !important;
}


/* ── 14. Pagination ─────────────────────────────────────────────────── */

.pagination .page-item.active .page-link {
    background:   var(--ums-primary)   !important;
    border-color: var(--ums-primary)   !important;
}

.pagination .page-link {
    color:      var(--ums-primary) !important;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background:   var(--ums-primary) !important;
    border-color: var(--ums-primary) !important;
    color:        #fff               !important;
}


/* ── 15. CSS Ticker Animation (replaces deprecated <marquee>) ────────── */

/*
 * Structure expected in HTML:
 *   <div class="ums-ticker" role="marquee">
 *     <div class="ums-ticker-inner">
 *       <!-- content duplicated exactly twice for a seamless -50% loop -->
 *       <span>text</span><span class="ums-ticker-sep" aria-hidden="true">✦</span>
 *       ... (×4 total, first 2 = copy 1, last 2 = copy 2) ...
 *     </div>
 *   </div>
 */

.ums-ticker {
    overflow:   hidden;
    width:      100%;
    height:     100%;
    display:    flex;
    align-items: center;
}

.ums-ticker-inner {
    display:    flex;
    width:      max-content;
    align-items: center;
    gap:        0;
    animation:  ums-ticker-scroll 32s linear infinite;
    will-change: transform;
}

.ums-ticker-item {
    display:        inline-flex;
    align-items:    center;
    white-space:    nowrap;
    font-size:      13px;
    font-weight:    600;
    letter-spacing: 0.4px;
    color:          #fff;
    padding:        0 6px;
}

.ums-ticker-sep {
    color:   rgba(255, 255, 255, 0.50);
    padding: 0 18px;
    font-size: 10px;
}

/* Flyer section ticker text is slightly larger */
.flyer-ticker-track .ums-ticker-item {
    font-size:  14px;
}

@keyframes ums-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover for readability */
.ums-ticker:hover .ums-ticker-inner {
    animation-play-state: paused;
}


/* ── 16. Miscellaneous / Utility ────────────────────────────────────── */

/* Prevent images from overflowing their containers */
img { height: auto; max-width: 100%; }

/* Survey form step-indicator accent */
.survey-progress-bar .progress-bar {
    background: linear-gradient(90deg, var(--ums-secondary), var(--ums-primary)) !important;
}


/* ── 17. Reduced Motion — global safety net ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    /* Disable all decorative transforms and transitions */
    .courses-item,
    .event-item,
    .single-post2,
    .services-box07 {
        transition: box-shadow 0.2s ease !important;
    }

    .courses-item:hover,
    .event-item:hover,
    .single-post2:hover,
    .services-box07:hover {
        transform: none !important;
    }

    .btn:hover,
    #scrollUp:hover,
    .footer-social a:hover {
        transform: none !important;
    }

    /* Ticker — freeze in place */
    .ums-ticker-inner {
        animation: none !important;
    }

    /* Gallery overlay — show statically */
    .portfolio .col3 .grid-item .box a::after {
        transform:  translateY(0) !important;
        transition: none !important;
    }

    /* Nav underline — skip animation */
    .header-three .main-menu ul li > a::after {
        transition: none !important;
    }
}


/* =====================================================================
   Features / service-details-two  — added for card layout & padding fix
   ===================================================================== */

/*
 * On desktop (≥ 992px): override Bootstrap's fixed col-lg-4 widths so
 * every feature card shares the row equally — 3 cards, 4 cards, or more
 * all fit on a single line.
 *
 * flex: 1 1 0  →  grow/shrink equally, ignore base width
 * max-width: none → remove Bootstrap's 33.33% cap
 * flex-wrap: nowrap on the row prevents wrapping to a second line.
 */
@media (min-width: 992px) {
    .service-details-two .row.justify-content-center {
        flex-wrap: nowrap;
    }

    .service-details-two .row > div[class*="col-"] {
        flex:      1 1 0  !important;
        max-width: none   !important;
        padding:   0 8px;
    }
}

/*
 * On tablet (768 – 991px): 2-column grid.
 * The HTML already uses col-md-6; this rule is a safety-net for any
 * device where Bootstrap's md breakpoint needs an explicit reset.
 */
@media (min-width: 768px) and (max-width: 991px) {
    .service-details-two .row > div[class*="col-"] {
        flex-basis: 50% !important;
        max-width:  50% !important;
    }
}

/*
 * Reduce internal card padding — 35px is generous and makes the cards
 * appear bloated, especially when they're narrower.
 */
.services-box07 {
    padding: 20px 16px !important;
}

/*
 * Icon column — trim from 138px (designed for a large 3-card layout)
 * down to something that won't consume half a narrow card's width.
 */
.services-box07 .sr-contner .icon {
    width:        68px !important;
    flex-shrink:  0;
    margin-right: 14px !important;
}

.services-box07 .sr-contner .icon img {
    max-width: 52px;
    width:     100%;
    display:   block;
}

/*
 * Heading — scale from 25px down to 16px so it fits cleanly at
 * whatever width a shared-row card ends up being.
 */
.services-box07 .sr-contner .text h5 {
    font-size:     16px  !important;
    line-height:   1.32  !important;
    margin-bottom: 7px   !important;
}

/*
 * Body text — slightly tighter size and line-height for the compact card.
 */
.services-box07 .sr-contner .text p {
    font-size:     13.5px !important;
    line-height:   1.60   !important;
    margin-bottom: 5px    !important;
}


/* =====================================================================
   Equal-height feature cards
   ===================================================================== */

/*
 * Stretch the row so all column cells are as tall as the tallest one.
 * Each column div becomes a flex container that passes the height down
 * to the card inside it.
 */
.service-details-two .row.justify-content-center {
    align-items: stretch !important;
}

.service-details-two .row > div[class*="col-"] {
    display:        flex;
    flex-direction: column;
}

/*
 * The card itself fills its column. flex: 1 means it grows to fill the
 * full height of whatever the tallest sibling column is.
 */
.services-box07 {
    flex:           1 !important;
    display:        flex !important;
    flex-direction: column !important;
}

/* The text container inside the card fills remaining space */
.services-box07 .sr-contner {
    flex:      1;
    height:    auto;
    min-height: 0;
}


/* =====================================================================
   Slider — "Discover more" button beside (not below) the paragraph
   ===================================================================== */

/*
 * .slider-cta-row is added in index.blade.php to wrap the paragraph
 * and CTA button in a single flex row.  On mobile (< 576px) it
 * stacks vertically so the button doesn't crowd the text.
 */
.slider-cta-row {
    display:     flex;
    align-items: flex-start;
    gap:         24px;
    margin-top:  18px;
    flex-wrap:   wrap;
}

.slider-cta-row .slider-sub {
    flex:        1 1 auto;
    min-width:   0;
    margin-bottom: 0;
}

.slider-cta-row .slider-btn {
    flex-shrink: 0;
    /* remove the old mt-30 top margin; gap handles spacing */
    margin-top:  0 !important;
}

@media (max-width: 575px) {
    .slider-cta-row {
        flex-direction: column;
        gap:            14px;
    }
}


/* =====================================================================
   Navbar redesign — cleaner top bar, pill CTA buttons
   ===================================================================== */

/* ── Header top bar ───────────────────────────────────────────────── */

/* Remove the dated skewed green shape from the top bar */
.second-header::before {
    display: none !important;
}

/* Clean dark top bar — navy background */
.header-top.second-header {
    background:     var(--ums-navy) !important;
    border-bottom:  1px solid rgba(255, 255, 255, 0.09) !important;
    padding-top:    10px !important;
    padding-bottom: 10px !important;
    /*
     * z-index fix: the default z-index:1 traps the language-switcher
     * dropdown inside this stacking context so it renders behind the
     * sticky navbar (z-index:10).  Raising this above 10 lets the
     * dropdown escape visually above the navbar when open.
     */
    z-index:        50 !important;
    position:       relative !important;
}

/* Social icons in the top bar */
.header-social a,
.header-social span > a {
    color:      rgba(255, 255, 255, 0.72) !important;
    font-size:  14px !important;
    transition: color 0.22s ease !important;
}
.header-social a:hover,
.header-social span > a:hover {
    color: var(--ums-primary) !important;
}

/* Contact CTA text and links in top bar */
.header-top .header-cta .call-box .text strong,
.header-top .header-cta .call-box .text strong a {
    color: rgba(255, 255, 255, 0.90) !important;
    font-size: 13px !important;
}
.header-top .header-cta .call-box .text strong a:hover {
    color: var(--ums-primary) !important;
}

/* Phone / email icon images — tint them to match dark bg */
.header-cta .call-box .icon img {
    filter: brightness(0) invert(1) opacity(0.75);
}

/* ── Main navigation bar ──────────────────────────────────────────── */

.header-three .menu-area {
    background:    #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Cleaner padding on nav links */
.header-three .main-menu ul li > a {
    padding-top:    22px !important;
    padding-bottom: 22px !important;
    font-size:      14.5px !important;
    font-weight:    600 !important;
    letter-spacing: 0.1px;
}

/* ── Admission & Surveys — pill buttons ───────────────────────────── */

/*
 * The Admission button uses .btn (the global class).
 * The Surveys button uses .btn with inline styles.
 * Both get pill radius and tighter sizing here; the inline padding
 * on Surveys is overridden via specificity.
 */
.second-header-btn .btn {
    border-radius:  50px !important;
    padding:        10px 22px !important;
    font-size:      13.5px !important;
    font-weight:    700 !important;
    letter-spacing: 0.15px !important;
    line-height:    1.2 !important;
    /* Override the padding-right the Surveys button adds inline */
    padding-right:  22px !important;
}

/* Surveys badge — keep it but re-position for pill shape */
.second-header-btn .btn span {
    top:   4px !important;
    right: 8px !important;
}

/* Surveys button specifically (second .second-header-btn) */
.second-header-btn:last-child .btn,
.header-three .second-header-btn a[href*="survey"] {
    background:    var(--ums-secondary) !important;
    border-color:  var(--ums-secondary) !important;
    border-radius: 50px !important;
}

/* Remove the old btn::before expand on pill buttons —
   the fill animation starts from a circle which looks odd on pills */
.second-header-btn .btn::before {
    display: none !important;
}

/* Add a clean background-color transition instead */
.second-header-btn .btn {
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease !important;
}

.second-header-btn .btn:hover {
    filter:    brightness(1.08);
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18) !important;
}


/* =====================================================================
   Header language switcher — desktop top bar + mobile sticky nav
   ===================================================================== */

/* ── Desktop: glass pill button inside the dark top bar ─────────────── */

.header-lang-btn {
    background:    transparent           !important;
    border:        1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 50px                  !important;
    color:         rgba(255, 255, 255, 0.88) !important;
    padding:       6px 14px              !important;
    font-size:     13px                  !important;
    font-weight:   600                   !important;
    letter-spacing: 0.1px;
    box-shadow:    none                  !important;
    line-height:   1.3                   !important;
    white-space:   nowrap;
    transition:    background 0.22s ease, border-color 0.22s ease !important;
}

/* Suppress the default ::before circle-expand — not appropriate here */
.header-lang-btn::before {
    display: none !important;
}

.header-lang-btn:hover {
    background:    rgba(255, 255, 255, 0.14) !important;
    border-color:  rgba(255, 255, 255, 0.55) !important;
    color:         #fff                      !important;
    transform:     none                      !important;
    box-shadow:    none                      !important;
}

.header-lang-btn .fa-globe {
    margin-right: 5px;
}

/* ── Shared: dropdown menu ──────────────────────────────────────────── */

.header-lang-menu {
    min-width:     120px           !important;
    border-radius: 8px             !important;
    border:        1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow:    0 6px 20px rgba(0, 0, 0, 0.14) !important;
    padding:       6px 0           !important;
    margin-top:    6px             !important;
}

.header-lang-menu .dropdown-item {
    font-size:     13.5px;
    font-weight:   500;
    padding:       8px 16px;
    color:         var(--ums-dark);
    transition:    background 0.18s ease, color 0.18s ease;
}

.header-lang-menu .dropdown-item:hover,
.header-lang-menu .dropdown-item:focus {
    background: var(--ums-primary) !important;
    color:      #fff               !important;
}


/* =====================================================================
   Administrator section — full redesign
   ===================================================================== */

/* ── Background ─────────────────────────────────────────────────────── */

.ums-admin-section {
    background: linear-gradient(
        145deg,
        #0f1d2c 0%,
        #1b2d45 48%,
        #142338 100%
    ) !important;
    position: relative;
    overflow: hidden;
}

/*
 * Large radial glow — teal, top-right, draws the eye toward the photo
 */
.ums-admin-section::before {
    content:        '';
    position:       absolute;
    top:            -140px;
    right:          -80px;
    width:          560px;
    height:         560px;
    border-radius:  50%;
    background:     radial-gradient(
                        circle,
                        rgba(18, 88, 117, 0.32) 0%,
                        transparent 68%
                    );
    pointer-events: none;
    z-index:        0;
}

/*
 * Decorative open ring — bottom-left, adds subtle depth behind the text
 */
.ums-admin-section::after {
    content:        '';
    position:       absolute;
    bottom:         -110px;
    left:           -70px;
    width:          420px;
    height:         420px;
    border-radius:  50%;
    border:         1px solid rgba(40, 184, 69, 0.13);
    pointer-events: none;
    z-index:        0;
}

/* Columns sit above the decorative pseudo-elements */
.ums-admin-col {
    position: relative;
    z-index:  1;
}


/* ── Text / content column ──────────────────────────────────────────── */

/*
 * Thin left-border accent that lines the text block.
 * Use padding-left so it doesn't overlap the existing pr-15.
 */
.ums-admin-content {
    padding-left:  24px !important;
    border-left:   3px solid rgba(40, 184, 69, 0.38);
}

/*
 * Green → teal gradient bar above the title — signals "leadership profile"
 */
.ums-admin-accent-bar {
    display:        block;
    width:          52px;
    height:         4px;
    background:     linear-gradient(90deg, var(--ums-primary), var(--ums-secondary));
    border-radius:  3px;
    margin-bottom:  18px;
}

/* Title */
.ums-admin-section .about-title h2 {
    color:          #ffffff           !important;
    font-size:      clamp(26px, 3.5vw, 38px) !important;
    font-weight:    800               !important;
    line-height:    1.18              !important;
    letter-spacing: -0.025em          !important;
}

/* Bio preview text */
.ums-admin-bio p {
    line-height:   1.88;
    color:         #b8d0e3;
    font-size:     15.5px;
    margin-bottom: 0;
}


/* ── "Read more" — outlined pill button ─────────────────────────────── */

.ums-admin-read-more {
    display:        inline-flex;
    align-items:    center;
    gap:            9px;
    margin-top:     26px;
    padding:        10px 26px;
    border:         2px solid rgba(77, 208, 225, 0.55);
    border-radius:  50px;
    color:          #5dd8ea;
    font-family:    'Jost', 'Roboto', sans-serif;
    font-size:      14px;
    font-weight:    700;
    letter-spacing: 0.25px;
    background:     transparent;
    cursor:         pointer;
    transition:     background  0.26s ease,
                    border-color 0.26s ease,
                    color        0.26s ease;
}

.ums-admin-read-more i {
    font-size:  15px;
    transition: transform 0.22s ease;
}

.ums-admin-read-more:hover {
    background:   rgba(77, 208, 225, 0.12);
    border-color: rgba(77, 208, 225, 0.88);
    color:        #ffffff;
}

.ums-admin-read-more:hover i {
    transform: translateX(5px);
}


/* ── Photo — offset accent frame ────────────────────────────────────── */

.ums-admin-img-frame {
    position:      relative;
    display:       inline-block;
    width:         100%;
}

/*
 * Decorative teal border rectangle — offset down-right from the image,
 * gives the portrait a framed / layered look.
 */
.ums-admin-img-frame::before {
    content:        '';
    position:       absolute;
    bottom:         -14px;
    right:          -14px;
    width:          88%;
    height:         88%;
    border:         3px solid rgba(18, 88, 117, 0.55);
    border-radius:  14px;
    z-index:        0;
    pointer-events: none;
}

/*
 * Second decorative accent — a thin primary-green corner stroke,
 * top-left of the photo.
 */
.ums-admin-img-frame::after {
    content:        '';
    position:       absolute;
    top:            -10px;
    left:           -10px;
    width:          60px;
    height:         60px;
    border-top:     3px solid rgba(40, 184, 69, 0.65);
    border-left:    3px solid rgba(40, 184, 69, 0.65);
    border-radius:  12px 0 0 0;
    z-index:        2;
    pointer-events: none;
}

.ums-admin-img-frame img {
    position:      relative;
    z-index:       1;
    border-radius: 12px;
    width:         100%;
    max-height:    500px;
    object-fit:    cover;
    object-position: center top;
    box-shadow:    0 20px 60px rgba(0, 0, 0, 0.55),
                   0 0 0 3px rgba(255, 255, 255, 0.06);
    display:       block;
}


/* ── Responsive tweaks ───────────────────────────────────────────────── */

@media (max-width: 991px) {
    /* On tablet/mobile the columns stack; remove the left border
       on the content so it doesn't look odd at full width */
    .ums-admin-content {
        padding-left: 0 !important;
        border-left:  none !important;
    }

    /* Image frame offset accent should be smaller on mobile */
    .ums-admin-img-frame::before {
        bottom: -10px;
        right:  -10px;
        width:  85%;
        height: 85%;
    }

    /* Add top margin when image stacks below text */
    .ums-admin-img-frame {
        margin-top: 36px;
    }

    .ums-admin-section::before {
        width:  340px;
        height: 340px;
        top:    -80px;
        right:  -60px;
    }
}


/* =====================================================================
   About section — full redesign
   ===================================================================== */

/* ── Section background enhancements ────────────────────────────────── */

.ums-about-section {
    position: relative;
}

/* Decorative open ring — top-left, very subtle */
.ums-about-section::before {
    content:        '';
    position:       absolute;
    top:            -120px;
    left:           -80px;
    width:          380px;
    height:         380px;
    border-radius:  50%;
    border:         1.5px solid rgba(40, 184, 69, 0.12);
    pointer-events: none;
    z-index:        0;
}

/* Soft teal radial glow — bottom-right */
.ums-about-section::after {
    content:        '';
    position:       absolute;
    bottom:         -60px;
    right:          -40px;
    width:          320px;
    height:         320px;
    border-radius:  50%;
    background:     radial-gradient(
                        circle,
                        rgba(18, 88, 117, 0.08) 0%,
                        transparent 70%
                    );
    pointer-events: none;
    z-index:        0;
}

/* Columns above decorative pseudo-elements */
.ums-about-section .col-lg-6,
.ums-about-img-col {
    position: relative;
    z-index:  1;
}


/* ── Image — bordered frame ──────────────────────────────────────────── */

.ums-about-img-wrap {
    position: relative;
}

/* Offset teal rectangle behind the photo */
.ums-about-img-wrap::before {
    content:        '';
    position:       absolute;
    bottom:         -14px;
    left:           -14px;
    width:          88%;
    height:         88%;
    border:         2px solid rgba(18, 88, 117, 0.22);
    border-radius:  14px;
    z-index:        0;
    pointer-events: none;
}

/* Green L-corner stroke — top-right */
.ums-about-img-wrap::after {
    content:        '';
    position:       absolute;
    top:            -10px;
    right:          -10px;
    width:          58px;
    height:         58px;
    border-top:     3px solid rgba(40, 184, 69, 0.55);
    border-right:   3px solid rgba(40, 184, 69, 0.55);
    border-radius:  0 12px 0 0;
    z-index:        2;
    pointer-events: none;
}

.ums-about-img-wrap img {
    position:        relative;
    z-index:         1;
    border-radius:   14px;
    width:           100%;
    display:         block;
    box-shadow:      0 16px 48px rgba(0, 0, 0, 0.13),
                     0 0 0 4px rgba(255, 255, 255, 0.70);
    object-fit:      cover;
    object-position: center;
}


/* ── "About Us" label — pill badge ──────────────────────────────────── */

.ums-about-label {
    display:         inline-flex !important;
    align-items:     center !important;
    gap:             7px !important;
    background:      rgba(40, 184, 69, 0.09) !important;
    color:           var(--ums-primary)       !important;
    font-size:       12.5px                   !important;
    font-weight:     700                      !important;
    letter-spacing:  1px                      !important;
    text-transform:  uppercase                !important;
    padding:         6px 16px                 !important;
    border-radius:   50px                     !important;
    border:          1px solid rgba(40, 184, 69, 0.28) !important;
    margin-bottom:   18px                     !important;
}

.ums-about-label i {
    font-size: 13px;
}

/* ── Title ──────────────────────────────────────────────────────────── */

.ums-about-section .about-title h2 {
    font-size:      clamp(26px, 3.8vw, 42px) !important;
    font-weight:    800                      !important;
    color:          var(--ums-dark)          !important;
    letter-spacing: -0.026em                 !important;
    line-height:    1.15                     !important;
    margin-bottom:  14px                     !important;
}

/* ── Description text ───────────────────────────────────────────────── */

.ums-about-section .s-about-content > p,
.ums-about-section .s-about-content p {
    font-size:   15.5px;
    line-height: 1.75;
    color:       var(--ums-text);
}


/* ── Mission / Vision cards ─────────────────────────────────────────── */

/*
 * Convert the floated list into a flex row so both cards
 * share equal height and sit cleanly side by side.
 */
.ums-mv-list {
    display:    flex !important;
    gap:        14px !important;
    list-style: none !important;
    padding:    0 !important;
    margin:     20px 0 0 !important;
    flex-wrap:  wrap;
}

.ums-mv-card {
    flex:          1 1 0   !important;
    float:         none    !important;
    width:         auto    !important;
    padding:       18px 16px !important;
    background:    #ffffff;
    border-radius: 10px;
    border-top:    4px solid transparent;
    box-shadow:    0 2px 14px rgba(0, 0, 0, 0.07);
    transition:    transform 0.28s var(--ums-ease-spring),
                   box-shadow 0.28s ease;
    margin-bottom: 0 !important;
}

.ums-mv-card:hover {
    transform:  translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.11);
}

/* Mission — green top border */
.ums-mv-mission { border-top-color: var(--ums-primary) !important; }

/* Vision — teal top border */
.ums-mv-vision  { border-top-color: var(--ums-secondary) !important; }

/* Card icon */
.ums-mv-icon {
    font-size: 13px;
}
.ums-mv-mission .ums-mv-icon { color: var(--ums-primary); }
.ums-mv-vision  .ums-mv-icon { color: var(--ums-secondary); }

/* Card heading */
.ums-mv-card .text h3 {
    font-size:     16px    !important;
    font-weight:   700     !important;
    color:         var(--ums-dark) !important;
    margin-bottom: 8px     !important;
    line-height:   1.25    !important;
}

/* Card body text */
.ums-mv-card .text p {
    font-size:     13.5px  !important;
    line-height:   1.65    !important;
    color:         var(--ums-text) !important;
    margin-bottom: 0       !important;
}


/* ── Anthem card ─────────────────────────────────────────────────────── */

/*
 * The entire anthem block is now a clickable card that opens the modal.
 * Teal left accent + music icon signals "cultural / lyrical" content.
 */
.ums-anthem-card {
    position:   relative;
    margin-top: 22px;
    cursor:     pointer;
}

.ums-anthem-card-inner {
    background:    #ffffff;
    border:        1px solid rgba(18, 88, 117, 0.14);
    border-left:   4px solid var(--ums-secondary);
    border-radius: 10px;
    padding:       18px 20px 14px;
    transition:    box-shadow 0.26s ease, transform 0.26s var(--ums-ease-spring);
    position:      relative;
    overflow:      hidden;
}

.ums-anthem-card:hover .ums-anthem-card-inner {
    box-shadow: 0 8px 28px rgba(18, 88, 117, 0.12);
    transform:  translateY(-3px);
}

/* Header row: icon pill + title + arrow */
.ums-anthem-header {
    display:     flex;
    align-items: center;
    gap:         10px;
    margin-bottom: 12px;
}

.ums-anthem-icon-wrap {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           30px;
    height:          30px;
    background:      rgba(18, 88, 117, 0.10);
    border-radius:   50%;
    color:           var(--ums-secondary);
    font-size:       12px;
    flex-shrink:     0;
}

.ums-anthem-title-text {
    font-size:      13.5px;
    font-weight:    800;
    color:          var(--ums-secondary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    flex:           1;
}

.ums-anthem-arrow {
    color:      var(--ums-secondary);
    font-size:  15px;
    opacity:    0.6;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.ums-anthem-card:hover .ums-anthem-arrow {
    transform: translateX(4px);
    opacity:   1;
}

/* Lyrics preview */
.ums-anthem-preview {
    position:    relative;
    max-height:  76px;
    overflow:    hidden;
    line-height: 1.8;
    color:       #5e7280;
    font-size:   13.5px;
    font-style:  italic;
}

/* Fade-out gradient at bottom of lyrics */
.ums-anthem-fade {
    position:   absolute;
    bottom:     0;
    left:       0;
    right:      0;
    height:     44px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none;
}


/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    /* Image frame offsets reduced on mobile */
    .ums-about-img-wrap::before {
        bottom:  -10px;
        left:    -10px;
        width:   84%;
        height:  84%;
    }
    .ums-about-img-wrap {
        margin-bottom: 32px;
    }

    /* Cards stack vertically on narrow screens */
    .ums-mv-list {
        flex-direction: column !important;
        gap:            10px   !important;
    }

    .ums-mv-card {
        flex-basis: 100% !important;
    }
}


/* =====================================================================
   Testimonials section — full redesign
   ===================================================================== */

/* ── Section background ─────────────────────────────────────────────── */

.ums-testi-section {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 55%, #eaf3fc 100%);
    position: relative;
}

/*
 * Giant faded quotation mark as a watermark background element.
 * font-size is large so it spans the whole section width.
 */
.ums-testi-section::before {
    content:        '\201C';
    position:       absolute;
    top:            -40px;
    left:           50%;
    transform:      translateX(-50%);
    font-family:    'Jost', Georgia, serif;
    font-size:      min(500px, 50vw);
    font-weight:    900;
    line-height:    1;
    color:          rgba(18, 88, 117, 0.04);
    pointer-events: none;
    z-index:        0;
    user-select:    none;
}

.ums-testi-section .container {
    position: relative;
    z-index:  1;
}


/* ── Section heading ────────────────────────────────────────────────── */

.ums-testi-heading {
    margin-bottom: 48px;
}

.ums-testi-label {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    background:      rgba(40, 184, 69, 0.09);
    color:           var(--ums-primary);
    font-size:       12.5px;
    font-weight:     700;
    letter-spacing:  1px;
    text-transform:  uppercase;
    padding:         6px 16px;
    border-radius:   50px;
    border:          1px solid rgba(40, 184, 69, 0.26);
    margin-bottom:   14px;
}

.ums-testi-heading h2 {
    font-size:       clamp(24px, 3.5vw, 38px) !important;
    font-weight:     800 !important;
    color:           var(--ums-dark) !important;
    letter-spacing:  -0.022em !important;
    margin-bottom:   0 !important;
}


/* ── Testimonial cards ──────────────────────────────────────────────── */

/*
 * Slick wraps each card in a NEW .slick-slide div, so .ums-testi-card
 * lives INSIDE .slick-slide — not on it.
 *
 * Correct approach:
 *   1. Reset the old #f0f7ff background on .slick-slide itself.
 *   2. Style the inner .ums-testi-card with the correct descendant selector.
 *   3. Give .ums-testi-card position:relative so the ::before gradient
 *      bar is anchored to the card, not to an outer wrapper.
 */
.testimonial-active .slick-slide {
    background:    transparent                    !important;
    padding:       8px                            !important;
    border-radius: 0                              !important;
    box-shadow:    none                           !important;
    margin:        0 6px 24px                     !important;
}

.ums-testi-card {
    position: relative; /* anchors the ::before gradient bar */
}

.testimonial-active .slick-slide .ums-testi-card {
    background:    #ffffff;
    border-radius: 14px;
    padding:       28px 20px 20px;
    box-shadow:    0 4px 22px rgba(0, 0, 0, 0.07);
    border:        1px solid rgba(0, 0, 0, 0.06);
    transition:    transform 0.30s var(--ums-ease-spring),
                   box-shadow 0.30s ease;
    height:        100%; /* equal-height cards */
    display:       flex;
    flex-direction: column;
    align-items:   center;
}

.testimonial-active .slick-slide .ums-testi-card:hover {
    transform:  translateY(-6px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
}

/* Top gradient bar — anchored via position:relative on .ums-testi-card */
.ums-testi-card::before {
    content:        '';
    position:       absolute;
    top:            0;
    left:           0;
    width:          100%;
    height:         4px;
    background:     linear-gradient(90deg, var(--ums-primary), var(--ums-secondary));
    border-radius:  14px 14px 0 0;
    pointer-events: none;
}


/* ── Quote icon ─────────────────────────────────────────────────────── */

.ums-qt-wrap {
    margin-bottom: 14px;
}

.ums-qt-icon {
    font-size:   28px   !important;
    color:       var(--ums-primary) !important;
    display:     block  !important;
    opacity:     0.80;
    line-height: 1;
    /* Suppress .testimonial-active i white override */
    color:       var(--ums-primary) !important;
    margin-bottom: 0 !important;
}


/* ── Star rating ────────────────────────────────────────────────────── */

.ums-testi-stars {
    margin-bottom: 14px;
    line-height:   1;
}

.ums-testi-stars .fas.fa-star {
    color:     #f5a623;
    font-size: 11px;
    margin:    0 1.5px;
}


/* ── Quote text ─────────────────────────────────────────────────────── */

.ums-testi-card p {
    font-size:     14.5px     !important;
    line-height:   1.74       !important;
    color:         #4a5a6b    !important;
    font-style:    italic;
    margin-bottom: 22px       !important;
}


/* ── Avatar ─────────────────────────────────────────────────────────── */

.ums-testi-avatar img {
    width:         72px                !important;
    height:        72px                !important;
    max-width:     72px                !important;
    max-height:    72px                !important;
    border-radius: 50%                 !important;
    border:        3px solid var(--ums-primary) !important;
    padding:       2px;
    background:    #fff;
    box-shadow:    0 4px 14px rgba(40, 184, 69, 0.22) !important;
    object-fit:    cover               !important;
    display:       inline-block        !important;
    margin-top:    0                   !important;
}


/* ── Name & designation ─────────────────────────────────────────────── */

.ums-testi-card .ta-info {
    margin-top: 10px !important;
}

.ums-testi-card .ta-info h6 {
    font-size:     16px            !important;
    font-weight:   700             !important;
    color:         var(--ums-dark) !important;
    margin-top:    8px             !important;
    margin-bottom: 3px             !important;
}

.ums-testi-card .ta-info span {
    font-size:  12.5px                    !important;
    font-weight: 600                      !important;
    color:      var(--ums-secondary)      !important;
}


/* ── Slick dots — pill style ────────────────────────────────────────── */

.testimonial-active .slick-dots {
    bottom: -40px !important;
}

.testimonial-active .slick-dots li {
    width:  auto !important;
    height: auto !important;
    margin: 0 4px !important;
}

.testimonial-active .slick-dots li button {
    width:         28px;
    height:        6px;
    padding:       0;
    border-radius: 3px;
    background:    rgba(18, 88, 117, 0.20);
    border:        none;
    cursor:        pointer;
    font-size:     0;
    transition:    width 0.28s ease, background 0.28s ease;
}

/* Hide the default '•' character from Slick */
.testimonial-active .slick-dots li button::before {
    display: none !important;
}

.testimonial-active .slick-dots li.slick-active button {
    width:      42px;
    background: var(--ums-primary);
}


/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .ums-testi-heading {
        margin-bottom: 32px;
    }

    .testimonial-active .slick-slide .ums-testi-card {
        padding: 22px 16px 16px;
        margin:  0;
    }
}

@media (max-width: 767px) {
    .ums-testi-section::before {
        font-size: 70vw;
        top:       -20px;
    }

    .ums-testi-card .ta-info h6 {
        font-size: 15px !important;
    }
}


/* =====================================================================
   Flyer section — progressive disclosure button
   ===================================================================== */

/*
 * Cards that are hidden by the JS progressive disclosure should not
 * contribute to layout even when display changes; the JS handles that.
 * This class is referenced only in JS; keep the CSS as a reset helper.
 */
@keyframes ums-flyer-appear {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* "View more / Show less" pill button — matches the site's outlined style */
.ums-flyer-toggle-btn {
    display:        inline-flex;
    align-items:    center;
    gap:            8px;
    padding:        11px 28px;
    border:         2px solid rgba(18, 88, 117, 0.40);
    border-radius:  50px;
    background:     transparent;
    color:          var(--ums-secondary);
    font-family:    'Jost', 'Roboto', sans-serif;
    font-size:      14px;
    font-weight:    700;
    letter-spacing: 0.2px;
    cursor:         pointer;
    transition:     background   0.24s ease,
                    border-color 0.24s ease,
                    color        0.24s ease,
                    transform    0.22s ease;
}

.ums-flyer-toggle-btn:hover {
    background:   rgba(18, 88, 117, 0.07);
    border-color: var(--ums-secondary);
    transform:    translateY(-2px);
}

.ums-flyer-toggle-btn i {
    font-size: 15px;
    transition: transform 0.22s ease;
}


/* =====================================================================
   Mobile header CTA buttons — scale as a unit, preserving pill shape
   ===================================================================== */

/*
 * Rather than shrinking individual buttons (which distorts their pill
 * shape), we scale the entire .ums-mobile-cta container as one unit
 * using transform: scale() at progressively tighter breakpoints.
 *
 * The translate(-50%, -50%) is replicated in each rule because CSS
 * `!important` overrides the inline style's transform; we must include
 * the centering translation alongside the scale.
 */

@media (max-width: 530px) {
    .ums-mobile-cta {
        transform: translate(-50%, -50%) scale(0.88) !important;
    }
}

@media (max-width: 440px) {
    .ums-mobile-cta {
        transform: translate(-50%, -50%) scale(0.76) !important;
    }
}

@media (max-width: 375px) {
    .ums-mobile-cta {
        transform: translate(-50%, -50%) scale(0.64) !important;
    }
}
