/* ==========================================================================
   BISCAST 2026 AACCUP Accreditation Module Stylesheet
   Fomantic-UI safe companion styling with BISCAST Maroon (#800000) & Gold (#FFB300)
   Full responsive support (desktop, tablet, mobile) + Light/Dark theme support
   ========================================================================== */

:root {
    --acc-maroon: #800000;
    --acc-maroon-dark: #5a0000;
    --acc-gold: #ffb300;
    --acc-surface: #ffffff;
    --acc-surface-alt: #f8f9fa;
    --acc-border: #e5e7eb;
    --acc-text: #1f2937;
    --acc-text-muted: #6b7280;
}

[data-theme="dark"] {
    --acc-surface: #1e1e1e;
    --acc-surface-alt: #252525;
    --acc-border: #333333;
    --acc-text: #e5e7eb;
    --acc-text-muted: #9ca3af;
}

/* ==========================================================================
   Accreditation Sleek Institutional Sub-Navigation Ribbon
   ========================================================================== */
.acc-subnav {
    margin-top: 84px;
    position: sticky;
    top: 66px;
    z-index: 950;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 2px solid rgba(128, 0, 0, 0.12);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.acc-subnav-container {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.acc-subnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.acc-subnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none !important;
    flex-shrink: 0;
    padding-right: 0.85rem;
    border-right: 1px solid var(--acc-border);
}

.acc-subnav-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.acc-subnav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.acc-subnav-badge {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    color: #800000;
    text-transform: uppercase;
}

.acc-subnav-sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--acc-text-muted);
    letter-spacing: 0.2px;
}

.acc-subnav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 2px 0;
}

.acc-dd {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.acc-dd-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--acc-surface);
    border: 1px solid rgba(128, 0, 0, 0.16);
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
    padding: 0.4rem 0;
    z-index: 2000;
}

.acc-dd.align-right .acc-dd-menu {
    left: auto;
    right: 0;
}

.acc-dd:hover > .acc-dd-menu,
.acc-dd.open > .acc-dd-menu {
    display: block;
}

/* Invisible hover bridge so moving mouse from button to menu never closes it */
.acc-dd::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.acc-dd-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.58rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--acc-text) !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.acc-dd-item:hover {
    background: rgba(128, 0, 0, 0.08);
    color: #800000 !important;
}

.acc-dd-header {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #800000 !important;
    background: var(--acc-surface-alt);
    border-bottom: 1px solid var(--acc-border);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none !important;
}

.acc-dd-header:hover {
    background: rgba(128, 0, 0, 0.1);
}

.acc-dd-divider {
    height: 1px;
    background: var(--acc-border);
    margin: 0.3rem 0;
}

[data-theme="dark"] .acc-dd-item:hover {
    background: rgba(255, 179, 0, 0.14);
    color: #ffb300 !important;
}
[data-theme="dark"] .acc-dd-header {
    color: #ffb300 !important;
}

.acc-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.81rem;
    font-weight: 600;
    line-height: 1.25;
    color: #374151 !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.acc-nav-link i.icon {
    margin: 0 !important;
    font-size: 0.88em;
    color: #800000;
    opacity: 0.85;
}

.acc-nav-link i.acc-caret {
    font-size: 0.78em;
    opacity: 0.65;
    margin-left: 1px !important;
}

.acc-nav-link:hover {
    background: rgba(128, 0, 0, 0.08);
    color: #800000 !important;
}

.acc-nav-link.active {
    background: linear-gradient(135deg, #800000 0%, #5a0000 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.28);
}

.acc-nav-link.active i.icon {
    color: #ffb300 !important;
    opacity: 1;
}

.acc-dropdown-menu {
    border-radius: 12px !important;
    border: 1px solid rgba(128, 0, 0, 0.14) !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16) !important;
    max-height: 380px !important;
    overflow-y: auto !important;
    margin-top: 8px !important;
    min-width: 230px !important;
}

/* ==========================================================================
   Executive Hero, Cards, Editorial Sections & Hover Animations
   ========================================================================== */
.acc-hero {
    position: relative;
    overflow: hidden;
    background: #3d0000;
    padding: 4.5rem 0 6.5rem;
    color: #ffffff;
}

.acc-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.26;
    transform: scale(1.03);
    pointer-events: none;
}

.acc-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 24%, rgba(255, 179, 0, 0.22) 0%, transparent 46%),
        radial-gradient(circle at 12% 85%, rgba(128, 0, 0, 0.45) 0%, transparent 50%),
        linear-gradient(135deg, rgba(64, 0, 0, 0.96) 0%, rgba(112, 6, 16, 0.88) 52%, rgba(28, 6, 12, 0.95) 100%);
    pointer-events: none;
}

.acc-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 179, 0, 0.14) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    pointer-events: none;
}

.acc-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 179, 0, 0.14);
    border: 1px solid rgba(255, 179, 0, 0.45);
    color: #ffd54f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.acc-hero-title {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0.65rem 0 0.85rem;
}

.acc-hero-title span {
    color: #ffb300;
}

.acc-hero-college {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.25rem;
}

.acc-hero-desc {
    font-size: 1.04rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.84);
    max-width: 620px;
}

.acc-hero-seal-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 179, 0, 0.32);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

.acc-schedule-pill {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Floating Institutional Stats Bar */
.acc-stats-float {
    position: relative;
    z-index: 5;
    margin-top: -3.2rem;
    margin-bottom: 2.5rem;
}

.acc-stats-card {
    background: var(--acc-surface);
    border: 1px solid var(--acc-border);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    padding: 1.35rem 1.5rem;
}

.acc-stat-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.4rem 0.75rem;
}

.acc-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.acc-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--acc-text);
}

.acc-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--acc-text-muted);
    margin-top: 2px;
}

/* Section Headings */
.acc-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b45309;
    margin-bottom: 0.35rem;
}

.acc-section-title {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
    font-weight: 800;
    color: #800000;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
}

.acc-gold-rule {
    width: 68px;
    height: 3.5px;
    background: linear-gradient(90deg, #800000 0%, #ffb300 100%);
    border-radius: 999px;
}

/* Program Showcase Cards */
.acc-program-card {
    background: var(--acc-surface);
    border: 1px solid var(--acc-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.acc-program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(128, 0, 0, 0.14);
}

.acc-program-header {
    position: relative;
    padding: 1.75rem 1.75rem 1.5rem;
    color: #ffffff;
    overflow: hidden;
}

.acc-program-header::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 179, 0, 0.14);
    pointer-events: none;
}

.acc-program-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: var(--acc-surface-alt);
    font-size: 0.88rem;
    color: var(--acc-text);
    margin-bottom: 0.55rem;
}

/* President Message Editorial Feature */
.acc-president-shell {
    background: var(--acc-surface);
    border: 1px solid var(--acc-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.acc-president-sidebar {
    background: linear-gradient(165deg, #680000 0%, #3d0000 100%);
    color: #ffffff;
    padding: 2.5rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.acc-president-portrait-frame {
    width: 196px;
    height: 236px;
    border-radius: 16px;
    padding: 5px;
    background: linear-gradient(145deg, #ffb300, rgba(255, 179, 0, 0.25));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.35rem;
}

.acc-president-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    background: #ffffff;
}

.acc-quote-mark {
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 0.7;
    color: rgba(255, 179, 0, 0.45);
    user-select: none;
    margin-bottom: 0.5rem;
}

/* Accreditor Profile Card (Homepage Preview) */
.acc-accreditor-card {
    background: var(--acc-surface);
    border: 1px solid var(--acc-border);
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.acc-accreditor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(128, 0, 0, 0.12);
    border-color: rgba(255, 179, 0, 0.65);
}

.acc-accreditor-avatar {
    width: 92px;
    height: 104px;
    border-radius: 16px;
    margin: 0 auto 1rem;
    padding: 3px;
    background: linear-gradient(145deg, #ffd54f 0%, #c88700 50%, #ffb300 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16), 0 3px 8px rgba(128, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.acc-accreditor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 13px;
    border: 3px solid #ffffff;
    background: linear-gradient(180deg, #f8fafc 0%, #e5e7eb 100%);
    transition: transform 0.35s ease;
}

.acc-accreditor-card:hover .acc-accreditor-avatar img {
    transform: scale(1.04);
}

.acc-accreditor-avatar span {
    width: 100%;
    height: 100%;
    border-radius: 13px;
    border: 3px solid #ffffff;
    background: linear-gradient(135deg, #800000 0%, #4d0000 100%);
    color: #ffd54f;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Executive Accreditor Directory Portrait Card (TheAccreditors Page) */
.acc-profile-card {
    background: var(--acc-surface);
    border: 1px solid var(--acc-border);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.acc-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(128, 0, 0, 0.14);
    border-color: rgba(255, 179, 0, 0.55);
}

.acc-profile-banner {
    height: 86px;
    position: relative;
    border-bottom: 3px solid #ffb300;
    overflow: hidden;
}

.acc-profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 179, 0, 0.24) 0%, transparent 55%),
                radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.acc-profile-banner.is-me {
    background: linear-gradient(135deg, #800000 0%, #4a0000 100%);
}

.acc-profile-banner.is-bet {
    background: linear-gradient(135deg, #1b365d 0%, #0f203c 100%);
}

.acc-portrait-frame {
    width: 140px;
    height: 162px;
    margin: -64px auto 1rem;
    position: relative;
    z-index: 2;
    padding: 4px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffe082 0%, #c88700 45%, #ffb300 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2), 0 4px 10px rgba(128, 0, 0, 0.14);
}

.acc-portrait-matte {
    width: 100%;
    height: 100%;
    padding: 4px;
    border-radius: 16px;
    background: #ffffff;
}

.acc-portrait-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-portrait-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transition: transform 0.35s ease;
}

.acc-profile-card:hover .acc-portrait-inner img {
    transform: scale(1.04);
}

[data-theme="dark"] .acc-portrait-matte,
[data-theme="dark"] .acc-accreditor-avatar img,
[data-theme="dark"] .acc-accreditor-avatar span {
    background-color: #1e1e1e;
    border-color: #1e1e1e;
}

/* Quick Access Directory Card */
.acc-resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.85rem;
    border-radius: 18px;
    background: var(--acc-surface);
    border: 1px solid var(--acc-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.acc-resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(128, 0, 0, 0.12);
    border-color: rgba(128, 0, 0, 0.35);
}

.acc-resource-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.15rem;
}

/* Understated Confidentiality Strip */
.acc-confidential-strip {
    background: #1c1214;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    padding: 0.85rem 1rem;
    text-align: center;
    border-top: 2px solid #ffb300;
}

/* Legacy class fallback */
.accreditation-subnav { margin-top: 84px; }

/* Dark Mode for New Components */
[data-theme="dark"] .acc-subnav {
    background: rgba(24, 24, 27, 0.96);
    border-bottom-color: rgba(255, 179, 0, 0.22);
}
[data-theme="dark"] .acc-subnav-badge { color: #ffb300; }
[data-theme="dark"] .acc-nav-link { color: #e5e7eb !important; }
[data-theme="dark"] .acc-nav-link i.icon { color: #ffb300; }
[data-theme="dark"] .acc-nav-link:hover { background: rgba(255, 179, 0, 0.14); color: #ffb300 !important; }
[data-theme="dark"] .acc-eyebrow { color: #ffb300; }
[data-theme="dark"] .acc-section-title { color: #ffb300; }
[data-theme="dark"] .acc-dropdown-menu { background: #1e1e1e !important; border-color: #333 !important; }
[data-theme="dark"] .acc-dropdown-menu .item { color: #e5e7eb !important; }

@media (max-width: 992px) {
    .acc-subnav-brand { border-right: none; padding-right: 0; }
    .acc-subnav-inner { flex-wrap: wrap; gap: 0.5rem; }
    .acc-hero { padding: 3rem 0 5.5rem; }
}

@media (max-width: 768px) {
    .acc-subnav { margin-top: 64px; top: 58px; }
    .acc-stats-float { margin-top: -2rem; }
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--acc-surface);
    background-clip: border-box;
    border: 1px solid var(--acc-border);
    border-radius: 12px;
}
.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}
.card-footer {
    padding: 0.75rem 1.25rem;
    background-color: var(--acc-surface-alt);
    border-top: 1px solid var(--acc-border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.82rem; border-radius: 6px; }
.btn-xs { padding: 0.2rem 0.45rem; font-size: 0.75rem; border-radius: 5px; }
.btn-warning { background-color: #ffb300; border-color: #ffb300; color: #1f2937 !important; }
.btn-warning:hover { background-color: #e5a000; border-color: #e5a000; }
.btn-danger { background-color: #800000; border-color: #800000; color: #ffffff !important; }
.btn-danger:hover { background-color: #660000; border-color: #660000; }
.btn-primary { background-color: #2185d0; border-color: #2185d0; color: #ffffff !important; }
.btn-primary:hover { background-color: #1678c2; }
.btn-outline-light { color: #ffffff !important; border-color: rgba(255,255,255,0.65); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.18); color: #ffffff !important; }
.btn-outline-danger { color: #800000 !important; border-color: #800000; background: transparent; }
.btn-outline-danger:hover { background: #800000; color: #ffffff !important; }
.btn-outline-secondary { color: var(--acc-text) !important; border-color: var(--acc-border); background: transparent; }
.btn-outline-secondary:hover { background: var(--acc-surface-alt); }
.btn-group { display: inline-flex; gap: 4px; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.3em 0.65em;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 6px;
}
.bg-warning { background-color: #ffb300 !important; }
.bg-danger { background-color: #800000 !important; }
.bg-success { background-color: #21ba45 !important; }
.bg-primary { background-color: #2185d0 !important; }
.bg-info { background-color: #38bdf8 !important; }
.bg-secondary { background-color: #6b7280 !important; }
.bg-dark { background-color: #1f2937 !important; }
.bg-light { background-color: var(--acc-surface-alt) !important; }
.bg-white { background-color: var(--acc-surface) !important; }

/* Typography & Colors */
.text-white { color: #ffffff !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.78) !important; }
.text-dark { color: var(--acc-text) !important; }
.text-muted { color: var(--acc-text-muted) !important; }
.text-warning { color: #ffb300 !important; }
.text-danger { color: #c81e1e !important; }
.text-success { color: #16a34a !important; }
.text-primary { color: #2185d0 !important; }
.text-info { color: #0284c7 !important; }
.text-maroon { color: #800000 !important; }
.small, small { font-size: 0.86rem; }
.display-5 { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.2; }
.display-6 { font-size: clamp(1.4rem, 2.5vw, 2.1rem); line-height: 1.25; }
.lead { font-size: 1.05rem; font-weight: 400; }

/* Forms */
.form-label { display: inline-block; margin-bottom: 0.35rem; color: var(--acc-text); }
.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--acc-text);
    background-color: var(--acc-surface);
    border: 1px solid var(--acc-border);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}
.form-control-sm, .form-select-sm { padding: 0.35rem 0.6rem; font-size: 0.84rem; }
.form-control:focus, .form-select:focus {
    outline: 0;
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.12);
}
.form-text { margin-top: 0.25rem; font-size: 0.8rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check-input { width: 1.05rem; height: 1.05rem; accent-color: #800000; cursor: pointer; }
.input-group { display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control { flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group-text {
    display: flex; align-items: center; padding: 0.45rem 0.75rem; font-size: 0.88rem;
    color: var(--acc-text-muted); background-color: var(--acc-surface-alt);
    border: 1px solid var(--acc-border); border-radius: 8px 0 0 8px;
}
.input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Tables */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--acc-text);
}
.table th, .table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--acc-border);
    text-align: left;
    vertical-align: middle;
}
.table-sm th, .table-sm td { padding: 0.45rem 0.6rem; }
.table thead th {
    background-color: var(--acc-surface-alt);
    color: var(--acc-text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.table-hover tbody tr:hover { background-color: rgba(128, 0, 0, 0.04); }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0, 0, 0, 0.02); }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 0 0.5rem 0;
    list-style: none;
    gap: 0.4rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 0.4rem;
    color: var(--acc-text-muted);
}
.breadcrumb-item a { color: #800000; text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }

/* Pagination */
.pagination { display: flex; list-style: none; padding: 0; margin: 0; gap: 4px; }
.page-link {
    display: block; padding: 0.3rem 0.65rem; border: 1px solid var(--acc-border);
    border-radius: 6px; color: var(--acc-text); text-decoration: none; background: var(--acc-surface);
}
.page-item.active .page-link { background: #800000; border-color: #800000; color: #fff; }

/* Aspect Ratio Containers */
.ratio { position: relative; width: 100%; }
.ratio::before { display: block; content: ""; }
.ratio > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.ratio-16x9::before { padding-top: 56.25%; }
.ratio-4x3::before { padding-top: 75%; }

/* Accordion */
.accordion-item { background-color: var(--acc-surface); border: 1px solid var(--acc-border); }
.accordion-header { margin: 0; }
.accordion-button {
    position: relative; display: flex; align-items: center; width: 100%;
    padding: 0.9rem 1.15rem; font-size: 0.98rem; color: var(--acc-text);
    text-align: left; background-color: var(--acc-surface-alt); border: 0; cursor: pointer;
    transition: background-color 0.2s ease;
}
.accordion-button:hover { background-color: rgba(128, 0, 0, 0.06); }
.accordion-button::after {
    content: "\25BC";
    font-size: 0.75rem;
    margin-left: auto;
    color: var(--acc-text-muted);
    transition: transform 0.2s ease;
}
.accordion-button:not(.collapsed)::after { transform: rotate(180deg); color: #800000; }
.accordion-collapse { display: none; }
.accordion-collapse.show { display: block; }
.accordion-body { padding: 1.25rem; background-color: var(--acc-surface); border-top: 1px solid var(--acc-border); }

/* Progress Bar */
.progress { display: flex; height: 8px; overflow: hidden; background-color: var(--acc-border); border-radius: 999px; }
.progress-bar { display: flex; flex-direction: column; justify-content: center; transition: width 0.3s ease; }

/* Drag-and-Drop Upload Dropzone */
.acc-dropzone {
    border: 2px dashed #c08080;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: rgba(128, 0, 0, 0.025);
    cursor: pointer;
    transition: all 0.2s ease;
}
.acc-dropzone:hover, .acc-dropzone.dragover {
    border-color: #800000;
    background: rgba(128, 0, 0, 0.07);
}
.acc-upload-progress {
    display: none;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 179, 0, 0.14);
    border: 1px solid #ffb300;
    color: var(--acc-text);
    font-size: 0.88rem;
}

/* Gallery Hover & Lightbox */
.acc-gallery-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.acc-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Shadow & Border Helpers */
.shadow-sm { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important; }
.shadow-lg { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important; }
.border { border: 1px solid var(--acc-border) !important; }
.border-top { border-top: 1px solid var(--acc-border) !important; }
.border-bottom { border-bottom: 1px solid var(--acc-border) !important; }
.border-0 { border: 0 !important; }
.rounded { border-radius: 8px !important; }
.rounded-3 { border-radius: 12px !important; }
.rounded-pill { border-radius: 999px !important; }
.rounded-circle { border-radius: 50% !important; }
.sticky-top { position: sticky; top: 72px; }
.text-decoration-none { text-decoration: none !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-break { word-wrap: break-word; word-break: break-word; }

/* Dark Mode Overrides */
[data-theme="dark"] .text-maroon,
[data-theme="dark"] h1[style*="#800000"],
[data-theme="dark"] h2[style*="#800000"],
[data-theme="dark"] h3[style*="#800000"],
[data-theme="dark"] h4[style*="#800000"],
[data-theme="dark"] h5[style*="#800000"],
[data-theme="dark"] h6[style*="#800000"] {
    color: #ffb300 !important;
}
[data-theme="dark"] .confidential-banner {
    background: #2b2310 !important;
    border-color: #6b5314 !important;
    color: #fde68a !important;
}
[data-theme="dark"] .president-message-body,
[data-theme="dark"] .certificate-content,
[data-theme="dark"] .content-body {
    color: #d1d5db !important;
}
[data-theme="dark"] .btn-outline-danger {
    color: #ffb300 !important;
    border-color: #ffb300 !important;
}
[data-theme="dark"] .btn-outline-danger:hover {
    background: #ffb300 !important;
    color: #1f2937 !important;
}
[data-theme="dark"] .note-editor.note-frame {
    background-color: #1e1e1e;
    border-color: #333;
}
[data-theme="dark"] .note-editor .note-editable {
    background-color: #181818;
    color: #e5e7eb;
}
[data-theme="dark"] .note-editor .note-toolbar {
    background-color: #252525;
    border-color: #333;
}

@media (max-width: 1199px) {
    .acc-subnav-brand-text { display: none; }
    .acc-subnav-brand { padding-right: 0.55rem; }
    .acc-nav-link { padding: 0.38rem 0.55rem; font-size: 0.78rem; }
}

@media (max-width: 991px) {
    .acc-subnav-inner { flex-wrap: wrap; gap: 0.5rem; }
    .acc-subnav-brand { border-right: 0; padding-right: 0; }
    .acc-subnav-brand-text { display: flex; }
    .acc-subnav-links { flex-wrap: wrap; width: 100%; gap: 0.25rem; }
}

@media (max-width: 768px) {
    .acc-subnav { margin-top: 64px; }
    .sticky-top { top: 64px; }
}
