:root {
    --app-bg: #fff;
    /* avatar size variables (default desktop) */
    --avatar-size: 2.4rem;
    --profile-avatar-size: 4rem;
    --cream: #f7fbff;
    --panel: #edf8fd;
    --panel-strong: #d6eef9;
    --panel-border: rgba(7, 17, 111, 0.2);
    --wine: #07116f;
    --wine-deep: #04084d;
    --wine-soft: #0b45b8;
    --gold: #9c7a00;
    --action: #0b45b8;
    --action-dark: #07116f;
    --school-teal: #0a86b7;
    --school-sidebar: #0b45b8;
    --ink: #1f2330;
    --muted: #6c6f77;
    --portal-bg: #0b45b8;
    --admin-bg: #0b45b8;
    --landing-bg-image: url('../images/landing-bg.jpg');
}

body {
    min-height: 100vh;
    background: #fff;
    color: var(--ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title,
.hero-heading,
.section-title {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.01em;
}

a {
    color: inherit;
}

.main-wrapper,
.site-container {
    width: 100%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(3rem, 4vw, 50px);
    padding-right: clamp(3rem, 4vw, 50px);
    box-sizing: border-box;
}

.app-workspace-fluid {
    width: 100%;
}

.app-workspace-wrapper {
    max-width: 1800px;
}

.sidebar {
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    align-self: flex-start;
    border-right: 1px solid rgba(4, 0, 120, 0.14);
}

.school-system-bar {
    min-height: 5rem;
    background: linear-gradient(90deg, #07116f 0%, #0b45b8 58%, #0a86b7 100%);
    color: #fff;
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 10px 24px rgba(7, 17, 111, 0.22);
}

.school-system-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 4.4vw, 3.55rem);
    color: #fff;
    letter-spacing: 0.24em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.alumni-link-heading {
    animation: alumni-link-heading-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes alumni-link-heading-in {
    from {
        opacity: 0;
        transform: translateY(0.45rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .alumni-link-heading {
        animation: none;
    }
}

.school-system-subtitle {
    color: #fff;
    font-size: 0.98rem;
    letter-spacing: 0.7em;
    text-transform: lowercase;
}

.sidebar-admin {
    background: linear-gradient(180deg, #0b45b8 0%, #07116f 100%);
}

.sidebar-portal {
    background: linear-gradient(180deg, #0b45b8 0%, #07116f 100%);
    --gold: #0b45b8;
    --wine: #fff;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--wine);
    background: var(--gold);
    transform: translateX(4px);
}

.sidebar .sidebar-nav-toggle,
.offcanvas-mobile-nav .sidebar-nav-toggle {
    width: 100%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: default;
}

.sidebar .sidebar-nav-toggle:hover,
.offcanvas-mobile-nav .sidebar-nav-toggle:hover {
    transform: none;
}

.sidebar-subnav {
    display: grid;
    gap: 0.35rem;
    padding: 0.35rem 0 0 0.75rem;
}

.sidebar .sidebar-subnav-link,
.offcanvas-mobile-nav .sidebar-subnav-link {
    min-height: 2.35rem;
    padding: 0.58rem 0.8rem;
    font-size: 0.9rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.brand-pill,
.stat-pill,
.utility-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-pill,
.stat-pill {
    background: var(--gold);
    color: var(--wine);
}

.content-panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 0.95rem;
    box-shadow: 0 16px 34px rgba(4, 0, 120, 0.18);
}

.page-card {
    background: var(--panel-strong);
    border: 1px solid var(--panel-border);
    border-radius: 0.9rem;
    box-shadow: 0 8px 18px rgba(4, 0, 120, 0.1);
}

.btn-primary,
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--action);
    --bs-btn-border-color: var(--action);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--action-dark);
    --bs-btn-hover-border-color: var(--action-dark);
    --bs-btn-focus-shadow-rgb: 11, 69, 184;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--action-dark);
    --bs-btn-active-border-color: var(--action-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: rgba(11, 69, 184, 0.62);
    --bs-btn-disabled-border-color: rgba(11, 69, 184, 0.62);
}

.btn-outline-primary,
.btn-outline-success {
    --bs-btn-color: var(--action);
    --bs-btn-border-color: var(--action);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--action);
    --bs-btn-hover-border-color: var(--action);
    --bs-btn-focus-shadow-rgb: 11, 69, 184;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--action);
    --bs-btn-active-border-color: var(--action);
    --bs-btn-disabled-color: rgba(11, 69, 184, 0.62);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgba(11, 69, 184, 0.42);
}

.btn-outline-secondary,
.btn-outline-dark {
    --bs-btn-color: var(--wine);
    --bs-btn-border-color: var(--wine);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--wine);
    --bs-btn-hover-border-color: var(--wine);
    --bs-btn-focus-shadow-rgb: 4, 0, 120;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--wine);
    --bs-btn-active-border-color: var(--wine);
    --bs-btn-disabled-color: rgba(4, 0, 120, 0.5);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgba(4, 0, 120, 0.32);
}

.text-primary {
    color: var(--wine) !important;
}

.bg-primary-subtle {
    background-color: rgba(156, 122, 0, 0.28) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    background-color: #fffef0;
    box-shadow: 0 0 0 0.2rem rgba(156, 122, 0, 0.28);
}

.form-control,
.form-select {
    background-color: #fff;
    border-color: rgba(4, 0, 120, 0.22);
}

.table {
    --bs-table-bg: rgba(255, 255, 255, 0.78);
    --bs-table-border-color: rgba(4, 0, 120, 0.14);
}

.table-light {
    --bs-table-bg: rgba(156, 122, 0, 0.22);
    --bs-table-color: var(--wine);
}

.admin-workspace {
    --gold: #9c7a00;
    --action: #0b45b8;
    --action-dark: #07116f;
}

.admin-workspace .content-panel,
.admin-workspace .page-card {
    background: #fff !important;
    border-color: rgba(11, 69, 184, 0.32) !important;
    box-shadow: 0 10px 24px rgba(11, 69, 184, 0.08);
}

.admin-workspace .sidebar .page-card,
.admin-workspace .offcanvas-mobile-nav .page-card {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none;
    color: #fff;
}

.admin-workspace .page-card h1,
.admin-workspace .page-card h2,
.admin-workspace .page-card h3,
.admin-workspace .page-card h4,
.admin-workspace .page-card h5,
.admin-workspace .page-card h6 {
    color: var(--action-dark);
}

.admin-workspace .table {
    --bs-table-bg: #fff;
    --bs-table-striped-bg: #fff;
    --bs-table-hover-bg: #fff;
    --bs-table-border-color: rgba(11, 69, 184, 0.18);
    --bs-table-color: var(--action-dark);
    color: var(--action-dark);
}

.admin-workspace .table > :not(caption) > * > * {
    background-color: #fff !important;
    border-color: rgba(11, 69, 184, 0.18);
    color: var(--action-dark);
}

.admin-workspace .sidebar .nav-link:hover,
.admin-workspace .sidebar .nav-link.active {
    color: var(--wine);
    background: var(--gold);
}

.admin-workspace .brand-pill,
.admin-workspace .stat-pill {
    background: var(--gold);
    color: var(--wine);
}

.admin-workspace .sidebar .nav-link:hover,
.admin-workspace .sidebar .nav-link.active {
    color: #fff !important;
    background: var(--action) !important;
}

.admin-workspace .brand-pill,
.admin-workspace .stat-pill {
    background: var(--action) !important;
    color: #fff !important;
}

.admin-workspace .text-primary {
    color: var(--action) !important;
}

.admin-workspace .school-system-title,
.admin-workspace .school-system-subtitle {
    color: #fff !important;
}

.admin-workspace .bg-primary-subtle {
    background-color: rgba(11, 69, 184, 0.18) !important;
}

.admin-workspace .form-control:focus,
.admin-workspace .form-select:focus {
    border-color: var(--action-dark);
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(11, 69, 184, 0.24);
}

.admin-workspace .table-light {
    --bs-table-bg: #fff;
    --bs-table-color: #07116f;
}

.admin-workspace .table-light th {
    background-color: #fff !important;
    color: #07116f !important;
}

.admin-approval-toast {
    --bs-toast-max-width: 24rem;
    border: 1px solid rgba(11, 69, 184, 0.24);
    border-radius: 0.75rem;
    box-shadow: 0 16px 36px rgba(7, 17, 111, 0.18);
}

.admin-approval-toast .toast-header {
    color: #07116f;
    background: #fff;
    border-bottom-color: rgba(11, 69, 184, 0.12);
}

.admin-approval-toast-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: #0b45b8;
    box-shadow: 0 0 0 0.22rem rgba(11, 69, 184, 0.14);
}

.hero-stage {
    width: min(100%, 1500px);
    max-width: 1500px;
    min-height: clamp(34rem, 68vh, 46rem);
    display: flex;
    align-items: center;
    margin: 2rem auto 0;
    padding: clamp(2rem, 3vw, 4rem);
    border-radius: 2rem;
    background: linear-gradient(90deg, #07116f 0%, #0b45b8 58%, #0a86b7 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.student-id-display {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    color: #111827;
    text-align: center;
    white-space: nowrap;
}

.guest-shell {
    min-height: 100vh;
}

.user-avatar,
.profile-avatar {
    /* Sizes driven by CSS variables so utility classes can override */
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar img,
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-avatar-placeholder,
.profile-avatar-placeholder,
.community-avatar {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.profile-avatar {
    /* Larger profile avatar used on profile pages; driven by variable */
    width: var(--profile-avatar-size);
    height: var(--profile-avatar-size);
    border-radius: 50%;
    background: var(--wine);
    color: #fff;
    border: none;
    box-shadow: 0 12px 20px rgba(4, 0, 120, 0.14);
}

/* Utility classes to easily change avatar sizes */
.avatar-sm { --avatar-size: 1.6rem; }
.avatar-md { --avatar-size: 2.4rem; }
.avatar-lg { --avatar-size: 3.2rem; }
.profile-avatar-sm { --profile-avatar-size: 3rem; }
.profile-avatar-md { --profile-avatar-size: 4rem; }
.profile-avatar-lg { --profile-avatar-size: 5.6rem; }

.profile-avatar-placeholder {
    font-size: 1.1rem;
}

.dashboard-banner {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 0.95rem;
}

.notice-item {
    border-bottom: 1px solid rgba(4, 0, 120, 0.12);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.notice-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.notice-label {
    color: var(--wine);
    background: rgba(156, 122, 0, 0.24);
    border-radius: 999px;
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activity-card,
.event-card,
.team-card,
.process-card {
    border-radius: 1.2rem;
    border: 1px solid rgba(4, 0, 120, 0.08);
    background: #fff;
    box-shadow: 0 14px 36px rgba(4, 0, 120, 0.08);
}

.team-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.trustee-member {
    padding: 1.75rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.trustee-name {
    color: #111111;
    font-size: clamp(1.1rem, 1.35vw, 1.35rem);
    font-weight: 700;
    line-height: 1.12;
}

.trustee-role {
    color: #6c6f77;
    font-size: 0.96rem;
    line-height: 1.6;
}

.trustee-role {
    color: #6c6f77;
    font-size: 0.96rem;
    line-height: 1.6;
}

.leadership-profile-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.leadership-profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wine-soft);
    background: #fff;
}

.leadership-profile-placeholder svg {
    width: 42%;
    height: 42%;
    min-width: 2.2rem;
    min-height: 2.2rem;
}

.activity-media {
    width: 100%;
    max-height: 220px;
    border-radius: 1rem;
    object-fit: cover;
    background: var(--panel);
}

.activity-media-video {
    display: block;
}

.landing-page {
    position: relative;
    overflow: hidden;
    background: var(--landing-bg-image) center top / cover no-repeat;
}

.landing-header {
    background: var(--panel);
    border-bottom: 1px solid rgba(4, 0, 120, 0.14);
}

.school-identity-banner {
    background: linear-gradient(90deg, #061069 0%, #123cad 46%, #0d75bb 100%);
    color: #fff;
    border-bottom: 3px solid #9c7a00;
}

.school-identity-shell {
    min-height: 4.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.35rem 0;
}

.school-identity-lockup {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    min-width: 0;
}

.school-identity-crest {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: #07116f;
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 24px rgba(1, 8, 68, 0.24);
}

.school-identity-crest-logo {
    background: #fff;
    padding: 0.12rem;
}

.school-identity-crest-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.school-identity-copy {
    min-width: 0;
}

.school-identity-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.9;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.school-identity-motto {
    margin-top: 0.4rem;
    color: #fff;
    font-size: clamp(0.78rem, 1.4vw, 1.05rem);
    font-weight: 700;
    text-transform: uppercase;
}

.school-identity-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex: 0 0 auto;
}

.school-identity-actions .btn {
    border-radius: 999px;
    padding: 0.56rem 1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(1, 8, 68, 0.18);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.brand-crest {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--wine);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    border: 1px solid rgba(4, 0, 120, 0.28);
    box-shadow: 0 12px 26px rgba(4, 0, 120, 0.16);
}

.brand-crest-logo {
    background: #fff;
    border-radius: 50%;
    border-color: rgba(4, 0, 120, 0.24);
    padding: 0.12rem;
}

.brand-crest-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.school-system-brand-crest {
    width: 3.35rem;
    height: 3.35rem;
    flex-shrink: 0;
}

.brand-kicker {
    color: var(--wine);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.brand-title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--ink);
}

.brand-subtitle {
    margin: 0.2rem 0 0;
    color: var(--muted);
    max-width: 38rem;
}

.landing-nav {
    border-top: 1px solid rgba(4, 0, 120, 0.18);
    border-bottom: 1px solid rgba(4, 0, 120, 0.12);
}

.landing-nav .nav {
    gap: 0.35rem;
    padding: 0.65rem 0;
}

.landing-nav .nav-link {
    color: var(--ink);
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.landing-nav .nav-link:hover {
    color: var(--wine);
    background: rgba(156, 122, 0, 0.24);
}

.landing-section {
    padding: 4.5rem 0;
}

.hero-stage {
    width: 100%;
    max-width: none;
    min-height: clamp(34rem, 68vh, 46rem);
    display: flex;
    align-items: center;
    margin: 2rem auto 0;
    padding: clamp(2rem, 3vw, 4rem);
    border-radius: 2rem;
    background: linear-gradient(90deg, #07116f 0%, #0b45b8 58%, #0a86b7 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.hero-stage > .row {
    width: 100%;
    min-height: clamp(34rem, 68vh, 46rem);
    margin: 0;
    max-width: none;
}

.hero-columns {
    margin-left: 0;
    margin-right: 0;
}

.hero-left-panel,
.hero-right-panel {
    padding-left: 0;
    padding-right: 0;
}

.hero-left-panel {
    padding-right: clamp(2rem, 3vw, 3rem);
}

.hero-right-panel {
    padding-left: clamp(2rem, 3vw, 3rem);
}

.hero-heading {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.04;
    margin-bottom: 1rem;
    max-width: 16ch;
}

.hero-copy {
    max-width: 48rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.06rem;
}

.hero-metric {
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metric-link {
    display: block;
    color: #fff;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-metric-link:hover,
.hero-metric-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 24px rgba(6, 32, 79, 0.18);
    transform: translateY(-3px);
    outline: none;
}

.hero-metric-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 100%;
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-ribbon {
    display: inline-flex;
    width: fit-content;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.25rem;
}

.community-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.community-card:hover,
.community-card:focus-within {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.community-avatar {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    background: var(--gold);
    color: var(--wine-deep);
    flex-shrink: 0;
}

.section-eyebrow {
    display: inline-flex;
    color: var(--wine);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-copy {
    color: var(--muted);
    max-width: 46rem;
}

.ad-badge-card {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    box-shadow: 0 10px 18px rgba(4, 0, 120, 0.08);
}

.ad-badge-label {
    color: var(--wine);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.ad-badge-value {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #0b3f70;
}

.campus-gallery-hero {
    position: relative;
    margin: 0 auto 1.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(4, 0, 120, 0.24);
    box-shadow: 0 22px 36px rgba(4, 0, 120, 0.12);
    background: var(--panel);
    aspect-ratio: 16 / 7;
    min-height: 420px;
}

.campus-gallery-carousel,
.campus-gallery-carousel .carousel-inner,
.campus-gallery-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.campus-gallery-carousel .carousel-item {
    position: relative;
    overflow: hidden;
}

.campus-gallery-carousel.carousel-fade .carousel-item {
    transition: opacity 1.1s ease-in-out;
}

.campus-carousel-indicators {
    margin-bottom: 0.85rem;
    z-index: 4;
}

.campus-carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border-radius: 999px;
}

.campus-gallery-carousel .carousel-control-prev,
.campus-gallery-carousel .carousel-control-next {
    width: 9%;
    opacity: 0.82;
    z-index: 4;
}

.campus-gallery-carousel .carousel-control-prev:hover,
.campus-gallery-carousel .carousel-control-next:hover {
    opacity: 1;
}

.campus-gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: var(--panel);
    transform: scale(1.08);
    transition: transform 6s ease, filter 0.8s ease;
    filter: saturate(1.03);
}

.campus-gallery-carousel .carousel-item.active .campus-gallery-image {
    transform: scale(1);
}

.campus-gallery-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 34, 0.38);
    pointer-events: none;
}

.campus-gallery-caption {
    position: absolute;
    left: clamp(1rem, 3vw, 2.5rem);
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(1rem, 4vw, 2.25rem);
    max-width: min(38rem, 88%);
    padding: 1.2rem 1.35rem;
    border-radius: 0.95rem;
    background: rgba(7, 24, 44, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    z-index: 3;
    box-shadow: 0 16px 30px rgba(5, 19, 35, 0.22);
}

.campus-gallery-caption-static {
    position: static;
    max-width: 42rem;
}

.campus-gallery-kicker {
    display: inline-flex;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(191, 236, 255, 0.94);
}

.campus-gallery-title {
    font-size: clamp(1.5rem, 3.1vw, 2.35rem);
    margin-bottom: 0.55rem;
    color: #fff;
}

.campus-gallery-detail {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.campus-gallery-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--wine);
}

.campus-gallery-caption-static {
    margin: 0 auto;
    width: min(100%, 42rem);
}

.landing-feed-entry {
    position: relative;
}

.landing-story-media {
    position: relative;
    width: 100%;
    min-height: 230px;
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(4, 0, 120, 0.2);
    box-shadow: 0 18px 30px rgba(4, 0, 120, 0.12);
    background: var(--panel);
}

.landing-story-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 34, 0.16);
    pointer-events: none;
}

.landing-story-media-asset {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: var(--panel);
    transform: scale(1.01);
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: saturate(1.04);
}

.landing-story-media:hover .landing-story-media-asset {
    transform: scale(1);
}

.landing-story-media-video {
    display: block;
}

.reveal {
    animation: fadeUp 0.8s ease both;
}

.landing-footer {
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.landing-footer-shell {
    position: relative;
    background: linear-gradient(90deg, #07116f 0%, #0b45b8 58%, #0a86b7 100%);
    isolation: isolate;
}

.landing-footer-shell::before,
.landing-footer-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.landing-footer-shell::before {
    background: transparent;
    opacity: 0;
}

.landing-footer-shell::after {
    background: transparent;
    mix-blend-mode: normal;
}

.landing-footer-shell .main-wrapper {
    position: relative;
    z-index: 1;
}

.footer-brand-panel,
.footer-cta-panel {
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(6, 33, 60, 0.26);
    padding: 1.35rem;
    box-shadow: 0 16px 28px rgba(3, 17, 36, 0.26);
}

.footer-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(191, 236, 255, 0.95);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.footer-title {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    letter-spacing: 0.01em;
    color: #fff;
}

.footer-copy {
    color: rgba(239, 247, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.65;
}

.footer-campus-list {
    display: grid;
    gap: 0.7rem;
}

.footer-campus-item {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px dashed rgba(191, 236, 255, 0.28);
    font-size: 0.94rem;
}

.footer-campus-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.footer-campus-label {
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(191, 236, 255, 0.86);
    font-weight: 700;
}

.footer-link-group {
    display: grid;
    gap: 0.58rem;
}

.footer-group-title {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(221, 243, 255, 0.95);
    margin-bottom: 0.65rem;
    font-weight: 700;
}

.footer-link-group a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 0.65rem;
    padding: 0.22rem 0.45rem;
    width: fit-content;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.footer-link-group a:hover,
.footer-link-group a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
    outline: none;
}

.landing-footer-bottom {
    background: var(--wine);
    border-top: 1px solid rgba(176, 227, 250, 0.2);
    font-size: 0.88rem;
}

.mobile-toolbar {
    background: linear-gradient(90deg, #07116f 0%, #0b45b8 58%, #0a86b7 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-toolbar .btn {
    white-space: nowrap;
}

.mobile-portal-dock {
    background: var(--wine);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -18px 40px rgba(2, 12, 28, 0.24);
}

.mobile-portal-dock-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.55rem 0.15rem calc(0.55rem + env(safe-area-inset-bottom));
}

.mobile-portal-dock-item,
.mobile-portal-dock-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 4.15rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    padding: 0.45rem 0.35rem;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-portal-dock-item:hover,
.mobile-portal-dock-item.active,
.mobile-portal-dock-button:hover,
.mobile-portal-dock-button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
    outline: none;
}

.mobile-portal-dock-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.mobile-portal-dock-label {
    margin-top: 0.32rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mobile-portal-hero {
    background: linear-gradient(90deg, #07116f 0%, #0b45b8 58%, #0a86b7 100%);
    color: #fff;
    border-radius: 0.95rem;
    box-shadow: 0 18px 34px rgba(4, 0, 120, 0.14);
}

.mobile-portal-hero .text-secondary,
.mobile-portal-hero .text-white-50 {
    color: rgba(255, 255, 255, 0.76) !important;
}

.mobile-portal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mobile-portal-stat {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(7, 17, 111, 0.12);
    padding: 0.8rem 0.7rem;
    min-height: 100%;
}

.mobile-portal-stat-value {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
}

.mobile-portal-stat-label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111827;
}

.offcanvas-mobile-nav {
    background: linear-gradient(180deg, #07116f 0%, #0b45b8 100%);
    color: #fff;
}

.offcanvas-mobile-nav .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.offcanvas-mobile-nav .nav-link {
    color: rgba(255, 255, 255, 0.84);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
}

.offcanvas-mobile-nav .nav-link:hover,
.offcanvas-mobile-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    transform: translateX(4px);
}

.offcanvas-mobile-nav .page-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

table[data-mobile-card-table] tbody tr.table-light th {
    background: rgba(156, 122, 0, 0.24);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .landing-page {
        background-attachment: scroll;
    }
}

@media (max-width: 991.98px) {
    .main-wrapper,
    .site-container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sidebar {
        position: static;
        top: auto;
        height: auto;
        overflow-y: visible;
        align-self: stretch;
    }

    .content-panel {
        border-radius: 1rem;
    }

    .school-identity-shell {
        min-height: 4.25rem;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .school-identity-title {
        font-size: clamp(1.65rem, 8vw, 3rem);
        line-height: 1;
    }

    .school-identity-actions {
        justify-content: flex-start;
    }

    .footer-link-group {
        padding-left: 0.2rem;
    }

    .app-main {
        padding-bottom: 6.75rem !important;
    }
}

@media (min-width: 992px) {
    .school-system-bar > .container-fluid,
    .navbar > .container-fluid {
        width: 95%;
        max-width: 1800px;
        margin-left: auto;
        margin-right: auto;
        padding-left: clamp(1.5rem, 3vw, 3.125rem) !important;
        padding-right: clamp(1.5rem, 3vw, 3.125rem) !important;
    }

    .app-workspace-fluid {
        padding-left: calc(270px + 1.5rem);
        padding-right: clamp(1.5rem, 2.5vw, 3.125rem);
    }

    .app-workspace-wrapper {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .app-main .content-panel {
        width: 100%;
        max-width: none;
    }

    .sidebar {
        top: 4.6rem;
        height: calc(100vh - 4.6rem);
    }

    .row.min-vh-100 {
        min-height: calc(100vh - 4.6rem) !important;
    }
}

@media (max-width: 767.98px) {
    .mobile-toolbar {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .content-panel {
        padding: 0.85rem !important;
        border-radius: 0.95rem;
    }

    .page-card {
        border-radius: 1rem;
        box-shadow: 0 10px 20px rgba(4, 0, 120, 0.08);
    }

    .table > :not(caption) > * > * {
        padding: 0.7rem 0.75rem;
    }

    table[data-mobile-card-table] thead {
        display: none;
    }

    table[data-mobile-card-table],
    table[data-mobile-card-table] tbody,
    table[data-mobile-card-table] tr,
    table[data-mobile-card-table] td,
    table[data-mobile-card-table] th {
        display: block;
        width: 100%;
    }

    table[data-mobile-card-table] {
        border-collapse: separate;
        border-spacing: 0;
    }

    table[data-mobile-card-table] tbody tr:not(.table-light) {
        margin: 0.75rem 0.85rem;
        border: 1px solid rgba(4, 0, 120, 0.14);
        border-radius: 1rem;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 12px 22px rgba(4, 0, 120, 0.08);
    }

    table[data-mobile-card-table] tbody tr.table-light {
        margin: 0.85rem 0.85rem 0.3rem;
        border: 0;
        border-radius: 0.9rem;
        overflow: hidden;
    }

    table[data-mobile-card-table] tbody tr.table-light th {
        border: 0;
        padding: 0.75rem 0.9rem;
    }

    table[data-mobile-card-table] td {
        border: 0;
        padding: 0.68rem 0.9rem;
        text-align: left !important;
    }

    table[data-mobile-card-table] td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
    }

    table[data-mobile-card-table] td .student-id-display {
        text-align: left;
    }

    table[data-mobile-card-table] td .d-inline-flex {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    table[data-mobile-card-table] td .d-inline-flex .btn,
    table[data-mobile-card-table] td .d-inline-flex form {
        width: 100%;
    }

    table[data-mobile-card-table] td .d-inline-flex form .btn {
        width: 100%;
    }

    .hero-stage {
        border-radius: 1.5rem;
        margin-top: 1rem;
    }

    .landing-section {
        padding: 3.5rem 0;
    }

    .landing-page {
        background-attachment: scroll;
    }

    .brand-crest {
        width: 3.6rem;
        height: 3.6rem;
    }

    .campus-gallery-hero {
        min-height: 220px;
        aspect-ratio: 16 / 9;
        border-radius: 1.4rem;
    }

    .campus-gallery-caption {
        max-width: 100%;
        left: 0.85rem;
        right: 0.85rem;
        bottom: 0.85rem;
        padding: 1rem;
    }

    .campus-gallery-detail {
        font-size: 0.95rem;
    }

    .landing-story-media {
        min-height: 190px;
        border-radius: 1.1rem;
    }

    .landing-footer-shell {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .footer-brand-panel,
    .footer-cta-panel {
        padding: 1.15rem;
    }

    .footer-link-group a {
        padding-left: 0;
    }
}

@media (max-width: 575.98px) {
    .mobile-toolbar .container-fluid {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .mobile-toolbar .btn {
        padding-inline: 0.7rem;
    }

    .content-panel {
        padding: 0.75rem !important;
    }

    .page-card {
        border-radius: 0.9rem;
    }

    .student-id-display {
        font-size: 0.95rem;
        letter-spacing: 0.01em;
    }

    .mobile-portal-dock-grid {
        gap: 0.42rem;
        padding-inline: 0;
    }

    .mobile-portal-dock-item,
    .mobile-portal-dock-button {
        min-height: 3.95rem;
        padding-inline: 0.25rem;
    }

    .mobile-portal-dock-label {
        font-size: 0.66rem;
    }
}
