/* ==========================================================================
   BU PULSE — BABCOCK UNIVERSITY PORTAL
   Editorial, Natural & Catchy University Portal Stylesheet (Light & Dark Mode)
   ========================================================================== */

:root {
    --bu-royal: #123d7f;
    --bu-royal-dark: #0b2859;
    --bu-royal-deeper: #071938;
    --bu-gold: #d8b517;
    --bu-gold-light: #f5df78;
    --bu-gold-dark: #9e8106;

    --text-dark: #111827;
    --text-body: #374151;
    --text-muted: #6b7280;

    --surface-white: #ffffff;
    --surface-soft: #f9fafb;
    --surface-warm: #f4f5f7;
    --surface-muted: #eef0f4;
    --border-subtle: #e5e7eb;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.35rem;

    --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.05), 0 1px 2px rgba(17, 24, 39, 0.03);
    --shadow-md: 0 12px 28px -6px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 22px 44px -10px rgba(18, 61, 127, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--surface-soft);
    line-height: 1.65;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, .logo-txt, .footer-logo-title {
    font-family: var(--font-serif);
}

/* ==========================================================================
   1. NAVIGATION HEADER & MOBILE DRAWER
   ========================================================================== */
.site-navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-brand-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-txt {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.03em;
    color: var(--bu-royal);
    line-height: 1.15;
}

.logo-subtxt {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.65rem;
}

.nav-btn {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--bu-royal);
}

.nav-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--bu-royal);
    transition: width 0.22s ease;
}

.nav-btn:hover::after,
.nav-btn.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    padding: 0.52rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    background: #ffffff;
    transition: all 0.2s ease;
}

.btn-outline-gold:hover {
    border-color: var(--bu-royal);
    color: var(--bu-royal);
    background: var(--surface-soft);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    background: var(--bu-royal);
    color: #ffffff;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: var(--bu-royal-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Hamburger & Mobile Drawer */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0.55rem 0.65rem;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 25, 56, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease;
    z-index: 1040;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 86%;
    max-width: 330px;
    height: 100dvh;
    background: var(--bu-royal-deeper);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-brand-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 1rem 0;
}

.mobile-nav-btn {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.mobile-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-menu-roles {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    margin-bottom: 1rem;
}

.mobile-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bu-gold-light);
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.mobile-role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mobile-role-chip {
    font-size: 0.75rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.28rem 0.6rem;
    border-radius: 50rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mobile-role-chip:hover {
    background: var(--bu-gold);
    color: var(--bu-royal-deeper);
}

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.mobile-menu-footer .login-btn {
    background: var(--bu-gold);
    color: var(--bu-royal-deeper);
    font-weight: 700;
    width: 100%;
    justify-content: center;
}

.mobile-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
}

/* ==========================================================================
   2. HERO SECTION (NATURAL EDITORIAL LAYOUT + REAL PRODUCT PREVIEW)
   ========================================================================== */
.hero-section {
    position: relative;
    background-color: var(--bu-royal-deeper);
    color: #ffffff;
    padding: 5rem 0 5.5rem;
    overflow: hidden;
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.28;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, rgba(7, 25, 56, 0.95) 0%, rgba(11, 40, 89, 0.88) 54%, rgba(18, 61, 127, 0.78) 100%);
    z-index: 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--bu-gold-light);
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 3.5vw, 3.1rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.015em;
    margin-bottom: 1.15rem;
    color: #ffffff;
}

.text-gold-accent {
    color: var(--bu-gold-light);
    border-bottom: 2px solid rgba(216, 181, 23, 0.45);
}

.text-gold {
    color: var(--bu-gold) !important;
}

.hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 1.75rem;
    max-width: 580px;
}

/* Clean Portal Jump Card */
.quick-launcher-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.6rem;
}

.quick-launcher-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.55rem;
}

.quick-launcher-controls {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

.select-wrapper {
    position: relative;
    flex: 1;
}

.select-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bu-royal);
    font-size: 1rem;
    pointer-events: none;
}

.quick-role-select {
    padding-left: 2.45rem;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    box-shadow: none !important;
}

.btn-launch-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--bu-gold);
    color: var(--bu-royal-deeper);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.62rem 1.2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-launch-portal:hover {
    background: #e3c11d;
    color: var(--bu-royal-deeper);
}

.quick-launcher-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.5rem;
}

/* Hero CTA Buttons */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-classic-primary {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: var(--bu-royal-dark);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

.btn-classic-primary:hover {
    background: var(--bu-gold-light);
    color: var(--bu-royal-deeper);
}

.btn-classic-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-classic-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Right Column: Real Product Preview & Floating Context Cards */
.hero-visual-stage {
    position: relative;
    padding: 1rem 0;
}

.hero-device-frame {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 1rem 1rem 0;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.hero-device-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-dark);
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-md);
    box-shadow: 0 14px 30px rgba(7, 25, 56, 0.25);
    border: 1px solid rgba(17, 24, 39, 0.08);
    z-index: 2;
}

.hero-float-top {
    top: -0.25rem;
    left: -1rem;
}

.hero-float-bottom {
    bottom: 0.75rem;
    right: -0.75rem;
}

.float-crest {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.float-check {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--bu-royal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.float-title {
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.float-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   3. EDITORIAL TRUST RIBBON
   ========================================================================== */
.ribbon-section {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.6rem 0;
}

.ribbon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ribbon-item {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding-right: 1rem;
    border-right: 1px solid var(--border-subtle);
}

.ribbon-item:last-child {
    border-right: none;
}

.ribbon-num {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--bu-royal);
    line-height: 1;
}

.ribbon-text {
    display: flex;
    flex-direction: column;
}

.ribbon-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.ribbon-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   4. SECTION HEADINGS & FILTER CONTROLS
   ========================================================================== */
.portals-section,
.spotlight-section,
.capabilities-section,
.impact-section {
    padding: 5rem 0;
}

.editorial-eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bu-royal);
    margin-bottom: 0.45rem;
}

.section-main-title {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 2.6vw, 2.25rem);
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.015em;
    color: var(--text-dark);
}

.section-main-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Search & Filter Bar */
.portal-search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.portal-search-input {
    padding-left: 2.4rem;
    padding-top: 0.58rem;
    padding-bottom: 0.58rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    background: #ffffff;
}

.portal-search-input:focus {
    border-color: var(--bu-royal);
    box-shadow: 0 0 0 3px rgba(18, 61, 127, 0.1);
}

.portal-filter-bar {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.portal-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tab {
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.48rem 0.95rem;
    border-radius: 50rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: var(--bu-royal);
    color: var(--bu-royal);
}

.filter-tab.active {
    background: var(--bu-royal);
    border-color: var(--bu-royal);
    color: #ffffff;
}

.tab-count {
    font-size: 0.7rem;
    padding: 0.08rem 0.45rem;
    border-radius: 50rem;
    background: var(--surface-muted);
    color: var(--text-body);
}

.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ==========================================================================
   5. EDITORIAL DIVISION PORTAL CARDS
   ========================================================================== */
.role-portal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.65rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.role-portal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.role-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.role-index-num {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.role-category-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-body);
    background: var(--surface-warm);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.role-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: #eef4ff;
    color: var(--bu-royal);
}

.theme-emerald .role-icon-box { background: #ecfdf5; color: #047857; }
.theme-indigo .role-icon-box { background: #eef2ff; color: #4338ca; }
.theme-teal .role-icon-box { background: #f0fdfa; color: #0f766e; }
.theme-purple .role-icon-box { background: #f5f3ff; color: #6d28d9; }
.theme-amber .role-icon-box { background: #fffbeb; color: #b45309; }
.theme-crimson .role-icon-box { background: #fef2f2; color: #b91c1c; }
.theme-cyan .role-icon-box { background: #f0f9ff; color: #0369a1; }

.role-card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.role-clearance-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.role-card-desc {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.role-card-checklist {
    padding-top: 0.9rem;
    border-top: 1px dashed var(--border-subtle);
    margin-bottom: 1.25rem;
}

.clean-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.clean-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.83rem;
    color: var(--text-body);
    line-height: 1.45;
}

.clean-feature-list li i {
    color: var(--bu-royal);
    font-weight: 700;
    margin-top: 1px;
}

.role-card-footer {
    margin-top: auto;
}

.role-access-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--surface-warm);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.role-access-btn:hover {
    background: var(--bu-royal);
    color: #ffffff;
}

/* 8th Helper Card */
.role-helper-card {
    background: linear-gradient(160deg, var(--bu-royal-dark) 0%, var(--bu-royal) 100%);
    color: #ffffff;
    border: none;
}

.role-helper-card .role-card-meta {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.role-helper-card .role-index-num {
    color: var(--bu-gold-light);
}

.role-helper-card .role-category-tag {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.role-helper-card .role-card-title {
    color: #ffffff;
}

.role-helper-card .role-card-desc {
    color: rgba(255, 255, 255, 0.85);
}

.role-helper-card code {
    color: var(--bu-gold-light);
}

.helper-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-helper-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #ffffff;
    color: var(--bu-royal-dark);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-helper-sso:hover {
    background: var(--bu-gold-light);
    color: var(--bu-royal-deeper);
}

.helper-support-link {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    text-align: center;
}

.helper-support-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.no-roles-box {
    background: #ffffff;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    margin-top: 1rem;
}

/* ==========================================================================
   6. EDITORIAL SPOTLIGHT SECTION (PHOTO + WORKFLOW TABS)
   ========================================================================== */
.spotlight-section {
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.spotlight-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.spotlight-nav::-webkit-scrollbar {
    display: none;
}

.spotlight-tab-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.spotlight-tab-btn:hover {
    border-color: var(--bu-royal);
    color: var(--bu-royal);
}

.spotlight-tab-btn.active {
    background: var(--bu-royal);
    border-color: var(--bu-royal);
    color: #ffffff;
}

.spotlight-editorial-card {
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.spotlight-photo-wrap {
    position: relative;
    height: 100%;
    min-height: 320px;
}

.spotlight-photo {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.spotlight-photo-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: rgba(7, 25, 56, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
}

.caption-badge {
    color: var(--bu-gold-light);
    font-weight: 700;
}

.spotlight-body {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.spotlight-kicker {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bu-royal);
    margin-bottom: 0.35rem;
}

.spotlight-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.spotlight-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.spotlight-description {
    font-size: 0.94rem;
    color: var(--text-body);
    margin-bottom: 1.35rem;
}

.spotlight-check-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-dark);
}

.spotlight-check-item i {
    color: var(--bu-royal);
}

.spotlight-detail-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.spotlight-action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.btn-spotlight-sso {
    display: inline-flex;
    align-items: center;
    padding: 0.58rem 1.05rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
}

.btn-spotlight-go {
    display: inline-flex;
    align-items: center;
    padding: 0.58rem 1.2rem;
    border-radius: var(--radius-sm);
    background: var(--bu-royal);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
}

.btn-spotlight-go:hover {
    background: var(--bu-royal-dark);
    color: #ffffff;
}

/* ==========================================================================
   7. EDITORIAL BENTO CAPABILITIES SECTION
   ========================================================================== */
.capability-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.capability-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.capability-featured {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
}

.bento-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bu-royal);
    background: #e0ebff;
    padding: 0.22rem 0.65rem;
    border-radius: 4px;
}

.bento-img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 210px;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cap-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.blue-icon-bg { background: #eef3ff; color: var(--bu-royal); }
.orange-icon-bg { background: #fef3e2; color: #d97706; }
.red-icon-bg { background: #fee9ea; color: #dc2626; }
.green-icon-bg { background: #e7f8ee; color: #16a34a; }
.purple-icon-bg { background: #f1ecfe; color: #7c3aed; }

.capability-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.55rem;
}

.capability-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0;
}

/* ==========================================================================
   8. METRICS / IMPACT SECTION
   ========================================================================== */
.border-bottom-subtle {
    border-bottom: 1px solid var(--border-subtle);
}

.metrics-container-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-subtle);
}

.metric-card {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 100%;
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
}

.metric-num {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 2.1rem;
    color: var(--bu-royal);
    line-height: 1.15;
}

.metric-label {
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--text-dark);
    margin-top: 0.35rem;
}

.metric-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ==========================================================================
   9. SUPPORT MANAGEMENT SYSTEM SECTION
   ========================================================================== */
.support-section {
    padding: 0.5rem 0 5rem;
}

.support-banner {
    background: linear-gradient(135deg, var(--bu-royal-deeper) 0%, var(--bu-royal-dark) 55%, var(--bu-royal) 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.support-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bu-gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.32rem 0.8rem;
    border-radius: 4px;
}

.support-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.support-desc {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.6rem;
}

.support-pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.95rem;
    height: 100%;
}

.sp-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(216, 181, 23, 0.2);
    color: var(--bu-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.support-pillar-item h4 {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.support-pillar-item p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.76);
    margin: 0;
    line-height: 1.45;
}

.support-cta-card {
    background: #ffffff;
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 2.1rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.support-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #eef4ff;
    color: var(--bu-royal);
    font-size: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.9rem;
}

.support-cta-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.support-cta-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 0;
}

.support-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.4rem;
    width: 100%;
}

.btn-support-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--bu-royal);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.35;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-support-primary:hover {
    background: var(--bu-royal-dark);
    color: #ffffff;
}

.btn-support-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.35;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-support-secondary:hover {
    background: var(--surface-muted);
    color: var(--bu-royal);
}

.support-direct-meta {
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.support-direct-meta a {
    color: var(--text-body);
    text-decoration: none;
}

.support-direct-meta a:hover {
    color: var(--bu-royal);
    text-decoration: underline;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.main-footer {
    background: var(--bu-royal-deeper);
    color: #ffffff;
    padding: 4rem 0 1.75rem;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    padding: 3px;
}

.footer-logo-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-tagline-badge {
    font-size: 0.72rem;
    color: var(--bu-gold-light);
}

.footer-brand-text {
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.65;
}

.footer-security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.sec-pill {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 0.22rem 0.6rem;
    border-radius: 4px;
}

.footer-heading {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bu-gold-light);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.footer-links a i {
    font-size: 0.68rem;
    color: var(--bu-gold);
}

.footer-links a:hover {
    color: #ffffff;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    font-size: 0.86rem;
    color: #cbd5e1;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.contact-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--bu-gold-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.78rem;
}

.footer-support-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(216, 181, 23, 0.16);
    border: 1px solid rgba(216, 181, 23, 0.4);
    color: var(--bu-gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.48rem 0.95rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.footer-support-btn:hover {
    background: var(--bu-gold);
    color: var(--bu-royal-deeper);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-bottom-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-bottom-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   11. THEME TOGGLE & DARK MODE COMPATIBILITY
   ========================================================================== */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--surface-soft);
    color: var(--bu-royal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--bu-royal);
}

.theme-icon-light { display: none; }
.theme-icon-dark { display: inline-block; }

html[data-theme="dark"] .theme-icon-dark { display: none; }
html[data-theme="dark"] .theme-icon-light { display: inline-block; color: var(--bu-gold-light); }

html[data-theme="dark"] {
    --text-dark: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --surface-white: #0f1c33;
    --surface-soft: #091224;
    --surface-warm: #13233f;
    --surface-muted: #162947;
    --border-subtle: rgba(148, 163, 184, 0.18);
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background-color: var(--surface-soft);
    color: var(--text-dark);
}

html[data-theme="dark"] .site-navbar {
    background: rgba(9, 18, 36, 0.94);
    border-bottom-color: var(--border-subtle);
}

html[data-theme="dark"] .logo-txt { color: #ffffff; }
html[data-theme="dark"] .logo-subtxt { color: var(--bu-gold-light); }
html[data-theme="dark"] .nav-btn { color: #cbd5e1; }
html[data-theme="dark"] .nav-btn:hover,
html[data-theme="dark"] .nav-btn.active { color: var(--bu-gold-light); }
html[data-theme="dark"] .nav-btn::after { background: var(--bu-gold-light); }

html[data-theme="dark"] .btn-outline-gold,
html[data-theme="dark"] .theme-toggle-btn,
html[data-theme="dark"] .hamburger {
    background: #13233f;
    border-color: var(--border-subtle);
    color: #f8fafc;
}

html[data-theme="dark"] .hamburger span {
    background-color: #f8fafc;
}

html[data-theme="dark"] .hero-float-card {
    background: #0f1c33;
    color: #f8fafc;
    border-color: var(--border-subtle);
}

html[data-theme="dark"] .ribbon-section,
html[data-theme="dark"] .spotlight-section {
    background: #0c172b;
    border-color: var(--border-subtle);
}

html[data-theme="dark"] .ribbon-num,
html[data-theme="dark"] .editorial-eyebrow,
html[data-theme="dark"] .spotlight-kicker,
html[data-theme="dark"] .metric-num {
    color: var(--bu-gold-light);
}

html[data-theme="dark"] .portal-search-input,
html[data-theme="dark"] .filter-tab {
    background: #0f1c33;
    border-color: var(--border-subtle);
    color: #cbd5e1;
}

html[data-theme="dark"] .filter-tab.active,
html[data-theme="dark"] .spotlight-tab-btn.active {
    background: var(--bu-gold);
    border-color: var(--bu-gold);
    color: #071938;
}

html[data-theme="dark"] .role-portal-card,
html[data-theme="dark"] .spotlight-editorial-card,
html[data-theme="dark"] .capability-card,
html[data-theme="dark"] .metrics-container-box,
html[data-theme="dark"] .support-cta-card {
    background: #0f1c33;
    border-color: var(--border-subtle);
}

html[data-theme="dark"] .capability-featured {
    background: linear-gradient(135deg, #0f1c33 0%, #15294a 100%);
}

html[data-theme="dark"] .role-access-btn,
html[data-theme="dark"] .spotlight-check-item,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .btn-spotlight-sso,
html[data-theme="dark"] .btn-support-secondary {
    background: #152642;
    border-color: var(--border-subtle);
    color: #f8fafc;
}

html[data-theme="dark"] .role-access-btn:hover,
html[data-theme="dark"] .btn-spotlight-go,
html[data-theme="dark"] .btn-support-primary {
    background: var(--bu-gold);
    color: #071938;
}

html[data-theme="dark"] .clean-feature-list li i,
html[data-theme="dark"] .spotlight-check-item i {
    color: var(--bu-gold-light);
}

/* ==========================================================================
   12. MULTI-DEVICE & TABLET RESPONSIVENESS
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-links { gap: 1.15rem; }
    .nav-btn { font-size: 0.85rem; }
    .ribbon-grid { grid-template-columns: repeat(2, 1fr); }
    .ribbon-item:nth-child(2) { border-right: none; }
}

@media (max-width: 991.98px) {
    .nav-links,
    .nav-actions { display: none; }
    .hamburger { display: flex; }

    .hero-section { padding: 3.5rem 0 4rem; }
    .hero-float-top { left: 0.5rem; top: 0.5rem; }
    .hero-float-bottom { right: 0.5rem; bottom: 0.5rem; }

    .ribbon-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .ribbon-item { border-right: none; padding-right: 0; }

    .portal-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .portal-filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab { flex: 0 0 auto; white-space: nowrap; }

    .spotlight-photo-wrap { min-height: 260px; }
    .spotlight-photo { min-height: 260px; }
    .spotlight-body { padding: 1.65rem; }
}

@media (max-width: 767.98px) {
    .hero-section { padding: 2.75rem 0 3.25rem; }
    .quick-launcher-controls { flex-direction: column; }
    .btn-launch-portal { width: 100%; }
    .hero-cta-group { flex-direction: column; }
    .hero-cta-group a { width: 100%; justify-content: center; }

    .hero-float-card {
        position: static;
        margin-top: 0.65rem;
        width: 100%;
    }

    .ribbon-grid { grid-template-columns: 1fr; gap: 1rem; }

    .portals-section,
    .spotlight-section,
    .capabilities-section,
    .impact-section { padding: 3.25rem 0; }

    .spotlight-detail-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .spotlight-action-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-spotlight-sso,
    .btn-spotlight-go {
        width: 100%;
        justify-content: center;
    }

    .metrics-container-box { padding: 1.5rem; }
    .support-banner { padding: 2rem 1.35rem; }
    .support-cta-card { padding: 1.6rem 1.2rem; }
    .footer-bottom-bar { text-align: center; }
}
