/* ==========================================================================
   SSV College — modern theme
   File: css/site-modern.css

   • Loaded AFTER the legacy stylesheets (main_styles.css / responsive.css) in Site.Master.
   • Every new component uses the "ssv-" prefix so nothing collides with the legacy theme
     that the inner pages (AboutUs, Contact, Gallery ...) still rely on.
   • Built for Bootstrap 4 (grid / navbar / dropdown) and Font Awesome 4.7 (both already in the project).

   Contents
     1. Design tokens
     2. Scoped base + accessibility helpers
     3. Buttons
     4. Header: top bar, brand bar, search, navigation
     5. Shared section pieces
     6. Home: hero, intro cards, courses, notices / why-us, gallery slider, vision & mission, stats
     7. Footer
     8. Legacy helpers still used by inner pages
     9. Reduced motion
   ========================================================================== */


/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
    --primary: #0B2545;
    --primary-soft: #102A43;
    --accent: #FF7A00;
    --accent-deep: #E8620A; /* badges, icon tints */
    --accent-ink: #C25500; /* orange used for small TEXT (4.5:1 on white) */
    --btn-bg: #F26A00; /* primary CTA. For strict WCAG AA with white text use #C25500 */
    --btn-bg-hover: #D65A00;
    --text: #172033;
    --muted: #64748B;
    --border: #E5E7EB;
    --light-bg: #F8FAFC;
    --warm-bg: #FDF8F3;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(11, 37, 69, .05), 0 6px 18px rgba(11, 37, 69, .06);
    --shadow-md: 0 14px 34px rgba(11, 37, 69, .12);
    --font-body: "Inter", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-head: "Lora", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}


/* 2. SCOPED BASE + ACCESSIBILITY ---------------------------------------- */
.ssv-scope {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    .ssv-scope *,
    .ssv-scope *::before,
    .ssv-scope *::after {
        box-sizing: border-box;
    }

/* :where() keeps these resets at zero extra specificity, so component classes always win */
:where(.ssv-scope) :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.005em;
    color: var(--primary);
    margin: 0;
}

:where(.ssv-scope) p {
    margin: 0;
}

:where(.ssv-scope) :is(ul, ol) {
    list-style: none;
    margin: 0;
    padding: 0;
}

:where(.ssv-scope) img {
    max-width: 100%;
}

:where(.ssv-scope) a {
    color: inherit;
    text-decoration: none;
}

    :where(.ssv-scope) a:hover {
        color: inherit;
        text-decoration: none;
    }

.ssv-scope :focus-visible {
    outline: 3px solid rgba(255, 122, 0, .65);
    outline-offset: 2px;
}

.ssv-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 3000;
    padding: .7rem 1.1rem;
    background: #fff;
    color: var(--primary);
    font: 600 .95rem/1.2 var(--font-body);
    border-radius: 0 0 var(--radius-sm) 0;
    box-shadow: var(--shadow-md);
}

    .ssv-skip:focus {
        left: 0;
    }

#main-content:focus {
    outline: none;
}

.ssv-site {
    overflow-x: clip;
}


/* 3. BUTTONS ------------------------------------------------------------- */
.ssv-scope .ssv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 600 1rem/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

    .ssv-scope .ssv-btn:hover {
        text-decoration: none;
        transform: translateY(-1px);
    }

    .ssv-scope .ssv-btn .fa {
        font-size: .85em;
        transition: transform .2s var(--ease);
    }

    .ssv-scope .ssv-btn:hover .fa-arrow-right {
        transform: translateX(3px);
    }

.ssv-scope .ssv-btn--sm {
    padding: .5rem 1.05rem;
    font-size: .875rem;
}

.ssv-scope .ssv-btn--primary {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: #fff;
}

    .ssv-scope .ssv-btn--primary:hover,
    .ssv-scope .ssv-btn--primary:focus {
        background: var(--btn-bg-hover);
        border-color: var(--btn-bg-hover);
        color: #fff;
        box-shadow: 0 8px 20px rgba(242, 106, 0, .28);
    }

.ssv-scope .ssv-btn--outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

    .ssv-scope .ssv-btn--outline:hover,
    .ssv-scope .ssv-btn--outline:focus {
        background: var(--primary);
        color: #fff;
    }

.ssv-scope .ssv-btn--accent-outline {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent-ink);
}

    .ssv-scope .ssv-btn--accent-outline:hover,
    .ssv-scope .ssv-btn--accent-outline:focus {
        background: var(--btn-bg);
        border-color: var(--btn-bg);
        color: #fff;
    }

.ssv-scope .ssv-btn--light {
    background: transparent;
    border-color: rgba(255, 255, 255, .75);
    color: #fff;
}

    .ssv-scope .ssv-btn--light:hover,
    .ssv-scope .ssv-btn--light:focus {
        background: #fff;
        border-color: #fff;
        color: var(--primary);
    }

.ssv-scope .ssv-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .9rem;
    color: var(--accent-ink);
}

    .ssv-scope .ssv-link:hover,
    .ssv-scope .ssv-link:focus {
        color: var(--primary);
    }

    .ssv-scope .ssv-link .fa {
        font-size: .8em;
        transition: transform .2s var(--ease);
    }

    .ssv-scope .ssv-link:hover .fa {
        transform: translateX(3px);
    }


/* 4. HEADER -------------------------------------------------------------- */
.ssv-header {
    position: relative;
    z-index: 50;
    background: #fff;
}

/* The legacy theme (main_styles.css / custom.js) was built around a different header, e.g. it may reserve
   space under a fixed header. Neutralise any such leftover spacing so the hero sits right under the menu. */
.super_container.ssv-site {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

header.ssv-header {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page_container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.ssv-home {
    margin: 0 !important;
    padding: 0 !important;
}

.ssv-hero {
    margin-top: 0 !important;
}

/* 4a. Top utility bar */
.ssv-topbar {
    background: var(--primary);
    color: #fff;
    font-size: .8125rem;
}

.ssv-topbar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 44px;
    padding: .3rem 0;
}

.ssv-topbar a {
    color: #fff;
}

    .ssv-topbar a:hover,
    .ssv-topbar a:focus {
        color: #FFC48A;
    }

.ssv-topbar__contact {
    display: none;
    flex: 0 0 auto;
    gap: 1.5rem;
}

    .ssv-topbar__contact a {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
    }

    .ssv-topbar__contact .fa {
        color: #FFB067;
    }

.ssv-ticker {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1 1 0;
    min-width: 0;
}

.ssv-ticker__icon {
    flex: 0 0 auto;
    color: #FFB067;
}

.ssv-ticker__viewport {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.ssv-ticker__track {
    display: inline-flex;
    white-space: nowrap;
    animation: ssv-marquee 32s linear infinite;
}

.ssv-ticker__item {
    flex: 0 0 auto;
    padding-right: 4rem;
}

.ssv-ticker:hover .ssv-ticker__track,
.ssv-ticker:focus-within .ssv-ticker__track {
    animation-play-state: paused;
}

.ssv-ticker__sep {
    margin: 0 .6rem;
    opacity: .55;
}

.ssv-topbar .ssv-ticker__link {
    color: #FFC48A;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .ssv-topbar .ssv-ticker__link:hover {
        color: #fff;
    }

@keyframes ssv-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
    /* two identical items, so -50% loops seamlessly */
}

.ssv-scope .ssv-topbar__cta {
    flex: 0 0 auto;
    padding: .35rem .9rem;
    font-size: .8rem;
}

@media (min-width: 768px) {
    .ssv-topbar__contact {
        display: flex;
    }
}

/* 4b. Brand bar */
.ssv-brandbar {
    background: #fff;
}

.ssv-brandbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
}

.ssv-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    color: var(--primary);
}

.ssv-brand__logo {
    flex: 0 0 auto;
    display: block;
    height: 56px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.ssv-brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .15rem;
}

.ssv-brand__name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--primary);
}

.ssv-brand__affil {
    display: none;
    font-size: .68rem;
    line-height: 1.35;
    color: var(--muted);
}

.ssv-brand__loc {
    display: none;
    font-size: .78rem;
    line-height: 1.35;
    font-weight: 500;
    color: var(--primary);
}

    .ssv-brand__loc .fa {
        color: var(--accent-deep);
        margin-right: .25rem;
    }

.ssv-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

.ssv-scope .ssv-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

    .ssv-scope .ssv-icon-btn:hover,
    .ssv-scope .ssv-icon-btn[aria-expanded="true"] {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

@media (min-width: 420px) {
    .ssv-brand__affil {
        display: block;
    }
}

@media (min-width: 576px) {
    .ssv-brand__logo {
        height: 64px;
    }

    .ssv-brand__name {
        font-size: 1.3rem;
    }

    .ssv-brand__affil {
        font-size: .75rem;
    }

    .ssv-brand__loc {
        display: block;
    }
}

@media (min-width: 992px) {
    .ssv-brandbar__inner {
        padding: 1.1rem 0;
    }

    .ssv-brand {
        gap: 1.1rem;
    }

    .ssv-brand__logo {
        height: 80px;
    }

    .ssv-brand__name {
        font-size: 1.85rem;
    }

    .ssv-brand__affil {
        font-size: .85rem;
    }

    .ssv-brand__loc {
        font-size: .9rem;
    }

    .ssv-scope .ssv-icon-btn {
        width: 46px;
        height: 46px;
    }
}

/* 4c. Main navigation (Bootstrap 4 .navbar) */
.ssv-nav.navbar {
    padding: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-body);
}

.ssv-nav.navbar-expand-xl > .container {
    padding-left: 15px;
    padding-right: 15px;
}

.ssv-nav .navbar-nav {
    width: 100%;
}

.ssv-nav .nav-link {
    position: relative;
    padding: .9rem .8rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
    transition: color .2s var(--ease);
}

    .ssv-nav .nav-link:hover,
    .ssv-nav .nav-link:focus {
        color: var(--accent-ink);
    }

    .ssv-nav .nav-link.active {
        color: var(--accent-ink);
        font-weight: 600;
    }

/* Bootstrap draws the dropdown caret on ::after; swap it for a Font Awesome chevron */
.ssv-nav .dropdown-toggle::after {
    border: 0;
    margin-left: .4rem;
    vertical-align: baseline;
    content: "\f107";
    font-family: FontAwesome;
    font-size: 1rem;
    line-height: 1;
    transition: transform .2s var(--ease);
}

.ssv-nav .dropdown.show > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Active / hover accent: an orange underline drawn on ::before */
.ssv-nav .nav-link::before {
    content: "";
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s var(--ease);
}

.ssv-nav .nav-link.active::before,
.ssv-nav .nav-item:hover > .nav-link::before {
    transform: scaleX(1);
}

.ssv-nav .dropdown-menu {
    margin-top: 0;
    padding: .5rem;
    min-width: 13rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: .9rem;
}

.ssv-nav .dropdown-item {
    padding: .55rem .9rem;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 500;
}

    .ssv-nav .dropdown-item:hover,
    .ssv-nav .dropdown-item:focus {
        background: var(--light-bg);
        color: var(--accent-ink);
    }

    .ssv-nav .dropdown-item.active,
    .ssv-nav .dropdown-item:active {
        background: var(--light-bg);
        color: var(--accent-ink);
        font-weight: 600;
    }

/* Desktop with a mouse: open dropdowns on hover / keyboard focus */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
    .ssv-nav .dropdown:hover > .dropdown-menu,
    .ssv-nav .dropdown:focus-within > .dropdown-menu {
        display: block;
    }

    .ssv-nav .dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

@media (min-width: 1200px) {
    .ssv-nav .navbar-nav {
        justify-content: space-between;
    }
}

/* Below 1200px: collapsed menu behind the hamburger */
@media (max-width: 1199.98px) {
    .ssv-nav .navbar-collapse {
        padding: .25rem 0 1rem;
    }

    .ssv-nav .nav-link {
        padding: .85rem .25rem;
        border-bottom: 1px solid var(--border);
        font-size: .95rem;
    }

        .ssv-nav .nav-link::before {
            display: none;
        }

        .ssv-nav .nav-link.active {
            padding-left: .75rem;
            box-shadow: inset 3px 0 0 var(--accent);
        }

    .ssv-nav .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ssv-nav .dropdown-menu {
        margin: .25rem 0 .5rem;
        border: 0;
        box-shadow: none;
        background: var(--light-bg);
    }
}


/* 5. SHARED SECTION PIECES ---------------------------------------------- */
.ssv-section {
    padding: clamp(2.75rem, 2rem + 3.5vw, 4.5rem) 0;
    background: #fff;
}

.ssv-section--warm {
    background: var(--warm-bg);
}

.ssv-section--tint {
    background: var(--light-bg);
}

.ssv-label {
    display: block;
    margin-bottom: .75rem;
    font: 700 .78rem/1.2 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.ssv-label--light {
    color: #FFB067;
}

.ssv-section-head {
    max-width: 40rem;
    margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3rem);
    text-align: center;
}

    .ssv-section-head h2 {
        font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
    }

        .ssv-section-head h2::after {
            content: "";
            display: block;
            width: 44px;
            height: 3px;
            margin: .9rem auto 1rem;
            border-radius: 3px;
            background: var(--accent);
        }

    .ssv-section-head p {
        color: var(--muted);
    }

.ssv-card {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

    .ssv-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: #D9DEE7;
    }


/* 6a. HOME — HERO -------------------------------------------------------- */
.ssv-hero {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.ssv-hero__content {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 0 2rem;
}

.ssv-hero__eyebrow {
    margin-bottom: 1rem;
    font: 700 .78rem/1.3 var(--font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

    .ssv-hero__eyebrow span {
        margin: 0 .4rem;
        color: #CBD5E1;
    }

.ssv-hero__title {
    font-size: clamp(1.9rem, 1rem + 2.6vw, 2.9rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

    .ssv-hero__title span {
        display: block;
    }

.ssv-hero__sub {
    margin-bottom: .9rem;
    font: 600 clamp(1.1rem, 1rem + .5vw, 1.35rem)/1.35 var(--font-head);
    color: var(--primary);
}

.ssv-hero__lead {
    max-width: 30rem;
    margin-bottom: 1.75rem;
    color: var(--muted);
}

.ssv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2rem;
}

.ssv-hero__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

    .ssv-hero__features li {
        display: flex;
        align-items: center;
        gap: .65rem;
        padding: .55rem .75rem;
        background: rgba(255, 255, 255, .9);
        border: 1px solid var(--border);
        border-radius: 12px;
        font-size: .82rem;
        font-weight: 600;
        line-height: 1.25;
        color: var(--primary);
    }

.ssv-hero__feature-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF1E3;
    color: var(--accent-deep);
    font-size: 1rem;
}

/* Mobile / tablet: image stacks under the text */
.ssv-hero__media {
    position: relative;
}

    .ssv-hero__media img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: 460px;
        object-fit: cover;
        object-position: center;
    }

    .ssv-hero__media::after {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 28%;
        background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
        pointer-events: none;
    }

@media (min-width: 992px) {
    .ssv-hero > .container {
        display: flex;
        align-items: center;
        min-height: 600px;
    }

    .ssv-hero__content {
        max-width: min(640px, 56vw);
        padding: 3.5rem 0;
    }

    .ssv-hero__media {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 50%;
    }

        .ssv-hero__media img {
            height: 100%;
            max-height: none;
            aspect-ratio: auto;
        }

        .ssv-hero__media::after {
            inset: 0 auto 0 0;
            width: 42%;
            height: auto;
            background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .92) 12%, rgba(255, 255, 255, 0) 100%);
        }
}

@media (max-width: 399.98px) {
    .ssv-hero__eyebrow {
        font-size: .7rem;
        letter-spacing: .1em;
    }

    .ssv-hero__features {
        gap: .55rem;
    }

        .ssv-hero__features li {
            flex-direction: column;
            gap: .4rem;
            padding: .7rem .4rem;
            text-align: center;
            font-size: .78rem;
        }
}

@media (min-width: 1200px) {
    .ssv-hero__features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* 6b. HOME — INTRO CARDS ------------------------------------------------- */
.ssv-intro {
    padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.ssv-intro-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ssv-intro-card__label {
    margin-bottom: .5rem;
    font-size: .85rem;
    font-weight: 600;
}

    .ssv-intro-card__label a {
        color: var(--accent-ink);
    }

        .ssv-intro-card__label a:hover {
            color: var(--primary);
        }

.ssv-intro-card__title {
    font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem);
    margin-bottom: .9rem;
}

    .ssv-intro-card__title a {
        color: var(--primary);
    }

        .ssv-intro-card__title a:hover {
            color: var(--accent-ink);
        }

.ssv-intro-card__text {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.ssv-intro-card__footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.ssv-intro-card__deco {
    position: absolute;
    right: -34px;
    bottom: -34px;
    display: none;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #FFF3E6;
    color: rgba(232, 98, 10, .55);
    font-size: 2.6rem;
}

    .ssv-intro-card__deco .fa {
        position: absolute;
        top: 30px;
        left: 32px;
    }

@media (min-width: 768px) {
    .ssv-intro-card__deco {
        display: block;
    }
}

.ssv-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.ssv-author__photo {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border), 0 4px 10px rgba(11, 37, 69, .12);
}

.ssv-author__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
    font-size: .9rem;
}

.ssv-author__by {
    color: var(--muted);
}

    .ssv-author__by a {
        font-weight: 600;
        color: var(--accent-ink);
    }

        .ssv-author__by a:hover {
            color: var(--primary);
        }

.ssv-author__role {
    color: var(--primary);
    font-weight: 500;
}


/* 6c. HOME — COURSES ----------------------------------------------------- */
.ssv-course {
    display: flex;
    flex-direction: column;
}

.ssv-course__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 8px 18px rgba(11, 37, 69, .14);
    transition: transform .3s var(--ease);
}

.ssv-course:hover .ssv-course__icon {
    transform: scale(1.06) rotate(-3deg);
}

.ssv-course__icon--arts {
    background: linear-gradient(145deg, #FF8A3D, #E8620A);
}

.ssv-course__icon--science {
    background: linear-gradient(145deg, #2CC3A8, #0F8F78);
}

.ssv-course__icon--commerce {
    background: linear-gradient(145deg, #A78BFA, #7048D9);
}

.ssv-course__title {
    font-size: 1.3rem;
    margin-bottom: .35rem;
}

.ssv-course__faculty {
    margin-bottom: .9rem;
    font-size: .88rem;
    font-weight: 500;
    color: var(--muted);
}

.ssv-course__text {
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.ssv-course__cta {
    align-self: flex-start;
    margin-top: auto;
}


/* 6d. HOME — NOTICES + WHY CHOOSE US ------------------------------------ */
.ssv-panel {
    display: flex;
    flex-direction: column;
}

.ssv-panel__head {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding-bottom: 1.1rem;
    margin-bottom: .25rem;
    border-bottom: 1px solid var(--border);
}

.ssv-panel__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FFF1E3;
    color: var(--accent-deep);
    font-size: 1.15rem;
}

.ssv-panel__titles {
    flex: 1 1 auto;
    min-width: 0;
}

    .ssv-panel__titles h2 {
        font-size: 1.35rem;
    }

    .ssv-panel__titles p {
        margin-top: .2rem;
        font-size: .85rem;
        color: var(--muted);
    }

.ssv-panel__more {
    flex: 0 0 auto;
    margin-top: .35rem;
    white-space: nowrap;
}

.ssv-notice-list {
    margin-top: .25rem;
}

    .ssv-notice-list:empty::before {
        content: "No notices have been published yet.";
        display: block;
        padding: 1rem 0;
        color: var(--muted);
    }

.ssv-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

    .ssv-notice:last-child {
        border-bottom: 0;
        padding-bottom: .25rem;
    }

.ssv-notice--empty {
    color: var(--muted);
}

.ssv-date {
    display: flex;
    flex: 0 0 60px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(160deg, #F97316 0%, #DC5A00 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(232, 98, 10, .25);
}

.ssv-date__day {
    font: 700 1.4rem/1 var(--font-body);
}

.ssv-date__month {
    margin-top: .2rem;
    font: 700 .68rem/1 var(--font-body);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ssv-notice__body {
    min-width: 0;
}

.ssv-notice__title {
    font: 600 1rem/1.4 var(--font-body);
    letter-spacing: 0;
    color: var(--primary);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .ssv-notice__title a {
        color: var(--primary);
    }

        .ssv-notice__title a:hover {
            color: var(--accent-ink);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

.ssv-notice__meta {
    margin-top: .15rem;
    font-size: .8rem;
    color: var(--muted);
}

.ssv-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1.25rem;
}

.ssv-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ssv-feature__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.25rem;
}

.ssv-feature__icon--violet {
    background: #EEE9FB;
    color: #6D4FD4;
}

.ssv-feature__icon--peach {
    background: #FFEBDD;
    color: #C25500;
}

.ssv-feature__icon--mint {
    background: #DDF5EE;
    color: #0F7F6B;
}

.ssv-feature h3 {
    font: 600 1.05rem/1.3 var(--font-body);
    letter-spacing: 0;
    margin-bottom: .25rem;
}

.ssv-feature p {
    font-size: .9rem;
    color: var(--muted);
}


/* 6e. HOME — GALLERY SLIDER (native scroll-snap; 1 / 2 / 3 photos per view) ---------- */
.ssv-slider {
    position: relative;
}

.ssv-slider__track {
    display: flex;
    gap: 1.25rem;
    padding: .5rem .25rem 1rem;
    margin: -.5rem -.25rem -1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 .25rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .ssv-slider__track::-webkit-scrollbar {
        display: none;
    }

.ssv-slide {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .ssv-slide {
        flex-basis: calc((100% - 1.25rem) / 2);
    }
}

@media (min-width: 992px) {
    .ssv-slide {
        flex-basis: calc((100% - 2.5rem) / 3);
    }
}

.ssv-slide a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--border);
    box-shadow: var(--shadow-sm);
}

.ssv-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.ssv-slide a:hover img,
.ssv-slide a:focus-visible img {
    transform: scale(1.05);
}

.ssv-scope .ssv-slider__btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: var(--shadow-md);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}

.ssv-scope .ssv-slider__btn--prev {
    left: .6rem;
}

.ssv-scope .ssv-slider__btn--next {
    right: .6rem;
}

.ssv-scope .ssv-slider__btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.ssv-scope .ssv-slider__btn:disabled {
    opacity: .35;
    cursor: default;
}

.ssv-slider.is-static .ssv-slider__btn {
    display: none;
}

.ssv-slider.is-static .ssv-slider__track {
    justify-content: center;
}
/* 1-2 photos: centre them instead of leaving a gap */

@media (min-width: 1300px) {
    .ssv-scope .ssv-slider__btn--prev {
        left: -22px;
    }

    .ssv-scope .ssv-slider__btn--next {
        right: -22px;
    }
}

.ssv-gallery__more {
    margin-top: 2.5rem;
}


/* 6f. HOME — VISION & MISSION ------------------------------------------- */
.ssv-vm {
    position: relative;
    padding: clamp(3.5rem, 2.5rem + 5vw, 6.5rem) 0;
    color: #fff;
    background-color: var(--primary);
    background-image: linear-gradient(90deg, rgba(11, 37, 69, .86) 0%, rgba(11, 37, 69, .62) 100%), var(--vm-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ssv-vm__row {
    margin-top: .25rem;
}

.ssv-vm__col h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
    color: #fff;
}

.ssv-vm__col p {
    max-width: 34rem;
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .92);
}

.ssv-vm__col--divided {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, .25);
}

@media (min-width: 992px) {
    .ssv-vm__col {
        padding-right: 3rem;
    }

    .ssv-vm__col--divided {
        margin-top: 0;
        padding-top: 0;
        padding-left: 3rem;
        padding-right: 15px;
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, .25);
    }
}


/* 6g. HOME — STATISTICS -------------------------------------------------- */
.ssv-stats {
    padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0;
    background: #fff;
}

.ssv-stats__list {
    row-gap: 1.75rem;
}

.ssv-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    text-align: center;
}

.ssv-stat__icon {
    font-size: 1.9rem;
    color: var(--accent-deep);
}

.ssv-stat__body {
    display: flex;
    flex-direction: column;
}

.ssv-stat__num {
    font: 700 clamp(1.9rem, 1.5rem + 2vw, 2.6rem)/1.05 var(--font-head);
    color: var(--primary);
}

.ssv-stat__label {
    margin-top: .3rem;
    font-size: .9rem;
    color: var(--muted);
}

@media (min-width: 768px) {
    .ssv-stat {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        text-align: left;
    }

    .ssv-stat__icon {
        font-size: 2.2rem;
    }
}

@media (min-width: 992px) {
    .ssv-stat + .ssv-stat {
        border-left: 1px solid var(--border);
    }
}


/* 7. FOOTER -------------------------------------------------------------- */
.ssv-footer {
    padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    background: var(--primary);
    color: rgba(255, 255, 255, .8);
    font-size: .92rem;
}

    .ssv-footer a {
        color: rgba(255, 255, 255, .8);
    }

        .ssv-footer a:hover,
        .ssv-footer a:focus {
            color: #fff;
        }

.ssv-footer__col {
    margin-bottom: 2rem;
}

.ssv-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ssv-footer__logo {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 5px;
    border-radius: 16px;
    background: #fff;
    object-fit: contain;
}

.ssv-footer__brand-text {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.ssv-footer__name {
    font: 700 1.2rem/1.25 var(--font-head);
    color: #fff;
}

.ssv-footer__addr {
    font-size: .88rem;
    color: rgba(255, 255, 255, .75);
}

.ssv-footer__title {
    margin-bottom: 1.1rem;
    font: 600 1rem/1.3 var(--font-body);
    letter-spacing: 0;
    color: #fff;
}

.ssv-footer__list li {
    margin-bottom: .65rem;
}

.ssv-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: .85rem;
}

.ssv-footer__contact .fa {
    flex: 0 0 1.1rem;
    margin-top: .2rem;
    text-align: center;
    color: #FFB067;
}

.ssv-footer__contact strong {
    font-weight: 600;
    color: #fff;
}

.ssv-footer__contact li > span,
.ssv-footer__contact li > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ssv-footer .ssv-footer__accent {
    font-weight: 700;
    letter-spacing: .03em;
    color: #FFB067;
}

    .ssv-footer .ssv-footer__accent:hover {
        color: #fff;
    }

.ssv-footer .logout-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: #FFB067;
    cursor: pointer;
}

    .ssv-footer .logout-button:hover {
        color: #fff;
    }

@media (min-width: 992px) {
    .ssv-footer__col + .ssv-footer__col {
        padding-left: 2rem;
        border-left: 1px solid rgba(255, 255, 255, .12);
    }
}

.ssv-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: .85rem;
}

.ssv-footer__copy {
    color: rgba(255, 255, 255, .72);
}

.ssv-social {
    display: flex;
    gap: .6rem;
}

.ssv-footer .ssv-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}

    .ssv-footer .ssv-social a:hover {
        background: var(--btn-bg);
        transform: translateY(-2px);
    }


/* 8. LEGACY HELPERS — moved out of Site.Master's inline <style>.
      Inner pages (NoticeBoard, Gallery, Faculty ...) may still use these. ---- */
.my-notice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.my-notice-date-box {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background-color: #ff8a00;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.my-notice-day {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: white !important;
}

.my-notice-month {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: white !important;
}

.my-notice-body {
    padding-left: 20px;
}

.my-notice-title {
    font-size: 18px;
    font-weight: 700;
}

    .my-notice-title a {
        color: #384158;
    }

.my-notice-subtitle {
    font-size: 14px;
    color: #6c6a74;
}

.accordions .accordion_container:not(:last-child) {
    margin-bottom: 8px !important;
}

.ekko-lightbox .ekko-lightbox-nav-overlay a {
    opacity: 1 !important;
    visibility: visible !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
}


/* 9. REDUCED MOTION ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .ssv-scope *,
    .ssv-scope *::before,
    .ssv-scope *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .ssv-card:hover,
    .ssv-scope .ssv-btn:hover,
    .ssv-course:hover .ssv-course__icon {
        transform: none;
    }

    /* Show the announcement as static, wrapping text instead of a scrolling ticker */
    .ssv-ticker__track {
        animation: none !important;
        white-space: normal;
        display: block;
    }

    .ssv-ticker__item {
        padding-right: 0;
    }

    .ssv-ticker__item--clone {
        display: none;
    }

    .ssv-ticker__viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }
}
