/* ═══════════════════════════════════════════════
   FacultyHubPro Theme — Main Stylesheet
   ═══════════════════════════════════════════════ */

/* =========================================
   RESET & BASE
========================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: var(--font-base);
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.auth-form a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Allow .text-white to override heading color */
.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white h5, .text-white h6,
.text-white .h1, .text-white .h2, .text-white .h3,
.text-white .h4, .text-white .h5, .text-white .h6 {
    color: inherit;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

/* =========================================
   SKIP LINK (Accessibility)
========================================= */

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: var(--text-on-dark);
    padding: 10px 20px;
    z-index: 9999;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* =========================================
   SITE CONTAINER
========================================= */

.site-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   CMU MASTHEAD BAR (Red Top Bar)
========================================= */

.cmu-masthead {
    background: var(--bg-masthead);
    padding: 10px 0;
}

.cmu-masthead__inner {
    display: flex;
    align-items: center;
}

.cmu-masthead__link {
    color: var(--text-on-brand);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.cmu-masthead__link:hover {
    color: var(--text-on-brand);
    text-decoration: underline;
}

.cmu-masthead__logo {
    height: 24px;
    filter: brightness(0) invert(1);
}

/* =========================================
   BRAND BAR (Dark bar with title/subtitle)
========================================= */

.brand-bar {
    background: var(--bg-brand-bar);
    color: var(--text-on-dark);
    padding: 14px 0;
}

.brand-bar__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.brand-bar__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

a.brand-bar__info {
    text-decoration: none;
    color: inherit;
}

a.brand-bar__info:hover {
    text-decoration: none;
    color: inherit;
}

.brand-bar__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-on-dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-bar__subtitle {
    font-size: 13px;
    color: var(--text-on-dark);
    opacity: 0.85;
    margin-top: 2px;
}

/* =========================================
   NAVIGATION — Desktop
========================================= */

.site-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.site-nav .navbar-nav {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 18px;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

.site-nav .navbar-nav .nav-item {
    position: relative;
}

.site-nav .navbar-nav .nav-link {
    color: var(--text-on-dark);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
    text-decoration: none;
}

.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus {
    border-bottom-color: var(--text-on-dark);
    text-decoration: none;
    color: var(--text-on-dark);
}

.site-nav .navbar-nav .nav-item.active > .nav-link,
.site-nav .navbar-nav .nav-link[aria-current="page"] {
    border-bottom-color: var(--text-on-dark);
}

/* Dropdown menus */
.site-nav .navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-dropdown);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    border: none;
    border-radius: 0;
}

.site-nav .navbar-nav .nav-item:hover > .dropdown-menu {
    display: flex;
}

.site-nav .navbar-nav .dropdown-menu .nav-link {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-on-dark);
    display: block;
    border-bottom: none;
}

.site-nav .navbar-nav .dropdown-menu .nav-link:hover {
    background: var(--bg-dropdown-hover);
}

/* =========================================
   HAMBURGER BUTTON
========================================= */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Auto-collapse nav when items overflow (JS adds nav--overflow to .brand-bar__inner) */
.nav--overflow {
    flex-wrap: wrap;
}
.nav--overflow .nav-hamburger {
    display: flex;
    order: 3;
    margin-left: 12px;
}
.nav--overflow .site-nav {
    display: none;
    width: 100%;
    order: 4;
}
.nav--overflow .site-nav.is-open {
    display: block;
}
.nav--overflow .site-nav .navbar-nav {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}
.nav--overflow .site-nav .navbar-nav .nav-link {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav--overflow .auth-nav {
    order: 5;
    width: 100%;
    padding-top: 8px;
}

/* =========================================
   THEME TOGGLE BUTTON
========================================= */

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-on-dark);
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-on-dark);
    font-size: 12px;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   AUTH NAV (Sign In / Sign Out)
========================================= */

.auth-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.auth-username {
    color: var(--text-on-dark-muted);
    font-size: 14px;
    font-weight: 600;
}

.btn-auth {
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.btn-auth-signin {
    background: var(--primary-color);
    color: var(--text-on-dark);
}

.btn-auth-signin:hover {
    background: var(--cmu-red-hover);
    color: var(--text-on-dark);
    text-decoration: none;
}

.btn-auth-signout {
    background: transparent;
    color: var(--text-on-dark-muted);
    border: 1px solid var(--border-on-dark);
}

.btn-auth-signout:hover {
    background: var(--bg-dark-bar-hover);
    color: var(--text-on-dark);
}

.btn-auth-admin {
    background: transparent;
    color: var(--text-on-dark);
    border: 1px solid var(--primary-color);
}

.btn-auth-admin:hover {
    background: var(--primary-color);
    color: var(--text-on-dark);
    text-decoration: none;
}

/* =========================================
   CMU PRIMARY BUTTON OVERRIDE
========================================= */

.btn-primary {
    background-color: var(--cmu-red);
    border-color: var(--cmu-red);
    color: var(--text-on-dark);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--cmu-red-hover);
    border-color: var(--cmu-red-hover);
    color: var(--text-on-dark);
}

.btn-primary:active {
    background-color: var(--cmu-red-active);
    border-color: var(--cmu-red-active);
}

/* =========================================
   MAIN CONTENT
========================================= */

.site-main {
    background: var(--bg-page);
    padding: 0;
    transition: background-color 0.3s ease;
}


.content-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* =========================================
   HERO SECTION
========================================= */

.hero-section {
    position: relative;
    height: 450px;
    overflow: hidden;
    background-size: cover;
    background-position: center 40%;
    background-color: var(--bg-brand-bar);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    pointer-events: none;
}

.hero-section__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-section__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0s 400ms;
}

.hero-section__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0s;
}

.hero-section__headline {
    margin: 0;
    margin-left: max(24px, calc((100% - 1290px) / 2 + 24px));
    color: var(--text-on-dark);
    font-weight: 700;
    font-size: clamp(36px, 3.5vw, 64px);
    line-height: 1.1;
    max-width: 680px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
    .hero-section {
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
    }
}

/* =========================================
   HOMEPAGE GRID (Profile Layout)
========================================= */

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 60px;
    align-items: start;
}

.home-main {
    min-width: 0;
}

.home-name {
    font-size: 2rem;
    margin: 8px 0 6px;
}

.home-position {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--text-secondary);
}

.home-section {
    margin-top: 18px;
    line-height: 1.7;
}

.home-section h2 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.home-section p {
    margin: 10px 0;
}

.home-section a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-section a:hover {
    color: var(--link-hover-color);
}

/* =========================================
   CONTACT SIDEBAR
========================================= */

.contact-sidebar {
    background: var(--bg-dark-bar);
    color: var(--text-on-dark);
    padding: 24px;
    position: sticky;
    top: 20px;
}

.contact-sidebar__photo {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 18px;
    object-fit: cover;
}

.contact-sidebar__name {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--text-on-dark);
}

.contact-sidebar__title {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.contact-sidebar__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px 0;
}

.contact-sidebar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.contact-sidebar__icon {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.75;
}

.contact-sidebar__link {
    color: var(--text-on-dark);
    text-decoration: underline;
}

.contact-sidebar__link:hover {
    color: var(--text-on-dark-muted);
}

.contact-sidebar__text {
    color: var(--text-on-dark);
    font-size: 13px;
}

.contact-sidebar__cv {
    display: block;
    margin-top: 18px;
    color: var(--link-on-dark);
    font-weight: 700;
    text-decoration: none;
}

.contact-sidebar__cv:hover {
    color: var(--link-on-dark-hover);
    text-decoration: underline;
}

.contact-sidebar__profiles {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

.contact-sidebar__profile-link {
    color: var(--text-on-dark);
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.contact-sidebar__profile-link:hover {
    opacity: 1;
    color: var(--text-on-dark);
}

/* =========================================
   CARD COMPONENTS
========================================= */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* =========================================
   BADGES (Status, Type, Category)
========================================= */

.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-active {
    background: var(--badge-active);
    color: var(--text-on-dark);
}

.badge-completed {
    background: var(--badge-completed);
    color: var(--text-on-dark);
}

.badge-planned {
    background: var(--badge-planned);
    color: var(--badge-text-on-light);
}

.badge-current {
    background: var(--badge-current);
    color: var(--text-on-dark);
}

.badge-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--secondary-color);
    color: var(--text-on-dark);
}

.badge-type--journal { background: var(--badge-type-journal); }
.badge-type--conference { background: var(--badge-type-conference); color: var(--badge-text-on-light); }
.badge-type--book { background: var(--badge-type-book); }
.badge-type--working { background: var(--badge-type-working); }
.badge-type--chapter { background: var(--badge-type-chapter); }
.badge-type--preprint { background: var(--badge-type-preprint); }
.badge-type--thesis { background: var(--badge-type-thesis); }

/* Publication summary card — Scholars-style */
.pub-card { padding: 16px 0; border-top: 1px solid var(--border-light); }
.pub-card:first-child { border-top: none; }
.pub-card__type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 6px;
}
.pub-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px 0;
}
.pub-card__title a { color: var(--text-primary); text-decoration: none; }
.pub-card__title a:hover { text-decoration: underline; }
.pub-card__meta, .pub-card__citation, .pub-card__authors, .pub-card__doi {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 2px 0;
}
.pub-card__authors i { color: var(--text-muted); margin-right: 6px; }
.pub-card__abstract {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: 8px;
    line-height: 1.45;
}
.pub-card__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    font-size: 0.85rem;
}
.pub-card__citations {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-secondary);
}
.pub-card__footer .oa-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.8rem;
}
.pub-card__footer .more-link { color: var(--accent-red); text-decoration: none; margin-left: auto; }
.pub-card__footer .more-link:hover { text-decoration: underline; }

/* Publication list controls (search + sort + count) */
.pub-list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pub-list-controls__search { flex: 0 1 260px; }
.pub-list-controls__sort { flex: 0 0 auto; }
.pub-list-controls__count { color: var(--text-secondary); font-size: 0.875rem; margin-left: auto; }

/* Back-to-list link on publication detail pages */
.publication-detail__back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.publication-detail__back-link:hover { color: var(--accent-red); text-decoration: underline; }
.publication-detail__back-link i { font-size: 0.8em; }

.badge-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* =========================================
   DETAIL PAGE HEADER BAR (Shared)
========================================= */

.publication-detail__header,
.course-detail__header,
.project-detail__header,
.award-detail__header,
.event-detail__header,
.news-detail__header {
    background: var(--bg-surface);
    border-bottom: 3px solid var(--primary-color);
    padding: 28px 0 24px;
    margin-bottom: 28px;
}

.publication-detail__title,
.course-detail__title,
.project-detail__title,
.award-detail__title,
.event-detail__title,
.news-detail__title,
.blog-detail__title {
    padding-left: 16px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.2;
}

/* Align all content inside detail header bars with the title text (16px padding + 4px border = 20px) */
.publication-detail__header > *:not([class*="__title"]),
.course-detail__header > *:not([class*="__title"]),
.project-detail__header > *:not([class*="__title"]),
.award-detail__header > *:not([class*="__title"]),
.event-detail__header > *:not([class*="__title"]),
.news-detail__header > *:not([class*="__title"]) {
    margin-left: 20px;
}

/* =========================================
   PUBLICATION STYLES
========================================= */

.publication-detail {
    margin: 0;
    padding: 40px 16px;
}

.publication-detail__header {
    margin-bottom: 24px;
}

.publication-detail__title {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.publication-detail__meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.publication-detail__authors {
    font-weight: 600;
    margin-bottom: 4px;
}

.publication-detail__journal {
    font-style: italic;
}

.publication-detail__doi {
    margin-top: 8px;
}

.publication-detail__doi a {
    color: var(--link-color);
    word-break: break-all;
}

.publication-detail__abstract {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.publication-detail__abstract h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.publication-detail__actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.publication-gated {
    text-align: center;
    padding: 30px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    margin-top: 20px;
}

.publication-gated__icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Publication summary (citation format) */
.publication-summary {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}

.publication-summary:last-child {
    border-bottom: none;
}

.publication-summary__citation {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.publication-summary__title {
    font-weight: 600;
}

.publication-summary__journal {
    font-style: italic;
}

.publication-summary__links {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
    font-size: 0.85rem;
}

.publication-summary__doi {
    color: var(--link-color);
    text-decoration: none;
}

.publication-summary__doi:hover {
    text-decoration: underline;
}

.publication-summary__pdf {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
}

.publication-summary__pdf:hover {
    text-decoration: underline;
}

/* =========================================
   COURSE STYLES
========================================= */

.course-detail {
    margin: 0;
    padding: 40px 16px;
}

.course-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.course-detail__number {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.course-detail__title {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.course-detail__semester {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.course-detail__description {
    margin-top: 24px;
    line-height: 1.7;
}

.course-detail__syllabus {
    margin-top: 20px;
}

/* Lead-in paragraph above a section list (e.g. Courses intro) */
.section-intro {
    max-width: 860px;
    margin: 4px 0 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

.section-intro p {
    margin: 0 0 12px 0;
}

.section-intro p:last-child {
    margin-bottom: 0;
}

/* Course summary — card-style tile inside the semester grid */
.course-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.course-summary:hover {
    border-color: var(--cmu-red, var(--primary-color));
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.course-summary__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.course-summary__number {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
}

.course-summary__title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text-primary);
    text-decoration: none;
}

.course-summary__title:hover {
    color: var(--cmu-red, var(--primary-color));
    text-decoration: underline;
}

.course-summary__semester {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Semester groups on the Teaching page */
.course-group {
    margin-bottom: 36px;
}

.course-group__heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 10px 0;
    margin: 0 0 16px 0;
    border-bottom: 2px solid var(--border-color);
}

.course-group__heading i {
    color: var(--cmu-red, var(--primary-color));
}

.course-group__heading-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
}

.course-group__count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

/* Current-teaching group — more prominent */
.course-group--current .course-group__heading {
    border-bottom-color: var(--cmu-red, var(--primary-color));
    border-bottom-width: 3px;
    color: var(--cmu-red, var(--primary-color));
    font-size: 1.3rem;
}

.course-group--current .course-summary {
    border-color: color-mix(in srgb, var(--cmu-red, var(--primary-color)) 35%, var(--border-color));
    background: color-mix(in srgb, var(--cmu-red, var(--primary-color)) 3%, var(--bg-card));
}

/* Academic-year grouping — wraps semester groups */
.course-academic-year {
    margin-bottom: 40px;
}

.course-academic-year__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    padding: 10px 0 8px;
    border-bottom: 3px solid var(--cmu-red, var(--primary-color));
}

.course-academic-year .course-group {
    margin-bottom: 24px;
}

.course-academic-year .course-group__heading {
    font-size: 1rem;
    border-bottom-width: 1px;
    border-bottom-style: dashed;
    padding: 6px 0;
    margin-bottom: 12px;
}

/* Semester grouping (legacy — kept for back-compat) */
.semester-group {
    margin-bottom: 32px;
}

.semester-group__heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 12px;
}

/* =========================================
   LAB MEMBER GRID
========================================= */

.lab-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.lab-member-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.lab-member-card:hover {
    box-shadow: var(--shadow-md);
}

.lab-member-card__photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
}

.lab-member-card__body {
    padding: 16px;
}

.lab-member-card__name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.lab-member-card__role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.lab-member-card__bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.lab-member-card__links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.lab-member-card__links a {
    color: var(--text-secondary);
    font-size: 16px;
    transition: color 0.2s ease;
}

.lab-member-card__links a:hover {
    color: var(--link-color);
}

/* Lab member summary (compact) */
/* Lab member list → 3-column grid (matches QA card layout) */
.list-group:has(.lab-member-summary) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: none;
}

.list-group:has(.lab-member-summary) > .list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

@media (max-width: 768px) {
    .list-group:has(.lab-member-summary) {
        grid-template-columns: 1fr;
    }
}

.lab-member-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: none;
}

.lab-member-summary__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.lab-member-summary__name {
    font-weight: 600;
    font-size: 0.9rem;
}

.lab-member-summary__role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   RESEARCH PROJECT STYLES
========================================= */

.project-detail {
    margin: 0;
    padding: 40px 16px;
}

.project-detail__header {
    margin-bottom: 24px;
}

.project-detail__title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.project-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-detail__description {
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-detail__collaborators {
    margin-top: 20px;
}

.project-detail__collaborators h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

/* Project summary card */
.project-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.project-summary:hover {
    box-shadow: var(--shadow-md);
}

.project-summary__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.project-summary__dates {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   AWARD STYLES
========================================= */

.award-detail {
    margin: 0;
    padding: 40px 16px;
}

.award-detail__header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.award-detail__year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-red);
    flex-shrink: 0;
    min-width: 80px;
}

.award-detail__info {
    flex: 1;
}

.award-detail__title {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.award-detail__body {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.award-detail__description {
    margin-top: 16px;
    line-height: 1.7;
}

/* Award timeline */
.award-timeline {
    position: relative;
    padding-left: 20px;
}

.award-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.award-timeline__item {
    position: relative;
    padding: 16px 0 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.award-timeline__item::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--bg-page);
}

.award-timeline__year {
    font-weight: 700;
    color: var(--accent-red);
    font-size: 0.9rem;
}

.award-timeline__title {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 2px;
}

.award-timeline__body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* =========================================
   EVENT STYLES
========================================= */

.event-detail {
    margin: 0;
    padding: 40px 16px;
}

.event-detail__header {
    margin-bottom: 24px;
}

.event-detail__title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.event-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-detail__meta-item i,
.project-detail__meta-item i,
.project-summary__meta i,
.project-summary__dates i {
    margin-right: 4px;
}

.event-detail__description {
    margin-top: 24px;
    line-height: 1.7;
}

.event-detail__links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Event timeline */
.event-timeline__item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.event-timeline__date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.event-timeline__month {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.event-timeline__day {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-red);
    line-height: 1;
}

.event-timeline__content {
    flex: 1;
}

.event-timeline__title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.event-timeline__venue {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   NEWS STYLES
========================================= */

.news-detail {
    margin: 0;
    padding: 40px 16px;
}

.news-detail__header {
    margin-bottom: 24px;
}

.news-detail__title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.news-detail__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.news-detail__featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.news-detail__body {
    line-height: 1.7;
    font-size: 1rem;
}

/* Link styling inside rendered rich-text bodies — covers every content type
   whose detail/card view renders WYSIWYG or Markdown content via @Html.Raw. */
.news-detail__body a,
.blog-detail__body a,
.course-detail__description a,
.event-detail__description a,
.lab-member-card__bio a,
.home-section a,
.project-detail__description a,
.award-detail__description a {
    color: var(--link-color);
    text-decoration: underline;
}

.news-detail__body a:hover,
.blog-detail__body a:hover,
.course-detail__description a:hover,
.event-detail__description a:hover,
.lab-member-card__bio a:hover,
.home-section a:hover,
.project-detail__description a:hover,
.award-detail__description a:hover {
    color: var(--link-hover-color);
}

/* News list → 2-column grid (matches QA card layout) */
.list-group:has(.news-card) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    border: none;
}

.list-group:has(.news-card) > .list-group-item {
    border: none;
    padding: 0;
    background: transparent;
}

@media (max-width: 768px) {
    .list-group:has(.news-card) {
        grid-template-columns: 1fr;
    }
}

/* News cards */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.news-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card__body {
    padding: 16px 20px;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-card__summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   BLOG POST STYLES
========================================= */

.blog-detail {
    margin: 0;
    padding: 40px 16px;
}

.blog-detail__title {
    font-size: 2.25rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.blog-detail__meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.blog-detail__body {
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-detail__body h2 { margin-top: 2rem; font-size: 1.5rem; }
.blog-detail__body h3 { margin-top: 1.5rem; font-size: 1.25rem; }

.blog-detail__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.blog-detail__body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 12px 20px;
    margin: 1.5rem 0;
    background: var(--bg-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-detail__body pre {
    background: var(--bg-surface);
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.9rem;
}

/* Blog summary card */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
}

.blog-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   FACULTY PROFILE SUMMARY CARD
========================================= */

.faculty-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    gap: 20px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.faculty-card:hover {
    box-shadow: var(--shadow-md);
}

.faculty-card__photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.faculty-card__info {
    flex: 1;
    min-width: 0;
}

.faculty-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.faculty-card__title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.faculty-card__department {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.faculty-card__email {
    font-size: 0.85rem;
    color: var(--link-color);
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: var(--bg-footer);
    color: var(--text-on-dark);
    padding: 20px 0;
    font-size: 13px;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__brand {
    font-weight: 600;
}

.site-footer__copy {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text-on-dark);
    text-decoration: underline;
}

.site-footer__separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* =========================================
   GATED CONTENT
========================================= */

.gated-content {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-surface);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    margin: 20px 0;
}

.gated-content__icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.gated-content__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.gated-content__message {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
========================================= */

/* Tablet and below */
@media (max-width: 992px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-sidebar {
        position: static;
    }

    .hero-section {
        height: 320px;
    }
}

/* Mobile hamburger nav */
@media (max-width: 768px) {
    .brand-bar__inner {
        flex-wrap: wrap;
    }

    .brand-bar__info {
        flex: 1;
        min-width: 0;
    }

    .nav-hamburger {
        display: flex;
        order: 3;
        margin-left: 12px;
    }

    .site-nav {
        display: none;
        width: 100%;
        order: 4;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav .navbar-nav {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .site-nav .navbar-nav .nav-link {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .auth-nav {
        order: 5;
        width: 100%;
        padding-top: 8px;
    }

    .hero-section {
        height: 240px;
    }

    .hero-section__headline {
        font-size: clamp(22px, 5vw, 32px);
        max-width: 90%;
    }

    .home-name {
        font-size: 1.5rem;
    }

    .content-container {
        padding: 24px 16px;
    }

    .lab-members-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .faculty-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .theme-toggle {
        order: 2;
    }

    .news-detail__title,
    .blog-detail__title {
        font-size: 1.5rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .event-timeline__item {
        flex-direction: column;
        gap: 8px;
    }

    .event-timeline__date {
        width: auto;
        text-align: left;
        display: flex;
        gap: 8px;
        align-items: baseline;
    }

    .award-detail__header {
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================================
   SECTION LISTING PAGES
========================================= */

.section-header {
    background: var(--bg-surface);
    border-bottom: 3px solid var(--primary-color);
    padding: 28px 0 24px;
    margin-bottom: 28px;
}

.section-header__title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    padding-left: 16px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.2;
}

.section-header__title i {
    color: var(--accent-red);
    margin-right: 8px;
}

.section-header__count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    padding-left: 16px;
    margin-top: 4px;
}

.section-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.section-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.section-empty__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .section-list--grid {
        grid-template-columns: 1fr;
    }

    .section-header__title {
        font-size: 1.5rem;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .site-container {
        padding: 0 40px;
    }
}

/* =========================================
   PRINT STYLES
========================================= */

@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .cmu-masthead,
    .brand-bar,
    .site-nav,
    .nav-hamburger,
    .theme-toggle,
    .auth-nav,
    .site-footer,
    .hero-section,
    .skip-link {
        display: none !important;
    }

    main {
        padding: 0;
    }

    .content-container {
        max-width: 100%;
        padding: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }

    .publication-detail__abstract {
        border-left-color: #000;
    }
}

/* =========================================
   BOOTSTRAP DARK-MODE OVERRIDES
========================================= */

html[data-theme="dark"] .list-group-item {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .card {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .alert {
    color: var(--text-primary);
}

html[data-theme="dark"] .form-control {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* =========================================
   ACCESSIBILITY — Focus Styles
========================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
}

.site-nav a:focus-visible,
.brand-bar a:focus-visible,
.btn-auth:focus-visible,
.contact-sidebar a:focus-visible,
.site-footer a:focus-visible {
    outline-color: var(--text-on-dark);
}

/* =========================================
   ERROR PAGES
========================================= */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 3rem 1.5rem;
    text-align: center;
}
.error-page__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10rem;
    margin-bottom: 1.5rem;
}
.error-page__code-bg {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 800;
    line-height: 1;
    color: var(--accent-red, #C41230);
    opacity: 0.08;
    position: absolute;
    user-select: none;
    pointer-events: none;
}
html[data-theme="dark"] .error-page__code-bg {
    opacity: 0.12;
}
.error-page__icon {
    position: relative;
    font-size: 4.5rem;
    color: var(--accent-red, #C41230);
}
.error-page__content {
    max-width: 500px;
    margin-bottom: 2rem;
}
.error-page__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #222);
    margin-bottom: 0.75rem;
}
.error-page__message {
    font-size: 1.05rem;
    color: var(--text-muted, #666);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.error-page__suggestion {
    font-size: 0.9rem;
    color: var(--text-secondary, #555);
    line-height: 1.5;
    margin-bottom: 0;
}
.error-page__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.error-page__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius, 8px);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.error-page__btn:focus-visible {
    outline: 2px solid var(--focus-ring-color, #C41230);
    outline-offset: 2px;
}
.error-page__btn--primary {
    background-color: var(--primary-color, #C41230);
    color: #fff;
    border: 1px solid transparent;
}
.error-page__btn--primary:hover {
    background-color: var(--cmu-red-hover, #a50f28);
    color: #fff;
}
.error-page__btn--secondary {
    background-color: var(--card-bg, #fff);
    color: var(--text-secondary, #555);
    border: 1px solid var(--border-color, #ddd);
}
.error-page__btn--secondary:hover {
    background-color: var(--bg-surface, #f8f8f8);
    color: var(--text-primary, #222);
    border-color: var(--text-muted, #999);
}
