

.card-hieu-ung {
    transition: box-shadow .3s;
    border: 1px solid #ccc;
    background: #fff;
    float: left;
}
    /* Hiệu ứng hover */
    .card-hieu-ung:hover {
        box-shadow: 0 0 11px rgb(128, 128, 128);
    }



.table-reponsive-custom {
    overflow: auto;
    width: 100%
}
    .table-reponsive-custom table {
        border-collapse: collapse;
        font-size: var(--fs-body);
    }
    .table-reponsive-custom thead {
        position: sticky;
        top: -1px;
        z-index: 2;
    }
    .table-reponsive-custom td, th {
        border: 1px solid #a8a8a8;
        padding: 10px;
    }
    .table-reponsive-custom th:first-child {
        border-left: 1px solid var(--primary-color);
    }
    .table-reponsive-custom th:last-child {
        border-right: 1px solid var(--primary-color);
    }
    .table-reponsive-custom th {
        text-wrap: nowrap;
        border-right: 1px solid #a8a8a8;
        border-left: 1px solid #a8a8a8;
        padding: 10px;
    }
    .table-reponsive-custom .white-space-nowrap {
        white-space: nowrap;
    }


#nhom-giai-dau .form-check {
    display: flex;
    font-weight: 500;
    width: 25px;
    color: #6e6e6e;
}

    #nhom-giai-dau .form-check.active {
        opacity: 1;
        color: #092392;
    }

    #nhom-giai-dau .form-check .check {
        height: 25px;
        width: 25px;
        border-radius: 50%;
        border: 2px solid var(--primary);
    }

    #nhom-giai-dau .form-check.active .check {
        background-color: var(--primary);
        border: 2px solid var(--primary);
    }


/* =========================================================
       0. ROOT VARIABLES & GLOBAL
      ========================================================= */

:root {
    --primary-blue: rgb(0, 56, 112);
    --primary-blue-dark: rgb(0, 38, 80);
    --topbar-height: 36px;
    --navbar-height: 72px;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}


body {
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f7fb;
    color: #111827;
    /* 🚨 QUAN TRỌNG: chừa chỗ cho topbar + navbar */
    padding-top: calc(var(--topbar-height) + var(--navbar-height));
}

a {
    text-decoration: none;
}

main {
    flex: 1;
}

/* =========================================================
   1. TOPBAR (FIXED-TOP)
========================================================= */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: linear-gradient(90deg, #1f2937, #111827);
    color: #ffffff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    z-index: 1050;
}

    .topbar i {
        margin-right: 4px;
    }

    .topbar a {
        color: #ffffff;
    }

    .topbar span {
        white-space: nowrap;
    }

/* Mobile gọn hơn */
@media (max-width: 576px) {
    .topbar .hide-mobile {
        display: none;
    }
}



/* =========================================================
      2. NAVBAR (FIXED DƯỚI TOPBAR)
      ========================================================= */

.navbar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    min-height: var(--navbar-height);
    padding: 0.6rem 1rem;
    z-index: 1040;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1040;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.navbar-brand {
    font-weight: 700;
    color: var(--primary-blue);
}

.btn-register {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 999px;
}

/* =========================================================
   MENU
========================================================= */

.header-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.menu-link {
    margin-left: 25px;
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    padding: 4px 0;
    transition: color 0.25s ease;
}

    /* Hover */
    .menu-link:hover {
        color: var(--primary-blue);
    }

    /* ACTIVE STATE */
    .menu-link.active {
        color: var(--primary-blue);
    }

        /* Gạch dưới active */
        .menu-link.active::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 100%;
            height: 2px;
            background: var(--primary-blue);
            border-radius: 2px;
        }

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }

    .header-menu {
        gap: 18px;
    }

    .menu-link {
        font-size: 0.9rem;
        position: static;
    }
}

/* ===============================
      MOBILE HEADER FIX
    ================================ */

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
    position: fixed;
    top: 105px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    z-index: 1045;
}

    /* MENU LIST */
    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0.75rem 0;
    }

    .mobile-menu li a {
        display: block;
        padding: 0.9rem 1.25rem;
        font-size: 1rem;
        font-weight: 600;
        color: #374151;
    }

        /* ACTIVE */
        .mobile-menu li a.active {
            background: #eef4ff;
            color: var(--primary-blue);
            border-left: 4px solid var(--primary-blue);
        }

/* DESKTOP */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .mobile-menu {
        position: static;
        box-shadow: none;
    }

        .mobile-menu ul {
            display: flex;
            gap: 28px;
            padding: 0;
        }

        .mobile-menu li a {
            padding: 4px 0;
            background: none;
            border: none;
            color: #6b7280;
        }

            .mobile-menu li a.active {
                background: none;
                border-left: none;
                position: relative;
            }

                .mobile-menu li a.active::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -8px;
                    width: 100%;
                    height: 2px;
                    background: var(--primary-blue);
                }
}



/* =========================================================
       3. BRAND HERO BANNER
      ========================================================= */

.brand-hero-banner {
    position: relative;
    width: 100%;
    background-color: #f5f7fb;
    text-align: center;
}

.banner-img {
    width: 100%;
    object-fit: cover;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slogan-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slogan-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.hero-sub-text {
    color: #4b5563;
}

@media (max-width: 768px) {
    .banner-img {
        max-height: 250px;
        border-radius: 0 0 16px 16px;
    }
    .slogan-box {
        padding: 10px 15px !important;
    }
    .hero-sub-text {
        font-size: 0.85rem !important;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .hero-sub-text .text-muted.mx-2 {
        display: none; /* Ẩn dấu | trên giao diện mobile */
    }
}

/* =========================================================
   4. TOURNAMENT CARD – PRO
========================================================= */

.tournament-card-pro {
    position: relative;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient( 160deg, var(--primary-blue), var(--primary-blue-dark) );
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    transition: all 0.35s ease;
}

    .tournament-card-pro:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    }


/* =========================================================
   5. CARD IMAGE
========================================================= */

.card-image {
    position: relative;
    height: 290px;
    overflow: hidden;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.tournament-card-pro:hover img {
    transform: scale(1.06);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.7) );
}


/* HOT / NEW BADGE */
.badge-event {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffcc00;
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}

/* =========================================================
   6. EVENT DATE BADGE
========================================================= */

.event-date {
    position: absolute;
    right: 16px;
    top: 250px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.tournament-card-pro:hover .event-date {
    transform: scale(1.08);
}

.event-date .day {
    font-size: 1.2rem;
    line-height: 1;
}

.event-date .month {
    font-size: 0.75rem;
}

/* =========================================================
   7. CARD CONTENT
========================================================= */

.card-content {
    padding: 25px !important;
    background: #ffffff;
    color: #000000;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 290px);
}

    /* TITLE – clamp */
    .card-content .title {
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 0.6rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: calc(1.35em * 2);
    }

    /* META */
    .card-content .meta {
        font-size: 0.85rem;
        color: #374151;
        min-height: 110px;
    }

        .card-content .meta div {
            margin-bottom: 0.25rem;
        }

/* =========================================================
   8. CTA BUTTON
========================================================= */

.btn-register-pro {
    /* margin-top: auto; */
    background: #bad6ff;
    color: var(--primary-blue);
    font-weight: 700;
    border-radius: 12px;
    padding: 0.65rem;
    transition: all 0.25s ease;
}

    .btn-register-pro:hover {
        background: #0f5acb;
        color: #ffffff;
        transform: translateY(-2px);
    }

/* =========================================================
   9. FOOTER
========================================================= */

footer {
    background-color: var(--primary-blue);
    color: #ffffff;
}

    footer p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

/* =========================================================
   10. RESPONSIVE
========================================================= */

@media (min-width: 768px) {
    .brand-hero h1 {
        font-size: 2.2rem;
    }

    .brand-hero::before {
        font-size: 9rem;
    }

    .brand-hero--text {
        padding: 5.5rem 1rem 5rem;
    }

    .hero-title.small {
        font-size: 1.8rem;
    }

    .hero-title.big {
        font-size: 3.6rem;
        letter-spacing: 8px;
    }

    .hero-sub {
        font-size: 1.05rem;
    }

    .brand-hero--text::before {
        font-size: 10rem;
    }
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #003870, #002650);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(0, 56, 112, 0.35);
    transition: all 0.25s ease;
}

    .btn-view-all i {
        transition: transform 0.25s ease;
    }

    .btn-view-all:hover {
        background: linear-gradient(135deg, #004a99, #003870);
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(0, 56, 112, 0.5);
    }

        .btn-view-all:hover i {
            transform: translateX(4px);
        }
