/* ==========================================================================
   Eduplus School Website - Design 1 (site)
   1. Tokens   2. Base   3. Header   4. Footer   5. Home components
   6. Inner pages
   ========================================================================== */

/* 1. Tokens
   --primary-color is overridden per school from the "navbar_bg_color"
   setting (see layouts/site.blade.php); every shade below derives from it. */
:root {
    --primary-color: #24518f;
    --primary-dark: color-mix(in srgb, var(--primary-color) 78%, #000);
    --primary-soft: color-mix(in srgb, var(--primary-color) 8%, #fff);
    --primary-line: color-mix(in srgb, var(--primary-color) 20%, #fff);
    --hover-color: var(--primary-dark);

    --accent-color: #d98e1f;
    --accent-soft: #fdf4e6;
    --secondary-color: #64748b;
    --success-color: #2f8a5b;
    --info-color: #2b8ea6;
    --warning-color: #e0a92e;
    --danger-color: #c94a4a;

    --dark-color: #15202f;
    --body-color: #3a4454;
    --muted-text: #6b7585;
    --light-color: #f4f6fa;
    --body-bg: #ffffff;
    --border-color: #e4e8ef;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #0f1b2d;
    --white: #ffffff;

    /* Accent palette: cards, badges and icons cycle through these */
    --c-blue: #2a5bb8;
    --c-green: #1f9468;
    --c-orange: #e57a24;
    --c-red: #d03246;
    --c-purple: #6a3fc8;
    --rainbow: linear-gradient(90deg, #2a5bb8, #0e9aa7, #1f9468, #e5a024, #e57a24, #d03246);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --border-radius-sm: var(--radius-sm);
    --border-radius-md: var(--radius);
    --border-radius-lg: var(--radius-lg);
    --border-radius-xl: 18px;
    --border-radius-pill: 999px;
    --border-radius-circle: 50%;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 6px 16px rgba(16, 24, 40, .06);
    --shadow-lg: 0 14px 34px rgba(16, 24, 40, .14);
    --box-shadow: var(--shadow);
    --transition: all .2s ease;
    --transition-base: all .2s ease;

    --font-base: "Anek Bangla", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.65;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --spacing-xs: .25rem;
    --spacing-sm: .5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --section-y: clamp(2.25rem, 4vw, 3.25rem);
}

/* 2. Base */
body {
    font-family: var(--font-base);
    color: var(--body-color);
    background-color: var(--body-bg);
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    top: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin-bottom: .75rem;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--hover-color); }

img { max-width: 100%; }

::selection { background: var(--primary-line); }

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn {
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius);
    padding: .55rem 1.15rem;
    transition: var(--transition);
}
.btn-sm { padding: .35rem .8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: .75rem 1.5rem; }

.btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline-primary:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn-accent { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent-color) 85%, #000); color: #fff; }
.btn-success { background-color: var(--success-color); border-color: var(--success-color); }
.btn-info { background-color: var(--info-color); border-color: var(--info-color); }
.btn-warning { background-color: var(--warning-color); border-color: var(--warning-color); }
.btn-danger { background-color: var(--danger-color); border-color: var(--danger-color); }

.badge {
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius-pill);
}
.badge-primary { background-color: var(--primary-color); }
.badge-success { background-color: var(--success-color); }
.badge-info { background-color: var(--info-color); }
.badge-warning { background-color: var(--warning-color); }
.badge-danger { background-color: var(--danger-color); }

.form-control,
.form-select {
    border-color: var(--border-color);
    border-radius: var(--radius);
    padding: .55rem .9rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .2rem var(--primary-line);
}
.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
    margin-bottom: .4rem;
}

.fade-in { animation: fadeIn .5s ease-in; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.goog-te-banner-frame,
.skiptranslate > iframe { display: none !important; }

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

/* 3. Header -------------------------------------------------------------- */
.sh-topbar {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, .78);
    font-size: .8125rem;
}
.sh-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    min-height: 36px;
}
.sh-topbar-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 1.25rem;
}
.sh-topbar a { color: inherit; }
.sh-topbar a:hover { color: #fff; }
.sh-topbar i {
    color: var(--accent-color);
    font-size: .75rem;
    margin-right: .4rem;
}

.lang-switcher {
    display: inline-flex;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
}
.lang-switcher button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font-size: .72rem;
    font-weight: 600;
    padding: .15rem .6rem;
    cursor: pointer;
}
.lang-switcher button.lang-active { background: #fff; color: var(--primary-color); }
.lang-switcher button.lang-inactive:hover { background: rgba(255, 255, 255, .15); }

.sh-brand {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}
.sh-brand .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: .9rem;
    padding-bottom: .9rem;
}
.sh-logo { flex-shrink: 0; }
.sh-logo img {
    height: 72px;
    width: auto;
    display: block;
}
.sh-identity { min-width: 0; }
.sh-name {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
    margin: 0;
}
.sh-name a { color: inherit; }
.sh-motto {
    margin: .2rem 0 0;
    color: var(--muted-text);
    font-size: .92rem;
}
.sh-brand-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}
.sh-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--dark-color);
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
}
.sh-chip i { color: var(--primary-color); font-size: .8rem; }
.sh-chip:hover {
    border-color: var(--primary-color);
    background: var(--primary-soft);
    color: var(--primary-color);
}

.sh-nav {
    background: var(--primary-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 12px rgba(15, 27, 45, .12);
}
.sh-nav .navbar-nav { gap: .15rem; }
.sh-nav .nav-link {
    color: rgba(255, 255, 255, .92);
    font-weight: 500;
    font-size: .97rem;
    padding: .85rem .85rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.sh-nav .nav-link i { font-size: .85em; opacity: .85; }
.sh-nav .nav-link:hover,
.sh-nav .nav-link:focus,
.sh-nav .show > .nav-link {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}
.sh-nav .dropdown-toggle::after { margin-left: .35rem; opacity: .7; }
.sh-nav .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .4rem;
    margin-top: 0;
    min-width: 230px;
}
.sh-nav .dropdown-item {
    border-radius: var(--radius-sm);
    padding: .5rem .75rem;
    font-size: .94rem;
    color: var(--body-color);
    white-space: normal;
}
.sh-nav .dropdown-item i { width: 1.1rem; margin-right: .35rem; color: var(--primary-color); opacity: .8; }
.sh-nav .dropdown-item:hover,
.sh-nav .dropdown-item:focus {
    background: var(--primary-soft);
    color: var(--primary-color);
}
.sh-nav-label {
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.sh-nav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .45);
    padding: .3rem .55rem;
    color: #fff;
    margin: .45rem 0;
}
.sh-nav .navbar-toggler:focus { box-shadow: 0 0 0 .15rem rgba(255, 255, 255, .35); }
.sh-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.3em;
    height: 1.3em;
}

.sh-notice {
    background: var(--primary-soft);
    border-bottom: 1px solid var(--primary-line);
}
.sh-notice .container {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 42px;
}
.sh-notice-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--accent-color);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .65rem;
    border-radius: var(--radius-sm);
}
.sh-notice marquee {
    flex: 1;
    min-width: 0;
    font-size: .95rem;
}
.sh-notice marquee a {
    color: var(--dark-color);
    font-weight: 500;
    margin-right: 2.5rem;
}
.sh-notice marquee a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    margin-right: .55rem;
    vertical-align: middle;
}
.sh-notice marquee a:hover { color: var(--primary-color); }

@media (max-width: 991.98px) {
    .sh-brand .container { padding-top: .65rem; padding-bottom: .65rem; gap: .75rem; }
    .sh-logo img { height: 52px; }
    .sh-name { font-size: 1.1rem; }
    .sh-motto { font-size: .8rem; }
    .sh-nav .navbar-collapse { border-top: 1px solid rgba(255, 255, 255, .15); padding: .35rem 0 .75rem; }
    .sh-nav .nav-link { padding: .6rem .5rem; border-radius: var(--radius-sm); }
    .sh-nav .dropdown-menu { border: 0; box-shadow: none; background: rgba(255, 255, 255, .08); }
    .sh-nav .dropdown-item { color: rgba(255, 255, 255, .9); }
    .sh-nav .dropdown-item i { color: inherit; }
    .sh-nav .dropdown-item:hover { background: rgba(255, 255, 255, .12); color: #fff; }
}
@media (max-width: 575.98px) {
    .sh-topbar .container { justify-content: center; }
    .sh-topbar-group { justify-content: center; }
    .sh-motto { display: none; }
    .sh-notice-label span { display: none; }
}

/* 4. Footer -------------------------------------------------------------- */
.sf {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, .7);
    font-size: .94rem;
    padding-top: 3.25rem;
    position: relative;
}
.sf::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}
.sf a { color: rgba(255, 255, 255, .7); }
.sf a:hover { color: #fff; }
.sf-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.sf-brand img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius);
    padding: 3px;
}
.sf-brand-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}
.sf-desc { max-width: 380px; margin-bottom: 1.25rem; }
.sf-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.sf-links,
.sf-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sf-links li { margin-bottom: .45rem; }
.sf-links a { display: inline-flex; align-items: center; gap: .5rem; }
.sf-links a i { font-size: .65rem; color: var(--accent-color); }
.sf-contact li {
    display: flex;
    gap: .75rem;
    margin-bottom: .8rem;
    line-height: 1.55;
}
.sf-contact i {
    color: var(--accent-color);
    width: 1rem;
    margin-top: .3rem;
    flex-shrink: 0;
}
.sf-social { display: flex; gap: .5rem; }
.sf-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}
.sf-social a:hover { background: var(--primary-color); color: #fff; }
.sf-visitors {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: .35rem 1rem;
}
.sf-visitors div {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
}
.sf-visitors div + div { border-top: 1px solid rgba(255, 255, 255, .08); }
.sf-visitors strong { color: #fff; font-weight: 600; }
.sf-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 2.5rem;
    padding: 1.1rem 0;
    font-size: .875rem;
}
.sf-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1rem;
}
.sf-bottom a { color: #fff; font-weight: 500; }
@media (max-width: 767.98px) {
    .sf { padding-top: 2.5rem; }
    .sf-bottom .container { justify-content: center; text-align: center; }
}

/* 5. Home components ----------------------------------------------------- */
.hp-section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.hp-section--muted { background: var(--light-color); }
.hp-section--flush-top { padding-top: 0; }

.hp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin-bottom: 1.5rem;
}
.hp-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: .3rem;
}
.hp-eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.hp-title {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.25;
    margin: 0;
}
.hp-sub {
    color: var(--muted-text);
    font-size: .95rem;
    margin: .35rem 0 0;
}
.hp-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--primary-color);
    white-space: nowrap;
}
.hp-link i { font-size: .78em; transition: transform .2s ease; }
.hp-link:hover i { transform: translateX(3px); }

.hp-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Highlight buttons: gradient pills */
.hp-actions { padding: 1.25rem 0; background: var(--light-color); }
.hp-actions--overlap {
    background: linear-gradient(to bottom, transparent 2.5rem, var(--light-color) 2.5rem);
    padding: 0 0 1.25rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 3;
}
.hp-actions--overlap .hp-actions-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    border-top: 4px solid transparent;
    border-image: var(--rainbow) 1;
    border-image-slice: 1 0 0 0;
}
.hp-actions-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
}
.hp-pill {
    --g1: #1e3c72; --g2: #2a5298; --glow: 42, 82, 152;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    flex: 0 1 auto;
    min-width: 190px;
    padding: .5rem 1.25rem .5rem .5rem;
    border-radius: 999px;
    background-image: linear-gradient(120deg, var(--g1) 0%, var(--g2) 100%);
    color: #fff;
    font-weight: 600;
    font-size: .97rem;
    line-height: 1.25;
    box-shadow: 0 4px 12px rgba(var(--glow), .3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hp-pill:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(var(--glow), .42);
}
.hp-pill-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}
.hp-pill-text { text-align: left; }
.hp-pill--blue   { --g1: #1e3c72; --g2: #2a5298; --glow: 42, 82, 152; }
.hp-pill--green  { --g1: #0b8a55; --g2: #2fb88a; --glow: 11, 163, 96; }
.hp-pill--orange { --g1: #ef5f35; --g2: #f0a443; --glow: 244, 107, 69; }
.hp-pill--red    { --g1: #c40f26; --g2: #ea384d; --glow: 211, 16, 39; }
.hp-pill--purple { --g1: #6a11cb; --g2: #3d6ef0; --glow: 106, 17, 203; }

/* Hero rows: slider beside messages / notices */
.hp-hero { padding: 1.5rem 0 var(--section-y); background: var(--light-color); }
.hp-actions + .hp-hero { padding-top: 0; }
.hp-hero-row { --hero-h: 460px; }
.hp-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0f1b2d;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    max-height: 540px;
    width: 100%;
}
.hp-slider .carousel-inner,
.hp-slider .carousel-item { height: 100%; }
.hp-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-slider-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 3rem 1.5rem 1.4rem;
    background: linear-gradient(to top, rgba(8, 15, 28, .85), rgba(8, 15, 28, 0));
    color: #fff;
}
.hp-slider-caption h3 {
    color: #fff;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    margin: 0;
}
.hp-slider-caption p {
    margin: .3rem 0 0;
    font-size: .92rem;
    opacity: .88;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-slider .carousel-indicators {
    margin: 0;
    left: auto;
    right: 1.25rem;
    bottom: 1.1rem;
    justify-content: flex-end;
}
.hp-slider .carousel-indicators [data-bs-target] {
    width: 18px;
    height: 4px;
    border-radius: 4px;
    border: 0;
    margin: 0 2px;
    opacity: .5;
}
.hp-slider .carousel-indicators .active { opacity: 1; width: 28px; }
.hp-slider-ctrl {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--dark-color);
    opacity: 0;
    margin: 0 .85rem;
    transition: var(--transition);
}
.hp-slider:hover .hp-slider-ctrl { opacity: 1; }
.hp-slider-ctrl:hover { background: #fff; color: var(--primary-color); }
.hp-slider-ctrl i { font-size: .95rem; }

@media (min-width: 992px) {
    .hp-hero-row .hp-slider { aspect-ratio: auto; height: var(--hero-h); max-height: none; }
    .hp-hero-side { height: var(--hero-h); }
}

/* Leadership message cards */
.hp-leaders {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}
.hp-leader {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: .9rem;
    flex: 1 1 0;
    min-height: 0;
}
.hp-leaders > .hp-leader { min-height: 128px; }
.hp-leader-photo {
    width: 96px;
    height: 112px;
    border-radius: var(--radius);
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;
    background: var(--light-color);
}
.hp-leader-body { min-width: 0; }
.hp-role {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    padding: .15rem .5rem;
    margin-bottom: .35rem;
}
.hp-leader-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 .2rem;
}
.hp-leader-text {
    font-size: .88rem;
    color: var(--muted-text);
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-leaders-grid .hp-leader { height: 100%; padding: 1.1rem; }
.hp-leaders-grid .hp-leader-photo { width: 120px; height: 140px; }
.hp-leaders-grid .hp-leader-text { -webkit-line-clamp: 3; }

/* People grid (bottom messages) */
.hp-person {
    display: flex;
    gap: .9rem;
    align-items: center;
    padding: .85rem;
    height: 100%;
    color: inherit;
    transition: var(--transition);
}
.hp-person:hover { border-color: var(--primary-line); box-shadow: var(--shadow); color: inherit; }
.hp-person-photo {
    width: 72px;
    height: 84px;
    border-radius: var(--radius);
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;
    background: var(--light-color);
}
.hp-person-body { min-width: 0; line-height: 1.4; }
.hp-person-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}
.hp-person-role { font-size: .84rem; color: var(--primary-color); font-weight: 600; }
.hp-person-note {
    font-size: .82rem;
    color: var(--muted-text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-person-more {
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    gap: .3rem;
    align-items: center;
    margin-top: .15rem;
}

/* Generic marquee track (stars, people ticker) */
.hp-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.hp-marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: .35rem 0 .75rem;
    animation: hp-marquee var(--dur, 40s) linear infinite;
}
.hp-marquee:hover .hp-marquee-track { animation-play-state: paused; }
@keyframes hp-marquee { to { transform: translateX(calc(-50% - .5rem)); } }
.hp-marquee .hp-person { width: 320px; flex-shrink: 0; }

/* Notice board */
.hp-notice {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .7rem .85rem;
    border-radius: var(--radius);
    color: var(--body-color);
    transition: background .2s ease;
}
.hp-notice:hover { background: var(--primary-soft); color: var(--body-color); }
.hp-date {
    width: 50px;
    height: 54px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
}
.hp-date b { font-size: 1.2rem; font-weight: 700; }
.hp-date small { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hp-notice-body { min-width: 0; flex: 1; }
.hp-notice-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.4;
    font-size: .97rem;
}
.hp-notice:hover .hp-notice-title { color: var(--primary-color); }
.hp-notice-meta { font-size: .8rem; color: var(--muted-text); margin-top: .15rem; display: flex; align-items: center; gap: .5rem; }
.hp-new {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--danger-color);
    color: #fff;
    border-radius: 4px;
    padding: .05rem .35rem;
}
.hp-notice-arrow { color: var(--muted-text); font-size: .75rem; opacity: .5; }
.hp-notice + .hp-notice { border-top: 1px dashed var(--border-color); }
.hp-notice:hover + .hp-notice { border-top-color: transparent; }

.hp-notice-cols { padding: .5rem; }
.hp-notice-scroll {
    height: 400px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
}
@media (max-width: 767.98px) { .hp-notice-scroll { height: 320px; } }
.hp-notice-cols .row > div + div { border-left: 1px solid var(--border-color); }
@media (max-width: 767.98px) {
    .hp-notice-cols .row > div + div { border-left: 0; border-top: 1px dashed var(--border-color); }
}

.hp-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.hp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}
.hp-panel-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}
.hp-panel-title i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}
.hp-panel-body {
    flex: 1;
    min-height: 320px;
    overflow: hidden;
    position: relative;
    padding: 0 .4rem;
}
.hp-ticker-list { position: absolute; left: .4rem; right: .4rem; top: 0; }

/* Video banner */
.hp-video {
    position: relative;
    height: clamp(320px, 42vw, 500px);
    overflow: hidden;
    background: #0f1b2d;
    color: #fff;
}
.hp-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hp-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 15, 28, .82) 0%, rgba(8, 15, 28, .55) 50%, rgba(8, 15, 28, .2) 100%);
}
.hp-video .container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hp-video .hp-eyebrow { color: #f3c37a; }
.hp-video-title {
    color: #fff;
    font-size: clamp(1.7rem, 3.6vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 760px;
    margin: 0 0 .6rem;
}
.hp-video-text {
    max-width: 620px;
    font-size: clamp(.95rem, 1.3vw, 1.08rem);
    color: rgba(255, 255, 255, .85);
    margin-bottom: 1.4rem;
}
.hp-video-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hp-video--hero { height: clamp(380px, 46vw, 560px); }
.hp-video--hero .container { padding-bottom: 2rem; }

/* About / welcome */
.hp-about-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}
.hp-about-media img { width: 100%; display: block; max-height: 440px; object-fit: cover; }
.hp-about-text { margin: 1rem 0 1.25rem; }
.hp-about-text p { margin: 0; }
.hp-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.hp-fact {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    background: var(--primary-soft);
    border-radius: var(--radius);
    line-height: 1.25;
}
.hp-fact i { color: var(--primary-color); }
.hp-fact small { display: block; color: var(--muted-text); font-size: .74rem; }
.hp-fact strong { color: var(--dark-color); font-size: .95rem; }

/* Visitor stats + results chart */
.hp-box { padding: 1.25rem; height: 100%; }
.hp-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}
.hp-box-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
}
.hp-box-title i { color: var(--primary-color); }
.hp-visit {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 0;
}
.hp-visit + .hp-visit { border-top: 1px solid var(--border-color); }
.hp-visit-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary-color);
}
.hp-visit-icon.is-info { background: color-mix(in srgb, var(--info-color) 12%, #fff); color: var(--info-color); }
.hp-visit-icon.is-success { background: color-mix(in srgb, var(--success-color) 12%, #fff); color: var(--success-color); }
.hp-visit-label { font-size: .84rem; color: var(--muted-text); }
.hp-visit-value { font-size: 1.35rem; font-weight: 700; color: var(--dark-color); line-height: 1.2; margin-left: auto; }
.hp-clock {
    margin-top: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .55rem;
    border-radius: var(--radius);
    background: var(--light-color);
    font-size: .88rem;
    font-weight: 600;
    color: var(--dark-color);
}
.hp-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .25rem;
    background: var(--light-color);
    border-radius: var(--radius);
    border: 0;
}
.hp-tabs .nav-link {
    border: 0;
    border-radius: var(--radius-sm);
    padding: .35rem .8rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--muted-text);
    background: transparent;
}
.hp-tabs .nav-link.active { background: #fff; color: var(--primary-color); box-shadow: var(--shadow-sm); }
.hp-chart { min-height: 300px; }

/* Stars of institution */
.hp-star {
    width: 210px;
    flex-shrink: 0;
    text-align: center;
    overflow: hidden;
    padding-bottom: 1rem;
}
.hp-star-band { height: 64px; background-size: 200% 200%; }
.hp-star-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 4px solid #fff;
    box-shadow: var(--shadow);
    margin: -50px auto .6rem;
    display: block;
    position: relative;
    background: #fff;
}
.hp-star-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 .75rem .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-star-uni {
    font-size: .82rem;
    color: var(--muted-text);
    margin: 0 .75rem .55rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-star-batch {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .76rem;
    font-weight: 700;
    color: #8a5a00;
    background: #fff4d6;
    border-radius: 999px;
    padding: .2rem .65rem;
}

/* Quick access */
.hp-quick {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    height: 100%;
    color: var(--body-color);
    border-top: 3px solid var(--c);
    transition: var(--transition);
}
.hp-quick:hover { box-shadow: var(--shadow); color: var(--body-color); }
.hp-quick-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--c) 12%, #fff);
    color: var(--c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.hp-quick h3 { font-size: 1.05rem; margin: 0 0 .1rem; }
.hp-quick p { font-size: .86rem; color: var(--muted-text); margin: 0; line-height: 1.4; }
.hp-quick .hp-link { margin-top: .35rem; font-size: .84rem; }

/* News & events */
.hp-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.hp-filter {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--body-color);
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .85rem;
    font-weight: 600;
    transition: var(--transition);
}
.hp-filter:hover { border-color: var(--primary-color); color: var(--primary-color); }
.hp-filter.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.hp-events-nav { display: flex; gap: .4rem; }
.hp-round-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--dark-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.hp-round-btn:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.hp-events-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: .25rem;
}
.hp-events-track::-webkit-scrollbar { display: none; }
@media (max-width: 991.98px) { .hp-events-track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (max-width: 575.98px) { .hp-events-track { grid-auto-columns: 85%; } }
.hp-event {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--body-color);
    transition: var(--transition);
}
.hp-event:hover { box-shadow: var(--shadow); color: var(--body-color); }
.hp-event-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light-color); }
.hp-event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hp-event:hover .hp-event-media img { transform: scale(1.04); }
.hp-event .hp-date {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: #fff;
    border: 0;
    box-shadow: var(--shadow);
}
.hp-event-cat {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: rgba(15, 27, 45, .72);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    padding: .2rem .6rem;
    backdrop-filter: blur(4px);
}
.hp-event-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.hp-event-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-event:hover .hp-event-title { color: var(--primary-color); }
.hp-event-text {
    font-size: .9rem;
    color: var(--muted-text);
    margin: 0 0 .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-event-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .82rem;
    color: var(--muted-text);
}
.hp-event-foot i { color: var(--accent-color); margin-right: .3rem; }

/* Achievements band */
.hp-achieve {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}
.hp-achieve::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 18px 18px;
}
.hp-achieve .container { position: relative; }
.hp-achieve .hp-eyebrow { color: #f3c37a; }
.hp-achieve .hp-title { color: #fff; }
.hp-stat {
    display: flex;
    align-items: center;
    gap: .9rem;
}
.hp-stat-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #f3c37a;
}
.hp-stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: #fff; }
.hp-stat-label { font-size: .88rem; color: rgba(255, 255, 255, .78); line-height: 1.35; }

/* Testimonials */
.hp-quote { padding: 1.25rem; height: 100%; display: flex; flex-direction: column; }
.hp-quote-mark { color: var(--primary-line); font-size: 1.6rem; line-height: 1; margin-bottom: .5rem; }
.hp-quote-text { font-size: .95rem; color: var(--body-color); margin-bottom: 1rem; }
.hp-quote-person { margin-top: auto; display: flex; align-items: center; gap: .75rem; padding-top: .9rem; border-top: 1px solid var(--border-color); }
.hp-quote-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hp-quote-person strong { display: block; color: var(--dark-color); font-size: .95rem; line-height: 1.3; }
.hp-quote-person small { color: var(--muted-text); }

@media (max-width: 991.98px) {
    .hp-hero { padding-top: 1rem; }
    .hp-leaders { overflow: visible; height: auto; }
    .hp-leaders > .hp-leader { flex: none; min-height: 0; }
    .hp-panel-body { min-height: 360px; }
}
@media (max-width: 575.98px) {
    .hp-leader { align-items: flex-start; }
    .hp-leader-photo { width: 76px; height: 90px; }
    .hp-leaders-grid .hp-leader-photo { width: 88px; height: 104px; }
    .hp-actions-bar { gap: .5rem; }
    .hp-actions--overlap .hp-actions-bar { padding: .75rem; }
    .hp-pill { flex: 1 1 calc(50% - .5rem); min-width: 0; padding: .4rem .7rem .4rem .4rem; font-size: .86rem; justify-content: flex-start; }
    .hp-pill-icon { width: 30px; height: 30px; font-size: .8rem; }
    .hp-stat-value { font-size: 1.5rem; }
    .hp-marquee .hp-person { width: 280px; }
}

/* 5b. Colour accents ------------------------------------------------------ */
/* Children of .hp-cycle get a rotating --c that cards use for borders/badges. */
.hp-cycle > :nth-child(5n+1), .hp-c-0 { --c: var(--c-blue); }
.hp-cycle > :nth-child(5n+2), .hp-c-1 { --c: var(--c-green); }
.hp-cycle > :nth-child(5n+3), .hp-c-2 { --c: var(--c-orange); }
.hp-cycle > :nth-child(5n+4), .hp-c-3 { --c: var(--c-red); }
.hp-cycle > :nth-child(5n+5), .hp-c-4 { --c: var(--c-purple); }

/* Header */
.sh-brand {
    background:
        radial-gradient(color-mix(in srgb, var(--primary-color) 12%, transparent) 1px, transparent 1px) 0 0 / 16px 16px,
        linear-gradient(90deg, var(--primary-soft) 0%, #fff 45%, #fff 60%, var(--accent-soft) 100%);
}
.sh-logo img { filter: drop-shadow(0 3px 6px rgba(15, 27, 45, .15)); }
.sh-chip { box-shadow: var(--shadow-sm); }
.sh-chip:nth-child(2) i { color: var(--c-green); }
.sh-nav {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color) 55%, var(--primary-dark));
    border-bottom: 3px solid transparent;
    border-image: var(--rainbow) 1;
}
@media (min-width: 992px) {
    .sh-nav .nav-link::after {
        content: '';
        position: absolute;
        left: .85rem;
        right: .85rem;
        bottom: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: var(--accent-color);
        transform: scaleX(0);
        transition: transform .2s ease;
    }
    .sh-nav .nav-link:hover::after,
    .sh-nav .show > .nav-link::after { transform: scaleX(1); }
    .sh-nav .dropdown-toggle::after { position: static; height: auto; background: none; transform: none; border-radius: 0; }
    .sh-nav .dropdown-menu { border-top: 3px solid var(--accent-color); }
}
.sh-nav .dropdown-item { border-left: 3px solid transparent; }
.sh-nav .dropdown-item:hover { border-left-color: var(--accent-color); }
.sh-notice { background: linear-gradient(90deg, var(--accent-soft), var(--primary-soft) 30%); }
.sh-notice-label {
    background: linear-gradient(120deg, #c40f26, #ea384d);
    box-shadow: 0 3px 8px rgba(211, 16, 39, .3);
}
.sh-notice-label i { animation: hp-wiggle 2.4s ease-in-out infinite; }
@keyframes hp-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }

/* Section headings: coloured title with gradient bar */
.hp-title { color: var(--primary-dark); position: relative; padding-bottom: .55rem; }
.hp-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}
.hp-head--center .hp-title::after { left: 50%; transform: translateX(-50%); }
.hp-achieve .hp-title { color: #fff; }
.hp-achieve .hp-title::after { background: linear-gradient(90deg, #f3c37a, #fff); }
.hp-section--muted {
    background:
        radial-gradient(color-mix(in srgb, var(--primary-color) 9%, transparent) 1px, transparent 1px) 0 0 / 22px 22px,
        var(--light-color);
}

/* Leaders & people: coloured left border */
.hp-leader { border-left: 4px solid var(--c, var(--primary-color)); }
.hp-leader .hp-role { background: color-mix(in srgb, var(--c, var(--primary-color)) 12%, #fff); color: var(--c, var(--primary-color)); }
.hp-leader-photo { box-shadow: 0 0 0 3px #fff, 0 0 0 5px color-mix(in srgb, var(--c, var(--primary-color)) 35%, #fff); }
.hp-person { border-left: 4px solid var(--c, var(--primary-color)); }
.hp-person-role, .hp-person-more { color: var(--c, var(--primary-color)); }

/* Notices: colourful date badges */
.hp-notice .hp-date {
    background: linear-gradient(140deg, var(--c, var(--primary-color)), color-mix(in srgb, var(--c, var(--primary-color)) 65%, #fff));
    border: 0;
    color: #fff;
    box-shadow: 0 3px 8px color-mix(in srgb, var(--c, var(--primary-color)) 30%, transparent);
}
.hp-notice:hover { background: color-mix(in srgb, var(--c, var(--primary-color)) 7%, #fff); }
.hp-notice-arrow { color: var(--c, var(--primary-color)); }
.hp-notice-cols { border-top: 4px solid transparent; border-image: var(--rainbow) 1; border-image-slice: 1 0 0 0; }
.hp-panel-head {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-color));
    border-bottom: 3px solid var(--accent-color);
}
.hp-panel-title { color: #fff; }
.hp-panel-title i { background: rgba(255, 255, 255, .18); }
.hp-panel-head .hp-link { color: #fff; background: rgba(255, 255, 255, .15); padding: .25rem .7rem; border-radius: 999px; font-size: .82rem; }
.hp-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
    animation: hp-pulse 1.8s infinite;
}
@keyframes hp-pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* About: offset colour frame and coloured facts */
.hp-about-media { overflow: visible; box-shadow: none; background: transparent; }
.hp-about-media::before {
    content: '';
    position: absolute;
    inset: 18px -14px -14px 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: 0;
}
.hp-about-media img { position: relative; z-index: 1; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; }
.hp-fact { background: color-mix(in srgb, var(--c) 9%, #fff); border-left: 3px solid var(--c); }
.hp-fact i { color: var(--c); }

/* Stats boxes */
.hp-box { border-top: 4px solid var(--c, var(--primary-color)); }

/* Quick access: full gradient tiles */
.hp-quick {
    background: linear-gradient(135deg, var(--c, var(--primary-color)), color-mix(in srgb, var(--c, var(--primary-color)) 70%, #fff));
    border: 0;
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 28%, transparent);
}
.hp-quick:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 38%, transparent); }
.hp-quick h3 { color: #fff; }
.hp-quick p { color: rgba(255, 255, 255, .88); }
.hp-quick .hp-link { color: #fff; }
.hp-quick-icon { background: rgba(255, 255, 255, .2); color: #fff; }

/* Events */
.hp-event { border-bottom: 3px solid var(--c, var(--primary-color)); }
.hp-event .hp-date { color: var(--c, var(--primary-color)); }
.hp-event-cat { background: var(--c, rgba(15, 27, 45, .72)); }
.hp-event:hover .hp-event-title { color: var(--c, var(--primary-color)); }

/* Achievements: one colour per stat */
.hp-stat-icon { background: var(--c); color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }

/* Testimonials */
.hp-quote { border-top: 4px solid var(--c, var(--primary-color)); }
.hp-quote-mark { color: var(--c, var(--primary-color)); opacity: .45; }

/* Footer */
.sf::before { height: 4px; background: var(--rainbow); }
.sf-heading { position: relative; padding-bottom: .5rem; }
.sf-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--accent-color); }
.sf-social a:nth-child(1):hover { background: #1877f2; }
.sf-social a:nth-child(2):hover { background: #ff0000; }
.sf-social a:nth-child(3):hover { background: #0a66c2; }

/* Back to top */
.hp-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1030;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.hp-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* 6. Inner pages ---------------------------------------------------------- */

/* Page header band */
.ph {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 2.25rem 0 2.5rem;
    background:
        radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(120deg, var(--primary-dark) 0%, var(--primary-color) 60%, color-mix(in srgb, var(--primary-color) 70%, var(--accent-color)) 100%);
    border-bottom: 4px solid transparent;
    border-image: var(--rainbow) 1;
}
.ph::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    right: -90px;
    top: -150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.ph .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.5rem; }
.ph-main { flex: 1; min-width: 0; }
.ph-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    list-style: none;
    padding: 0;
    margin: 0 0 .6rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .75);
}
.ph-crumbs a { color: rgba(255, 255, 255, .9); }
.ph-crumbs a:hover { color: #fff; }
.ph-crumbs li + li::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .7rem; margin-right: .35rem; opacity: .7; }
.ph-crumbs li:last-child { color: #fff; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-title {
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}
.ph-desc {
    color: rgba(255, 255, 255, .86);
    max-width: 720px;
    margin: .5rem 0 0;
    font-size: 1rem;
}
.ph-action { margin-top: 1rem; }
.ph-badge {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    transform: rotate(-6deg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}
.ph-badge img { max-width: 72px; max-height: 72px; transform: rotate(6deg); border-radius: 12px; background: #fff; padding: 4px; }
.ph-badge i { transform: rotate(6deg); }
@media (max-width: 767.98px) {
    .ph { padding: 1.5rem 0 1.75rem; }
    .ph-badge { display: none; }
    .ph-crumbs li:last-child { max-width: 30ch; }
}

/* Page body */
.pg {
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 var(--section-y);
    background:
        radial-gradient(color-mix(in srgb, var(--primary-color) 7%, transparent) 1px, transparent 1px) 0 0 / 22px 22px,
        var(--light-color);
    min-height: 40vh;
}
.pg-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.pg-card--accent { border-top: 4px solid var(--c, var(--primary-color)); }
.pg-card-body { padding: 1.5rem; }
.pg-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.pg-card-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}
.pg-card-title > i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--c, var(--primary-color)) 12%, #fff);
    color: var(--c, var(--primary-color));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}
@media (min-width: 768px) { .pg-card-body--lg { padding: 2rem 2.25rem; } }

.pg-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.pg-heading h2 {
    font-size: 1.35rem;
    margin: 0;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.pg-heading h2::before {
    content: '';
    width: 6px;
    height: 1.4em;
    border-radius: 4px;
    background: linear-gradient(var(--primary-color), var(--accent-color));
}
.pg-count { color: var(--muted-text); font-size: .9rem; }
.pg-block + .pg-block { margin-top: 2.5rem; }

/* Filters */
.pg-filter { padding: 1rem; margin-bottom: 1.5rem; }
.pg-filter .form-control,
.pg-filter .form-select { height: 46px; }
.pg-filter .input-group-text { background: #fff; border-color: var(--border-color); color: var(--primary-color); }
.pg-filter .btn { height: 46px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.pg-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--body-color);
    font-size: .86rem;
    font-weight: 600;
}
.pg-chip:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pg-chip.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* List rows (notices, events) */
.pg-list { display: flex; flex-direction: column; gap: .75rem; }
.pg-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--c, var(--primary-color));
    border-radius: var(--radius-lg);
    color: var(--body-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pg-row:hover { color: var(--body-color); box-shadow: var(--shadow); transform: translateX(3px); }
.pg-row .hp-date {
    width: 58px;
    height: 62px;
    border: 0;
    color: #fff;
    background: linear-gradient(140deg, var(--c, var(--primary-color)), color-mix(in srgb, var(--c, var(--primary-color)) 65%, #fff));
    box-shadow: 0 3px 8px color-mix(in srgb, var(--c, var(--primary-color)) 30%, transparent);
}
.pg-row .hp-date b { font-size: 1.35rem; }
.pg-row-thumb { width: 120px; height: 80px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; background: var(--light-color); }
.pg-row-body { flex: 1; min-width: 0; }
.pg-row-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 .3rem;
    line-height: 1.4;
}
.pg-row:hover .pg-row-title { color: var(--c, var(--primary-color)); }
.pg-row-text {
    font-size: .9rem;
    color: var(--muted-text);
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .84rem; color: var(--muted-text); }
.pg-meta i { margin-right: .3rem; }
.pg-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--c, var(--primary-color)) 12%, #fff);
    color: var(--c, var(--primary-color));
}
.pg-row-go {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--c, var(--primary-color)) 10%, #fff);
    color: var(--c, var(--primary-color));
    transition: var(--transition);
}
.pg-row:hover .pg-row-go { background: var(--c, var(--primary-color)); color: #fff; }
@media (max-width: 575.98px) {
    .pg-row { gap: .75rem; padding: .85rem; }
    .pg-row-thumb, .pg-row-go { display: none; }
    .pg-row .hp-date { width: 50px; height: 54px; }
    .pg-row .hp-date b { font-size: 1.15rem; }
}

/* Pagination */
.pagination { gap: .3rem; flex-wrap: wrap; margin: 1.5rem 0 0; justify-content: center; }
.pagination .page-link {
    border-radius: var(--radius) !important;
    border: 1px solid var(--border-color);
    color: var(--dark-color);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}
.pagination .page-link:hover { background: var(--primary-soft); color: var(--primary-color); }
.pagination .active > .page-link { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
nav[aria-label] > .d-sm-flex > div:first-child p { color: var(--muted-text); font-size: .88rem; }

/* Rich text from the editor */
.pg-prose {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--body-color);
    overflow-wrap: break-word;
    word-break: break-word;
}
.pg-prose > :last-child { margin-bottom: 0; }
.pg-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.pg-prose iframe { max-width: 100%; }
.pg-prose table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; margin-bottom: 1rem; }
.pg-prose table td, .pg-prose table th { border: 1px solid var(--border-color); padding: .5rem .75rem; }
.pg-prose h1, .pg-prose h2, .pg-prose h3, .pg-prose h4 { color: var(--primary-dark); margin-top: 1.25rem; }
.pg-prose a { text-decoration: underline; text-underline-offset: 2px; }
.pg-prose blockquote { border-left: 4px solid var(--accent-color); background: var(--accent-soft); padding: .75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.pg-prose ul, .pg-prose ol { padding-left: 1.4rem; }
@media (max-width: 767.98px) { .pg-prose { font-size: .97rem; } }

.pg-article-head { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); }
.pg-article-title { font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--dark-color); margin: 0 0 .5rem; }
.pg-article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.pg-attach {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px dashed var(--primary-line);
    background: var(--primary-soft);
    border-radius: var(--radius);
    margin-top: 1.5rem;
}
.pg-attach-icon { width: 42px; height: 42px; border-radius: 10px; background: #e5484d; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.pg-pdf { margin-top: 1.25rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); }
.pg-pdf iframe { width: 100%; height: min(85vh, 1000px); display: block; border: 0; }

/* Share */
.pg-share { display: flex; align-items: center; gap: .4rem; }
.pg-share span { font-size: .88rem; color: var(--muted-text); margin-right: .2rem; }
.pg-share a, .pg-share button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    transition: transform .2s ease;
}
.pg-share a:hover, .pg-share button:hover { color: #fff; transform: translateY(-2px); }
.pg-share .is-fb { background: #1877f2; }
.pg-share .is-x { background: #111; }
.pg-share .is-wa { background: #25d366; }
.pg-share .is-copy { background: var(--secondary-color); }

/* Sidebar widgets */
.pg-side { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 992px) { .pg-side { position: sticky; top: 76px; } }
.pg-side-list { list-style: none; margin: 0; padding: .35rem; }
.pg-side-list a {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .6rem .65rem;
    border-radius: var(--radius);
    color: var(--body-color);
    font-size: .92rem;
    line-height: 1.45;
}
.pg-side-list a:hover { background: var(--primary-soft); color: var(--primary-color); }
.pg-side-list i { color: var(--c, var(--accent-color)); margin-top: .3rem; font-size: .7rem; }
.pg-info { list-style: none; margin: 0; padding: 0; }
.pg-info li { display: flex; gap: .75rem; padding: .6rem 0; align-items: flex-start; }
.pg-info li + li { border-top: 1px dashed var(--border-color); }
.pg-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--c, var(--primary-color)) 12%, #fff);
    color: var(--c, var(--primary-color));
}
.pg-info small { display: block; color: var(--muted-text); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.pg-info span, .pg-info a { color: var(--dark-color); font-weight: 500; overflow-wrap: anywhere; }

/* Tiles (departments, branches, clubs, tag posts) */
.pg-tile {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--c, var(--primary-color));
    border-radius: var(--radius-lg);
    color: var(--body-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pg-tile:hover { color: var(--body-color); box-shadow: var(--shadow); transform: translateY(-3px); }
.pg-tile-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--c, var(--primary-color)), color-mix(in srgb, var(--c, var(--primary-color)) 65%, #fff));
    overflow: hidden;
}
.pg-tile-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.pg-tile-body { flex: 1; min-width: 0; }
.pg-tile-kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-text); }
.pg-tile-name { display: block; font-size: 1.02rem; font-weight: 700; color: var(--dark-color); line-height: 1.35; }
.pg-tile:hover .pg-tile-name { color: var(--c, var(--primary-color)); }
.pg-tile-go { color: var(--c, var(--primary-color)); opacity: .6; transition: var(--transition); }
.pg-tile:hover .pg-tile-go { opacity: 1; transform: translateX(3px); }

/* Faculty / people cards */
.pg-person {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}
.pg-person:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pg-person-top {
    height: 64px;
    background:
        radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px) 0 0 / 12px 12px,
        linear-gradient(120deg, var(--c, var(--primary-color)), color-mix(in srgb, var(--c, var(--primary-color)) 60%, #fff));
}
.pg-person-photo {
    width: 116px;
    height: 132px;
    object-fit: cover;
    object-position: top;
    border-radius: 14px;
    border: 4px solid #fff;
    box-shadow: var(--shadow);
    margin: -44px auto .75rem;
    background: #fff;
    display: block;
}
.pg-person-body { padding: 0 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.pg-person-name { font-size: 1.05rem; font-weight: 700; color: var(--dark-color); margin: 0 0 .35rem; line-height: 1.35; }
.pg-person-body .pg-tag { align-self: center; margin-bottom: .4rem; }
.pg-person-dept { font-size: .84rem; color: var(--muted-text); margin: 0 0 .35rem; }
.pg-person-bio {
    font-size: .84rem;
    color: var(--muted-text);
    margin: 0 0 .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pg-person-mail { font-size: .8rem; color: var(--muted-text); overflow-wrap: anywhere; margin-bottom: .75rem; }
.pg-person-mail i { color: var(--c, var(--primary-color)); margin-right: .3rem; }
.pg-person .btn {
    margin-top: auto;
    background: color-mix(in srgb, var(--c, var(--primary-color)) 10%, #fff);
    color: var(--c, var(--primary-color));
    border: 0;
}
.pg-person:hover .btn { background: var(--c, var(--primary-color)); color: #fff; }

.pg-view-switch .btn { border-color: var(--border-color); color: var(--muted-text); background: #fff; }
.pg-view-switch .btn.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.pg-table { margin: 0; }
.pg-table thead th { background: var(--primary-soft); color: var(--primary-dark); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 0; white-space: nowrap; }
.pg-table td { vertical-align: middle; }
.pg-table img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* Gallery */
.pg-album {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--body-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pg-album:hover { color: var(--body-color); box-shadow: var(--shadow); transform: translateY(-3px); }
.pg-album-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--c, var(--primary-color)), color-mix(in srgb, var(--c, var(--primary-color)) 60%, #fff)); overflow: hidden; }
.pg-album-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pg-album:hover .pg-album-media img { transform: scale(1.05); }
.pg-album-media > i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255, 255, 255, .85); }
.pg-album-count {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    background: var(--c, var(--primary-color));
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .25rem .7rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
}
.pg-album-body { padding: 1rem 1.1rem 1.1rem; border-top: 3px solid var(--c, var(--primary-color)); flex: 1; }
.pg-album-title { font-size: 1.05rem; font-weight: 700; color: var(--dark-color); margin: 0 0 .3rem; }
.pg-album:hover .pg-album-title { color: var(--c, var(--primary-color)); }
.pg-album-text { font-size: .88rem; color: var(--muted-text); margin: 0; }
.pg-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.pg-photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--border-color); }
.pg-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pg-photo::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    background: color-mix(in srgb, var(--primary-dark) 55%, transparent);
    opacity: 0;
    transition: opacity .25s ease;
}
.pg-photo:hover img { transform: scale(1.06); }
.pg-photo:hover::after { opacity: 1; }
.pg-photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .75rem .6rem; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); z-index: 1; }
@media (max-width: 575.98px) { .pg-photos { grid-template-columns: 1fr 1fr; gap: .5rem; } }
.pg-video { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; height: 100%; box-shadow: var(--shadow-sm); border-bottom: 3px solid var(--c, var(--primary-color)); }
.pg-video .ratio { background: #000; }
.pg-video-body { padding: .9rem 1rem 1rem; }
.pg-video-title { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; }

/* Empty state */
.pg-empty { text-align: center; padding: 3rem 1.5rem; }
.pg-empty-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    background: var(--primary-soft);
}
.pg-empty h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.pg-empty p { color: var(--muted-text); margin: 0; }

/* Leader message page */
.pg-author { text-align: center; }
.pg-author img { width: 100%; max-width: 240px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius-lg); border: 5px solid #fff; box-shadow: var(--shadow); margin-bottom: 1rem; }
.pg-author h3 { font-size: 1.2rem; margin: 0 0 .3rem; }
.pg-author .pg-tag { margin-bottom: .6rem; }
.pg-author p { color: var(--muted-text); font-size: .9rem; }
.pg-quote-title { font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color), transparent) 1; }

/* Faculty profile */
.pf-cover {
    height: 220px;
    background:
        radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(120deg, var(--primary-dark), var(--primary-color) 60%, var(--accent-color));
    position: relative;
}
.pf-cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-head { margin-top: -70px; position: relative; text-align: center; padding: 0 1.5rem 1.5rem; }
.pf-avatar { margin-top: -85px; }
.pf-avatar { position: relative; width: 170px; height: 170px; border-radius: 50%; object-fit: cover; object-position: top; border: 6px solid #fff; box-shadow: var(--shadow-lg); background: #fff; }
.pf-name { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .85rem 0 .35rem; color: var(--dark-color); }
.pf-sub { color: var(--muted-text); margin: .35rem 0 0; }
.pf-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.pf-badge { width: 100px; text-align: center; font-size: .78rem; color: var(--muted-text); }
.pf-badge img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; background: #fff; border: 2px solid var(--accent-color); padding: 4px; }
.pf-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.pf-timeline::before { content: ''; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--border-color); }
.pf-timeline li { position: relative; display: flex; gap: 1rem; padding: .5rem 0; }
.pf-timeline li > i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--c, var(--primary-color));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    position: relative;
    box-shadow: 0 0 0 4px #fff;
}
.pf-timeline strong { display: block; color: var(--dark-color); }
.pf-timeline small { display: block; color: var(--muted-text); }
.pf-skill + .pf-skill { margin-top: .75rem; }
.pf-skill-bar { height: 7px; border-radius: 7px; background: var(--light-color); overflow: hidden; margin-top: .3rem; }
.pf-skill-bar span { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--c, var(--primary-color)), color-mix(in srgb, var(--c, var(--primary-color)) 60%, #fff)); }
.pf-cert { width: 190px; flex-shrink: 0; text-align: center; padding: .75rem; }
.pf-cert img, .pf-cert-ph { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--accent-color); }
.pf-cert strong { display: block; font-size: .88rem; margin-top: .5rem; color: var(--dark-color); }
.pf-cert small { color: var(--muted-text); }

/* Contact */
.pg-contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; height: 100%; border-top: 4px solid var(--c, var(--primary-color)); }
.pg-contact-card h3 { font-size: 1.02rem; margin: 0 0 .25rem; }
.pg-contact-card p, .pg-contact-card a { margin: 0; color: var(--body-color); overflow-wrap: anywhere; }
.pg-map { overflow: hidden; }
.pg-map iframe { width: 100%; height: 440px; border: 0; display: block; }

/* Result search */
.pg-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.pg-captcha img { height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: #fff; }
.pg-captcha span { font-weight: 700; font-size: 1.1rem; color: var(--primary-color); }
.pg-result-meta div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border-color); }
.pg-result-meta div:last-child { border-bottom: 0; }

/* Error pages */
.pg-error { text-align: center; padding: 2rem 1rem; }
.pg-error-code {
    font-size: clamp(5rem, 16vw, 8rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.select2-container--bootstrap-5 .select2-selection { border-color: var(--border-color); border-radius: var(--radius); min-height: 46px; display: flex; align-items: center; }
.ql-container.ql-snow { border: none !important; }
[x-cloak] { display: none !important; }
@media (max-width: 575.98px) {
    .pg-person-top { height: 44px; }
    .pg-person-photo { width: 84px; height: 96px; margin-top: -30px; border-width: 3px; }
    .pg-person-body { padding: 0 .6rem .8rem; }
    .pg-person-name { font-size: .9rem; }
    .pg-person .pg-tag { font-size: .68rem; }
    .pg-person-bio, .pg-person-mail { display: none; }
    .pg-person .btn { font-size: .78rem; padding: .3rem .4rem; }
}
