:root {
    --theme-cobalt: #12368f;
    --theme-electric: #4b6dff;
    --theme-cobalt-soft: rgba(18, 54, 143, 0.12);
    --theme-cobalt-soft-2: rgba(75, 109, 255, 0.16);
    --theme-cobalt-ink: #17397b;
    --page-bg: #f3f6ff;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: rgba(255, 255, 255, 0.98);
    --ink: #101a3e;
    --muted: #5a678f;
    --line: rgba(16, 26, 62, 0.12);
    --brand: var(--theme-cobalt);
    --brand-2: var(--theme-electric);
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(6, 22, 74, 0.08);
    --radius-lg: 26px;
    --brand-red: #8F0000;
    --brand-red-dark: #6e0000;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(75, 109, 255, 0.12), transparent 30%),
        radial-gradient(circle at 15% 85%, rgba(217, 76, 255, 0.08), transparent 25%),
        linear-gradient(180deg, #f8f9ff 0%, var(--page-bg) 100%);
}

/* ═══════════════════════════════════════
   Agenda Shell & Main Card
═══════════════════════════════════════ */
.agenda-shell {
    padding-top: 130px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.agenda-card {
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.agenda-head {
    padding: 2rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(236, 242, 255, 0.96));
}

.agenda-head-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.agenda-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.agenda-head p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    max-width: 760px;
}

/* ═══════════════════════════════════════
   Language Switcher (Header)
═══════════════════════════════════════ */
.lang-switch-head {
    display: inline-flex;
    gap: 0.3rem;
    padding: 0.3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-strong);
    box-shadow: 0 4px 12px rgba(6, 22, 74, 0.05);
    flex-shrink: 0;
}

.lang-switch-head .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switch-head .lang-btn img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.lang-switch-head .lang-btn.active {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(143, 0, 0, 0.25);
}

.lang-label-mobile {
    display: none;
}

/* ═══════════════════════════════════════
   Search Bar
═══════════════════════════════════════ */
.vsearch-wrap {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
}

.vsearch-inner {
    position: relative;
}

.vsearch-inner .bi {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1rem;
}

#vsi {
    width: 100%;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    padding: 0 1rem 0 2.85rem;
    font-size: 0.95rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#vsi:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(75, 109, 255, 0.12);
}

.vsearch-count {
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.vsearch-clr {
    height: 52px;
    padding: 0 1.2rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.vsearch-clr:hover {
    background: #fff;
}

.vsearch-results {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
    min-height: 1.25rem;
}

/* ═══════════════════════════════════════
   Agenda Content & Tabs
═══════════════════════════════════════ */
.agenda-body {
    padding: 2rem;
}

.vday-tabs,
.vhall-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vday-tabs {
    margin-bottom: 1.25rem;
}

.vday-tab,
.vhall-tab {
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Tab Active Styles - Đồng bộ màu đỏ */
.vday-tab.active {
    border-color: transparent;
    background: var(--brand-red);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(143, 0, 0, 0.3);
}

.vhall-tab.active {
    border-color: transparent !important;
    background: var(--brand-red) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(143, 0, 0, 0.3) !important;
}

/* Tab Hover Styles */
.vday-tab:hover:not(.active),
.vhall-tab:hover:not(.active) {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.vday-content,
.vhall-panel {
    display: none;
}

.vday-content.active,
.vhall-panel.active {
    display: block;
}

.vhall-card {
    /* Đặt màu mặc định của Hall về tone đỏ để đồng bộ với các phần tử con */
    --hall-accent: var(--brand-red);
    --hall-accent-2: var(--brand-red-dark);
    --hall-soft: rgba(143, 0, 0, 0.06);
    --hall-soft-2: rgba(143, 0, 0, 0.12);
    --hall-ink: #6e0000;
    margin-top: 1.25rem;
    border: 1px solid rgba(143, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-strong);
}

.vhall-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
}

.vhall-hd span {
    font-weight: 500;
    opacity: 0.85;
    font-size: 0.88rem;
}

.vhall-body {
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 255, 0.98) 100%);
}

.vtp {
    border: 1px solid color-mix(in srgb, var(--hall-accent) 18%, white 82%);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    margin-bottom: 0.85rem;
}

.vtp:last-child {
    margin-bottom: 0;
}

.vtp-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    background: linear-gradient(180deg, var(--hall-soft) 0%, var(--hall-soft-2) 100%);
    color: var(--hall-ink);
}

.vtp-hd small {
    font-weight: 500;
}

.vtp-hd-chev {
    transition: transform 0.2s ease;
}

.vtp-hd-chev.open {
    transform: rotate(90deg);
}

.vtp-body {
    padding: 0.6rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.98) 100%);
}

.vpaper {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    margin-bottom: 0.5rem;
    border: 1px solid rgba(16, 26, 62, 0.05);
    box-shadow: 0 4px 12px rgba(6, 22, 74, 0.03);
}

.vpaper:last-child {
    margin-bottom: 0;
}

.vpaper.vpaper-current {
    border-color: color-mix(in srgb, var(--hall-accent) 58%, white 42%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--hall-soft) 92%, white 8%) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--hall-accent) 24%, white 76%), 0 12px 24px rgba(6, 22, 74, 0.08);
}

.vpaper.vpaper-current .vtitle { color: var(--hall-ink); }
.vpaper.vpaper-current .vtime { color: var(--hall-accent-2); }

.vpaper.vpaper-past {
    opacity: 0.75;
    background: rgba(242, 245, 252, 0.9);
}

.vtime {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hall-accent);
}

.vtitle {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.vspk,
.vcnt {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.vcnt img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    object-fit: cover;
}

.vempty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #cdd8e5;
    border-radius: 16px;
    background: #fff;
}

mark {
    padding: 0 0.2em;
    border-radius: 0.25em;
    background: rgba(255, 200, 87, 0.42);
}

/* ═══════════════════════════════════════
   Responsive Design
═══════════════════════════════════════ */
@media (max-width: 991.98px) {
    .agenda-shell {
        padding-top: 100px;
    }
}

@media (max-width: 767.98px) {
    .agenda-head-top {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1rem;
    }

    .lang-switch-head {
        align-self: flex-end;
    }

    .lang-label-full { display: none; }
    .lang-label-mobile { display: inline; }

    .agenda-head,
    .agenda-body {
        padding: 1.25rem 1rem;
    }

    .vsearch-wrap {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .vsearch-count {
        order: 2;
    }

    .vsearch-clr {
        order: 3;
        width: 100%;
        height: 44px;
    }

    #vsi {
        height: 44px;
    }

    .vday-tab,
    .vhall-tab {
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
    }

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

    .vhall-hd {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}