/* ==========================================
   1. VARIABLES & BASE SETUP
============================================= */
:root {
    /* Brand Colors: Indigo (#520380) primary/top swatch, Russian Violet (#3A025B) secondary/bottom swatch */
    --brand-primary: #520380;
    --brand-secondary: #3A025B;
    --brand-tertiary: #7b35b0;
    --brand-accent: #520380;
    --brand-primary-soft: #f0eaf6;
    --brand-secondary-soft: #eceff9;

    --text-main: #241136;
    --text-muted: #5c5566;
    --bg-light: #f8f6fb;
}

.text-brand {
    color: var(--brand-primary) !important;
}
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family:
        "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.heading-primary {
    color: var(--brand-primary);
    letter-spacing: -0.5px;
}
.heading-secondary {
    color: var(--brand-secondary);
}
.subheading {
    color: var(--brand-tertiary);
    letter-spacing: 1.5px;
}
.transition {
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nalikule-meta-row {
    margin-bottom: 15px;
}

.nalikule-meta-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.nalikule-meta-row input[type="text"] {
    width: 100%;
    max-width: 100%;
}

.nalikule-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.research-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.research-meta-row {
    margin-bottom: 15px;
}

.research-meta-row.full-width {
    grid-column: span 2;
}

.research-meta-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1d2327;
}

.research-meta-row input[type="text"],
.research-meta-row select,
.research-meta-row input[type="url"] {
    width: 100%;
    max-width: 100%;
    padding: 5px 8px;
}

.research-meta-row .description {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
    font-style: italic;
}

.research-divider {
    grid-column: span 2;
    border-top: 1px solid #c3c4c7;
    margin: 10px 0;
    padding-top: 15px;
}

.pdf-upload-flex {
    display: flex;
    gap: 10px;
}

/* ==========================================
   2. BUTTONS
============================================= */
.btn.btn-outline-brand {
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn.btn-outline-brand:hover,
.btn.btn-outline-brand:focus,
.btn.btn-outline-brand:active {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    --bs-btn-hover-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(50, 23, 77, 0.15);
}

.btn-cta-accent {
    background-color: var(--brand-primary);
    color: #ffffff;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-cta-accent:hover {
    background-color: var(--brand-secondary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(50, 23, 77, 0.3);
}

/* ==========================================
   3. HEADER & NAVIGATION
============================================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: linear-gradient(
        180deg,
        rgba(50, 23, 77, 0.95) 0%,
        rgba(50, 23, 77, 0.45) 60%,
        transparent 100%
    );
}

.top-bar {
    height: 38px;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.top-bar .contact-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar .contact-item:hover {
    color: #ffffff;
}

.top-bar .contact-icon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.top-bar .social-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    padding-left: 1.5rem;
}

.top-bar .social-links::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
}

.top-bar .social-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.top-bar .social-links a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.main-navbar .nav-link {
    position: relative;
    cursor: pointer;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 1.25rem 1rem !important;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-item.active > .nav-link,
.main-navbar .nav-item.current-menu-ancestor > .nav-link {
    opacity: 1;
}

.main-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-item.active > .nav-link::after,
.main-navbar .nav-item.current-menu-ancestor > .nav-link::after {
    transform: scaleX(1);
}

.nav-item-parent {
    display: flex;
    align-items: center;
}

.nav-item-parent .nav-link {
    padding-right: 0.2rem !important;
}

.nav-item-parent .dropdown-caret {
    background: none;
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    opacity: 0.8;
    transition: all 0.2s ease;
    padding: 0;
}

.nav-item-parent:hover .dropdown-caret {
    opacity: 1;
}

.nav-item-parent .dropdown-caret i {
    font-size: 11px;
    font-weight: bold;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1200px) {
    .nav-item.dropdown:hover .dropdown-caret i {
        transform: rotate(180deg);
    }
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Social/contact bar stays pinned with the fixed nav on scroll */
.site-header.scrolled .top-bar {
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.site-header.scrolled .main-navbar .nav-link,
.site-header.scrolled .nav-item-parent .dropdown-caret {
    color: #1e293b !important;
}

.site-header.scrolled .main-navbar .nav-link::after {
    background-color: #520380;
}

.site-header.scrolled .search-btn,
.site-header.scrolled .navbar-toggler {
    color: #1e293b !important;
}

.nav-item.dropdown,
.nav-item-parent {
    position: relative;
}

.dropdown-menu {
    position: absolute !important;
    inset: auto auto auto 0 !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 1050;
}

@media (min-width: 1200px) {
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) !important;
        pointer-events: auto;
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) !important;
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        pointer-events: none;

        margin-top: 12px !important;
        border-radius: 8px;
        padding: 0.5rem;
        min-width: 240px;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
        background: transparent;
    }
}

.dropdown-item {
    font-size: 14px;
    font-weight: 500;
    color: #334155 !important;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    transition: all 0.2s ease;
    background: transparent !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8fafc !important;
    color: var(--brand-primary) !important;
    padding-left: 1.4rem;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: rgba(50, 23, 77, 0.05) !important;
    color: var(--brand-primary) !important;
    font-weight: 600;
}

.search-btn {
    width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.site-header.scrolled .search-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.z-index-top {
    z-index: 1060;
}
@media (max-width: 1199.98px) {
    .top-bar {
        display: none !important;
    }

    body.menu-active {
        overflow: hidden;
    }

    .custom-menu-toggle {
        width: 28px;
        height: 20px; 
        position: relative;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 1100; 
        padding: 0;
    }

    .custom-menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .site-header.scrolled:not(.menu-active-header) .custom-menu-toggle span {
        background-color: #1e293b;
    }

    body.menu-active .custom-menu-toggle span {
        background-color: #ffffff !important;
    }

    body.menu-active .custom-menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    body.menu-active .custom-menu-toggle span:nth-child(2) {
        opacity: 0;
        transform: translateX(15px);
    }
    body.menu-active .custom-menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .navbar-collapse {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh !important;
        background: rgba(82, 3, 128, 0.95) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 1050 !important;
        
        display: flex !important;
        flex-direction: column;
        
        justify-content: flex-start; 
        
        overflow-y: auto !important; 
        -webkit-overflow-scrolling: touch; 
        
        padding: 90px 1.5rem 60px; 
        
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.5s ease, visibility 0.5s ease;
        box-shadow: none !important;
    }

    body.menu-active .navbar-collapse {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-nav .nav-item,
    .mobile-menu-footer {
        opacity: 0;
        transform: translateY(30px);
        transition:
            transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
            opacity 0.6s ease;
    }

    body.menu-active .navbar-nav .nav-item,
    body.menu-active .mobile-menu-footer {
        opacity: 1;
        transform: translateY(0);
    }

    body.menu-active .navbar-nav .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }
    body.menu-active .navbar-nav .nav-item:nth-child(2) {
        transition-delay: 0.15s;
    }
    body.menu-active .navbar-nav .nav-item:nth-child(3) {
        transition-delay: 0.2s;
    }
    body.menu-active .navbar-nav .nav-item:nth-child(4) {
        transition-delay: 0.25s;
    }
    body.menu-active .navbar-nav .nav-item:nth-child(5) {
        transition-delay: 0.3s;
    }
    body.menu-active .navbar-nav .nav-item:nth-child(6) {
        transition-delay: 0.35s;
    }
    body.menu-active .mobile-menu-footer {
        transition-delay: 0.45s;
    }

    .nav-item-parent {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 0.5rem;
    }

    .main-navbar .nav-link {
        flex: 1;
        font-size: 1.8rem !important; 
        font-weight: 600;
        color: #ffffff !important;
        padding: 0 !important;
        letter-spacing: -0.5px;
    }

    .main-navbar .nav-link::after {
        display: none;
    } 

    .nav-item-parent .dropdown-caret {
        flex: 0 0 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 1rem;
        transition: all 0.3s ease;
    }

    .nav-item .dropdown-menu {
        flex: 0 0 100%;
        display: block !important;
        position: static !important;
        background: transparent;
        border: none;
        box-shadow: none !important;
        padding: 0;
        margin: 0;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition:
            max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
            opacity 0.4s ease;
    }

    .nav-item.dropdown-open .dropdown-menu {
        max-height: 400px; 
        opacity: 1;
        margin-top: 1rem !important;
    }

    .nav-item.dropdown-open .dropdown-caret {
        transform: rotate(180deg);
        background: rgba(255, 255, 255, 0.2);
    }

    .navbar-collapse .nav-item .dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 1.2rem;
        padding: 0.5rem 0 !important;
    }

    .navbar-collapse .nav-item .dropdown-menu .dropdown-item:hover {
        color: #ffffff !important;
        background: transparent !important;
        padding-left: 10px !important;
    }

    .z-index-top {
        z-index: 1100 !important;
    }

    .navbar-collapse {
        z-index: 1050 !important;
    }

    .main-navbar .container {
        position: relative;
    }

    html:has(body.menu-active),
    body.menu-active {
        overflow: hidden !important;
        overscroll-behavior: none; 
    }

    body.menu-active .site-header.scrolled .main-navbar .nav-link,
    body.menu-active .site-header.scrolled .navbar-collapse .nav-link,
    body.menu-active .site-header.scrolled .navbar-collapse .dropdown-caret,
    body.menu-active
        .site-header.scrolled
        .navbar-collapse
        .dropdown-caret[aria-expanded="true"],
    body.menu-active .site-header.scrolled .navbar-collapse .dropdown-item {
        color: #ffffff !important;
    }

    body.menu-active .site-header.scrolled .navbar-collapse .dropdown-caret {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    body.menu-active .site-header {
        background: transparent !important; 
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    body.menu-active .search-btn {
        background: transparent !important;
    }
}

@keyframes smoothReveal {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   4. HERO SECTION
============================================= */
.site-hero {
    position: relative;
    height: 60vh;
    /* min-height: 600px; */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; */
}

.site-hero.layout-hero.overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(82, 3, 128, 0.65) 0%,
        rgba(82, 3, 128, 0.15) 50%,
        rgba(82, 3, 128, 0.45) 100%
    );
    z-index: 1;
}

.site-hero.layout-hero .container {
    position: relative;
    z-index: 2;
}

.site-hero.layout-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   5. CARDS (News & Faculties)
============================================= */
.news-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-img-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition:
        box-shadow 0.4s ease,
        transform 0.4s ease;
}

.news-img-wrapper img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.news-card:hover .news-img-wrapper {
    box-shadow: 0 15px 35px rgba(82, 3, 128, 0.15);
}

.news-img-wrapper img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-meta {
    color: var(--brand-tertiary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.news-title {
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--brand-primary);
}

.news-category {
    color: var(--brand-primary);
    background-color: rgba(82, 3, 128, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.news-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.news-date i {
    color: var(--brand-tertiary);
    font-size: 0.95rem;
}

.news-title {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
    margin-top: 0.5rem;
}

.news-card:hover .news-title {
    color: var(--brand-primary);
}

.faculty-card {
    position: relative;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faculty-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faculty-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(50, 23, 77, 0.95) 0%,
        rgba(50, 23, 77, 0.2) 60%,
        transparent 100%
    );
    transition: background 0.4s ease;
}

.faculty-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    color: #ffffff;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.faculty-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.faculty-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
}
.faculty-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}
.faculty-link i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faculty-card:hover .faculty-img {
    transform: scale(1.08);
}
.faculty-card:hover .faculty-overlay {
    background: linear-gradient(
        to top,
        rgba(50, 23, 77, 0.98) 0%,
        rgba(50, 23, 77, 0.5) 60%,
        rgba(0, 0, 0, 0.2) 100%
    );
}
.faculty-card:hover .faculty-link i {
    transform: translateX(8px);
}

/* ==========================================
   MOBILE TYPOGRAPHY & BUTTON OVERRIDES
============================================= */
@media (max-width: 767.98px) {
    .news-title {
        color: var(--text-main);
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.4;
        transition: color 0.3s ease;
        margin-top: 0.5rem;
    }
}

/* ==========================================
   6. FACILITIES BENTO GRID
============================================= */
.facility-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.facility-img-wrapper img {
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.facility-img-wrapper:hover img {
    transform: scale(1.05);
}

.facility-floating-box {
    background-color: var(--brand-primary);
    padding: 3rem 2.5rem;
    max-width: 480px;
    pointer-events: auto;
}

.facility-floating-box .divider {
    width: 50px;
    height: 3px;
    background-color: var(--brand-tertiary);
}

@media (max-width: 991px) {
    .center-float {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin-top: -60px;
    }
}

/* ==========================================
   7. PRINCIPAL & SEARCH 
============================================= */
.principal-photo-clean {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.principal-quote {
    color: var(--brand-primary);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.3;
    font-weight: 700;
}

.modal-backdrop.show {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.search-input-clean {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--brand-primary);
}
.search-input-clean::placeholder {
    color: #94a3b8;
}
/* ==========================================
   9. FOOTER & NEWSLETTER
============================================= */
.newsletter-input {
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
}

.newsletter-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(50, 23, 77, 0.1);
    outline: none;
}

.btn-subscribe {
    background-color: #111111;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: var(--brand-secondary);
    color: #ffffff;
}

.footer-main {
    background-color: var(--brand-primary);
    color: rgba(255, 255, 255, 0.75);
}

.footer-heading {
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem !important;
    padding-left: 0 !important;
}

.footer-main ul,
.footer-main .footer-links,
.footer-main .menu > ul,
.footer-main div > ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style: none !important;
    display: block !important;
}

.footer-main li,
.footer-main .footer-links li {
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0.85rem !important;
    text-align: left !important;
    display: block !important;
}

.footer-main li a,
.footer-main .footer-links a {
    padding-left: 0 !important;
    margin-left: 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block !important;
}

.footer-main li a:hover,
.footer-main .footer-links a:hover {
    color: #ffffff !important;
    transform: translateX(6px);
}

.footer-main li::before,
.footer-main li a::before {
    display: none !important;
    content: none !important;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    padding: 0 !important;
    margin: 0 !important;
}

.social-icons a:hover {
    color: #ffffff !important;
    background-color: var(--brand-secondary);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 767.98px) {
    .footer-main .col-lg-4,
    .footer-main .col-lg-4 p,
    .footer-main .col-lg-4 h3 {
        text-align: center !important;
    }

    .footer-main .col-lg-4 .social-icons {
        justify-content: center !important;
    }

    .footer-main li a:hover {
        transform: translateY(-2px);
    }
}

.principal-wide-img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .leadership-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .leadership-grid-layout {
        grid-template-columns: repeat(4, 1fr);
    }
    .tall-principal-wrapper {
        grid-row: span 2;
    }
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.flip-card-container:hover .flipper {
    transform: rotateY(180deg);
}

.flipper .front,
.flipper .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.flipper .front {
    background-size: cover;
    background-position: center top;
    background-color: var(--brand-secondary);
    z-index: 2;
    transform: rotateY(0deg);
}

.flipper .front::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(50, 23, 77, 0.9) 0%,
        transparent 60%
    );
}

.flipper .front .box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: #fff;
    z-index: 3;
}

.flipper .front .box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.flipper .front .box p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-accent);
    margin-bottom: 0;
    font-weight: 600;
}

.flipper .back {
    transform: rotateY(180deg);
    background-color: #ffffff;
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}
.bg-brand-secondary {
    background-color: var(--brand-secondary) !important;
}

/* ==========================================
   10C. LEADERSHIP TEAM CARDS (MZUNI style)
============================================= */
.rv-team-card {
    background: #fff;
    border: 1px solid var(--rv-line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.rv-team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .12);
}
.rv-team-photo {
    aspect-ratio: 1 / 1;
    width: 100%;
    background-size: cover;
    background-position: center top;
    background-color: var(--rv-bg-soft);
}
.rv-team-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rv-ink-soft);
    background-color: var(--rv-bg-soft);
}
.rv-team-photo-placeholder i { font-size: 4.5rem; }
.rv-team-body { padding: 1.4rem 1.4rem 1.6rem; text-align: center; }
.rv-team-name {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.08rem; font-weight: 600; line-height: 1.35; color: var(--rv-ink);
    margin-bottom: .35rem;
}
.rv-team-role {
    display: inline-block;
    font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--rv-primary); margin-bottom: .75rem;
}
.rv-team-quote {
    font-size: .86rem; font-style: italic; line-height: 1.55; color: var(--rv-ink-soft); margin-bottom: 0;
}
.rv-team-card-featured { box-shadow: 0 4px 14px -6px rgba(15, 23, 42, .08); }
.rv-team-card-featured .rv-team-name { font-size: 1.35rem; }
.rv-team-card-featured .rv-team-role { font-size: .8rem; }

.border-brand {
    border-left-color: var(--brand-primary);
}

@media (max-width: 768px) {
    .timeline-clean {
        padding-left: 1.5rem;
    }
    .timeline-item::before {
        left: -1.5rem;
        width: 14px;
        height: 14px;
    }
    .timeline-clean::before {
        left: 5px;
    }
    .timeline-content {
        padding: 1.5rem;
    }
}

.faculty-hero,
.program-hero {
    position: relative;
    height: 90vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.faculty-hero.overlay::before,
.program-hero.overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(50, 23, 77, 0.75) 0%,
        rgba(50, 23, 77, 0.4) 100%
    );
    z-index: 1;
}

.faculty-hero h1,
.program-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-row {
    margin-top: -60px;
    position: relative;
    z-index: 3;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.dept-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(50, 23, 77, 0.08);
}

.dept-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--brand-primary);
    font-size: 1.5rem;
}

.nalikule-meta-row {
    margin-bottom: 15px;
}

.nalikule-meta-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.nalikule-meta-row input[type="text"],
.nalikule-meta-row select {
    width: 100%;
    max-width: 100%;
}

.program-card-sm {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    height: 100%;
}

.program-card-sm:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(50, 23, 77, 0.1);
}

.program-card-sm .program-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.program-card-sm .program-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.program-card-sm:hover .program-img-wrapper img {
    transform: scale(1.05);
}

.program-card-sm .program-meta {
    display: inline-block;
    margin: 1.25rem 1.5rem 0.5rem;
    padding: 0.35rem 0.85rem;
    background: var(--bg-light);
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px;
}

.program-card-sm .program-title {
    padding: 0.75rem 1.5rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.program-card-sm:hover .program-title {
    color: var(--brand-primary);
}

.program-card-sm .program-link {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.program-card-sm .program-link i {
    transition: transform 0.3s ease;
}

.program-card-sm:hover .program-link i {
    transform: translateX(5px);
}

.no-programs-box {
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.no-programs-box i {
    color: var(--brand-tertiary);
}

.fact-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.fact-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.fact-label {
    display: block;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.fact-value {
    font-size: 1rem;
}

.program-faculty-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--brand-tertiary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.program-faculty-badge:hover {
    background: var(--brand-secondary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .stat-row {
        margin-top: 2rem;
    }
}

/* ==========================================
   NEWS & UPDATES PAGE STYLES
============================================= */

.filter-btn {
    background-color: #ffffff;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--brand-tertiary);
    color: var(--brand-primary);
}

.filter-btn.active {
    background-color: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 10px rgba(50, 23, 77, 0.2);
}

.pagination-brand .page-link {
    color: var(--brand-primary);
    border: none;
    margin: 0 3px;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-brand .page-link:hover {
    background-color: var(--bg-light);
    color: var(--brand-primary);
}

.pagination-brand .page-item.active .page-link {
    background-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(50, 23, 77, 0.2);
}

.bg-brand-tertiary {
    background-color: var(--brand-tertiary) !important;
}

.search-box input:focus {
    box-shadow: 0 0 0 4px rgba(50, 23, 77, 0.1) !important;
    outline: none;
}

.dept-icon-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(50, 23, 77, 0.05);
    border: 1px solid rgba(50, 23, 77, 0.12);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    transition: all 0.2s ease;
}

.contact-dept-card:hover .dept-icon-circle {
    background-color: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

.contact-form-clean .form-control,
.contact-form-clean .form-select {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    border-color: rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s ease;
}

.contact-form-clean .form-control:focus,
.contact-form-clean .form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--brand-primary) !important;
    box-shadow: none !important;
    outline: none;
}

.text-brand-primary {
    color: var(--brand-primary) !important;
}

.text-brand-tertiary {
    color: var(--brand-tertiary) !important;
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

/* ==========================================
    LIBRARY PAGE STYLES
============================================= */

.flat-link-card {
    border-color: rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out;
}

.flat-link-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary) !important;
    background-color: #fcfcfc !important;
}

.flat-link-card:hover .dept-icon-circle {
    background-color: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

.schedule-table td {
    background-color: transparent !important;
}

.schedule-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.hover-lift {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08) !important;
}

.rounded-circle.shadow-sm {
    background-color: #f8f9fa;
}

.rounded-pill {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

/* ==========================================
   16. 404 ERROR PAGE 
============================================= */
.error-404-clean {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.error-404-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 2.5rem;
}

.error-404-eyebrow {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.error-404-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-404-search .search-form {
    display: flex;
    gap: 0.5rem;
}

.error-404-search .search-field {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.error-404-search .search-field:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.error-404-actions .btn-cta-accent,
.error-404-actions .btn-outline-brand {
    box-shadow: none !important;
}

.error-404-actions .btn-cta-accent:hover,
.error-404-actions .btn-outline-brand:hover {
    box-shadow: none !important;
    transform: none;
}

@media (max-width: 576px) {
    .error-404-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================
   17. CUSTOM SCROLLBAR 
============================================= */
html,
body {
    scrollbar-width: thin;
    scrollbar-gutter: auto;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

*::-webkit-scrollbar-thumb {
    background: var(--brand-primary) !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--brand-secondary) !important;
}

*::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

*::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* ==========================================
    SPLASH SCREEN
   ========================================== */
#site-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: hidden;
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.8s;
}

#site-splash-screen.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: animationFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-ring {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.splash-ring-track {
    fill: none;
    stroke: rgba(82, 3, 128, 0.12);
    stroke-width: 6;
}

.splash-ring-fill {
    fill: none;
    stroke: var(--brand-primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 0 339.29;
    stroke-dashoffset: 339.29;
    transition: stroke-dashoffset 0.12s linear;
}

.splash-logo {
    width: 92px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: splashPulse 2.4s ease-in-out infinite;
    filter: drop-shadow(0 4px 14px rgba(82, 3, 128, 0.18));
}

@keyframes animationFadeIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes splashPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

a:visited {
    color: var(--bs-link-color, inherit);
}

a.btn:visited,
a.btn-outline-brand:visited {
    color: var(--bs-btn-color, inherit);
}

a.btn-brand:visited,
a.btn-ghost-light:visited {
    color: #fff;
}
a.btn-white:visited {
    color: var(--rv-primary-dark, inherit);
}
a.btn-light:visited {
    color: var(--bs-btn-color, var(--bs-body-color, inherit));
}
a.btn-outline-brand:visited {
    color: var(--rv-primary, var(--brand-primary, inherit));
}

.custom-filter-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}
.custom-filter-pills::-webkit-scrollbar {
    display: none;
}
.custom-filter-pills .filter-btn {
    background-color: #ffffff;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
}
.custom-filter-pills .filter-btn:hover {
    border-color: #003366;
    color: #003366;
    background-color: #f8f9fa;
}
.custom-filter-pills .filter-btn.active {
    background-color: #003366 !important;
    border-color: #003366 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.25);
    transform: translateY(-2px);
}

/* ==========================================
    SKELETON LOADER
   ========================================== */
.skeleton-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.skeleton-img {
    width: 100%;
    height: 220px;
}
.skeleton-meta {
    width: 35%;
    height: 12px;
    margin: 20px 20px 15px;
    border-radius: 4px;
}
.skeleton-title {
    width: 85%;
    height: 24px;
    margin: 0 20px 10px;
    border-radius: 4px;
}
.skeleton-title.short {
    width: 50%;
    margin-bottom: 30px;
}

.skeleton-img,
.skeleton-meta,
.skeleton-title {
    background: #f6f7f8;
    background-image: linear-gradient(
        to right,
        #f6f7f8 0%,
        #edeef1 20%,
        #f6f7f8 40%,
        #f6f7f8 100%
    );
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear forwards;
}

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }
    100% {
        background-position: 400px 0;
    }
}

/* ==========================================
   PAGINATION BUTTONS
   ========================================== */
.pagination-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.pagination-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    background-color: #ffffff;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid #dee2e6;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pagination-container .page-numbers:hover:not(.current):not(.disabled) {
    background-color: #f8f9fa;
    border-color: #003366;
    color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.pagination-container .page-numbers.current {
    background-color: #003366;
    border-color: #003366;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.25);
}
.pagination-container .page-numbers.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f8f9fa;
}
.pagination-container .page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
    min-width: auto;
    padding: 0 4px;
}

.event-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(82, 3, 128, 0.12);

    transform: translateZ(0);
    backface-visibility: hidden;
}

.event-card .event-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    backface-visibility: hidden;
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-card .event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(82, 3, 128, 0.92) 0%,
        rgba(82, 3, 128, 0.35) 55%,
        rgba(82, 3, 128, 0.05) 100%
    );
    transition: opacity 0.3s ease;
}

.event-date-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    text-align: center;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.event-date-badge .day {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.event-date-badge .month {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-secondary);
    margin-top: 0.2rem;
}

.event-card:hover .event-cta i {
    transform: translateX(6px);
}

.control-prev {
    left: -65px;
}
.control-next {
    right: -65px;
}

@media (max-width: 991.98px) {
    .events-carousel-wrap {
        padding: 0 50px;
    }
    .control-prev {
        left: -45px;
    }
    .control-next {
        right: -45px;
    }
    .event-carousel-control {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767.98px) {
    .events-carousel-wrap {
        padding: 0;
    }
    .event-carousel-control {
        display: none;
    }
    .event-card {
        aspect-ratio: 4 / 5;
    }
}

/* ==========================================
   SINGLE EVENT PAGE â€” BODY CONTENT
============================================= */
.single-event-body p {
    margin-bottom: 1.5rem;
}

.single-event-body h2,
.single-event-body h3,
.single-event-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: inherit;
}

.single-event-body ul,
.single-event-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.back-to-events-btn {
    transition: all 0.3s ease;
}

.back-to-events-btn:hover,
.back-to-events-btn:hover i {
    color: #fff !important;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.single-event-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.single-event-body a {
    color: var(--brand-primary);
    text-decoration: underline;
}

.single-event-body > *:last-child {
    margin-bottom: 0;
}

/* ==========================================
   ANNOUNCEMENTS LIST
============================================= */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-left: 4px solid var(--brand-tertiary);
    border-radius: 10px;
    padding: 1.1rem 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.announcement-item:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 25px rgba(82, 3, 128, 0.1);
    border-left-color: var(--brand-primary);
}

.announcement-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(82, 3, 128, 0.08);
    color: var(--brand-primary);
}

.announcement-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.announcement-top-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.announcement-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.7rem;
    border-radius: 30px;
    background: rgba(82, 3, 128, 0.08);
    color: var(--brand-primary);
}

.announcement-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.announcement-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-item:hover .announcement-title {
    color: var(--brand-primary);
}

.announcement-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-tertiary);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.announcement-item:hover .announcement-arrow {
    background: var(--brand-primary);
    color: #ffffff;
    transform: translateX(3px);
}

.announcement-item.is-deadline {
    border-left-color: #f59e0b;
}
.announcement-item.is-deadline .announcement-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}
.announcement-item.is-deadline .announcement-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}
.announcement-item.is-deadline:hover {
    border-left-color: #f59e0b;
}

.announcement-item.is-alert {
    border-left-color: #dc2626;
}
.announcement-item.is-alert .announcement-icon {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.announcement-item.is-alert .announcement-badge {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.announcement-item.is-alert:hover {
    border-left-color: #dc2626;
}

@media (max-width: 576px) {
    .announcement-item {
        padding: 1rem;
        gap: 0.85rem;
    }
    .announcement-top-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .announcement-arrow {
        display: none;
    }
    .announcement-title {
        white-space: normal;
    }
}

/* ==========================================
   FOOTER LINKS
   ========================================== */

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a,
.footer-links a:link,
.footer-links a:visited,
.footer-links a:active,
.footer-links a:focus {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.footer-links a::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: 0.7rem;
    color: var(--brand-tertiary);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
}

.footer-links a:hover,
.footer-links a:hover:visited {
    color: #ffffff !important;
    transform: translateX(6px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-main a:visited {
    color: inherit;
}

.announcement-item {
    display: block;
    text-decoration: none;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border-left: 4px solid var(--brand-secondary);
    background: #f8f9fc;
    transition: all 0.25s ease;
}

.announcement-item:hover {
    background: #eef1fb;
    transform: translateX(3px);
}

.announcement-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: var(--brand-secondary);
    color: #fff;
}

.announcement-date {
    font-size: 0.75rem;
    color: #8a8f9c;
}

.announcement-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}
.announcement-notice .announcement-badge {
    background: var(--brand-secondary);
}
.announcement-deadline .announcement-badge {
    background: #f0ad4e;
}
.announcement-alert .announcement-badge {
    background: #dc3545;
}

@media (max-width: 991.98px) {
    .announcements-panel {
        padding: 1.25rem;
    }
}

/* ==========================================
   DOWNLOADS PAGE
============================================= */
.download-row {
    border-color: #e2e4e7 !important;
    border-left: 3px solid transparent !important;
    transition: all 0.3s ease;
}

.download-row:hover {
    background-color: #ffffff !important;
    border-color: #e2e4e7 !important;
    border-left: 3px solid var(--bs-primary, #1a1a1a) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}
.gallery-card:hover .gallery-overlay {
    opacity: 1 !important;
}

.gallery-card:hover .transition-scale {
    transform: scale(1.05);
}

.transition-scale {
    transition: transform 0.4s ease-in-out;
}

.transition {
    transition: all 0.3s ease-in-out;
}

.video-card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(82, 3, 128, 0.08) !important;
}

.video-thumbnail-wrap {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.play-btn-circle {
    background-color: var(--brand-primary) !important;
    width: 65px;
    height: 65px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    box-shadow: 0 4px 15px rgba(82, 3, 128, 0.4) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card:hover .play-btn-circle {
    transform: scale(1.15);
    background-color: var(--brand-secondary) !important;
    box-shadow: 0 8px 25px rgba(82, 3, 128, 0.6) !important;
}

.transition-scale {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-card:hover .transition-scale {
    transform: scale(1.08);
}

.card-category-tag {
    color: var(--brand-primary);
    background-color: rgba(82, 3, 128, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1 !important;
}
.gallery-card:hover .transition-scale,
.video-card:hover .transition-scale {
    transform: scale(1.05);
}
.video-card:hover .play-btn-circle {
    background-color: var(--bs-primary) !important;
    transform: scale(1.15);
}
.transition-scale {
    transition: transform 0.4s ease-in-out;
}
.transition {
    transition: all 0.3s ease-in-out;
}
.icon-box {
    border: 2px solid #111;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.landing-card-footer .count {
    display: flex;
    align-items: center;
    gap: 6px;
}
.landing-card-footer .divider {
    color: #ccc;
}
.landing-card-footer .link-btn {
    color: #111;
    text-decoration: none;
}
.landing-card-footer .link-btn:hover {
    text-decoration: underline;
}

.cl-icon-row {
    display: flex;
    gap: 10px;
}

.cl-icon-row select {
    flex: 0 0 220px;
}

.cl-icon-row input[type="text"] {
    flex: 1;
}

.cl-link-fields-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #787c82;
    margin: 0 0 10px 0;
}

.landing-card .icon-box {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(82, 3, 128, 0.08);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
}

.landing-card:hover .icon-box {
    background: var(--brand-primary);
    color: #ffffff;
    transform: rotate(-6deg) scale(1.05);
}

.landing-card-footer .count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-tertiary);
}

.landing-card-footer .divider {
    color: #e2e8f0;
    font-weight: 300;
}

.landing-card-footer .link-btn {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-primary);
    text-decoration: none;
    position: relative;
    padding-right: 1.1rem;
    transition: all 0.25s ease;
}

.landing-card-footer .link-btn::after {
    content: "â†’";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
}

.landing-card-footer .link-btn:hover {
    color: var(--brand-secondary);
}

.landing-card-footer .link-btn:hover::after {
    transform: translate(4px, -50%);
}

@media (max-width: 767.98px) {
    .gallery-landing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .landing-card {
        padding: 2rem;
    }
}

@media (max-width: 1199.98px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

.fancybox-caption-custom h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.fancybox-caption-custom .fancybox-date {
    display: inline-block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.6rem;
}

.fancybox-caption-custom .fancybox-discussion {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

.fancybox-caption-custom .fancybox-discussion p:last-child {
    margin-bottom: 0;
}

.video-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}
.btn-close:focus {
    box-shadow: none;
    outline: none;
}
.pointer-events-none {
    pointer-events: none;
}
/* ==========================================
   CLUBS AND SOCIETIES
============================================= */
.club-card-item {
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.club-card-item:hover {
    border-color: #adb5bd !important;
    transform: translateY(-3px);
}

.text-hover-brand:hover {
    color: var(--bs-primary, #1a1a1a) !important;
}

/* ==========================================
   MASTER FIX: INSTITUTIONAL MENU & UX FIXES
============================================= */
@media (min-width: 1200px) {
    .main-navbar button.dropdown-caret,
    .nav-item-parent .dropdown-caret {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    .main-navbar .nav-item-parent > a.nav-link {
        padding-right: 1.1rem !important;
    }
}

@media (min-width: 1200px) {
    .dropdown-menu {
        margin-top: 12px !important;
    }

    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
        background: transparent;
        z-index: -1;
    }
}

.dropdown-menu {
    padding: 0.5rem 0 !important;
    overflow: visible !important;
}

.dropdown-item {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #334155 !important;
    padding: 0.65rem 1.5rem !important;
    border-radius: 0 !important;
    border: none !important;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    background: transparent !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(50, 23, 77, 0.03) !important;
    color: var(--brand-primary) !important;
}

.dropdown-menu li.current-menu-item > a.dropdown-item,
.dropdown-menu li.active > a.dropdown-item {
    background-color: rgba(50, 23, 77, 0.08) !important;
    color: var(--brand-primary) !important;
    font-weight: 600 !important;
}

.dropdown-menu li.current-menu-item > a.dropdown-item::after,
.dropdown-menu li.active > a.dropdown-item::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background-color: var(--brand-primary);
}

/* ==========================================
   FRONT PAGE - Riverton (index.html) Style
   ============================================= */
:root {
    --rv-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Typography & reveals --- */
body {
    font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.rv-sec-title,
h1, h2, h3, h4 {
    font-family: "Merriweather", Georgia, serif;
}
.rv-section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.rv-lead {
    line-height: 1.75;
    font-size: 1.05rem;
}
.rv-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-primary);
}
.rv-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--brand-accent);
    border-radius: 2px;
    display: inline-block;
}
.rv-link-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-primary);
    gap: 0.45rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s, gap 0.25s;
}
.rv-link-more:hover {
    border-color: var(--brand-primary);
    gap: 0.7rem;
    color: var(--brand-primary);
}
a.rv-link-more:visited {
    color: var(--brand-primary);
}

/* --- Buttons (brand) --- */
.btn-brand {
    background: var(--brand-primary);
    color: #ffffff;
    border: 2px solid var(--brand-primary);
    transition: all 0.25s var(--rv-ease, ease);
}
.btn-brand:hover,
.btn-brand:focus {
    background: #24113a;
    border-color: #24113a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -12px rgba(50, 23, 77, 0.45);
}
.btn-outline-brand {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}
.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}
.btn-white {
    background: #ffffff;
    color: var(--brand-primary);
    border: 2px solid #ffffff;
}
.btn-white:hover,
.btn-white:focus {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    border-color: var(--brand-primary-soft);
    transform: translateY(-2px);
}
.btn-ghost-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    background: rgba(36, 17, 58, 0.25);
}
a.btn.btn-ghost-light:visited {
    color: #ffffff;
}
.btn-ghost-light:hover,
.btn-ghost-light:focus,
a.btn.btn-ghost-light:hover,
a.btn.btn-ghost-light:focus {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
}
.text-brand { color: var(--brand-primary) !important; }
.bg-brand { background-color: var(--brand-primary) !important; }
.bg-soft { background-color: var(--bg-light); }
.bg-primary-soft { background-color: var(--brand-primary-soft); }

/* --- Hero --- */
.rv-hero {
    min-height: 92vh;
    height: min(680px, 92vh);
    overflow: hidden;
    isolation: isolate;
    padding: 7rem 0 6rem;
}
.rv-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.rv-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(36, 17, 58, 0.88) 0%, rgba(50, 23, 77, 0.62) 45%, rgba(82, 3, 128, 0.25) 100%);
}
.rv-hero .container { z-index: 2; }
.rv-hero-title {
    letter-spacing: -0.5px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
@keyframes rvWheel {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 0; }
}

/* --- At a glance --- */
.rv-glance-img {
    border-radius: 14px;
    box-shadow: 0 24px 60px -24px rgba(50, 23, 77, 0.45);
}
.rv-glance-img::before {
    content: "";
    position: absolute;
    inset: -18px auto auto -18px;
    width: 56%;
    height: 56%;
    background: var(--brand-primary-soft);
    border-radius: 14px;
    z-index: -1;
}
.rv-glance-img::after {
    content: "";
    position: absolute;
    right: -38px;
    top: -30px;
    width: 150px;
    height: 150px;
    z-index: -1;
    opacity: 0.5;
    background-image: radial-gradient(var(--brand-accent) 9%, transparent 10%);
    background-size: 18px 18px;
}
@keyframes rvFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Stats band --- */
.rv-stats {
    background: linear-gradient(120deg, #24113a, var(--brand-primary) 55%, var(--brand-secondary));
    padding: 0;
}
.rv-stats-orbs::before,
.rv-stats-orbs::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}
.rv-stats-orbs::before {
    width: 340px;
    height: 340px;
    top: -150px;
    right: -80px;
}
.rv-stats-orbs::after {
    width: 260px;
    height: 260px;
    bottom: -120px;
    left: -60px;
}
.rv-stat + .rv-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
}
.rv-stat-value {
    font-family: "Merriweather", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
}
.rv-stat-value small {
    font-size: 0.55em;
    color: #c9d4f2;
}
.rv-stat-label {
    color: #e4e8fb;
}

/* --- Cards (announcements/events/news) --- */
.rv-card {
    background: #ffffff;
    border: 1px solid var(--rv-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(36, 17, 58, 0.06), 0 1px 3px rgba(36, 17, 58, 0.08);
    transition: transform 0.3s var(--rv-ease, ease), box-shadow 0.3s var(--rv-ease, ease), border-color 0.3s;
}
.rv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px -24px rgba(50, 23, 77, 0.35);
    border-color: var(--brand-primary);
}
.rv-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.rv-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--rv-ease, ease);
}
.rv-card:hover .rv-card-media img {
    transform: scale(1.07);
}
.rv-card-flag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: #334155;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.rv-card-flag-accent { background: var(--brand-accent); }
.rv-card-date {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 2;
    background: var(--rv-primary-soft);
    color: var(--rv-primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
}
.rv-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.rv-card-cat {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--brand-primary);
}
.rv-card-title {
    font-family: "Merriweather", sans-serif;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.35;
}
.rv-card-title a { color: var(--rv-ink); }
.rv-card-title a:hover { color: var(--rv-primary); }
.rv-card-text {
    font-size: 0.92rem;
    color: var(--text-muted);
}
.rv-card-foot .rv-link-more { font-size: 0.85rem; }

/* --- Announcements carousel --- */
.rv-carousel-nav .carousel-indicators { margin: 0; }
.rv-dot.active { background: var(--brand-primary); transform: scale(1.2); }

/* --- Campus life --- */
.rv-campus {
    background: var(--text-main);
}
.rv-campus-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
}
.rv-campus-pattern::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    top: -200px;
    right: -140px;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
    opacity: 0.5;
}
.rv-campus .rv-eyebrow, .rv-campus .rv-eyebrow-light { color: #ffffff; }
.rv-campus-fact {
    background: linear-gradient(150deg, rgba(123, 53, 176, 0.28), rgba(82, 3, 128, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    transition: background 0.25s, transform 0.25s var(--rv-ease, ease), box-shadow 0.25s ease;
}
.rv-campus-fact:hover {
    background: linear-gradient(150deg, rgba(123, 53, 176, 0.45), rgba(82, 3, 128, 0.22));
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -12px rgba(123, 53, 176, 0.55);
}

/* --- CTA card --- */
.rv-cta-card {
    background: linear-gradient(120deg, #24113a, var(--brand-primary));
    padding: clamp(2rem, 5vw, 3.6rem);
    box-shadow: 0 24px 60px -24px rgba(50, 23, 77, 0.55);
    isolation: isolate;
}
.rv-cta-orbs::before,
.rv-cta-orbs::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    animation: rvPulse 7s ease-in-out infinite;
}
.rv-cta-orbs::before {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    top: -120px;
    right: -80px;
}
.rv-cta-orbs::after {
    width: 220px;
    height: 220px;
    background: rgba(82, 3, 128, 0.35);
    bottom: -120px;
    left: -60px;
    animation-delay: 1.2s;
}
@keyframes rvPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
.rv-cta-note { max-width: 100%; }

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .rv-hero { min-height: 75vh; }
    .rv-stat + .rv-stat::before { display: none; }
    .rv-badge { left: 12px; }
}
@media (max-width: 575.98px) {
    .rv-quicklinks-inner { justify-content: center; }
}
/* ==========================================================================
   Riverton home page styles
   Covers: hero, announcements, glance, stats, campus, events, news, cta
   Built to sit alongside Bootstrap 5 utility classes (container, row, col-*,
   d-flex, g-*, rounded-*, etc.) â€” this file only defines the custom rv-*
   classes and a handful of brand utility classes (btn-brand, text-brand, ...).
   Enqueue after Bootstrap's CSS so these overrides/additions apply.
   ========================================================================== */

:root {
  --rv-primary: #520380;
  --rv-primary-dark: #3A025B;
  --rv-primary-soft: #F0E7F8;
  --rv-ink: #0F172A;
  --rv-ink-soft: #475569;
  --rv-accent: #7B35B0;
  --rv-bg-soft: #F8F5FB;
  --rv-line: #E2E8F0;
  --rv-radius: 14px;
  --rv-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --rv-shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --rv-shadow-lg: 0 24px 60px -24px rgba(58, 2, 91, .45);
  --rv-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Shared typography / section scaffolding ---------- */
.rv-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
/* Pull the announcements band closer to the full-bleed hero */
#rvAnnouncements { padding-top: 2rem; }

.rv-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--rv-primary);
}
.rv-eyebrow::before {
  content: "";
  display: none;
  width: 26px;
  height: 2px;
  background: var(--rv-accent);
  border-radius: 2px;
}
.rv-eyebrow-light { color: #D8C4F2; }

.rv-sec-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  color: var(--rv-ink);
}
.rv-sec-head { margin-bottom: 0; }

.rv-lead { font-size: 1.05rem; line-height: 1.65; max-width: 56ch; }
.text-white-75 { color: rgba(255, 255, 255, .78) !important; }
.text-brand { color: var(--rv-primary) !important; }
.bg-primary-soft { background: var(--rv-primary-soft) !important; }

.rv-link-more {
  font-weight: 600;
  font-size: .9rem;
  color: var(--rv-primary);
  border-bottom: 2px solid transparent;
  transition: border-color .25s, gap .25s;
}
.rv-link-more:hover { border-color: var(--rv-primary); gap: .7rem; }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--rv-primary);
  color: #fff;
  border: 2px solid var(--rv-primary);
  font-weight: 600;
  transition: transform .25s var(--rv-ease), box-shadow .25s var(--rv-ease), background .25s;
}
.btn-brand:hover { background: var(--rv-primary-dark); border-color: var(--rv-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--rv-shadow-md); }

.btn-ghost-light {
  border: 2px solid rgba(255, 255, 255, .6);
  color: #fff;
  background: rgba(15, 23, 42, .15);
  font-weight: 600;
  transition: transform .25s var(--rv-ease), box-shadow .25s var(--rv-ease), background .25s, color .25s;
}
a.btn.btn-ghost-light:visited {
  color: #fff;
}
.btn-ghost-light:hover,
a.btn.btn-ghost-light:hover { background: #fff; color: #000000; transform: translateY(-2px); box-shadow: var(--rv-shadow-md); }

.btn-outline-brand {
  border: 2px solid var(--rv-primary);
  color: var(--rv-primary);
  background: transparent;
  transition: background .25s, color .25s, transform .25s var(--rv-ease);
}
.btn-outline-brand:hover { background: var(--rv-primary); color: #fff; transform: translateY(-2px); }

.btn-white {
  background: #fff;
  color: var(--rv-primary-dark);
  border: 2px solid #fff;
  font-weight: 600;
}
.btn-white:hover { background: var(--rv-bg-soft); color: var(--rv-primary-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */
.rv-hero { height: min(680px, 92vh); min-height: 520px; isolation: isolate; }
.rv-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.rv-hero-video.ready { opacity: 1; }
.rv-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(100deg, rgba(10, 20, 35, .85) 0%, rgba(10, 20, 35, .55) 42%, rgba(10, 20, 35, .12) 100%);
}
.rv-hero-content {
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  max-width: 560px;
  padding-top: 50px;
  margin-left: 290px;
}
.rv-hero-title { font-size: clamp(2.1rem, 5.2vw, 3.7rem); max-width: 14ch; line-height: 1.15; }
@keyframes rvWheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 0; }
}

/* ---------- Hero slider (MZUNI-style) ---------- */
.rv-hero-slider { height: 950px; min-height: 0; }
.rv-hero-track { position: absolute; inset: 0; }
.rv-hero-overlay-slider {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(10, 20, 35, .92) 0%, rgba(10, 20, 35, .45) 45%, transparent 100%);
}
.rv-hero-track { z-index: 1; }
.rv-hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--rv-ease), visibility 1s;
  z-index: 1;
}
.rv-hero-slide.active { opacity: 1; visibility: visible; z-index: 3; }
.rv-hero-slider .rv-hero-content {
  margin-left: 170px;
  justify-content: flex-start;
  padding-top: clamp(300px, 46vh, 460px);
  padding-left: 0;
}

/* Animate in each text layer like the MZUNI slider (staggered rise) */
@keyframes rvFadeUp {
  from { opacity: 0; transform: translate3d(0, 36px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.rv-hero-slide .rv-hero-content > * { opacity: 0; }
.rv-hero-slide.active .rv-hero-content > * {
  animation: rvFadeUp .8s var(--rv-ease) forwards;
}
.rv-hero-slide.active .rv-hero-content > *:nth-child(1) { animation-delay: .25s; }
.rv-hero-slide.active .rv-hero-content > *:nth-child(2) { animation-delay: .5s; }
.rv-hero-slide.active .rv-hero-content > *:nth-child(3) { animation-delay: .75s; }
.rv-hero-eyebrow {
  display: inline-block;
  color: rgba(255, 255, 255, .92);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .65rem;
}
.rv-hero-cta { margin-top: .35rem; }

@media (max-width: 1024px) {
  .rv-hero-slider { height: 660px; }
  .rv-hero-slider .rv-hero-content {
    padding-top: 300px;
    margin-left: 170px;
  }
}
@media (max-width: 480px) {
  .rv-hero-slider { height: 720px; }
  .rv-hero-slider .rv-hero-content { padding-top: 150px; }
}

/* ==========================================================================
   Announcements carousel
   ========================================================================== */
.rv-card {
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  overflow: hidden;
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease), border-color .3s;
}
.rv-card:hover { transform: translateY(-6px); box-shadow: var(--rv-shadow-md); border-color: var(--rv-primary); }

.rv-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.rv-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--rv-ease); }
.rv-card:hover .rv-card-media img { transform: scale(1.07); }

.rv-media-link { z-index: 1; }

.rv-card-flag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: #334155; color: #fff; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: .35rem .8rem; border-radius: 999px;
  box-shadow: var(--rv-shadow-sm);
}
.rv-card-flag-accent { background: var(--rv-primary); }

.rv-card-date {
  position: absolute; bottom: 1rem; right: 1rem; z-index: 2;
  background: rgba(15, 23, 42, .75); backdrop-filter: blur(4px);
  color: #fff; font-size: .75rem; font-weight: 600; padding: .45rem .8rem; border-radius: 999px;
}
/* Inline pill variant used in the announcements carousel (light background) */
.rv-card-date.bg-primary-soft {
  position: static; background: var(--rv-primary-soft) !important; color: var(--rv-primary-dark) !important;
  backdrop-filter: none; font-weight: 700;
}

.rv-card-body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.rv-card-cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--rv-primary); }
.rv-card-title { font-size: 1.08rem; font-weight: 600; line-height: 1.4; color: var(--rv-ink); }
.rv-card-title a:hover, .rv-card a:hover .rv-card-title { color: var(--rv-primary); }
.rv-card-text { font-size: .92rem; color: var(--rv-ink-soft); }
.rv-card-foot { border-top: 1px solid var(--rv-line); padding-top: .9rem; }
.rv-dot.active { background: var(--rv-primary); transform: scale(1.2); }

/* ==========================================================================
   At a Glance
   ========================================================================== */
.rv-glance-img img { box-shadow: var(--rv-shadow-lg); aspect-ratio: 5 / 4; object-fit: cover; }
.rv-glance-img::before {
  content: "";
  position: absolute; inset: -18px auto auto -18px; width: 56%; height: 56%;
  background: var(--rv-primary-soft); border-radius: var(--rv-radius); z-index: -1;
}
@keyframes rvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.rv-g-fact {
  background: var(--rv-bg-soft);
  border: 1px solid var(--rv-line);
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease), background .3s;
}
.rv-g-fact:hover { transform: translateY(-4px); box-shadow: var(--rv-shadow-md); background: #fff; }

/* ==========================================================================
   Stats band
   ========================================================================== */
.rv-stats { background: linear-gradient(120deg, var(--rv-primary-dark), var(--rv-primary) 55%, #7B35B0); }
.rv-stats-pattern { position: absolute; inset: 0; z-index: 0; }
.rv-stats-pattern::before, .rv-stats-pattern::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.rv-stats-pattern::before { width: 340px; height: 340px; top: -150px; right: -80px; }
.rv-stats-pattern::after { width: 260px; height: 260px; bottom: -120px; left: -60px; }
.rv-stats .container { position: relative; z-index: 1; }
.rv-stat-num { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.rv-stat-num small { font-size: .55em; font-weight: 700; color: #D8C4F2; }

/* ==========================================================================
   Campus life
   ========================================================================== */
.rv-campus { background: var(--rv-primary); }
.rv-campus-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.rv-campus-pattern::before {
  content: "";
  position: absolute; width: 420px; height: 420px; border-radius: 50%; top: -200px; right: -140px;
  background: radial-gradient(circle, var(--rv-primary) 0%, transparent 70%); opacity: .5;
}
.rv-campus .rv-eyebrow, .rv-campus .rv-eyebrow-light { color: #ffffff; }
.rv-campus .container { position: relative; z-index: 2; }

.rv-campus-fact {
  background: linear-gradient(150deg, rgba(123, 53, 176, .28), rgba(82, 3, 128, .1));
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  transition: background .25s, transform .25s var(--rv-ease), box-shadow .25s ease;
}
.rv-campus-fact:hover {
  background: linear-gradient(150deg, rgba(123, 53, 176, .45), rgba(82, 3, 128, .22));
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -12px rgba(123, 53, 176, .55);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.rv-cta-card {
  background: linear-gradient(120deg, var(--rv-primary-dark), var(--rv-primary));
  box-shadow: var(--rv-shadow-lg);
  isolation: isolate;
}
.rv-cta-orbs { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.rv-cta-orbs::before, .rv-cta-orbs::after { content: ""; position: absolute; border-radius: 50%; }
.rv-cta-orbs::before {
  width: 300px; height: 300px; background: rgba(255, 255, 255, .08); top: -120px; right: -80px;
  animation: rvPulse 7s ease-in-out infinite;
}
.rv-cta-orbs::after {
  width: 220px; height: 220px; background: rgba(245, 158, 11, .18); bottom: -120px; left: -60px;
  animation: rvPulse 7s ease-in-out 1.2s infinite;
}
@keyframes rvPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.rv-cta-note { color: var(--rv-ink-soft); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .rv-hero-scroll { display: none !important; }
  .rv-badge-exp { left: 12px; }
  .rv-hero-content {
    max-width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-top: 30px;
  }
  .rv-hero-slider .rv-hero-content { padding-top: 150px; padding-left: 0; margin-left: 0; }
  .rv-hero-title { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-hero-mouse::after,
  .rv-badge-exp,
  .rv-cta-orbs::before,
  .rv-cta-orbs::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
  }
  .rv-hero-slide .rv-hero-content > * {
    opacity: 1;
    animation: none !important;
  }
}
/* ==========================================================================
   Riverton â€” About page styles
   Depends on the shared tokens (--rv-primary, --rv-ink, etc.) defined in
   riverton-home.css â€” enqueue that file as a dependency of this one.
   ========================================================================== */

/* ---------- Page hero (inner-page variant of the home hero) ---------- */
.rv-page-hero {
  min-height: min(530px, 76vh);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  padding: calc(2rem + 50px) 0 2rem;
}
.rv-page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10, 20, 35, .9) 0%, rgba(58, 2, 91, .62) 45%, rgba(15, 23, 42, .35) 100%);
}
.rv-page-hero-content { z-index: 2; max-width: 760px; }
.rv-page-hero .rv-hero-title { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 18ch; }

.rv-breadcrumb { font-size: .85rem; color: #D8C4F2; }
.rv-breadcrumb a { color: #fff; font-weight: 500; transition: color .2s; }
.rv-breadcrumb a:hover { color: #D8C4F2; }
.rv-bc-sep { opacity: .6; }

/* ---------- Mission & Vision ---------- */
.rv-mv-card {
  background: #fff;
  border: 1px solid var(--rv-line);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease);
}
.rv-mv-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--rv-primary), var(--rv-accent));
}
.rv-mv-card:hover { transform: translateY(-6px); box-shadow: var(--rv-shadow-md); }
.rv-mv-icon {
  width: 50px; height: 50px; border-radius: 12px; background: var(--rv-primary-soft);
  color: var(--rv-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.rv-mv-card h3 { font-size: 1.3rem; color: var(--rv-ink); }

/* ---------- Core Values ---------- */
.rv-value-card {
  background: var(--rv-bg-soft);
  border: 1px solid var(--rv-line);
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease), background .3s;
}
.rv-value-card:hover { transform: translateY(-6px); box-shadow: var(--rv-shadow-md); background: #fff; }
.rv-value-icon {
  width: 44px; height: 44px; border-radius: 11px; background: #fff; color: var(--rv-primary);
  box-shadow: var(--rv-shadow-sm); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.rv-value-icon-img { padding: 6px; }
.rv-value-icon-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rv-value-card h3 { font-size: 1.02rem; font-weight: 600; color: var(--rv-ink); }

/* ---------- Core Values slider ---------- */
#rvValuesSlider { padding: 0 3.2rem; }
#rvValuesSlider .carousel-inner { padding: 2px; }
#rvValuesSlider .carousel-control-prev,
#rvValuesSlider .carousel-control-next {
  width: 3rem; height: 3rem; top: 50%; bottom: auto; transform: translateY(-50%);
  background: #fff; border: 1px solid var(--rv-line); border-radius: 50%;
  box-shadow: var(--rv-shadow-sm); opacity: 1; margin: 0;
}
#rvValuesSlider .carousel-control-prev:hover,
#rvValuesSlider .carousel-control-next:hover { background: var(--rv-primary); }
#rvValuesSlider .carousel-control-prev-icon,
#rvValuesSlider .carousel-control-next-icon { filter: invert(1) sepia(1) saturate(5) hue-rotate(230deg); }
#rvValuesSlider .carousel-control-prev:hover .carousel-control-prev-icon,
#rvValuesSlider .carousel-control-next:hover .carousel-control-next-icon { filter: invert(0); opacity: .85; }
#rvValuesSlider .carousel-indicators { position: static; margin-top: 1.4rem; }
#rvValuesSlider .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: var(--rv-primary); border: 0; opacity: .25;
}
#rvValuesSlider .carousel-indicators .active { background-color: var(--rv-primary); opacity: 1; }
@media (max-width: 575.98px) {
  #rvValuesSlider { padding: 0 2.6rem; }
  #rvValuesSlider .carousel-control-prev,
  #rvValuesSlider .carousel-control-next { width: 2.4rem; height: 2.4rem; }
}

/* ---------- Timeline ---------- */
.rv-timeline { position: relative; display: grid; gap: 1.3rem; }
.rv-timeline::before {
  content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--rv-primary), var(--rv-accent)); border-radius: 2px;
}
.rv-tl-item { position: relative; padding-left: 52px; }
.rv-tl-dot {
  position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--rv-primary); box-shadow: var(--rv-shadow-sm);
}
.rv-tl-dot::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--rv-primary);
}
.rv-tl-card {
  background: #fff; border: 1px solid var(--rv-line);
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease);
}
.rv-tl-card:hover { transform: translateX(6px); box-shadow: var(--rv-shadow-md); }
.rv-tl-year {
  display: inline-block; font-size: .75rem; font-weight: 700; color: #fff; background: var(--rv-primary);
  border-radius: 999px; padding: .28rem .8rem; letter-spacing: .06em;
}

/* ---------- Leadership flip cards ---------- */
.rv-flip-container { perspective: 1400px; height: 340px; }
.rv-flipper {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .6s var(--rv-ease);
}
.rv-flip-container:hover .rv-flipper { transform: rotateY(180deg); }
.rv-flip-front, .rv-flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden;
  box-shadow: var(--rv-shadow-md);
}
.rv-flip-front {
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
}
.rv-flip-front::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10, 20, 35, .88));
}
.rv-flip-front-box { position: relative; z-index: 1; padding: 1.2rem; color: #fff; }
.rv-flip-front-box h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .2rem; }
.rv-flip-front-box p { font-size: .82rem; color: #CBD5E1; margin: 0; }
.rv-flip-back {
  background: linear-gradient(145deg, var(--rv-primary-dark), var(--rv-primary));
  color: #fff; transform: rotateY(180deg);
}
.rv-flip-back i { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .rv-flip-container { height: 300px; }
}

/* ==========================================================================
   Riverton — Alumni page styles
   ========================================================================== */

/* ---------- Alumni overview ---------- */
.rv-quote {
  position: relative;
  background: var(--rv-primary-soft);
  border-left: 4px solid var(--rv-primary);
  border-radius: 0 var(--rv-radius) var(--rv-radius) 0;
  padding: 1.4rem 1.6rem;
  margin-top: 1.4rem;
}
.rv-quote p {
  font-family: 'Nunito Sans', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--rv-primary-dark);
  line-height: 1.55;
  margin-bottom: .6rem;
}
.rv-quote cite {
  font-size: .82rem;
  font-style: normal;
  color: var(--rv-ink-soft);
}
.rv-quote cite b { color: var(--rv-primary); }

/* Stats band — vertical dividers (alumni variant) */
.rv-alumni-stats .rv-stat + .rv-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, .18);
}

/* ---------- Distinguished alumni (team cards) ---------- */
.rv-team-card {
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  padding: 1.8rem 1.4rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease);
}
.rv-team-card:hover { transform: translateY(-8px); box-shadow: var(--rv-shadow-md); }
.rv-t-avatar {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.5rem; font-weight: 700;
  box-shadow: var(--rv-shadow-sm);
  overflow: hidden;
}
.rv-t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rv-t-avatar::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px dashed var(--rv-primary-soft);
  pointer-events: none;
}
.rv-team-card h3 { font-family: 'Merriweather', Georgia, serif; font-size: 1.05rem; font-weight: 600; color: var(--rv-ink); }
.rv-team-role {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rv-primary);
}
.rv-honoree-award {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rv-accent);
}
.rv-team-card p { font-size: .85rem; color: var(--rv-ink-soft); line-height: 1.5; }

/* ---------- Alumni association cards ---------- */
.rv-assoc-card {
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease);
}
.rv-assoc-card:hover { transform: translateY(-6px); box-shadow: var(--rv-shadow-md); }
.rv-assoc-icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 12px;
  background: var(--rv-primary-soft);
  color: var(--rv-primary);
  display: grid; place-items: center;
  font-size: 1.5rem;
}
.rv-assoc-card h3 { font-family: 'Merriweather', Georgia, serif; font-size: 1.12rem; font-weight: 600; color: var(--rv-ink); }
.rv-assoc-card p { font-size: .92rem; color: var(--rv-ink-soft); line-height: 1.6; }
.rv-assoc-benefits { display: grid; gap: .65rem; margin-top: auto; list-style: none; padding: 0; margin-bottom: 0; }
.rv-assoc-benefits li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--rv-ink); }
.rv-assoc-benefits li i { color: var(--rv-primary); flex: none; margin-top: .18rem; }

/* ==========================================================================
   Riverton — Contact page styles
   Depends on the shared tokens (--rv-primary, --rv-ink, etc.) defined in the
   Riverton home section above — keep this file after Bootstrap's CSS.
   ========================================================================== */

/* ---------- Department directory cards ---------- */
.rv-dept-card {
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  padding: 1.7rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  height: 100%;
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease), border-color .3s;
}
.rv-dept-card:hover { transform: translateY(-7px); box-shadow: var(--rv-shadow-md); border-color: var(--rv-primary); }
.rv-dept-icon {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  background: var(--rv-primary-soft); color: var(--rv-primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
  transition: background .3s, color .3s;
}
.rv-dept-card:hover .rv-dept-icon { background: var(--rv-primary); color: #fff; }
.rv-dept-card h3 { font-family: 'Merriweather', Georgia, serif; font-size: 1.05rem; font-weight: 600; color: var(--rv-ink); }
.rv-dept-card p { font-size: .88rem; color: var(--rv-ink-soft); line-height: 1.5; margin-bottom: 0; }
.rv-dept-mail {
  margin-top: auto; font-size: .83rem; font-weight: 600; color: var(--rv-primary);
  word-break: break-all; line-height: 1.4;
}
.rv-dept-card:hover .rv-dept-mail { color: var(--rv-primary-dark); }

/* ---------- Contact form ---------- */
.rv-contact-form .form-label { font-weight: 600; color: var(--rv-ink); }
.rv-contact-form .form-control,
.rv-contact-form .form-select {
  padding: .8rem 1.1rem;
  font-size: .95rem;
  border-color: var(--rv-line);
  border-radius: .75rem;
  background: var(--rv-bg-soft);
  color: var(--rv-ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.rv-contact-form .form-control:focus,
.rv-contact-form .form-select:focus {
  background: #fff;
  border-color: var(--rv-primary);
  box-shadow: 0 0 0 3px var(--rv-primary-soft);
  outline: none;
}
.rv-contact-form .btn-brand { 
  display: inline-flex; align-items: center; gap: .55rem;
}

/* ---------- Status / flash messages ---------- */
.rv-status {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .9rem 1.1rem; border-radius: 10px;
  font-size: .9rem; font-weight: 500;
  border-left: 4px solid;
}
.rv-status-success { background: #ECFDF5; border-color: #10B981; color: #065F46; }
.rv-status-error { background: #FEF2F2; border-color: #EF4444; color: #991B1B; }

/* ---------- Contact information card ---------- */
.rv-info-card {
  background: linear-gradient(155deg, var(--rv-primary) 0%, var(--rv-primary-dark) 100%);
  color: #fff; border-radius: var(--rv-radius);
  padding: 2.2rem 2rem; height: 100%;
  position: relative; overflow: hidden;
  box-shadow: var(--rv-shadow-md);
}
.rv-info-card::after {
  content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%;
  right: -70px; top: -70px; background: rgba(255, 255, 255, .07);
}
.rv-info-card > * { position: relative; z-index: 1; }
.rv-info-card h3 { font-size: 1.3rem; color: #fff; margin-bottom: 1.6rem; font-family: 'Merriweather', Georgia, serif; }
.rv-info-card h5 {
  font-family: 'Nunito Sans', sans-serif; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #D8C4F2; margin-bottom: .4rem;
}
.rv-info-card ul { display: flex; flex-direction: column; gap: 1.4rem; padding: 0; margin: 0 0 1.6rem; }
.rv-info-card ul li { list-style: none; }
.rv-info-card ul p { font-size: .93rem; color: #D8E6E5; line-height: 1.6; margin-bottom: 0; }
.rv-info-card ul a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .2s, color .2s; }
.rv-info-card ul a:hover { color: #D8C4F2; border-color: #D8C4F2; }
.rv-info-card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .22); margin: 1.4rem 0; }
.rv-info-socials { display: flex; gap: .7rem; }
.rv-info-socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  text-decoration: none; transition: background .25s, transform .25s;
}
.rv-info-socials a:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); }

/* ---------- Map ---------- */
.rv-map {
  border-radius: var(--rv-radius); overflow: hidden;
  border: 1px solid var(--rv-line); box-shadow: var(--rv-shadow-md);
  height: 460px;
}
.rv-map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 767.98px) {
  .rv-map { height: 340px; }
}

/* ==========================================================================
   Riverton — Gallery page styles
   Depends on the shared tokens (--rv-primary, --rv-ink, etc.) defined in the
   Riverton home section above — keep this file after Bootstrap's CSS.
   ========================================================================== */

/* ---------- Toolbar / filter pills ---------- */
.rv-gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.15rem 1.3rem;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow-sm);
  margin-bottom: 2rem;
}
.rv-filter-pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.rv-filter-btn {
  display: inline-flex; align-items: center;
  border: 1px solid var(--rv-line); background: #fff; color: var(--rv-ink);
  font-size: .85rem; font-weight: 600; padding: .5rem 1.05rem;
  border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: all .25s var(--rv-ease);
}
.rv-filter-btn:hover { border-color: var(--rv-primary); color: var(--rv-primary); }
.rv-filter-btn.active { background: var(--rv-primary); border-color: var(--rv-primary); color: #fff; box-shadow: var(--rv-shadow-sm); }
.rv-filter-btn .pcount {
  margin-left: .45rem; font-size: .7rem; font-weight: 700;
  background: var(--rv-primary-soft); color: var(--rv-primary);
  border-radius: 999px; padding: .15rem .5rem;
  transition: background .25s, color .25s;
}
.rv-filter-btn:hover .pcount { background: #fff; color: var(--rv-primary); }
.rv-filter-btn.active .pcount { background: rgba(255, 255, 255, .24); color: #fff; }
.rv-gallery-note { font-size: .85rem; color: var(--rv-ink-soft); }

/* ---------- Gallery grid ---------- */
.rv-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 1.4rem;
}
.rv-gallery-item {
  margin: 0; position: relative; background: #fff;
  border: 1px solid var(--rv-line); border-radius: var(--rv-radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease);
}
.rv-gallery-item:hover { transform: translateY(-7px); box-shadow: var(--rv-shadow-md); }
.rv-gi-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--rv-ink); }
.rv-gi-media img, .rv-gi-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--rv-ease); }
.rv-gi-media video { display: block; }
.rv-gallery-item:hover .rv-gi-media img, .rv-gallery-item:hover .rv-gi-media video { transform: scale(1.07); }
.rv-gi-type {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(15, 23, 42, .62); backdrop-filter: blur(4px);
  color: #fff; display: grid; place-items: center; pointer-events: none;
  font-size: 17px; line-height: 1;
}
.rv-gi-type svg { width: 17px; height: 17px; }
.rv-gi-type.rv-gi-video { background: var(--rv-primary); }
.rv-gi-open { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; display: block; }
.rv-gi-open:focus-visible { outline: 2px solid var(--rv-accent); outline-offset: -4px; }
.rv-gi-caption { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .25rem; }
.rv-gi-cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--rv-primary); }
.rv-gi-caption strong { font-family: 'Merriweather', Georgia, serif; font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--rv-ink); }

/* ---------- Empty state ---------- */
.rv-gallery-empty { text-align: center; color: var(--rv-ink-soft); padding: 3rem 1rem; font-size: .95rem; }
.rv-gallery-empty i { font-size: 2.2rem; color: var(--rv-line); display: block; margin-bottom: .8rem; }

/* ---------- Pagination ---------- */
.rv-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2.6rem; }
.rv-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .8rem; border-radius: 10px;
  background: #fff; color: var(--rv-ink); font-weight: 600; font-size: .88rem;
  text-decoration: none; border: 1px solid var(--rv-line);
  transition: all .25s var(--rv-ease);
}
.rv-pagination .page-numbers:hover:not(.current):not(.dots) { border-color: var(--rv-primary); color: var(--rv-primary); }
.rv-pagination .page-numbers.current { background: var(--rv-primary); border-color: var(--rv-primary); color: #fff; box-shadow: var(--rv-shadow-sm); }
.rv-pagination .page-numbers.dots { border: none; background: transparent; pointer-events: none; min-width: auto; padding: 0 6px; }
.rv-pagination .page-note { display: inline-flex; align-items: center; margin-left: .6rem; font-size: .82rem; color: var(--rv-ink-soft); }

/* ==========================================================================
   Riverton — Programme Finder (program archive)
   ========================================================================== */
.rv-sec-lead { max-width: 760px; color: var(--rv-ink-soft); line-height: 1.7; font-size: .98rem; }

.rv-program-toolbar {
  display: grid; gap: 1.1rem; align-items: end;
  padding: 1.4rem 1.5rem; margin-bottom: 2rem;
  background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow-sm);
}
.rv-program-filters { display: grid; grid-template-columns: 240px 1fr; gap: 1rem 1.4rem; align-items: end; }
.rv-program-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--rv-ink-soft); margin-bottom: .35rem; }
.rv-program-select select {
  width: 100%; border: 1px solid var(--rv-line); border-radius: 10px;
  padding: .65rem .9rem; font: inherit; font-size: .92rem; color: var(--rv-ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right .9rem center;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.rv-program-select select:focus { outline: none; border-color: var(--rv-primary); box-shadow: 0 0 0 3px var(--rv-primary-soft); }
.rv-program-pills { justify-content: flex-start; flex-wrap: wrap; padding-top: .35rem; }
.rv-program-pills .rv-filter-btn { white-space: nowrap; }

.rv-program-list { display: grid; gap: 1rem; }
.rv-program-row {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  padding: 1.4rem 1.6rem; background: #fff;
  border: 1px solid var(--rv-line); border-left: 4px solid var(--rv-primary);
  border-radius: var(--rv-radius); text-decoration: none;
  box-shadow: var(--rv-shadow-sm);
  transition: transform .25s var(--rv-ease), box-shadow .25s var(--rv-ease), border-color .25s var(--rv-ease);
}
.rv-program-row:hover { transform: translateY(-3px); box-shadow: var(--rv-shadow-md); border-left-color: var(--rv-accent, var(--brand-accent, var(--rv-primary))); }
.rv-program-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.rv-program-chip {
  display: inline-flex; align-items: center;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--rv-primary); background: var(--rv-primary-soft);
  padding: .3rem .7rem; border-radius: 999px;
}
.rv-program-chip-soft { color: var(--rv-ink-soft); background: var(--rv-bg-soft); }
.rv-program-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.12rem; font-weight: 600; line-height: 1.4; color: var(--rv-ink);
  transition: color .25s var(--rv-ease);
}
.rv-program-row:hover .rv-program-name { color: var(--rv-primary); }
.rv-program-view {
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start;
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--rv-primary);
}
.rv-program-view i { transition: transform .25s var(--rv-ease); }
.rv-program-row:hover .rv-program-view i { transform: translateX(5px); }
.rv-program-empty { text-align: center; color: var(--rv-ink-soft); padding: 3.5rem 1rem; }
.rv-program-empty i { font-size: 2.4rem; color: var(--rv-line); display: block; margin-bottom: .5rem; }

/* ---------- Single programme: MZUNI-style facts & sidebar ---------- */
.rv-program-layout { align-items: flex-start; }
.rv-program-facts { display: grid; gap: 1.1rem; margin: 0 0 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--rv-line); }
.rv-program-facts > div { display: grid; gap: .3rem; }
.rv-program-facts dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rv-ink-soft); }
.rv-program-facts dd { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.5; color: var(--rv-ink); }
.rv-program-facts dd a { color: var(--rv-ink); text-decoration: none; transition: color .25s var(--rv-ease); }
.rv-program-facts dd a:hover { color: var(--rv-primary); }
.rv-program-facts-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.rv-program-facts-chips .rv-program-chip { font-size: .68rem; }
.rv-program-hods { display: grid; }
.rv-program-hod { border-bottom: 1px solid var(--rv-line); }
.rv-program-hod b { display: block; font-size: .92rem; font-weight: 600; color: var(--rv-ink); margin-bottom: .15rem; }
.rv-program-hod p { font-size: .86rem; color: var(--rv-ink-soft); }
.rv-program-hod:last-child { border-bottom: 0; padding-bottom: 0 !important; }
.rv-getintouch li { margin-bottom: .8rem; }
.rv-getintouch a { color: var(--rv-ink-soft); font-size: .92rem; transition: color .25s var(--rv-ease); }
.rv-getintouch a:hover { color: var(--rv-primary); }

@media (max-width: 767.98px) {
  .rv-program-filters { grid-template-columns: 1fr; }
}

/* ---------- Video modal (gallery variant) ---------- */
.rv-video-modal .modal-content { border: 0; border-radius: var(--rv-radius); overflow: hidden; box-shadow: var(--rv-shadow-lg); }

/* ==========================================================================
   Riverton — Announcements page styles
   ========================================================================== */

/* ---------- Toolbar ---------- */
.rv-news-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.1rem; padding: 1.15rem 1.3rem; background: #fff;
  border: 1px solid var(--rv-line); border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow-sm); margin-bottom: 2rem;
}

.rv-event-filter-group { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; width: 100%; }
.rv-event-filter-group .rv-filter-pills { gap: .55rem; }
.rv-event-filter-group .rv-filter-btn { text-transform: none; }

/* ---------- Announcement grid ---------- */
.rv-announcement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.rv-announcement-card {
  display: flex; flex-direction: column; gap: .6rem; background: #fff;
  border: 1px solid var(--rv-line); border-radius: var(--rv-radius);
  padding: 1.5rem 1.6rem; text-decoration: none; color: inherit; height: 100%;
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease), border-color .3s var(--rv-ease);
}
.rv-announcement-card:hover { transform: translateY(-6px); box-shadow: var(--rv-shadow-md); border-color: var(--rv-primary); }
.rv-announcement-card.hide { display: none; }
.rv-ann-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.rv-ann-badge {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: .34rem .85rem;
  border-radius: 999px; line-height: 1;
}
.rv-ann-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rv-ann-badge.notice { background: #E2E8F0; color: #334155; }
.rv-ann-badge.deadline { background: #FDE68A; color: #92400E; }
.rv-ann-badge.alert { background: #FEE2E2; color: #B91C1C; }
.rv-ann-date { font-size: .8rem; font-weight: 600; color: var(--rv-ink-soft); white-space: nowrap; }
.rv-ann-title { font-family: 'Merriweather', Georgia, serif; font-size: 1.08rem; font-weight: 600; line-height: 1.4; transition: color .25s var(--rv-ease); }
.rv-announcement-card:hover .rv-ann-title { color: var(--rv-primary); }
.rv-ann-excerpt { font-size: .92rem; color: var(--rv-ink-soft); line-height: 1.6; margin-bottom: 0; }
.rv-ann-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rv-line); padding-top: .85rem; font-size: .8rem; color: var(--rv-ink-soft); margin-top: auto; }
.rv-ann-empty { grid-column: 1 / -1; text-align: center; color: var(--rv-ink-soft); padding: 3rem 1rem; font-size: .95rem; }

/* ---------- Admissions portal widget ---------- */
.rv-portal-widget {
  background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius);
  padding: 2rem 1.7rem; box-shadow: var(--rv-shadow-sm);
}
@media (min-width: 992px) {
  .rv-portal-widget { position: sticky; top: 110px; }
}
.rv-portal-link {
  display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit;
  padding: 1rem 1.05rem; border: 1px solid var(--rv-line); border-radius: var(--rv-radius);
  transition: border-color .25s var(--rv-ease), box-shadow .25s var(--rv-ease), transform .25s var(--rv-ease);
}
.rv-portal-link + .rv-portal-link { margin-top: .9rem; }
.rv-portal-link:hover { border-color: var(--rv-primary); box-shadow: var(--rv-shadow-sm); transform: translateX(4px); }
.rv-portal-link-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--rv-primary-soft), transparent);
  color: var(--rv-primary);
}
.rv-portal-link-body { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.rv-portal-link-title { font-weight: 600; font-size: .95rem; line-height: 1.35; color: var(--rv-ink); }
.rv-portal-link-sub { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--rv-primary); }
.rv-portal-link-arrow { margin-left: auto; flex: none; font-size: 1.4rem; color: var(--rv-ink-soft); transition: transform .25s var(--rv-ease), color .25s var(--rv-ease); }
.rv-portal-link:hover .rv-portal-link-arrow { transform: translateX(4px); color: var(--rv-primary); }

@media (max-width: 575.98px) {
  .rv-portal-widget { padding: 1.6rem 1.4rem; }
}

@media (max-width: 767.98px) {
  .rv-announcement-grid { grid-template-columns: 1fr; }
  .rv-news-toolbar { flex-direction: column; align-items: stretch; }
}

/* ---------- Admissions: floating hero image ---------- */

[data-page="admissions"] {
  --rv-float-size: 240px;  
  --rv-float-up: 100px;     
  --rv-float-dx: 12px;      
  --rv-float-dy: 12px;      
  --rv-float-line: 6px;    
  --rv-sec-pad: clamp(3.5rem, 7vw, 5.5rem); 
}

.rv-hero-float {
  position: relative;
  z-index: 5;
  margin-top: -3rem;
}
.rv-hero-float-frame {
  position: relative;
  width: min(60vw, 200px);
}
.rv-hero-float-frame::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  border: var(--rv-float-line) solid var(--rv-accent);
  transform: translate(calc(-1 * var(--rv-float-dx)), calc(-1 * var(--rv-float-dy)));
}
.rv-hero-float-card { margin: 0; }
.rv-hero-float-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (min-width: 992px) {
  [data-page="admissions"] { --rv-float-dx: 16px; --rv-float-dy: 16px; }

  .rv-hero-float { height: 0; margin-top: 0; }
  .rv-hero-float-frame {
    width: var(--rv-float-size);
    top: calc(-1 * var(--rv-float-up));
  }

  .rv-portal-col {
    padding-top: max(0px, calc(var(--rv-float-size) - var(--rv-float-up) + 2rem - var(--rv-sec-pad)));
  }
}

/* ==========================================================================
   Riverton — News and Updates page styles
   ========================================================================== */

/* ---------- Search ---------- */
.rv-news-search { position: relative; display: flex; align-items: center; min-width: 255px; flex: 1; max-width: 340px; }
.rv-news-search i { position: absolute; left: 1rem; color: var(--rv-ink-soft); pointer-events: none; }
.rv-news-search input {
  width: 100%; border: 1px solid var(--rv-line); border-radius: 999px;
  padding: .62rem 1rem .62rem 2.6rem; font: inherit; font-size: .9rem;
  background: var(--rv-bg-soft); color: var(--rv-ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.rv-news-search input:focus { outline: none; border-color: var(--rv-primary); background: #fff; box-shadow: 0 0 0 3px var(--rv-primary-soft); }

/* ---------- Layout ---------- */
.rv-news-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(1.5rem, 3vw, 2.4rem); align-items: start; }
.rv-news-main { min-width: 0; }

/* ---------- Grid ---------- */
.rv-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.rv-news-card {
  position: relative; background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--rv-shadow-sm);
  transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease);
}
.rv-news-card:hover { transform: translateY(-8px); box-shadow: var(--rv-shadow-md); }
.rv-news-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.rv-news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--rv-ease); }
.rv-news-card:hover .rv-news-media img { transform: scale(1.07); }
.rv-news-link { position: absolute; inset: 0; z-index: 1; }
.rv-news-date {
  position: absolute; bottom: 1rem; right: 1rem; z-index: 2;
  background: var(--rv-primary-soft); color: var(--rv-primary-dark);
  font-size: .75rem; font-weight: 700; padding: .45rem .8rem; border-radius: 999px;
}
.rv-news-body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.rv-news-cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--rv-primary); }
.rv-news-body h3 { font-family: 'Merriweather', Georgia, serif; font-size: 1.12rem; font-weight: 600; line-height: 1.35; }
.rv-news-body h3 a { color: var(--rv-ink); transition: color .25s var(--rv-ease); }
.rv-news-body h3 a:visited { color: var(--rv-ink); }
.rv-news-body h3 a:hover { color: var(--rv-primary); }
.rv-news-body p { font-size: .92rem; color: var(--rv-ink-soft); flex: 1; margin-bottom: 0; }
.rv-news-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rv-line); padding-top: .9rem; font-size: .82rem; color: var(--rv-ink-soft); }
.rv-news-empty { grid-column: 1 / -1; text-align: center; color: var(--rv-ink-soft); padding: 3rem 1rem; font-size: .95rem; }

/* ---------- Sidebar ---------- */
.rv-news-widgets { position: sticky; top: calc(var(--rv-header-h, 70px) + 24px); display: grid; gap: 1.4rem; }
.rv-widget { background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius); padding: 1.5rem; box-shadow: var(--rv-shadow-sm); }
.rv-widget-title {
  display: flex; align-items: center; gap: .6rem; font-size: 1.02rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1.2rem;
}
.rv-wcat {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem; width: 100%;
  padding: .55rem .75rem; border-radius: 9px; background: none; border: 1px solid transparent;
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--rv-ink-soft); text-align: left; cursor: pointer;
  transition: all .2s var(--rv-ease);
}
.rv-wcat:hover { background: var(--rv-primary-soft); color: var(--rv-primary); }
.rv-wcat.active { background: var(--rv-primary); color: #fff; }
.rv-wcat .rv-wcount { margin-left: auto; font-size: .72rem; font-weight: 700; background: var(--rv-primary-soft); color: var(--rv-primary); border-radius: 999px; padding: .15rem .5rem; transition: background .25s, color .25s; }
.rv-wcat.active .rv-wcount { background: rgba(255, 255, 255, .24); color: #fff; }
.rv-widget-recent { display: grid; gap: 1.05rem; }
.rv-wpost { display: flex; gap: .85rem; align-items: flex-start; }
.rv-wpost img { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; }
.rv-wpost-kicker { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rv-primary); margin-bottom: .2rem; }
.rv-wpost b { display: block; font-family: 'Merriweather', Georgia, serif; font-size: .88rem; font-weight: 600; line-height: 1.35; margin-bottom: .15rem; color: var(--rv-ink); transition: color .25s var(--rv-ease); }
.rv-wpost:hover b { color: var(--rv-primary); }
.rv-wpost time { font-size: .76rem; color: var(--rv-ink-soft); }
.rv-widget-lead { font-size: .88rem; color: var(--rv-ink-soft); line-height: 1.55; margin-bottom: .6rem; }
.rv-nl-form #newsletter-response { color: var(--rv-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1024.98px) {
  .rv-news-layout { grid-template-columns: 1fr; }
  .rv-news-widgets { position: static; grid-template-columns: 1fr 1fr; }
  .rv-news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
  .rv-news-grid { grid-template-columns: 1fr; }
  .rv-news-widgets { grid-template-columns: 1fr; }
  .rv-news-toolbar { flex-direction: column; align-items: stretch; }
  .rv-news-search { max-width: none; }
}
.rv-news-toolbar + .rv-events-slice .rv-news-empty { margin-top: 2.2rem; }

/* ---------- Event cards (reuses rv-news-grid / rv-news-card) ---------- */
.rv-event-flag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--rv-accent); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .4rem .8rem; border-radius: 999px;
  box-shadow: var(--rv-shadow-sm); text-transform: uppercase; letter-spacing: .05em; line-height: 1;
}
.rv-event-card .rv-news-date { right: auto; left: 1rem; top: auto; bottom: 1rem; }
.rv-event-card.hide { display: none; }

/* ==========================================
   TOP BAR: INDIGO  |  NAV BAR: WHITE  (final override)
   ========================================== */
.site-header {
    background: #ffffff;
}

.site-header .top-bar {
    background: var(--brand-accent); /* indigo #520380 */
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.site-header .main-navbar {
    background: #ffffff;
}

/* Nav links dark on the white bar */
.site-header .main-navbar .nav-link {
    color: #241136 !important;
}

.site-header .main-navbar .nav-link::after {
    background: var(--brand-accent);
}

.site-header .nav-item-parent .dropdown-caret {
    color: #241136;
}

.site-header .navbar-brand {
    color: #241136 !important;
}

.site-header .search-btn {
    color: #241136 !important;
}

/* Scrolled: keep consistent white bar + dark links */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

/* Mobile (<1200px): white bar with dark links by default,
   indigo full-screen menu keeps its white links when open */
@media (max-width: 1199.98px) {
    .site-header:not(.menu-active-header) {
        background: #ffffff;
    }

    .site-header .main-navbar .nav-link {
        color: #241136 !important;
    }

    .site-header .custom-menu-toggle span {
        background-color: #241136;
    }

    body.menu-active .main-navbar .nav-link,
    body.menu-active .navbar-collapse .nav-link {
        color: #ffffff !important;
    }

body.menu-active .custom-menu-toggle span {
        background-color: #ffffff !important;
    }
}

/* ==========================================================================
   Announcements carousel (Riverton index.html ann-* design)
   Track-based carousel: one card slides per step.
   ========================================================================== */
.ann-viewport {
    overflow: hidden;
    margin-bottom: 1.4rem;
    border-radius: var(--rv-radius);
}
.ann-track {
    display: flex;
    align-items: stretch;
    column-gap: 24px;
    transition: transform .6s var(--rv-ease);
    will-change: transform;
}
.ann-card {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--rv-line);
    border-radius: var(--rv-radius);
    overflow: hidden;
    transition: transform .3s var(--rv-ease), box-shadow .3s var(--rv-ease), border-color .3s;
}
.ann-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rv-shadow-md);
    border-color: var(--rv-primary);
}
.ann-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.ann-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--rv-ease);
}
.ann-card:hover .ann-media img {
    transform: scale(1.07);
}
.ann-flag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .35rem .8rem;
    border-radius: 999px;
    color: #fff;
    box-shadow: var(--rv-shadow-sm);
}
.ann-flag.general { background: #334155; }
.ann-flag.press { background: var(--rv-accent); }
.ann-flag.students { background: var(--rv-primary); }
.ann-body {
    padding: 1.2rem 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    flex: 1;
}
.ann-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.ann-meta time {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    font-size: .78rem;
    color: var(--rv-primary-dark);
    background: var(--rv-primary-soft);
    padding: .32rem .7rem;
    border-radius: 999px;
}
.ann-meta time b {
    font-size: 1.05rem;
    line-height: 1;
}
.ann-cat {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--rv-primary);
}
.ann-body h3 {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--rv-ink);
    margin: 0;
}
.ann-card:hover .ann-body h3 {
    color: var(--rv-primary);
}
.ann-body p {
    font-size: .9rem;
    color: var(--rv-ink-soft);
    flex: 1;
    margin: 0;
}
.ann-body .link-more {
    font-size: .85rem;
    font-weight: 600;
    color: var(--rv-primary);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    align-self: flex-start;
    border-bottom: 2px solid transparent;
    transition: border-color .25s, gap .25s;
}
.ann-body .link-more:hover {
    border-color: var(--rv-primary);
    gap: .7rem;
}
.ann-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}
.ann-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--rv-line);
    background: #fff;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--rv-ink);
    display: grid;
    place-items: center;
    transition: .25s;
}
.ann-btn:hover {
    background: var(--rv-primary);
    border-color: var(--rv-primary);
    color: #fff;
    transform: translateY(-2px);
}
.ann-dots {
    display: flex;
    gap: .55rem;
}
.ann-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--rv-line);
    cursor: pointer;
    padding: 0;
    transition: .3s;
}
.ann-dot:hover {
    background: #94A3B8;
}
.ann-dot.active {
    background: var(--rv-primary);
    transform: scale(1.2);
}
@media (min-width: 600px) {
    .ann-card { flex-basis: calc(50% - 12px); }
}
@media (min-width: 960px) {
    .ann-card { flex-basis: calc(33.3333% - 16px); }
}

/* =========================================================
   AJAX post navigation & gallery filter — loading overlay
   ========================================================= */
body.rv-post-loading::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1095;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    cursor: progress;
}
body.rv-post-loading .rv-post-nav a,
body.rv-post-loading a.rv-filter-btn,
body.rv-post-loading nav.rv-pagination a {
    pointer-events: none;
    opacity: .5;
}
.rv-post-nav {
    transition: opacity .25s ease;
}

/* Front-page: show the hover border color as the default border on news, events and announcement cards */
#rvNews .rv-card,
#rvEvents .rv-card,
#rvAnnouncements .ann-card {
    border-color: var(--rv-primary);
}