﻿.btkb-container {
    --hero-shadow: 0 18px 40px rgba(148, 163, 184, 0.14);
    --hero-shadow-hover: 0 22px 44px rgba(148, 163, 184, 0.18);
    padding: 12px;
    max-width: 1500px;
    margin: auto;
    font-family: "Be Vietnam Pro", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

.btkb-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

    .btkb-hero .hero-btn {
        position: relative;
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 96px;
        padding: 18px;
        border-radius: 22px;
        overflow: hidden;
        isolation: isolate;
        cursor: default;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--hero-surface-start) 58%, var(--hero-surface-end));
        border: 1px solid var(--hero-border);
        box-shadow: var(--hero-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.82);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

        .btkb-hero .hero-btn::before {
            content: "";
            position: absolute;
            right: -24px;
            bottom: -62px;
            width: 150px;
            height: 150px;
            border-radius: 999px;
            background: var(--hero-accent);
            opacity: 0.55;
            filter: blur(12px);
            z-index: -1;
        }

        .btkb-hero .hero-btn::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            border: 1px solid rgba(255, 255, 255, 0.45);
            pointer-events: none;
        }

        .btkb-hero .hero-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--hero-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.hero-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f7288;
}

.hero-value {
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.35;
    color: #1e3550;
    word-break: break-word;
}

.btkb-hero .sgv-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(148, 163, 184, 0.16);
}

.btkb-hero .hero-btn.school {
    --hero-surface-start: #eef7ff;
    --hero-surface-end: #f8fbff;
    --hero-border: #cfe0f3;
    --hero-accent: rgba(147, 197, 253, 0.42);
}

.btkb-hero .hero-btn.code {
    --hero-surface-start: #fff7ec;
    --hero-surface-end: #fffdf8;
    --hero-border: #f2dfbf;
    --hero-accent: rgba(251, 191, 36, 0.28);
}

.btkb-hero .hero-btn.date {
    --hero-surface-start: #eefbf2;
    --hero-surface-end: #fbfffc;
    --hero-border: #cfe7d5;
    --hero-accent: rgba(110, 231, 183, 0.24);
}

.btkb-hero .hero-btn.school .sgv-icon {
    color: #2563eb;
}

.btkb-hero .hero-btn.code .sgv-icon {
    color: #d97706;
}

.btkb-hero .hero-btn.date .sgv-icon {
    color: #15803d;
}

/* ===== btkb Bar ===== */
.btkb-bar {
    width: 100%;
    margin-bottom: 16px;
}

.btkb-wrapper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

/* ===============================
       BTKB BUTTON
    ================================ */
.btkb-container .btkb-btn {
    all: unset;
    position: relative;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid var(--btn-border, #d8e5f1);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--btn-ink, #21425c);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--btn-surface, #f4f8fb));
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

    .btkb-container .btkb-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.46));
        opacity: 0;
        transition: opacity 0.22s ease;
    }

    .btkb-container .btkb-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px var(--btn-shadow, rgba(148, 163, 184, 0.22));
    }

        .btkb-container .btkb-btn:hover::before {
            opacity: 1;
        }

    .btkb-container .btkb-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px var(--btn-ring, rgba(148, 163, 184, 0.24)), 0 16px 30px var(--btn-shadow, rgba(148, 163, 184, 0.22));
    }

    .btkb-container .btkb-btn:active {
        transform: translateY(0);
    }

    .btkb-container .btkb-btn.active {
        border-color: var(--btn-border-strong, var(--btn-border, #d8e5f1));
        color: var(--btn-ink-strong, var(--btn-ink, #21425c));
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), var(--btn-surface-active, #eef5ff));
        box-shadow: 0 16px 34px var(--btn-shadow, rgba(148, 163, 184, 0.24)), 0 0 0 4px var(--btn-ring, rgba(148, 163, 184, 0.18));
    }

        .btkb-container .btkb-btn.active::before {
            opacity: 1;
        }

    .btkb-container .btkb-btn[aria-pressed="true"] {
        transform: translateY(-1px);
    }
/* ===============================
       COLOR SYSTEM
    ================================ */
.btkb-btn.gv {
    --btn-surface: #eef3ff;
    --btn-surface-active: #dfe9ff;
    --btn-border: #cfdcff;
    --btn-border-strong: #9fb9f5;
    --btn-ink: #24458c;
    --btn-ink-strong: #19356d;
    --btn-shadow: rgba(96, 130, 214, 0.24);
    --btn-ring: rgba(96, 130, 214, 0.18);
}

.btkb-btn.lop {
    --btn-surface: #ecfbf3;
    --btn-surface-active: #d9f7e8;
    --btn-border: #cbead8;
    --btn-border-strong: #93d8b2;
    --btn-ink: #16614f;
    --btn-ink-strong: #0f4d3f;
    --btn-shadow: rgba(82, 183, 136, 0.22);
    --btn-ring: rgba(82, 183, 136, 0.16);
}

.btkb-btn.all-lop {
    --btn-surface: #fff7eb;
    --btn-surface-active: #ffedd1;
    --btn-border: #f2dfbf;
    --btn-border-strong: #e4c58a;
    --btn-ink: #8c5b17;
    --btn-ink-strong: #77480d;
    --btn-shadow: rgba(225, 167, 72, 0.22);
    --btn-ring: rgba(225, 167, 72, 0.16);
}

.btkb-btn.all-gv {
    --btn-surface: #fff0f1;
    --btn-surface-active: #ffe0e4;
    --btn-border: #f3d2d6;
    --btn-border-strong: #e6aab4;
    --btn-ink: #8a3e4c;
    --btn-ink-strong: #6f2a38;
    --btn-shadow: rgba(215, 116, 139, 0.22);
    --btn-ring: rgba(215, 116, 139, 0.16);
}

.btkb-btn.all-truong {
    --btn-surface: #effaf9;
    --btn-surface-active: #daf2ef;
    --btn-border: #cde8e3;
    --btn-border-strong: #97d3c6;
    --btn-ink: #16606a;
    --btn-ink-strong: #0f4d55;
    --btn-shadow: rgba(67, 152, 160, 0.22);
    --btn-ring: rgba(67, 152, 160, 0.16);
}

/* DROPDOWN MENU */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s;
}

    .dropdown-item:hover {
        background-color: #f0f4ff;
        transform: translateX(5px);
    }

/* ============================================
       SELECTOR
    ============================================ */
.selector-box {
    text-align: center;
    margin-bottom: 16px;
}

.selector {
    min-width: 180px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 1rem;
}

/* Giữ dropdown trong phạm vi trang chủ nhưng không chèn lên NavMenu toàn cục */
.btkb-container,
.btkb-bar,
.btkb-wrapper {
    position: relative;
    overflow: visible;
}

    .btkb-container .dropdown,
    .btkb-container .btn-group {
        position: relative;
    }

    .btkb-container .dropdown-menu {
        z-index: 20;
    }


@media (max-width: 992px) {
    .btkb-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .btkb-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .btkb-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .btkb-container .btkb-btn {
        min-height: 46px;
        padding: 0 14px;
        font-size: 0.86rem;
    }

    .btkb-header h2 {
        font-size: 1.1rem;
    }

    .btkb-info {
        font-size: 0.75rem;
    }

    .btkb-hero {
        grid-template-columns: 1fr;
        gap: 10px;
    }

        .btkb-hero .hero-btn {
            min-height: 82px;
            padding: 14px;
            border-radius: 18px;
        }

    .hero-value {
        font-size: 0.95rem;
    }

    .btkb-hero .sgv-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .btkb-wrapper {
        grid-template-columns: 1fr;
    }

    .btkb-container .btkb-btn {
        min-height: 48px;
        font-size: 0.9rem;
    }

    .hero-label {
        font-size: 0.74rem;
    }

    .hero-value {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}
