:root {
    --maroon: #8F0001;
    --maroon-dark: #8F0001;
    --maroon-deep: #8F0001;
    --maroon-soft: #fff2f3;
    --gold: #d9ae52;
    --ink: #172033;
    --text: #334155;
    --muted: #6b7280;
    --soft: #f5f6f8;
    --soft-2: #eef1f5;
    --line: #e7eaf0;
    --white: #fff;
    --shadow-soft: 0 18px 55px rgba(23,32,51,.08);
    --shadow-card: 0 12px 34px rgba(23,32,51,.07);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--soft);
    padding-top: 118px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

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

.bg-maroon {
    background: var(--maroon) !important;
}

.btn {
    font-weight: 800;
    border-radius: 999px;
    transition: .22s ease;
}

.btn-maroon {
    background: var(--maroon);
    color: #fff;
    border: 1px solid var(--maroon);
    box-shadow: 0 14px 28px rgba(143, 0, 1,.18);
}

    .btn-maroon:hover {
        background: var(--maroon-dark);
        border-color: var(--maroon-dark);
        color: #fff;
        transform: translateY(-2px);
    }

.btn-soft-maroon {
    color: var(--maroon);
    border: 1px solid rgba(143, 0, 1,.14);
    background: var(--maroon-soft);
}

    .btn-soft-maroon:hover {
        background: var(--maroon);
        border-color: var(--maroon);
        color: #fff;
    }

.btn-outline-maroon {
    color: var(--maroon);
    border: 1px solid rgba(143, 0, 1,.35);
    background: #fff;
}

    .btn-outline-maroon:hover {
        background: var(--maroon);
        border-color: var(--maroon);
        color: #fff;
    }

.btn-white {
    background: #fff;
    border: 1px solid rgba(143, 0, 1,.12);
    color: var(--maroon);
    box-shadow: 0 12px 28px rgba(23,32,51,.06);
}

    .btn-white:hover {
        color: var(--maroon);
        transform: translateY(-2px);
    }

/* Header */
.site-header {
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(23,32,51,.06);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(23,32,51,.05);
}

.header-brand-row {
    padding: 14px 0 10px;
}

.header-nav-row {
    padding: 0 0 10px;
}

.brand-lockup {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 12px 28px rgba(143, 0, 1,.16);
    flex: 0 0 auto;
}

.brand-text {
    min-width: 0;
    display: block;
}

.brand-name {
    display: block;
    font-weight: 900;
    color: var(--maroon);
    line-height: 1;
    font-size: 1.55rem;
    letter-spacing: .02em;
}

.brand-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

.header-actions {
    gap: 10px;
    align-items: center;
}

    .header-actions .btn {
        padding: .62rem 1rem;
    }

.navbar-toggler {
    border: 1px solid rgba(143, 0, 1,.18);
    color: var(--maroon);
    border-radius: 14px;
    padding: .45rem .65rem;
    font-size: 1.4rem;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 .2rem rgba(143, 0, 1,.12);
    }

.navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
    border-radius: 999px;
    padding: .58rem .86rem;
    white-space: nowrap;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: var(--maroon-soft);
        color: var(--maroon);
    }

.dropdown-menu {
    border: 1px solid rgba(23,32,51,.08);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow-card);
}

.dropdown-item {
    border-radius: 12px;
    font-weight: 700;
    padding: .65rem .8rem;
}

    .dropdown-item:hover {
        background: var(--maroon-soft);
        color: var(--maroon);
    }

.mobile-action-panel {
    display: grid;
    gap: 10px;
    padding: 10px 0 4px;
}

/* Hero */
.hero-section {
    position: relative;
    isolation: isolate;
    padding: 86px 0 52px;
    background: radial-gradient(circle at 11% 10%, rgba(143, 0, 1,.08), transparent 28%), radial-gradient(circle at 88% 12%, rgba(217,174,82,.16), transparent 24%), linear-gradient(135deg, #fff 0%, #faf7f4 46%, #f3f6fa 100%);
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(23,32,51,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23,32,51,.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 84%);
    z-index: -1;
}

.section-kicker,
.mini-heading {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--maroon);
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
    font-size: .84rem;
}

    .section-kicker span,
    .mini-heading::before {
        content: "";
        width: 36px;
        height: 3px;
        border-radius: 999px;
        background: var(--maroon);
    }

    .mini-heading i {
        font-size: 1.05rem;
    }

.hero-title {
    max-width: 780px;
    margin: 18px 0 18px;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.06em;
    font-size: clamp(3rem, 6.8vw, 6.45rem);
    color: var(--ink);
}

    .hero-title span {
        color: var(--maroon);
        position: relative;
        display: inline-block;
    }

        .hero-title span::after {
            content: "";
            position: absolute;
            left: .04em;
            right: .08em;
            bottom: .08em;
            height: .12em;
            border-radius: 999px;
            background: rgba(217,174,82,.46);
            z-index: -1;
        }

.hero-desc {
    max-width: 705px;
    color: var(--text);
    line-height: 1.85;
    font-size: 1.08rem;
    margin-bottom: 26px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .hero-buttons .btn {
        padding: .86rem 1.25rem;
    }

.hero-visual-card {
    position: relative;
    max-width: 500px;
    margin-left: auto;
}

.hero-visual-inner {
    min-height: 410px;
    border-radius: 44px;
    padding: 34px;
    color: #fff;
    background: radial-gradient(circle at 82% 12%, rgba(255,255,255,.22), transparent 25%), linear-gradient(140deg, #8F0001, #8F0001 50%, #8F0001);
    box-shadow: 0 34px 80px rgba(143, 0, 1,.22);
    border: 1px solid rgba(255,255,255,.18);
    overflow: hidden;
}

    .hero-visual-inner::after {
        content: "";
        position: absolute;
        inset: 32px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 34px;
        pointer-events: none;
    }

.logo-orbit {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: grid;
    place-items: center;
    margin-left: auto;
    box-shadow: inset 0 0 0 14px rgba(255,255,255,.4);
}

    .logo-orbit img {
        width: 145px;
        height: 145px;
        object-fit: contain;
        border-radius: 50%;
    }

.hero-metric-main {
    margin-top: 14px;
}

.metric-label {
    color: rgba(255,255,255,.72);
    font-weight: 800;
}

.metric-number {
    font-size: 4.25rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.04em;
}

.metric-desc {
    color: rgba(255,255,255,.82);
    font-weight: 700;
    margin-top: 8px;
}

.hero-pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

    .hero-pill-row span {
        display: inline-flex;
        background: rgba(255,255,255,.18);
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 999px;
        padding: .46rem .8rem;
        font-size: .86rem;
        font-weight: 800;
    }

.hero-toast {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: -28px;
    display: flex;
    gap: 13px;
    align-items: center;
    border-radius: 24px;
    padding: 16px 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 44px rgba(23,32,51,.16);
    border: 1px solid rgba(23,32,51,.08);
}

    .hero-toast strong {
        color: var(--maroon);
        display: block;
    }

    .hero-toast p {
        color: var(--muted);
        margin: 0;
        font-size: .92rem;
    }

.pulse-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #23c55e;
    flex: 0 0 auto;
    box-shadow: 0 0 0 8px rgba(35,197,94,.13);
}

.stats-panel {
    position: relative;
    margin-top: 68px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
}

.stat-tile {
    min-height: 132px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(23,32,51,.07);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: .22s ease;
}

    .stat-tile:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-soft);
    }

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eef2f7;
    color: var(--text);
}

.stat-tile span {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: .8rem;
}

.stat-tile strong {
    display: inline-block;
    font-size: 1.82rem;
    line-height: 1;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -.04em;
}

.stat-tile small {
    display: inline-block;
    color: var(--muted);
    font-weight: 700;
    margin-left: 3px;
}

.stat-tile.primary {
    border-left: 5px solid #2563eb;
}

.stat-tile.gold {
    border-left: 5px solid var(--gold);
}

.stat-tile.green {
    border-left: 5px solid #16a34a;
}

.stat-tile.red {
    border-left: 5px solid #8F0001;
}

.stat-tile.teal {
    border-left: 5px solid #14b8a6;
}

.stat-tile.orange {
    border-left: 5px solid #f97316;
}

.stat-tile.violet {
    border-left: 5px solid #7c3aed;
}

/* Content sections */
.section-soft {
    background: var(--soft);
    padding: 74px 0;
}

.section-white {
    background: #fff;
    padding: 82px 0;
}

.content-title {
    margin: 10px 0 16px;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.18;
    color: var(--ink);
}

.content-desc {
    color: var(--muted);
    line-height: 1.85;
}

.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 30px;
}

.section-center-head {
    max-width: 760px;
    margin: 0 auto 40px;
}

    .section-center-head h2 {
        margin-top: 12px;
        font-weight: 900;
        letter-spacing: -.035em;
    }

    .section-center-head p {
        color: var(--muted);
        line-height: 1.85;
    }

.overview-card,
.directory-card {
    border-radius: var(--radius-xl);
    background: #fff;
    border: 1px solid rgba(23,32,51,.07);
    box-shadow: var(--shadow-soft);
}

.overview-card {
    padding: 34px;
}

    .overview-card h2,
    .directory-card h2 {
        font-weight: 900;
        letter-spacing: -.035em;
        margin: 8px 0 6px;
    }

    .overview-card p,
    .directory-card p {
        color: var(--muted);
        margin-bottom: 0;
    }

.chart-box {
    height: 360px;
}

.directory-card {
    padding: 34px;
}

.directory-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.directory-count {
    flex: 0 0 auto;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--maroon-soft);
    color: var(--maroon);
    text-align: center;
}

    .directory-count span {
        display: block;
        font-weight: 800;
        font-size: .78rem;
    }

    .directory-count strong {
        display: block;
        font-size: 1.65rem;
        line-height: 1;
        font-weight: 900;
    }

.filter-board {
    border-radius: 26px;
    background: #f7f8fa;
    border: 1px solid rgba(23,32,51,.05);
    padding: 26px;
    margin-bottom: 24px;
}

    .filter-board label {
        color: var(--text);
        font-weight: 800;
        margin-bottom: 8px;
    }

.form-select,
.form-control {
    border: 1px solid #dfe4eb;
    border-radius: 16px;
    padding: .78rem 1rem;
}

    .form-select:focus,
    .form-control:focus {
        border-color: rgba(143, 0, 1,.45);
        box-shadow: 0 0 0 .25rem rgba(143, 0, 1,.08);
    }

.search-field {
    position: relative;
}

    .search-field i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
    }

    .search-field .form-control {
        padding-left: 44px;
    }

.alumni-table-wrap {
    overflow-x: auto;
    border-radius: 22px;
}

.alumni-table {
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

    .alumni-table thead th {
        border: 0;
        background: transparent;
        color: var(--muted);
        font-size: .85rem;
        font-weight: 900;
        padding: 0 18px 6px;
    }

    .alumni-table tbody tr {
        background: #fff;
        box-shadow: 0 8px 24px rgba(23,32,51,.05);
    }

    .alumni-table tbody td {
        border: 0;
        padding: 17px 18px;
        background: #fff;
    }

        .alumni-table tbody td:first-child {
            border-radius: 18px 0 0 18px;
        }

        .alumni-table tbody td:last-child {
            border-radius: 0 18px 18px 0;
        }

.alumni-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(23,32,51,.12);
}

.badge-soft {
    display: inline-flex;
    border-radius: 999px;
    padding: .42rem .64rem;
    background: #f1f3f7;
    color: var(--text);
    font-weight: 800;
}

.badge-career {
    display: inline-flex;
    border-radius: 999px;
    padding: .42rem .64rem;
    background: var(--maroon-soft);
    color: var(--maroon);
    font-weight: 900;
    font-size: .82rem;
}

.directory-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--muted);
    font-size: .92rem;
}

.custom-pagination .page-link {
    border: 0;
    color: var(--maroon);
    border-radius: 12px;
    margin: 0 2px;
    font-weight: 800;
}

.custom-pagination .page-item.active .page-link {
    background: var(--maroon);
    color: #fff;
}

.image-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(23,32,51,.08);
}

    .image-frame img {
        width: 100%;
        height: 430px;
        object-fit: cover;
        display: block;
    }

.about-points {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

    .about-points div {
        color: var(--text);
        font-weight: 700;
    }

    .about-points i {
        color: #16a34a;
        margin-right: 8px;
    }

.news-feature-card {
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(23,32,51,.07);
    box-shadow: var(--shadow-card);
    transition: .22s ease;
}

    .news-feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-soft);
    }

    .news-feature-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
    }

.news-feature-body {
    padding: 24px;
}

    .news-feature-body h3 {
        font-size: 1.25rem;
        font-weight: 900;
        line-height: 1.45;
        margin: 12px 0 8px;
    }

    .news-feature-body p {
        color: var(--muted);
        line-height: 1.7;
    }

    .news-feature-body small {
        color: var(--muted);
        font-weight: 700;
    }

.tag-light {
    display: inline-flex;
    border-radius: 999px;
    background: var(--maroon-soft);
    color: var(--maroon);
    padding: .36rem .7rem;
    font-weight: 900;
    font-size: .82rem;
}

.agenda-card {
    min-height: 100%;
    border-radius: 26px;
    padding: 28px;
    background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
    color: #fff;
    box-shadow: 0 20px 50px rgba(143, 0, 1,.2);
}

.agenda-header {
    font-weight: 900;
    font-size: 1.35rem;
    margin-bottom: 24px;
}

.agenda-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.agenda-date {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fff;
    color: var(--maroon);
    display: grid;
    place-items: center;
    line-height: 1;
    flex: 0 0 auto;
}

    .agenda-date strong {
        font-size: 1.05rem;
    }

    .agenda-date span {
        font-size: .8rem;
        font-weight: 800;
    }

.agenda-item span {
    display: block;
    color: rgba(255,255,255,.68);
    font-size: .9rem;
}

.agenda-item strong {
    display: block;
    color: #fff;
}

.agenda-link {
    display: inline-flex;
    margin-top: 22px;
    color: #fff;
    font-weight: 900;
    gap: 8px;
}

.knowledge-layout-card,
.job-board-card {
    height: 100%;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(23,32,51,.07);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.magazine-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 26px;
    align-items: center;
    margin-bottom: 22px;
}

.magazine-cover {
    min-height: 245px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(143, 0, 1,.94), rgba(35,7,10,.94)), radial-gradient(circle at top right, rgba(217,174,82,.5), transparent 35%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(143, 0, 1,.18);
}

    .magazine-cover span {
        font-size: 1.8rem;
        font-weight: 900;
        line-height: 1.1;
    }

    .magazine-cover small {
        color: rgba(255,255,255,.74);
        font-weight: 800;
    }

.knowledge-layout-card h2 {
    font-weight: 900;
}

.knowledge-layout-card p {
    color: var(--muted);
    line-height: 1.75;
}

.knowledge-list {
    display: grid;
    gap: 10px;
}

    .knowledge-list a {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 0;
        border-top: 1px solid var(--line);
        color: var(--ink);
    }

    .knowledge-list strong {
        font-weight: 900;
    }

    .knowledge-list span {
        color: var(--muted);
        font-size: .92rem;
    }

.job-board-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

    .job-board-head div {
        color: var(--maroon);
        font-size: 1.35rem;
        font-weight: 900;
    }

    .job-board-head a {
        color: var(--maroon);
        font-weight: 900;
    }

.job-listing {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

    .job-listing strong {
        display: block;
        font-size: 1.05rem;
        font-weight: 900;
    }

    .job-listing span {
        color: var(--muted);
    }

.job-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

    .job-meta span {
        display: inline-flex;
        background: #f1f3f7;
        border-radius: 999px;
        padding: .26rem .55rem;
        font-size: .82rem;
        color: var(--text);
        font-weight: 800;
    }

    .job-meta b {
        color: var(--maroon);
    }

.marketplace-banner {
    border-radius: 32px;
    padding: 36px;
    background: radial-gradient(circle at 90% 14%, rgba(217,174,82,.34), transparent 28%), linear-gradient(135deg, var(--maroon), var(--maroon-deep));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    box-shadow: 0 22px 54px rgba(143, 0, 1,.18);
}

    .marketplace-banner h2 {
        font-weight: 900;
        letter-spacing: -.035em;
    }

    .marketplace-banner p {
        max-width: 740px;
        color: rgba(255,255,255,.75);
        line-height: 1.8;
        margin: 0;
    }

.mini-heading.light {
    color: rgba(255,255,255,.76);
}

    .mini-heading.light::before {
        background: rgba(255,255,255,.7);
    }

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.sponsor-card {
    height: 118px;
    border-radius: 20px;
    border: 1px solid rgba(23,32,51,.08);
    background: #fff;
    display: grid;
    place-items: center;
    padding: 22px;
    box-shadow: 0 8px 26px rgba(23,32,51,.04);
    transition: .25s ease;
    position: relative;
}

    .sponsor-card img {
        max-width: 100%;
        max-height: 74px;
        object-fit: contain;
        filter: grayscale(100%) opacity(60%);
        transition: .25s ease;
    }

    .sponsor-card span {
        display: none;
        color: var(--muted);
        font-weight: 900;
    }

    .sponsor-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-card);
        border-color: rgba(143, 0, 1,.18);
    }

        .sponsor-card:hover img {
            filter: grayscale(0) opacity(100%);
            transform: scale(1.04);
        }

    .sponsor-card.is-missing img {
        display: none;
    }

    .sponsor-card.is-missing span {
        display: block;
    }

/* Footer */
.site-footer {
    padding-top: 58px;
    background: linear-gradient(180deg, #19080a, #090203);
    border-top: 5px solid var(--maroon);
    color: rgba(255,255,255,.68);
}

.footer-brand {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

    .footer-brand img {
        width: 66px;
        height: 66px;
        border-radius: 50%;
        background: #fff;
        object-fit: contain;
        padding: 3px;
    }

    .footer-brand h3 {
        margin: 0;
        color: #fff;
        font-weight: 900;
        letter-spacing: .03em;
    }

    .footer-brand span {
        color: rgba(255,255,255,.58);
        font-size: .84rem;
    }

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 18px;
    padding-bottom: 9px;
    display: inline-block;
    border-bottom: 2px solid var(--maroon);
}

.site-footer p {
    line-height: 1.8;
}

.site-footer a {
    display: block;
    color: rgba(255,255,255,.68);
    margin-bottom: 10px;
    font-weight: 700;
}

    .site-footer a:hover {
        color: #fff;
    }

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

    .social-row a {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.14);
        color: #fff;
        margin: 0;
    }

.footer-bottom {
    margin-top: 44px;
    padding: 18px 0;
    background: #050101;
    border-top: 1px solid rgba(255,255,255,.06);
}

/* Modal */
.member-modal {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
}

    .member-modal .modal-header {
        background: var(--maroon);
        color: #fff;
        border: 0;
        padding: 18px 24px;
    }

    .member-modal .modal-title {
        font-weight: 900;
    }

    .member-modal .modal-body {
        padding: 32px;
    }

.profile-modal-layout {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    align-items: center;
}

    .profile-modal-layout img {
        width: 170px;
        height: 170px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px solid #fff;
        box-shadow: 0 12px 34px rgba(23,32,51,.15);
    }

    .profile-modal-layout h3 {
        font-weight: 900;
        margin: 0 0 4px;
    }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    margin-top: 18px;
}

    .profile-grid div {
        border-radius: 16px;
        background: #f7f8fa;
        padding: 12px 14px;
    }

    .profile-grid span {
        display: block;
        color: var(--muted);
        font-size: .82rem;
        font-weight: 800;
    }

    .profile-grid strong {
        display: block;
        color: var(--ink);
        margin-top: 3px;
    }

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--ink);
    border: 2px solid rgba(23,32,51,.18);
    box-shadow: var(--shadow-card);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: .22s ease;
    font-size: 1.2rem;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: var(--maroon);
        color: #fff;
        border-color: var(--maroon);
        transform: translateY(-4px);
    }

/* Responsive */
@media (max-width: 1199.98px) {
    .stats-panel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sponsor-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .brand-subtitle {
        max-width: 420px;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-top: 82px;
    }

    .header-nav-row {
        padding: 0;
    }

    .navbar-collapse {
        padding: 10px 0 14px;
        border-top: 1px solid rgba(23,32,51,.07);
    }

    .navbar-nav .nav-link {
        display: flex;
        width: 100%;
        border-radius: 14px;
    }

    .hero-section {
        padding: 58px 0 44px;
    }

    .hero-visual-card {
        margin: 0 auto;
    }

    .stats-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-head-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .magazine-card {
        grid-template-columns: 1fr;
    }

    .marketplace-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sponsor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brand-subtitle {
        max-width: 320px;
    }
}

@media (max-width: 767.98px) {
    .header-brand-row {
        padding: 10px 0;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-subtitle {
        max-width: 230px;
        font-size: .76rem;
    }

    .hero-title {
        font-size: clamp(2.8rem, 14vw, 4.2rem);
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-visual-inner {
        min-height: 360px;
        border-radius: 32px;
        padding: 24px;
    }

    .logo-orbit {
        width: 150px;
        height: 150px;
    }

        .logo-orbit img {
            width: 115px;
            height: 115px;
        }

    .metric-number {
        font-size: 3.2rem;
    }

    .hero-toast {
        left: 14px;
        right: 14px;
        bottom: -34px;
    }

    .stats-panel {
        grid-template-columns: 1fr;
        margin-top: 76px;
    }

    .section-soft, .section-white {
        padding: 52px 0;
    }

    .overview-card, .directory-card {
        padding: 22px;
        border-radius: 24px;
    }

    .filter-board {
        padding: 18px;
        border-radius: 20px;
    }

    .directory-title-row, .directory-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-box {
        height: 310px;
    }

    .image-frame img {
        height: 300px;
    }

    .news-feature-card img {
        height: 210px;
    }

    .profile-modal-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

        .profile-modal-layout img {
            margin: 0 auto;
        }

    .profile-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sponsor-card {
        height: 96px;
        padding: 16px;
    }

    .knowledge-list a {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 420px) {
    .brand-subtitle {
        display: none;
    }

    .sponsor-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   V3 Patch: Calendar date text + footer social app icons
   ========================================================= */
.agenda-date strong,
.agenda-date span {
    color: var(--maroon) !important;
}

.agenda-date strong {
    font-size: 1.12rem;
    font-weight: 900;
}

.agenda-date span {
    font-size: .78rem;
    font-weight: 900;
}

.social-row {
    gap: 14px;
}

.site-footer .social-row a {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 1.35rem;
    margin: 0;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.10);
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

    .site-footer .social-row a:hover {
        color: #fff;
        transform: translateY(-4px) scale(1.04);
        box-shadow: 0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.18);
    }

    .site-footer .social-row a.social-facebook:hover {
        background: #1877F2;
        border-color: #1877F2;
    }

    .site-footer .social-row a.social-line:hover {
        background: #00B900;
        border-color: #00B900;
    }

    .site-footer .social-row a.social-email:hover {
        background: #0078D4;
        border-color: #0078D4;
    }

@media (max-width: 575.98px) {
    .site-footer .social-row a {
        width: 48px;
        height: 48px;
        font-size: 1.22rem;
    }
}


/* ===============================
   Concept 3 v3: Hero metric cleanup + aligned stat tiles
=============================== */
.hero-visual-card {
    padding-bottom: 0;
}

.hero-visual-inner {
    min-height: 400px;
}

.stats-panel {
    align-items: stretch;
}

.stat-tile {
    min-height: 150px;
    height: 100%;
    padding: 18px 16px;
    gap: 14px;
}

.stat-content {
    display: grid;
    grid-template-rows: 34px 42px 22px;
    align-items: end;
    min-height: 104px;
}

.stat-label {
    align-self: start;
    display: block;
    color: var(--muted);
    font-weight: 900;
    font-size: .82rem;
    line-height: 1.35;
}

.stat-value {
    display: block;
    font-size: clamp(1.72rem, 2vw, 2.05rem);
    line-height: .95;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -.045em;
}

.stat-note {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: .72rem;
    line-height: 1.2;
    margin-left: 0;
}

.empty-note {
    visibility: hidden;
}

.stat-tile .stat-icon {
    background: rgba(15, 23, 42, .045);
    font-size: 1.08rem;
}

.stat-tile.primary .stat-icon {
    color: #2563eb;
    background: rgba(37, 99, 235, .10);
}

.stat-tile.gold .stat-icon {
    color: var(--gold);
    background: rgba(214, 166, 69, .14);
}

.stat-tile.green .stat-icon {
    color: #16a34a;
    background: rgba(22, 163, 74, .11);
}

.stat-tile.red .stat-icon {
    color: #e11d48;
    background: rgba(225, 29, 72, .10);
}

.stat-tile.teal .stat-icon {
    color: #14b8a6;
    background: rgba(20, 184, 166, .11);
}

.stat-tile.orange .stat-icon {
    color: #f97316;
    background: rgba(249, 115, 22, .12);
}

.stat-tile.violet .stat-icon {
    color: #7c3aed;
    background: rgba(124, 58, 237, .10);
}

.stat-tile span,
.stat-tile strong,
.stat-tile small {
    margin-left: 0;
}

/* hide deprecated hero toast layout if any old markup remains */
.hero-toast {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .stat-content {
        grid-template-rows: 30px 38px 22px;
    }
}

@media (max-width: 575.98px) {
    .stat-tile {
        min-height: 138px;
    }

    .stat-content {
        grid-template-rows: 28px 36px 22px;
        min-height: 92px;
    }

    .stat-value {
        font-size: 1.72rem;
    }
}

/* ===============================
   Concept 3 v5 fixes: hero pills + pagination
================================ */
.hero-pill-row {
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 20px;
}

    .hero-pill-row span {
        min-height: 42px;
        align-items: center;
        justify-content: center;
        padding: .58rem 1rem;
        line-height: 1.25;
        white-space: nowrap;
        background: rgba(255,255,255,.20);
        border-color: rgba(255,255,255,.22);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    }

    .hero-pill-row .hero-pill-gear {
        flex: 0 0 auto;
        min-width: 112px;
    }

    .hero-pill-row .hero-pill-active {
        flex: 1 1 260px;
        max-width: 360px;
    }

.custom-pagination {
    align-items: center;
    gap: 8px;
}

    .custom-pagination .page-link,
    .custom-pagination .page-item:first-child .page-link,
    .custom-pagination .page-item:last-child .page-link {
        border-radius: 999px !important;
        border: 1px solid rgba(143, 7, 18, .18);
        background: #fff;
        color: var(--maroon);
        min-width: 42px;
        height: 40px;
        padding: 0 .88rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        font-weight: 800;
        box-shadow: 0 8px 18px rgba(143, 7, 18, .04);
        transition: all .18s ease;
    }

    .custom-pagination .page-number .page-link {
        width: 40px;
        min-width: 40px;
        padding: 0;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .custom-pagination .page-item.active .page-link {
        background: var(--maroon);
        border-color: var(--maroon);
        color: #fff;
        box-shadow: 0 10px 22px rgba(143, 7, 18, .20);
    }

    .custom-pagination .page-item.disabled .page-link {
        background: #fff;
        border-color: rgba(23, 32, 51, .10);
        color: rgba(43, 52, 69, .42);
        box-shadow: none;
        cursor: not-allowed;
        opacity: 1;
    }

    .custom-pagination .page-item:not(.disabled):not(.active) .page-link:hover {
        background: var(--maroon-light);
        border-color: rgba(143, 7, 18, .28);
        color: var(--maroon);
        transform: translateY(-1px);
    }

@media (max-width: 575.98px) {
    .hero-pill-row {
        padding-left: 0;
        padding-right: 0;
    }

        .hero-pill-row span,
        .hero-pill-row .hero-pill-active {
            flex: 1 1 100%;
            max-width: none;
            white-space: normal;
        }

    .directory-footer {
        justify-content: center;
        text-align: center;
    }

    .custom-pagination {
        justify-content: center;
    }
}

/* ===== Header + Banner redesign to match requested reference ===== */
body {
    padding-top: 132px;
    background: #fff;
}

.site-header {
    background: linear-gradient(180deg,#cf000b 0%,#9d0712 100%);
    border-bottom: 0;
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
    backdrop-filter: none;
}

.header-brand-row {
    height: 78px;
    padding: 0;
    position: relative;
}

    .header-brand-row .container-xl {
        position: relative;
        height: 100%;
    }

    .header-brand-row .d-flex {
        height: 100%;
        justify-content: flex-end !important;
    }

.brand-lockup {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 288px;
    min-height: 78px;
    padding: 9px 18px 10px;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 7px 18px rgba(0,0,0,.25);
    justify-content: center;
    gap: 9px;
    z-index: 2;
}

.brand-logo {
    width: 42px;
    height: 42px;
    box-shadow: none;
    background: transparent;
    border-radius: 50%;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.brand-name {
    font-size: 2rem;
    letter-spacing: .02em;
    line-height: 1;
    color: #c4000b;
}

.brand-subtitle {
    font-size: .50rem;
    color: #222;
    font-weight: 800;
    max-width: 235px;
    margin-top: 6px;
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.header-actions {
    gap: 14px;
    align-items: center;
    margin-left: auto;
}

.top-action {
    color: #ffd51d;
    font-weight: 900;
    font-size: .98rem;
    padding: .3rem 0;
}

    .top-action:hover {
        color: #fff;
    }

.top-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,213,29,.55);
    display: inline-block;
}

.header-nav-row {
    padding: 0;
    height: 54px;
}

    .header-nav-row .container-xl {
        height: 100%;
    }

    .header-nav-row .navbar-collapse {
        height: 100%;
    }

.navbar-nav {
    width: 100%;
    justify-content: space-between;
    padding-top: 4px;
}

    .navbar-nav .nav-link {
        color: #fff;
        font-weight: 900;
        font-size: .92rem;
        padding: .65rem .5rem;
        border-radius: 0;
        gap: 6px;
    }

        .navbar-nav .nav-link i {
            font-size: .98rem;
            color: #fff;
            opacity: .95;
        }

        .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
            background: transparent;
            color: #ffd51d;
        }

            .navbar-nav .nav-link:hover i, .navbar-nav .nav-link.active i {
                color: #ffd51d;
            }

.dropdown-menu {
    margin-top: 0;
}

.hero-section {
    padding: 0;
    min-height: 392px;
    display: flex;
    align-items: stretch;
    background-image: linear-gradient(90deg,rgba(0,0,0,.76) 0%,rgba(0,0,0,.46) 38%,rgba(0,0,0,.16) 67%,rgba(0,0,0,.06) 100%),url('../images/about.jpeg');
    background-size: cover;
    background-position: center 43%;
    border-bottom: 10px solid #d0000b;
}

    .hero-section > .container-xl {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 36px;
        padding-bottom: 34px;
    }

.hero-grid {
    display: none;
}

.hero-content-wrap {
    max-width: 680px;
    color: #fff;
}

.section-kicker {
    display: none;
}

.hero-title {
    margin: 0 0 12px;
    color: #fff;
    max-width: 640px;
    font-size: clamp(3.1rem,5.4vw,5.25rem);
    line-height: .98;
    text-shadow: 0 4px 12px rgba(0,0,0,.55);
    letter-spacing: -.04em;
}

    .hero-title span {
        color: #ff0000;
        display: inline;
        text-shadow: 0 4px 12px rgba(0,0,0,.55);
    }

        .hero-title span::after {
            display: none;
        }

.hero-desc {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.hero-buttons .btn {
    padding: .55rem .95rem;
    font-size: .92rem;
    box-shadow: none;
}

.btn-maroon {
    background: #c7000b;
    border-color: #c7000b;
}

.btn-white {
    background: #fff;
    color: #c7000b;
    border-color: #fff;
}

.alumni-counter-panel {
    margin: 0 !important;
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr 390px;
    gap: 24px;
    align-items: center;
    background: #fff;
    padding: 26px 70px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    min-height: 178px;
}

.counter-logo-box {
    display: grid;
    place-items: center;
}

    .counter-logo-box img {
        width: 118px;
        height: 118px;
        object-fit: contain;
    }

.counter-title {
    color: #85000a;
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 3px;
}

.counter-number {
    color: #d0000b;
    font-size: 3.9rem;
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.04em;
}

.counter-subtitle {
    color: #85000a;
    font-size: 1.05rem;
    font-weight: 900;
    margin-top: 8px;
}

.counter-card-grid {
    display: grid;
    grid-template-columns: repeat(3,82px);
    gap: 10px 25px;
    justify-content: end;
}

.counter-card {
    height: 80px;
    border-radius: 13px;
    background: #d0000b;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7px 6px;
    box-shadow: 0 8px 14px rgba(208,0,11,.14);
}

    .counter-card i {
        font-size: 1.25rem;
        color: #4a0005;
        margin-bottom: 3px;
    }

    .counter-card span {
        font-size: .62rem;
        line-height: 1.1;
        font-weight: 800;
        color: #fff;
    }

    .counter-card strong {
        font-size: .98rem;
        line-height: 1.1;
        font-weight: 900;
        color: #fff;
        margin-top: 3px;
    }

@media (max-width: 991.98px) {
    body {
        padding-top: 78px;
    }

    .header-brand-row .d-flex {
        justify-content: space-between !important;
    }

    .brand-lockup {
        position: static;
        transform: none;
        width: 245px;
        min-height: 68px;
        padding: 8px 12px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 1.55rem
    }

    .brand-subtitle {
        font-size: .46rem;
        max-width: 190px;
    }

    .header-actions {
        display: none !important;
    }

    .header-nav-row {
        height: auto;
    }

    .navbar-nav {
        align-items: flex-start !important;
        padding: 12px 0;
    }

        .navbar-nav .nav-link {
            padding: .75rem 0;
        }

    .hero-section {
        min-height: 440px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .alumni-counter-panel {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 18px;
        gap: 12px;
    }

    .counter-card-grid {
        grid-template-columns: repeat(3,82px);
        justify-content: center;
    }
}

@media (max-width:575.98px) {
    .counter-card-grid {
        grid-template-columns: repeat(2,82px);
    }
}

/* ===== V5: precise Header + Banner + Counter layout based on reference image ===== */
@media (min-width: 992px) {
    body {
        padding-top: 212px !important;
        background: #fff;
    }

    .site-header {
        background: linear-gradient(180deg,#d1000c 0%,#a40813 100%);
        box-shadow: 0 7px 18px rgba(0,0,0,.25);
        overflow: visible;
    }

    .header-brand-row {
        height: 136px !important;
        padding: 0 !important;
    }

        .header-brand-row .container-xl {
            height: 100%;
            max-width: 1536px;
        }

        .header-brand-row .d-flex {
            height: 100%;
            justify-content: flex-end !important;
            align-items: flex-start !important;
            position: relative;
        }

    .brand-lockup {
        position: absolute !important;
        left: 50% !important;
        top: 0 !important;
        transform: translateX(-50%) !important;
        width: 496px !important;
        height: 126px !important;
        min-height: 126px !important;
        background: #fff;
        border-radius: 0 0 28px 28px !important;
        padding: 18px 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px !important;
        box-shadow: 0 7px 18px rgba(0,0,0,.30) !important;
    }

    .brand-logo {
        width: 58px !important;
        height: 58px !important;
        box-shadow: none !important;
        background: transparent !important;
        align-self: center !important;
    }

    .brand-text {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        height: 58px !important;
    }

    .brand-name {
        font-size: 3rem !important;
        line-height: .88 !important;
        color: #c7000b !important;
        letter-spacing: .01em !important;
    }

    .brand-subtitle {
        font-size: .77rem !important;
        line-height: 1.15 !important;
        margin-top: 10px !important;
        max-width: 365px !important;
        text-align: center !important;
        white-space: nowrap !important;
        color: #1f1f1f !important;
        font-weight: 800 !important;
        align-self: center !important;
    }

    .header-actions {
        position: absolute;
        right: 42px;
        top: 36px;
        margin: 0 !important;
        gap: 18px !important;
    }

    .top-action {
        font-size: 1.25rem !important;
        color: #ffe119 !important;
        font-weight: 900 !important;
    }

    .top-divider {
        height: 34px !important;
        background: rgba(255,225,25,.45) !important;
    }

    .header-nav-row {
        height: 76px !important;
        padding: 0 !important;
    }

        .header-nav-row .container-xl {
            height: 100%;
            max-width: 1536px;
            padding-left: 56px;
            padding-right: 56px;
        }

        .header-nav-row .navbar-collapse {
            height: 100%;
        }

    .navbar-nav {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 !important;
    }

        .navbar-nav .nav-link {
            font-size: 1.33rem !important;
            line-height: 1 !important;
            color: #fff !important;
            font-weight: 900 !important;
            gap: 13px !important;
            padding: 0 !important;
            border-radius: 0 !important;
        }

            .navbar-nav .nav-link i {
                font-size: 1.8rem !important;
                color: #fff !important;
                opacity: 1 !important;
                line-height: 1 !important;
            }

            .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
                color: #ffe119 !important;
                background: transparent !important;
            }

                .navbar-nav .nav-link:hover i, .navbar-nav .nav-link.active i {
                    color: #ffe119 !important;
                }

    .hero-section {
        height: 482px !important;
        min-height: 482px !important;
        padding: 0 !important;
        display: block !important;
        border-bottom: 0 !important;
        background-image: linear-gradient(90deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.60) 32%,rgba(0,0,0,.22) 65%,rgba(0,0,0,.10) 100%),url('../images/about.jpeg') !important;
        background-size: cover !important;
        background-position: center 43% !important;
    }

        .hero-section .hero-inner {
            height: 100%;
            max-width: 1536px;
            padding-left: 68px !important;
            padding-right: 68px !important;
            display: flex !important;
            align-items: center !important;
        }

    .hero-content-wrap {
        max-width: 720px !important;
        margin: 0 !important;
        padding-top: 0 !important;
    }

    .hero-title {
        font-size: clamp(4.5rem,5.2vw,5.7rem) !important;
        line-height: 1 !important;
        margin: 0 0 18px !important;
        letter-spacing: -.045em !important;
        color: #fff !important;
        text-shadow: 0 4px 12px rgba(0,0,0,.6) !important;
    }

        .hero-title span {
            color: #ff0000 !important;
            display: inline !important;
        }

    .hero-desc {
        max-width: 670px !important;
        font-size: 1.31rem !important;
        line-height: 1.55 !important;
        margin: 0 0 28px !important;
        color: #fff !important;
        font-weight: 500 !important;
        text-shadow: 0 3px 10px rgba(0,0,0,.65) !important;
    }

    .hero-buttons {
        gap: 15px !important;
    }

        .hero-buttons .btn {
            height: 47px !important;
            padding: 0 23px !important;
            display: inline-flex !important;
            align-items: center !important;
            font-size: 1.25rem !important;
            font-weight: 900 !important;
            box-shadow: none !important;
        }

    .btn-maroon {
        background: #d0000b !important;
        border-color: #d0000b !important;
    }

    .btn-white {
        background: #fff !important;
        border-color: #fff !important;
        color: #c9000b !important;
    }

    .hero-grid, .section-kicker {
        display: none !important;
    }

    .counter-section {
        background: #fff;
        padding: 24px 0 52px !important;
    }

        .counter-section .container-fluid {
            max-width: 1536px;
        }

    .alumni-counter-panel {
        display: grid !important;
        grid-template-columns: 205px 1fr 1.18fr !important;
        align-items: center !important;
        gap: 34px !important;
        min-height: 252px !important;
        margin: 0 auto !important;
        padding: 28px 38px !important;
        background: #fff !important;
        border: 1px solid #e4e4e4 !important;
        border-radius: 13px !important;
        box-shadow: 0 1px 10px rgba(0,0,0,.06) !important;
    }

    .counter-logo-box {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

        .counter-logo-box img {
            width: 158px !important;
            height: 158px !important;
            object-fit: contain !important;
        }

    .counter-main-box {
        border-right: 1px solid #ddd;
        padding-right: 42px !important;
        min-height: 200px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .counter-title {
        font-size: 1.55rem !important;
        line-height: 1.2 !important;
        color: #720006 !important;
        font-weight: 900 !important;
        margin-bottom: 9px !important;
    }

    .counter-number {
        font-size: 7.2rem !important;
        line-height: .88 !important;
        color: #d0000b !important;
        font-weight: 900 !important;
        letter-spacing: -.055em !important;
    }

    .counter-subtitle {
        font-size: 1.48rem !important;
        color: #720006 !important;
        font-weight: 900 !important;
        margin-top: 18px !important;
        line-height: 1.15 !important;
    }

    .counter-card-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px 15px !important;
        justify-content: stretch !important;
    }

    .counter-card {
        height: 96px !important;
        border-radius: 11px !important;
        background: #d0000b !important;
        color: #fff !important;
        display: grid !important;
        grid-template-columns: 56px 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        align-items: center !important;
        text-align: left !important;
        padding: 12px 16px !important;
        box-shadow: 0 7px 13px rgba(208,0,11,.16) !important;
    }

        .counter-card i {
            grid-row: 1 / span 2;
            font-size: 3.05rem !important;
            color: #fff !important;
            margin: 0 !important;
            line-height: 1 !important;
            text-align: center !important;
        }

        .counter-card span {
            font-size: 1.02rem !important;
            line-height: 1.15 !important;
            font-weight: 800 !important;
            color: #fff !important;
            align-self: end !important;
            white-space: nowrap !important;
        }

        .counter-card strong {
            font-size: 1.55rem !important;
            line-height: 1 !important;
            font-weight: 900 !important;
            color: #fff !important;
            margin: 2px 0 0 !important;
            align-self: start !important;
        }
}

@media (max-width: 991.98px) {
    .counter-section {
        background: #fff;
        padding: 20px 0 36px;
    }

    .alumni-counter-panel {
        border: 1px solid #e5e7eb !important;
        border-radius: 18px !important;
        box-shadow: 0 8px 26px rgba(0,0,0,.06) !important;
    }
}

/* ===== V6: fine tune typography, banner alignment, and counter icon spacing ===== */
@media (min-width: 992px) {
    .brand-name {
        font-weight: 800 !important;
    }

    .brand-subtitle {
        font-weight: 600 !important;
    }

    .top-action {
        font-weight: 700 !important;
    }

    .navbar-nav .nav-link {
        font-weight: 700 !important;
    }

        .navbar-nav .nav-link i {
            font-size: 1.65rem !important;
        }

    .hero-section .hero-inner {
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: left !important;
    }

    .hero-content-wrap {
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left !important;
    }

    .hero-title {
        font-weight: 800 !important;
        text-align: left !important;
    }

    .hero-desc {
        font-weight: 400 !important;
        text-align: left !important;
    }

    .hero-buttons {
        justify-content: flex-start !important;
    }

        .hero-buttons .btn {
            font-weight: 700 !important;
        }

    .counter-title {
        font-weight: 700 !important;
    }

    .counter-number {
        font-weight: 800 !important;
    }

    .counter-subtitle {
        font-weight: 700 !important;
    }

    .counter-card {
        grid-template-columns: 72px 1fr !important;
        column-gap: 18px !important;
        padding: 12px 18px !important;
    }

        .counter-card i {
            justify-self: center !important;
            margin-right: 0 !important;
            font-size: 3rem !important;
        }

        .counter-card span {
            font-weight: 600 !important;
            padding-left: 2px !important;
        }

        .counter-card strong {
            font-weight: 700 !important;
            padding-left: 2px !important;
        }
}

/* ===== V7: logo subtitle fix + full responsive stability ===== */
.brand-subtitle {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
}

@media (min-width: 992px) {
    body {
        padding-top: 212px !important;
    }

    .site-header {
        overflow: visible !important;
    }

    .brand-lockup {
        width: 520px !important;
        height: auto !important;
        min-height: 126px !important;
        padding: 16px 30px 18px !important;
        overflow: visible !important;
        align-items: center !important;
    }

    .brand-logo {
        width: 60px !important;
        height: 60px !important;
        flex: 0 0 60px !important;
    }

    .brand-text {
        height: auto !important;
        min-width: 0 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .brand-name {
        font-size: 2.92rem !important;
        line-height: .9 !important;
        font-weight: 800 !important;
    }

    .brand-subtitle {
        display: block !important;
        width: 390px !important;
        max-width: 390px !important;
        margin-top: 10px !important;
        font-size: .70rem !important;
        line-height: 1.35 !important;
        text-align: center !important;
        color: #111 !important;
        font-weight: 600 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .header-nav-row .container-xl {
        padding-left: 56px !important;
        padding-right: 56px !important;
    }

    .navbar-nav .nav-link {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        gap: 12px !important;
    }

        .navbar-nav .nav-link i {
            font-size: 1.55rem !important;
        }

    .hero-section .hero-inner {
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .hero-content-wrap {
        text-align: left !important;
        margin-left: 0 !important;
        max-width: 720px !important;
    }

    .hero-title {
        text-align: left !important;
        font-weight: 800 !important;
        font-size: clamp(4.35rem,5.05vw,5.55rem) !important;
    }

    .hero-desc {
        text-align: left !important;
        font-weight: 400 !important;
    }

    .counter-card {
        grid-template-columns: 78px 1fr !important;
        column-gap: 22px !important;
        padding: 12px 20px !important;
    }

        .counter-card i {
            font-size: 2.85rem !important;
        }

        .counter-card span {
            padding-left: 0 !important;
        }

        .counter-card strong {
            padding-left: 0 !important;
        }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    body {
        padding-top: 192px !important;
    }

    .site-header {
        height: 192px !important;
    }

    .header-brand-row {
        height: 122px !important;
    }

    .brand-lockup {
        width: 460px !important;
        min-height: 112px !important;
        padding: 14px 24px 16px !important;
    }

    .brand-logo {
        width: 52px !important;
        height: 52px !important;
        flex-basis: 52px !important;
    }

    .brand-name {
        font-size: 2.55rem !important;
    }

    .brand-subtitle {
        width: 345px !important;
        max-width: 345px !important;
        font-size: .64rem !important;
        line-height: 1.3 !important;
    }

    .header-actions {
        right: 28px !important;
        top: 34px !important;
    }

    .top-action {
        font-size: 1.05rem !important;
    }

    .header-nav-row {
        height: 70px !important;
    }

        .header-nav-row .container-xl {
            padding-left: 30px !important;
            padding-right: 30px !important;
        }

    .navbar-nav .nav-link {
        font-size: 1.05rem !important;
        gap: 8px !important;
    }

        .navbar-nav .nav-link i {
            font-size: 1.28rem !important;
        }

    .hero-section {
        height: 440px !important;
        min-height: 440px !important;
    }

        .hero-section .hero-inner {
            padding-left: 48px !important;
            padding-right: 48px !important;
        }

    .hero-title {
        font-size: 4.15rem !important;
    }

    .hero-desc {
        font-size: 1.12rem !important;
        max-width: 600px !important;
    }

    .alumni-counter-panel {
        grid-template-columns: 155px 1fr !important;
        gap: 22px !important;
    }

    .counter-card-grid {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3,1fr) !important;
    }

    .counter-main-box {
        border-right: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-top: 78px !important;
    }

    .site-header {
        height: auto !important;
        overflow: visible !important;
    }

    .header-brand-row {
        height: 78px !important;
        padding: 0 !important;
    }

        .header-brand-row .container-xl {
            height: 100% !important;
        }

        .header-brand-row .d-flex {
            height: 100% !important;
            align-items: center !important;
            justify-content: space-between !important;
        }

    .brand-lockup {
        position: static !important;
        transform: none !important;
        width: min(72vw,390px) !important;
        min-height: 64px !important;
        height: auto !important;
        padding: 8px 14px 9px !important;
        border-radius: 0 0 16px 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .brand-logo {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
    }

    .brand-text {
        height: auto !important;
        align-items: center !important;
    }

    .brand-name {
        font-size: 1.75rem !important;
        line-height: .92 !important;
        font-weight: 800 !important;
    }

    .brand-subtitle {
        width: auto !important;
        max-width: 260px !important;
        font-size: .54rem !important;
        line-height: 1.28 !important;
        margin-top: 5px !important;
        text-align: center !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .navbar-toggler {
        background: #fff !important;
        color: #b4000b !important;
        border: 0 !important;
        box-shadow: 0 3px 10px rgba(0,0,0,.16) !important;
    }

    .header-nav-row {
        height: auto !important;
        padding: 0 !important;
        background: #a40813 !important;
    }

        .header-nav-row .container-xl {
            padding-left: 18px !important;
            padding-right: 18px !important;
        }

    .navbar-collapse {
        padding: 8px 0 14px !important;
    }

    .navbar-nav {
        height: auto !important;
        display: block !important;
        padding: 0 !important;
    }

        .navbar-nav .nav-link {
            font-size: 1rem !important;
            font-weight: 600 !important;
            padding: 12px 6px !important;
            gap: 12px !important;
        }

            .navbar-nav .nav-link i {
                font-size: 1.25rem !important;
            }

    .hero-section {
        min-height: 430px !important;
        height: auto !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        background-position: center center !important;
    }

        .hero-section .hero-inner {
            height: auto !important;
            min-height: 430px !important;
            display: flex !important;
            align-items: center !important;
            padding: 48px 28px !important;
        }

    .hero-content-wrap {
        max-width: 620px !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .hero-title {
        font-size: clamp(2.8rem,8vw,4rem) !important;
        line-height: 1.06 !important;
        text-align: left !important;
        font-weight: 800 !important;
    }

    .hero-desc {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        text-align: left !important;
        font-weight: 400 !important;
    }

    .hero-buttons {
        justify-content: flex-start !important;
    }

    .counter-section {
        padding: 20px 12px 38px !important;
    }

    .alumni-counter-panel {
        display: grid !important;
        grid-template-columns: 120px 1fr !important;
        gap: 18px !important;
        text-align: left !important;
        padding: 22px !important;
        border-radius: 18px !important;
    }

    .counter-logo-box img {
        width: 108px !important;
        height: 108px !important;
    }

    .counter-main-box {
        border-right: 0 !important;
        padding-right: 0 !important;
        align-items: flex-start !important;
        min-height: auto !important;
    }

    .counter-title {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }

    .counter-number {
        font-size: 4.1rem !important;
        font-weight: 800 !important;
    }

    .counter-subtitle {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        margin-top: 8px !important;
    }

    .counter-card-grid {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 14px !important;
        justify-content: stretch !important;
    }

    .counter-card {
        height: 84px !important;
        display: grid !important;
        grid-template-columns: 62px 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        column-gap: 18px !important;
        text-align: left !important;
        padding: 12px 16px !important;
    }

        .counter-card i {
            grid-row: 1 / span 2 !important;
            font-size: 2.35rem !important;
            color: #fff !important;
            margin: 0 !important;
            justify-self: center !important;
        }

        .counter-card span {
            font-size: .88rem !important;
            align-self: end !important;
            white-space: normal !important;
            font-weight: 600 !important;
            line-height: 1.15 !important;
        }

        .counter-card strong {
            font-size: 1.28rem !important;
            align-self: start !important;
            font-weight: 700 !important;
        }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 72px !important;
    }

    .header-brand-row {
        height: 72px !important;
    }

    .brand-lockup {
        width: min(78vw,315px) !important;
        padding: 8px 10px 9px !important;
        gap: 8px !important;
    }

    .brand-logo {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
    }

    .brand-name {
        font-size: 1.45rem !important;
    }

    .brand-subtitle {
        max-width: 220px !important;
        font-size: .46rem !important;
        line-height: 1.24 !important;
    }

    .hero-section .hero-inner {
        min-height: 390px !important;
        padding: 42px 18px !important;
    }

    .hero-title {
        font-size: 2.65rem !important;
        letter-spacing: -.035em !important;
    }

    .hero-desc {
        font-size: .92rem !important;
        line-height: 1.65 !important;
    }

    .hero-buttons .btn {
        height: auto !important;
        font-size: .92rem !important;
        padding: .58rem .9rem !important;
    }

    .alumni-counter-panel {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: 20px 14px !important;
    }

    .counter-logo-box img {
        width: 112px !important;
        height: 112px !important;
    }

    .counter-main-box {
        align-items: center !important;
        text-align: center !important;
    }

    .counter-number {
        font-size: 3.65rem !important;
    }

    .counter-card-grid {
        grid-template-columns: 1fr !important;
    }

    .counter-card {
        height: 78px !important;
        grid-template-columns: 66px 1fr !important;
        column-gap: 20px !important;
    }
}


/* ===== CMUEAA Header/Banner V8 logo position fixed ===== */
body {
    padding-top: 0 !important;
    background: #fff;
}

.site-header {
    position: relative !important;
    z-index: 20;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.header-red-wrap {
    position: relative;
    min-height: 220px;
    background: linear-gradient(180deg,#c7000d 0%,#a40813 64%,#920711 100%);
    box-shadow: 0 8px 28px rgba(30,0,0,.18);
    overflow: visible;
}

.header-top-line {
    min-height: 128px;
}

.brand-lockup {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px,62vw);
    min-height: 126px;
    padding: 14px 34px 18px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #111;
    background: #fff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 24px rgba(0,0,0,.24);
    overflow: visible;
    text-align: center;
}

.brand-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.brand-logo {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    flex: 0 0 auto;
    transform: translateY(-1px);
}

.brand-name {
    display: block;
    color: #c9000d !important;
    font-size: clamp(2.7rem,4.45vw,4.45rem) !important;
    line-height: .96 !important;
    font-weight: 800 !important;
    letter-spacing: .035em !important;
    white-space: nowrap;
}

.brand-subtitle {
    display: block;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    color: #333 !important;
    font-size: clamp(.82rem,1.05vw,1.05rem) !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: center;
}

.header-actions {
    position: absolute;
    top: 34px;
    right: 38px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-action {
    color: #ffd21c;
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .top-action:hover {
        color: #fff;
    }

.top-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.4);
}

.navbar-toggler {
    position: absolute;
    right: 18px;
    top: 28px;
    border-color: rgba(255,255,255,.55) !important;
    color: #fff !important;
    background: rgba(0,0,0,.12);
}

.header-nav-row {
    padding: 0 !important;
    margin-top: 35px;
}

    .header-nav-row .navbar-collapse {
        width: 100%;
    }

.navbar-nav {
    gap: clamp(18px,3vw,56px) !important;
}

    .navbar-nav .nav-link {
        color: #fff !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: clamp(1rem,1.55vw,1.55rem);
        font-weight: 600 !important;
        padding: .55rem 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        white-space: nowrap;
        text-shadow: 0 1px 1px rgba(0,0,0,.18);
    }

        .navbar-nav .nav-link i {
            font-size: 1.15em;
            line-height: 1;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: #fff !important;
            background: transparent !important;
            transform: translateY(-1px);
        }

.dropdown-menu {
    border-radius: 14px;
    margin-top: 10px;
}

.hero-section {
    position: relative;
    min-height: 480px;
    padding: 0 !important;
    background-image: linear-gradient(90deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.48) 34%,rgba(0,0,0,.18) 60%,rgba(0,0,0,.08) 100%), url('../images/about.jpeg') !important;
    background-size: cover !important;
    background-position: center 42% !important;
    overflow: hidden;
}

.hero-grid {
    display: none !important;
}

.hero-inner {
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-content-wrap {
    text-align: left !important;
    align-items: flex-start !important;
    margin-left: clamp(18px,2.6vw,42px);
    max-width: 780px;
}

.hero-title {
    margin: 0 0 14px !important;
    color: #fff !important;
    font-size: clamp(3.1rem,5.2vw,5.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -.035em !important;
    text-shadow: 0 3px 8px rgba(0,0,0,.45);
}

    .hero-title span {
        color: #f7000a !important;
        font-weight: 800 !important;
    }

        .hero-title span::after {
            display: none !important;
        }

.hero-desc {
    color: #fff !important;
    max-width: 680px;
    font-size: clamp(1rem,1.3vw,1.22rem) !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
    text-shadow: 0 2px 5px rgba(0,0,0,.55);
    margin-bottom: 20px !important;
}

.hero-buttons .btn {
    font-weight: 700 !important;
    padding: .55rem 1.1rem !important;
    font-size: 1rem;
}

.counter-section {
    background: #fff;
    padding: 24px 22px 32px !important;
}

.alumni-counter-panel {
    max-width: 1480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(23,32,51,.08);
    display: grid;
    grid-template-columns: 190px minmax(320px,420px) 1fr;
    align-items: center;
    gap: 24px;
    padding: 22px 28px;
}

.counter-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .counter-logo-box img {
        width: 150px;
        max-width: 100%;
    }

.counter-main-box {
    padding: 8px 28px 8px 0;
    border-right: 1px solid rgba(23,32,51,.16);
}

.counter-title {
    color: #64020b;
    font-size: 1.36rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
}

.counter-number {
    color: #c5000d;
    font-size: clamp(4.2rem,5.8vw,6.4rem);
    line-height: .96;
    font-weight: 800;
    letter-spacing: -.04em;
}

.counter-subtitle {
    color: #64020b;
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 6px;
}

.counter-card-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(150px,1fr));
    gap: 20px;
}

.counter-card {
    min-height: 82px;
    background: linear-gradient(180deg,#cf000e 0%,#ad0611 100%);
    border-radius: 13px;
    color: #fff;
    display: grid !important;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 22px !important;
    row-gap: 2px;
    align-items: center;
    padding: 14px 18px !important;
    box-shadow: inset 0 -8px 14px rgba(80,0,0,.12);
}

    .counter-card i {
        grid-row: 1 / span 2;
        grid-column: 1;
        font-size: 2.45rem !important;
        width: 48px;
        text-align: center;
        color: #fff;
        line-height: 1;
    }

    .counter-card span {
        grid-column: 2;
        font-size: .98rem;
        font-weight: 500;
        line-height: 1.15;
        white-space: nowrap;
    }

    .counter-card strong {
        grid-column: 2;
        font-size: 1.38rem;
        font-weight: 800;
        line-height: 1;
    }

@media (max-width:1199.98px) {
    .header-red-wrap {
        min-height: 205px;
    }

    .brand-lockup {
        width: min(560px,66vw);
        min-height: 118px;
    }

    .brand-logo {
        width: 62px !important;
        height: 62px !important;
    }

    .header-nav-row {
        margin-top: 28px;
    }

    .navbar-nav {
        gap: clamp(12px,2vw,26px) !important;
    }

    .alumni-counter-panel {
        grid-template-columns: 150px minmax(260px,350px) 1fr;
        gap: 18px;
    }

    .counter-card-grid {
        grid-template-columns: repeat(2,minmax(160px,1fr));
    }
}

@media (max-width:991.98px) {
    .header-red-wrap {
        min-height: auto;
        padding-bottom: 14px;
    }

    .header-top-line {
        min-height: 116px;
    }

    .brand-lockup {
        width: min(520px,78vw);
        min-height: 110px;
        padding: 12px 22px 14px;
    }

    .brand-main-row {
        gap: 12px;
    }

    .brand-logo {
        width: 58px !important;
        height: 58px !important;
    }

    .brand-name {
        font-size: clamp(2.3rem,8vw,3.4rem) !important;
    }

    .brand-subtitle {
        font-size: .82rem !important;
    }

    .header-nav-row {
        margin-top: 4px;
    }

    .navbar-collapse {
        background: rgba(120,0,10,.38);
        border-radius: 18px;
        padding: 14px;
        margin-top: 8px;
    }

    .navbar-nav {
        align-items: stretch !important;
        gap: 3px !important;
    }

        .navbar-nav .nav-link {
            justify-content: flex-start;
            font-size: 1.05rem;
            padding: .72rem .9rem !important;
            border-radius: 12px !important;
        }

    .hero-section, .hero-inner {
        min-height: 430px;
    }

    .alumni-counter-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .counter-main-box {
        border-right: 0;
        border-bottom: 1px solid rgba(23,32,51,.13);
        padding: 0 0 18px;
    }

    .counter-card-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:575.98px) {
    .header-top-line {
        min-height: 104px;
    }

    .brand-lockup {
        width: calc(100vw - 86px);
        min-height: 98px;
        border-radius: 0 0 18px 18px;
        padding: 10px 12px 12px;
    }

    .brand-main-row {
        gap: 8px;
    }

    .brand-logo {
        width: 46px !important;
        height: 46px !important;
    }

    .brand-name {
        font-size: 2.05rem !important;
        letter-spacing: .015em !important;
    }

    .brand-subtitle {
        font-size: .66rem !important;
        line-height: 1.25 !important;
    }

    .navbar-toggler {
        top: 22px;
        right: 12px;
    }

    .hero-section, .hero-inner {
        min-height: 390px;
    }

    .hero-content-wrap {
        margin-left: 0;
        padding: 0 4px;
    }

    .hero-title {
        font-size: 2.55rem !important;
    }

    .hero-desc {
        font-size: .94rem !important;
    }

    .counter-section {
        padding: 16px 12px 24px !important;
    }

    .alumni-counter-panel {
        padding: 18px 14px;
        gap: 16px;
    }

    .counter-logo-box img {
        width: 118px;
    }

    .counter-title, .counter-subtitle {
        font-size: 1.05rem;
    }

    .counter-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .counter-card {
        min-height: 76px;
        grid-template-columns: 44px 1fr;
        column-gap: 18px !important;
    }

        .counter-card i {
            font-size: 2rem !important;
            width: 44px;
        }
}

/* ===== Home update: slider banner, split News/Events, color sponsors ===== */
.hero-slider-section {
    position: relative !important;
    height: 482px !important;
    min-height: 482px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #120305 !important;
}

.hero-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease, visibility .65s ease;
}

    .hero-slide.is-active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 43%;
    transform: scale(1.02);
    transition: transform 5.5s ease;
}

.hero-slide.is-active .hero-slide-bg {
    transform: scale(1);
}

.hero-slider-section .hero-inner {
    position: relative !important;
    z-index: 3;
    height: 100%;
    max-width: 1536px;
    padding-left: 68px !important;
    padding-right: 68px !important;
    display: flex !important;
    align-items: center !important;
}

.hero-slider-section .hero-content-wrap {
    max-width: 720px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    color: #fff !important;
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.42);
    background: rgba(0,0,0,.22);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    backdrop-filter: blur(8px);
    transition: .22s ease;
}

    .hero-control:hover {
        background: rgba(152,8,21,.82);
        border-color: rgba(255,255,255,.72);
    }

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 68px;
    bottom: 22px;
    display: flex;
    gap: 9px;
}

    .hero-dots button {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 0;
        background: rgba(255,255,255,.52);
        padding: 0;
        transition: .22s ease;
    }

        .hero-dots button.is-active {
            width: 32px;
            border-radius: 999px;
            background: #fff;
        }

.news-events-section .section-head-row {
    align-items: end;
}

.news-event-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.highlight-panel {
    height: 100%;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(23,32,51,.07);
    box-shadow: var(--shadow-card);
    padding: 22px;
}

.highlight-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(23,32,51,.08);
}

    .highlight-panel-head > div {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .highlight-panel-head h3 {
        margin: 0;
        font-size: 1.7rem;
        font-weight: 900;
        color: var(--maroon);
        letter-spacing: -.02em;
    }

    .highlight-panel-head a {
        font-weight: 800;
        color: var(--maroon);
        white-space: nowrap;
    }

.panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--maroon);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 12px 22px rgba(152,8,21,.18);
}

    .panel-icon.event {
        background: #c99b29;
    }

.highlight-item {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    color: var(--ink);
    transition: .22s ease;
}

    .highlight-item + .highlight-item {
        margin-top: 8px;
    }

    .highlight-item:hover {
        background: var(--maroon-soft);
        transform: translateX(4px);
        color: var(--ink);
    }

    .highlight-item img {
        width: 132px;
        height: 92px;
        border-radius: 16px;
        object-fit: cover;
        box-shadow: 0 8px 20px rgba(23,32,51,.08);
    }

.highlight-date {
    display: block;
    color: var(--maroon);
    font-weight: 900;
    font-size: .84rem;
    margin-bottom: 4px;
}

.highlight-item h4 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 4px;
    color: var(--maroon-dark);
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.highlight-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-item {
    grid-template-columns: 112px 1fr;
}

.event-date-badge {
    width: 112px;
    height: 76px;
    border-radius: 16px;
    background: linear-gradient(135deg,var(--maroon),#b30012);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(152,8,21,.2);
}

    .event-date-badge strong {
        font-size: 1.25rem;
        line-height: 1;
    }

    .event-date-badge span {
        font-weight: 800;
        margin-top: 4px;
    }

.sponsor-card img {
    filter: none !important;
    opacity: 1 !important;
}

.sponsor-card:hover img {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.06);
}

.sponsor-grid {
    align-items: center;
}

@media(max-width:991px) {
    .hero-slider-section {
        height: 440px !important;
        min-height: 440px !important;
    }

        .hero-slider-section .hero-inner {
            padding-left: 48px !important;
            padding-right: 48px !important;
        }

    .hero-control {
        display: none;
    }

    .hero-dots {
        left: 48px;
    }

    .highlight-item {
        grid-template-columns: 108px 1fr;
        gap: 12px;
    }

        .highlight-item img {
            width: 108px;
            height: 82px;
        }
}

@media(max-width:576px) {
    .hero-slider-section {
        height: 390px !important;
        min-height: 390px !important;
    }

        .hero-slider-section .hero-inner {
            padding-left: 22px !important;
            padding-right: 22px !important;
        }

    .hero-dots {
        left: 22px;
        bottom: 14px;
    }

    .highlight-panel {
        padding: 16px;
        border-radius: 22px;
    }

    .highlight-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .highlight-item, .event-item {
        grid-template-columns: 1fr;
    }

        .highlight-item img {
            width: 100%;
            height: 160px;
        }

    .event-date-badge {
        width: 100%;
        height: 58px;
        flex-direction: row;
        gap: 8px;
    }
}


/* Final patch: Home calendar card restored */
.home-agenda-card {
    height: 100%;
    min-height: 420px;
    border-radius: 28px;
    padding: 30px;
    background: linear-gradient(145deg,#a1000b,#6f0008);
    box-shadow: 0 22px 54px rgba(152,8,21,.22);
    color: #fff;
}

    .home-agenda-card .agenda-header {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.55rem;
        color: #fff;
        margin-bottom: 24px;
    }

    .home-agenda-card .agenda-item {
        display: grid;
        grid-template-columns: 76px 1fr;
        gap: 16px;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,.18);
        color: #fff;
        text-decoration: none;
    }

        .home-agenda-card .agenda-item:hover {
            transform: translateX(4px);
            color: #fff;
        }

    .home-agenda-card .agenda-date {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        background: #fff;
        color: #9b000b;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        line-height: 1;
        box-shadow: 0 10px 22px rgba(0,0,0,.18);
    }

        .home-agenda-card .agenda-date strong {
            font-size: 1.05rem;
            font-weight: 900;
        }

        .home-agenda-card .agenda-date span {
            margin-top: 5px;
            font-size: .82rem;
            font-weight: 900;
            color: #9b000b;
        }

    .home-agenda-card .agenda-item span {
        display: block;
        color: #fff;
        font-size: 1.02rem;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-agenda-card .agenda-item strong {
        display: block;
        color: rgba(255,255,255,.72);
        font-size: .9rem;
        font-weight: 600;
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-agenda-card .agenda-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 24px;
        color: #fff;
        font-weight: 900;
        text-decoration: none;
    }

        .home-agenda-card .agenda-link:hover {
            color: #ffd042;
        }

@media(max-width:767.98px) {
    .home-agenda-card {
        padding: 22px;
        min-height: auto
    }

        .home-agenda-card .agenda-item {
            grid-template-columns: 64px 1fr
        }

        .home-agenda-card .agenda-date {
            width: 58px;
            height: 58px;
            border-radius: 15px
        }

        .home-agenda-card .agenda-item span {
            font-size: .94rem
        }
}

/* Calendar functional view switch */
.calendar-view {
    display: none;
}

    .calendar-view.active {
        display: block;
    }

.calendar-tab {
    cursor: pointer;
}

.month-more {
    cursor: pointer;
}

/* ===== V11 Home requested adjustments ===== */
@media (min-width: 992px) {
    /* Header logo: keep Thai subtitle in one line and expand logo card */
    .brand-lockup {
        width: 620px !important;
        min-height: 126px !important;
        padding: 16px 34px 18px !important;
        gap: 18px !important;
    }

    .brand-logo {
        width: 60px !important;
        height: 60px !important;
        flex: 0 0 60px !important;
    }

    .brand-name {
        font-size: 2.9rem !important;
        font-weight: 800 !important;
        line-height: .9 !important;
    }

    .brand-subtitle {
        width: 470px !important;
        max-width: 470px !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        font-size: .74rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin-top: 10px !important;
    }

    /* Banner area enlarged */
    .hero-slider-section {
        height: 620px !important;
        min-height: 620px !important;
    }

        .hero-slider-section .hero-content-wrap {
            max-width: 900px !important;
        }

    .hero-title {
        font-size: 4.6rem !important;
        line-height: 1.08 !important;
    }

    .hero-desc {
        font-size: 1.1rem !important;
        line-height: 1.9 !important;
    }
}

/* Home section wording/layout: News + Activity highlights */
.news-events-section .mini-heading {
    letter-spacing: .02em;
}

.home-agenda-card .agenda-header {
    font-weight: 900;
}

.home-agenda-card {
    background: linear-gradient(145deg,#a6000d,#7b0009) !important;
}

    .home-agenda-card .agenda-link {
        background: #fff;
        color: #9b000b !important;
        padding: 10px 18px;
        border-radius: 999px;
    }

        .home-agenda-card .agenda-link:hover {
            color: #7b0009 !important;
            background: #ffe9e9;
        }

@media(max-width:1199.98px) and (min-width:992px) {
    .brand-lockup {
        width: 560px !important;
    }

    .brand-subtitle {
        width: 420px !important;
        max-width: 420px !important;
        font-size: .68rem !important;
    }

    .hero-slider-section {
        height: 560px !important;
        min-height: 560px !important;
    }

    .hero-title {
        font-size: 3.9rem !important;
    }
}

@media(max-width:991.98px) {
    .brand-subtitle {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
}

@media(max-width:576px) {
    .brand-subtitle {
        display: none !important;
    }
}

/* =====================================================
   FINAL PATCH: Issues 1-6
   ===================================================== */

/* ── 1+2. Header solid #8F0001 ── */
.header-red-wrap,
.site-header .header-red-wrap {
    background: #8F0001 !important;
}

.header-nav-row {
    background: transparent !important;
}

@media (max-width: 991.98px) {
    .header-nav-row {
        background: rgba(0,0,0,.18) !important;
    }
}

/* ── 3. Hero Banner: push content right away from prev/next arrows ── */
.hero-slider-section .hero-inner {
    padding-left: clamp(80px, 8vw, 130px) !important;
    padding-right: clamp(80px, 8vw, 130px) !important;
}

@media (max-width: 991.98px) {
    .hero-slider-section .hero-inner {
        padding-left: 72px !important;
        padding-right: 72px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-slider-section .hero-inner {
        padding-left: 54px !important;
        padding-right: 54px !important;
    }
}

/* ── 4+5. Calendar page: full CSS ── */
.calendar-page {
    background: #f5f6f8;
    min-height: 100vh;
    padding-bottom: 56px;
}

.calendar-main {
    padding: 32px 0 48px;
}

.calendar-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.calendar-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #8F0001;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-line {
    height: 3px;
    background: linear-gradient(90deg, #8F0001, rgba(143,0,1,.1));
    border-radius: 99px;
    margin-bottom: 22px;
}

/* Toolbar */
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 22px;
    box-shadow: 0 2px 12px rgba(23,32,51,.07);
}

.calendar-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: .2s;
}

    .nav-circle:hover {
        background: #8F0001;
        border-color: #8F0001;
        color: #fff;
    }

.calendar-current {
    font-size: 1.15rem;
    font-weight: 800;
    color: #172033;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.calendar-view-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-tab {
    padding: .4rem 1rem;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #334155;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

    .calendar-tab:hover {
        border-color: #8F0001;
        color: #8F0001;
    }

    .calendar-tab.active {
        background: #8F0001;
        border-color: #8F0001;
        color: #fff;
    }

.today-pill {
    padding: .4rem 1rem;
    border-radius: 999px;
    border: 1.5px solid #8F0001;
    background: #fff;
    color: #8F0001;
    font-size: .92rem;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

    .today-pill:hover {
        background: #8F0001;
        color: #fff;
    }

/* View switch */
.calendar-view {
    display: none;
}

    .calendar-view.active {
        display: block;
    }

/* Month view grid layout */
#month {
    display: none;
    gap: 18px;
    grid-template-columns: 1fr 290px;
    align-items: start;
}

    #month.active {
        display: grid;
    }

.month-board {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(23,32,51,.08);
    overflow: hidden;
    position: relative;
}

.month-heads {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #8F0001;
}

    .month-heads > div {
        text-align: center;
        padding: 12px 4px;
        font-size: .83rem;
        font-weight: 800;
        color: #fff;
        letter-spacing: .03em;
    }

.month-cells {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(5, 92px);
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}

.month-cell {
    grid-column: var(--c);
    grid-row: var(--r);
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 7px 9px 5px;
    position: relative;
    background: #fff;
    transition: background .15s;
}

    .month-cell:hover {
        background: #fff5f5;
    }

    .month-cell.today {
        background: #fff0f0;
    }

        .month-cell.today .day-num {
            background: #8F0001;
            color: #fff;
            border-radius: 50%;
            width: 26px;
            height: 26px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

    .month-cell.muted {
        background: #fafafa;
    }

        .month-cell.muted .day-num {
            color: #ccc;
        }

.day-num {
    font-size: .83rem;
    font-weight: 800;
    color: #334155;
    line-height: 1;
}

.month-more {
    position: absolute;
    bottom: 5px;
    right: 7px;
    font-size: .7rem;
    font-weight: 800;
    color: #8F0001;
    background: #fff0f0;
    border-radius: 999px;
    padding: 1px 8px;
    text-decoration: none;
    white-space: nowrap;
}

    .month-more:hover {
        background: #8F0001;
        color: #fff;
    }

/* Event bars */
.month-bars {
    position: absolute;
    inset: 40px 0 0 0;
    pointer-events: none;
}

.span-event {
    position: absolute;
    pointer-events: all;
    left: calc((var(--c) - 1) / 7 * 100% + 3px);
    width: calc(var(--s) / 7 * 100% - 6px);
    top: calc((var(--r) - 1) * 92px + 26px + (var(--slot) - 1) * 21px);
    height: 19px;
    background: #8F0001;
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity .15s;
    z-index: 2;
}

    .span-event:nth-child(3n+2) {
        background: #b85c00;
    }

    .span-event:nth-child(3n+3) {
        background: #1a6ab1;
    }

    .span-event span {
        font-size: .68rem;
        font-weight: 600;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 7px;
    }

    .span-event:hover {
        opacity: .82;
    }

/* Agenda sidebar */
.agenda-panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(23,32,51,.08);
    overflow: hidden;
}

.smart-scroll {
    max-height: 560px;
    overflow-y: auto;
}

.agenda-title {
    font-size: 1rem;
    font-weight: 900;
    color: #172033;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

    .agenda-title span {
        color: #8F0001;
        margin-left: 4px;
    }

.agenda-list {
    padding: 8px 0;
}

.calendar-agenda-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 16px;
    text-decoration: none;
    color: #334155;
    border-bottom: 1px solid #f3f3f3;
    transition: background .15s;
}

    .calendar-agenda-item:hover {
        background: #fff5f5;
    }

.agenda-item-date {
    font-size: .7rem;
    font-weight: 800;
    color: #8F0001;
    background: #fff0f0;
    border-radius: 7px;
    padding: 4px 7px;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

.agenda-item-name {
    font-size: .83rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Week view */
#week {
    display: none;
    gap: 18px;
    grid-template-columns: 1fr 290px;
}

    #week.active {
        display: grid;
    }

.week-grid {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(23,32,51,.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 46px 1fr;
}

.day-head {
    text-align: center;
    padding: 12px 4px;
    font-size: .83rem;
    font-weight: 800;
    color: #fff;
    background: #8F0001;
    letter-spacing: .03em;
}

.week-cell {
    border-right: 1px solid #eee;
    border-top: 1px solid #eee;
    padding: 8px 7px;
    min-height: 200px;
    background: #fff;
    transition: background .15s;
}

    .week-cell:hover {
        background: #fff5f5;
    }

    .week-cell .day-num {
        display: block;
        margin-bottom: 7px;
        font-size: .83rem;
        font-weight: 800;
        color: #334155;
    }

.event-chip {
    display: block;
    background: #8F0001;
    border-radius: 7px;
    padding: 3px 7px;
    margin-bottom: 4px;
    text-decoration: none;
    overflow: hidden;
}

    .event-chip:nth-child(3n+2) {
        background: #b85c00;
    }

    .event-chip:nth-child(3n+3) {
        background: #1a6ab1;
    }

    .event-chip strong {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: .68rem;
        font-weight: 800;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .event-chip small {
        font-size: .62rem;
        color: rgba(255,255,255,.8);
    }

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    flex-shrink: 0;
    display: inline-block;
}

/* Day view */
.day-view {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(23,32,51,.08);
    overflow: hidden;
}

.day-strip {
    background: #8F0001;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    padding: 16px 24px;
    letter-spacing: .03em;
}

.day-list {
    padding: 8px 0;
}

.day-event {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    color: #334155;
    border-bottom: 1px solid #f3f3f3;
    transition: background .15s;
}

    .day-event:hover {
        background: #fff5f5;
    }

.day-event-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .day-event-time span {
        font-size: .72rem;
        color: #8F0001;
        font-weight: 800;
    }

    .day-event-time strong {
        font-size: .88rem;
        font-weight: 900;
        color: #172033;
    }

.day-event-name {
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Calendar responsive */
@media (max-width: 1100px) {
    #month.active, #week.active {
        grid-template-columns: 1fr;
    }

    .agenda-panel {
        max-height: 320px;
    }
}

@media (max-width: 640px) {
    .calendar-container {
        padding: 0 14px;
    }

    .calendar-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .month-cells {
        grid-template-rows: repeat(5, 74px);
    }

    .month-bars {
        inset: 40px 0 0 0;
    }

    .span-event {
        top: calc((var(--r) - 1) * 74px + 24px + (var(--slot) - 1) * 19px);
        height: 17px;
    }

    .day-event {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ── 6. News page (news.html) ── */
/* Section heading */
.news-page-hero {
    background: linear-gradient(135deg, #8F0001, #5a0001);
    padding: 52px 0 44px;
    color: #fff;
}

    .news-page-hero .mini-heading {
        color: rgba(255,255,255,.8);
    }

        .news-page-hero .mini-heading::before {
            background: rgba(255,255,255,.7);
        }

    .news-page-hero h1 {
        font-weight: 900;
        font-size: clamp(2rem, 4vw, 3rem);
        letter-spacing: -.03em;
        margin: 12px 0 10px;
    }

    .news-page-hero p {
        color: rgba(255,255,255,.78);
        font-size: 1.05rem;
        line-height: 1.8;
        max-width: 640px;
        margin: 0;
    }

/* Filter bar */
.news-filter-bar {
    background: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 2px 12px rgba(23,32,51,.07);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .news-filter-bar .filter-pill {
        padding: .42rem 1rem;
        border-radius: 999px;
        border: 1.5px solid #e0e0e0;
        background: #fff;
        color: #334155;
        font-size: .9rem;
        font-weight: 700;
        cursor: pointer;
        transition: .2s;
        white-space: nowrap;
    }

        .news-filter-bar .filter-pill:hover,
        .news-filter-bar .filter-pill.active {
            background: #8F0001;
            border-color: #8F0001;
            color: #fff;
        }

.news-search-field {
    position: relative;
    flex: 1 1 220px;
}

    .news-search-field i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
    }

    .news-search-field input {
        width: 100%;
        padding: .52rem .9rem .52rem 40px;
        border: 1.5px solid #e0e0e0;
        border-radius: 999px;
        font-size: .9rem;
        font-family: inherit;
        outline: none;
        transition: border-color .2s;
    }

        .news-search-field input:focus {
            border-color: #8F0001;
        }

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(23,32,51,.07);
    box-shadow: 0 6px 22px rgba(23,32,51,.07);
    transition: .22s ease;
    display: flex;
    flex-direction: column;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 44px rgba(23,32,51,.12);
    }

.news-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-tag {
    display: inline-flex;
    border-radius: 999px;
    background: #fff0f0;
    color: #8F0001;
    padding: .32rem .75rem;
    font-weight: 900;
    font-size: .78rem;
    margin-bottom: 10px;
    align-self: flex-start;
}

.news-card-title {
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.45;
    color: #172033;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.news-card-date {
    font-size: .8rem;
    font-weight: 700;
    color: #9ca3af;
}

.news-card-link {
    font-size: .85rem;
    font-weight: 800;
    color: #8F0001;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .news-card-link:hover {
        color: #5a0001;
    }

/* Featured (first) news card */
.news-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    max-height: 300px;
}

    .news-card.featured .news-card-img {
        width: 420px;
        height: 100%;
        flex: 0 0 420px;
    }

    .news-card.featured .news-card-title {
        font-size: 1.35rem;
        -webkit-line-clamp: 3;
    }

    .news-card.featured .news-card-excerpt {
        -webkit-line-clamp: 4;
    }

@media (max-width: 991.98px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card.featured {
        flex-direction: column;
        max-height: none;
    }

        .news-card.featured .news-card-img {
            width: 100%;
            height: 220px;
            flex: none;
        }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-filter-bar {
        gap: 8px;
    }
}

/* =====================================================
   CMUEAA Header Logo Lockup - Match LogoHeader Reference
   วางท้ายไฟล์ cmueaa-home.css
   ===================================================== */

/* Desktop */
@media (min-width: 992px) {
    .header-red-wrap {
        min-height: 198px !important;
    }

    .header-top-line {
        min-height: 122px !important;
    }

    .header-nav-row {
        margin-top: 2px !important;
        padding: 0 !important;
    }

    .brand-lockup {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: min(460px, 48vw) !important;
        min-height: 112px !important;
        padding: 8px 22px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        background: #fff !important;
        border-radius: 0 0 22px 22px !important;
        box-shadow: 0 12px 28px rgba(50, 0, 0, .26), 0 24px 42px rgba(95, 0, 0, .18) !important;
        color: #111 !important;
        text-align: center !important;
        overflow: visible !important;
    }

    .brand-main-row {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 13px !important;
        width: 100% !important;
        line-height: 1 !important;
    }

    .brand-logo {
        width: 82px !important;
        height: 82px !important;
        flex: 0 0 82px !important;
        object-fit: contain !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }


    .brand-name {
        display: block !important;
        color: #a00000 !important;
        font-size: clamp(2.95rem, 3.95vw, 3.95rem) !important;
        line-height: .9 !important;
        font-weight: 800 !important;
        letter-spacing: .01em !important;
        white-space: nowrap !important;
    }

    .brand-subtitle {
        display: block !important;
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 !important;
        color: #4a4a4a !important;
        font-size: clamp(.82rem, .9vw, .98rem) !important;
        line-height: 1.18 !important;
        font-weight: 500 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .header-actions {
        top: 42px !important;
        right: 42px !important;
    }
}

/* Desktop ขนาดกลาง เช่น Notebook 1024-1199 */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .header-red-wrap {
        min-height: 184px !important;
    }

    .header-top-line {
        min-height: 114px !important;
    }

    .brand-lockup {
        width: min(360px, 52vw) !important;
        min-height: 104px !important;
        padding: 8px 20px 10px !important;
        gap: 2px !important;
        border-radius: 0 0 20px 20px !important;
    }

    .brand-main-row {
        gap: 12px !important;
    }

    .brand-logo {
        width: 52px !important;
        height: 52px !important;
        flex-basis: 52px !important;
    }

    .brand-name {
        font-size: 2.75rem !important;
        line-height: .9 !important;
    }

    .brand-subtitle {
        max-width: 340px !important;
        font-size: .72rem !important;
        line-height: 1.18 !important;
    }

    .header-actions {
        top: 34px !important;
        right: 26px !important;
    }
}

/* Tablet / Mobile */
@media (max-width: 991.98px) {
    .header-top-line {
        min-height: 112px !important;
    }

    .brand-lockup {
        width: min(520px, 78vw) !important;
        min-height: 106px !important;
        padding: 10px 20px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        border-radius: 0 0 20px 20px !important;
        box-shadow: 0 12px 24px rgba(40, 0, 0, .26) !important;
    }

    .brand-main-row {
        gap: 12px !important;
    }

    .brand-logo {
        width: 56px !important;
        height: 56px !important;
        flex-basis: 56px !important;
    }

    .brand-name {
        font-size: clamp(2.25rem, 7vw, 3.35rem) !important;
        line-height: .9 !important;
    }

    .brand-subtitle {
        margin: 0 !important;
        font-size: .72rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
}

/* มือถือจอเล็กมาก */
@media (max-width: 575.98px) {
    .header-top-line {
        min-height: 86px !important;
    }

    .brand-lockup {
        width: calc(100vw - 88px) !important;
        min-height: 78px !important;
        padding: 8px 12px 9px !important;
        gap: 0 !important;
    }

    .brand-main-row {
        gap: 8px !important;
    }

    .brand-logo {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
    }

    .brand-name {
        font-size: 1.9rem !important;
    }

    .brand-subtitle {
        display: none !important;
    }
}

/* =====================================================
   Home Event Header Link
   เพิ่มลิงก์ "ดูกิจกรรมทั้งหมด" หลังคำว่า Event
   วางท้ายไฟล์ cmueaa-home.css
   ===================================================== */

.home-agenda-card .agenda-header.agenda-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.home-agenda-card .agenda-header-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
}

.home-agenda-card .agenda-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    opacity: .92;
    white-space: nowrap;
    transition: .2s ease;
}

    .home-agenda-card .agenda-header-link:hover {
        color: #ffd042 !important;
        opacity: 1;
        transform: translateX(3px);
    }

    .home-agenda-card .agenda-header-link i {
        font-size: .95rem;
    }

/* Mobile */
@media (max-width: 575.98px) {
    .home-agenda-card .agenda-header.agenda-header-row {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .home-agenda-card .agenda-header-title {
        font-size: 1.35rem;
    }

    .home-agenda-card .agenda-header-link {
        font-size: .9rem;
    }
}

/* =====================================================
   Sticky Main Menu
   ทำให้ตอน scroll ลงมาเหลือเฉพาะแถบเมนูติดบนสุด
   วางท้ายไฟล์ cmueaa-home.css
   ===================================================== */

/* Desktop: ซ่อนส่วนโลโก้ด้านบนเมื่อ sticky แล้วให้ menu อยู่ top */
@media (min-width: 992px) {
    .site-header {
        position: sticky !important;
        top: -124px !important;
        z-index: 1050 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .header-red-wrap {
        overflow: visible !important;
        box-shadow: 0 8px 24px rgba(40, 0, 0, .18) !important;
    }

    .header-nav-row {
        position: relative !important;
        z-index: 1052 !important;
        min-height: 74px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

        .header-nav-row .container-fluid,
        .header-nav-row .navbar-collapse,
        .header-nav-row .navbar-nav {
            min-height: 74px !important;
        }

        .header-nav-row .navbar-nav {
            align-items: center !important;
        }

        .header-nav-row .nav-link {
            color: #fff !important;
        }

            .header-nav-row .nav-link:hover,
            .header-nav-row .nav-link.active {
                color: #ffd51d !important;
            }

                .header-nav-row .nav-link:hover i,
                .header-nav-row .nav-link.active i {
                    color: #ffd51d !important;
                }

        .header-nav-row .dropdown-menu {
            z-index: 1060 !important;
        }
}

/* Notebook 992-1199 ถ้า header logo เตี้ยลง ให้ offset ลดลง */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header {
        top: -116px !important;
    }

    .header-nav-row {
        min-height: 70px !important;
    }

        .header-nav-row .container-fluid,
        .header-nav-row .navbar-collapse,
        .header-nav-row .navbar-nav {
            min-height: 70px !important;
        }
}

/* Tablet / Mobile: ให้ทั้ง header ติดบน เพราะต้องเห็นปุ่ม hamburger */
@media (max-width: 991.98px) {
    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1050 !important;
    }

    .header-red-wrap {
        box-shadow: 0 8px 22px rgba(40, 0, 0, .2) !important;
    }

    .header-nav-row {
        position: relative !important;
        z-index: 1052 !important;
    }

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

/* กันเวลา click menu anchor แล้วหัว section โดน sticky menu บัง */
main[id],
section[id],
#directory,
#news-events,
#marketplace,
#knowledge,
#journal,
#jobs,
#related,
#contact {
    scroll-margin-top: 92px;
}

@media (max-width: 991.98px) {
    main[id],
    section[id],
    #directory,
    #news-events,
    #marketplace,
    #knowledge,
    #journal,
    #jobs,
    #related,
    #contact {
        scroll-margin-top: 132px;
    }
}

/* =========================================================
   Main Navigation Active State
   ต้องวางท้ายสุดของ cmueaa-main.css
   ========================================================= */

.header-nav-row .navbar-nav .nav-link.active,
.header-nav-row .navbar-nav .nav-link.active:hover {
    color: #ffd51d !important;
    background: transparent !important;
}

    .header-nav-row .navbar-nav .nav-link.active i,
    .header-nav-row .navbar-nav .nav-link.active:hover i {
        color: #ffd51d !important;
    }

/* รองรับ Dropdown ที่เปลี่ยนจาก a เป็น button */
.header-nav-row button.nav-link {
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
}

/* ลูกศร Dropdown เป็นสีเหลืองเมื่อ active */
.header-nav-row .dropdown-toggle.active::after {
    border-top-color: #ffd51d !important;
}

/* Active ของรายการภายใน Dropdown */
.header-nav-row .dropdown-menu .dropdown-item.active,
.header-nav-row .dropdown-menu .dropdown-item.active:hover,
.header-nav-row .dropdown-menu .dropdown-item:active {
    background: #8F0001 !important;
    color: #fff !important;
}

/* Mobile */
@media (max-width: 991.98px) {
    .header-nav-row .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, .10) !important;
        color: #ffd51d !important;
    }

        .header-nav-row .navbar-nav .nav-link.active i {
            color: #ffd51d !important;
        }
}