﻿:root {
    --blue-primary: #1565C0;
    --blue-dark: #012D81;
    --blue-nav: #106DC4;
    --yellow: #FFCC00;
    --yellow2: #FDC800;
    --white: #FFFFFF;
    --text-dark: #141B22;
    --text-gray: #666;
    --bg-light: #F5F9FD;
    --badge-public-bg: #C4F3C7;
    --badge-public-color: #3B9E41;
    --badge-private-bg: #fce4ec;
    --badge-private-color: #c2185b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* =========================================
       NAVBAR
    ========================================= */
.navbar-wrapper {
    background: #00379D;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    background-image: url('https://tsdaucap.shieldixcloud.com/img/hoa-tiet-trong-dong-2.png');
    background-position: center;
    background-repeat: no-repeat;
    background-position-x: -11px;
}

.navbar-brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

    .navbar-brand-text span:first-child {
        font-size: 13px;
        font-weight: 400;
        color: rgba(255,255,255,0.85);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .navbar-brand-text span:last-child {
        font-size: 17px;
        font-weight: 800;
        color: #fff;
        text-transform: uppercase;
    }

.navbar-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

    .navbar-nav-links a {
        position: relative;
        color: #FFFFFF;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 6px;
        transition: all 0.2s;
        white-space: nowrap;
    }

        /* gạch chân */
        .navbar-nav-links a::after {
            content: "";
            position: absolute;
            left: 12px; /* trùng với padding */
            bottom: 2px;
            width: 0;
            height: 2px;
            background: #FFCC00;
            transition: width 0.3s ease;
        }

        /* hover */
        .navbar-nav-links a:hover,
        .navbar-nav-links a.active {
            color: #fff;
            background: rgba(255,255,255,0.15);
        }

            /* khi hover thì gạch chạy */
            .navbar-nav-links a:hover::after,
            .navbar-nav-links a.active::after {
                width: calc(100% - 60px); /* trừ padding 12px 2 bên */
            }

        /* active */
        .navbar-nav-links a.active {
            color: var(--yellow);
            font-weight: 700;
        }

.navbar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-register {
    background: var(--yellow);
    color: var(--blue-dark) !important;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    border: none;
}

    .btn-register:hover {
        background: #e6b800;
        transform: translateY(-1px);
    }

.btn-lookup {
    background: transparent;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid rgba(255,255,255,0.5);
    transition: all 0.2s;
}

    .btn-lookup:hover {
        background: rgba(255,255,255,0.1);
        border-color: #fff;
    }

.button-group .button {
    padding: 6px 11px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #fff;
}

    .hamburger-btn i {
        font-size: 24px;
    }

#IconUserLogin:hover {
    cursor: pointer;
}
/* =========================================
   MOBILE DRAWER - Kéo từ PHẢI sang TRÁI, full màn hình, nền trắng
   Thay thế toàn bộ phần "Mobile drawer" trong styles2026.css
========================================= */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent; /* bỏ overlay tối vì drawer full screen */
    z-index: 1999;
}

    .mobile-menu-overlay.open {
        display: block;
    }

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 2000;
    transform: translateX(100%); /* bắt đầu ngoài màn hình bên phải */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

    .mobile-menu-drawer.open {
        transform: translateX(0); /* trượt vào từ phải sang trái */
    }

/* Header: chỉ có nút X, căn phải */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

/* Nút đóng màu tối trên nền trắng */
.drawer-close {
    background: none;
    border: none;
    color: #333;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

    .drawer-close:hover {
        background: #f5f5f5;
    }

/* Nav links: chữ đen trên nền trắng */
.drawer-nav {
    flex: 1;
}

    .drawer-nav a {
        display: block;
        color: #1a1a1a;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        padding: 16px 24px;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.15s;
    }

        .drawer-nav a:hover {
            background: #F5F9FD;
            color: #1565C0;
            padding-left: 32px;
        }

/* Action buttons ở dưới cùng */
.drawer-actions {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

    .drawer-actions .btn-register,
    .drawer-actions .btn-lookup {
        width: 100%;
        text-align: center;
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 700;
    }

    .drawer-actions .btn-register {
        background: #FFCC00;
        color: #012D81 !important;
    }

    .drawer-actions .btn-lookup {
        background: transparent;
        color: #1565C0 !important;
        border: 1.5px solid #1565C0;
        font-weight: 600;
    }
/* =========================================
       HERO / BANNER
    ========================================= */
.hero-banner {
    position: relative;
    min-height: 560px;
    background: linear-gradient(0deg, rgb(24 38 91 / 0%), rgb(24 38 91 / 0%)), url(https://tsdaucap.shieldixcloud.com/img/background3.jpg) center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    max-width: 1380px;
    margin: 0 auto;
    padding: 231px 44px 0px;
    width: 100%;
}

.hero-subtitle {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--yellow);
    text-shadow: 2px 6px 4px rgba(0,0,0,0.75);
    line-height: 1.05;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    max-width: 620px;
}

/* Search bar */
.search-bar {
    display: none !important;
    background: rgba(255,255,255,0.97);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 860px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

.search-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .search-select-wrapper .icon-loc {
        position: absolute;
        left: 10px;
        color: var(--blue-primary);
        font-size: 16px;
        pointer-events: none;
    }

.search-select {
    appearance: none;
    border: none;
    background: #F0F4FB;
    border-radius: 8px;
    padding: 9px 28px 9px 32px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    min-width: 130px;
}

.search-select-arrow {
    position: absolute;
    right: 8px;
    pointer-events: none;
    color: #888;
    font-size: 12px;
}

.search-input-wrapper {
    flex: 1;
    min-width: 150px;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    background: #F0F4FB;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text-dark);
}

    .search-input::placeholder {
        color: #aaa;
    }

.btn-search {
    background: var(--yellow);
    color: var(--blue-dark);
    border: none;
    border-radius: 8px;
    padding: 9px 24px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

    .btn-search:hover {
        background: #e6b800;
        transform: translateY(-1px);
    }

/* School type bar */
.school-type-bar {
    /*background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);*/
    margin-top: 110px;
}

.school-type-inner {
    max-width: 1299px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    background: #00214799;
    backdrop-filter: blur(4px);
    height: 130px;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
}

.school-type-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 12px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.12);
}

    .school-type-item:last-child {
        border-right: none;
    }

    .school-type-item:hover {
        background: #012D8180;
    }

    .school-type-item.highlight {
        background: var(--blue-dark);
    }

.school-type-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .school-type-icon svg, .school-type-icon i {
        font-size: 26px;
        color: var(--yellow2);
    }

.school-type-text {
    text-align: center;
}

    .school-type-text strong {
        display: block;
        font-size: 17px;
        font-weight: 700;
        color: #fff;
    }

    .school-type-text span {
        font-size: 13px;
        font-weight: 400;
        color: rgba(255,255,255,0.6);
        letter-spacing: 0.5px;
    }

.divider-line {
    width: 1px;
    background: rgba(255,255,255,0.2);
    align-self: stretch;
    display: none;
}

.carousel-control-prev {
    /* width: 70px !important; */
    width: 50px !important;
    left: auto;
    right: 60px;
    height: 50px;
    opacity: 1;
}

.carousel-control-next {
    /* width: 70px !important; */
    width: 50px !important;
    left: auto;
    right: 0;
    height: 50px;
    opacity: 1;
}
/* CSS cho badge container */
.badge-container-school {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.badge-public {
    background: #C4F3C7;
    color: #3B9E41;
    border: 1px solid #3B9E41;
}

.badge-private {
    background: #fce4ec;
    color: #c2185b;
}

.quality-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quality-badges {
    display: flex;
    gap: 4px;
    align-items: center;
}

.quality-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

    .quality-badge.checked {
        background: #ff6b6b;
    }

    .quality-badge.unchecked {
        background: #e0e0e0;
    }

.quality-label {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

/* CSS cho địa chỉ */
.address-school {
    display: flex;
    align-items: start;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

    .address-school span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

.address-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.toolbar {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.hero-title {
    display: flex;
    justify-content: center;
}

.btn-custom {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 12px 15px;
    gap: 10px;
    border: 1px solid #8EB6FF;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
}

    /* nền mờ */
    .btn-custom::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, #004CCB 0%, #00379D 50%, #487FFF 100%);
        opacity: 0.7; /* 👈 chỉnh độ mờ tại đây */
        z-index: 0;
    }

    /* chữ luôn nổi */
    .btn-custom span, img {
        position: relative;
        z-index: 1;
    }


    .btn-custom:hover {
        opacity: 1;
        transform: translateY(-1px);
    }

.button-group-custom {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 7px;
}

.hero-content {
    padding: 200px 0px 0px;
}

.message-content {
    max-width: 80%;
}
/* =========================================
       RESPONSIVE
    ========================================= */
@media (max-width: 1199px) {
    .navbar-nav-links a {
        font-size: 13px;
        padding: 6px 9px;
    }
}

@media (max-width: 991px) {
    .navbar-nav-links {
        display: none;
    }

    .logo {
        width: 50px !important;
        height: 50px !important;
    }

    /*.navbar-actions {
        display: none;
    }*/

    .hamburger-btn {
        display: flex;
    }

    .hero-banner {
        min-height: 520px;
    }

    .school-type-text strong {
        font-size: 14px;
    }

    .school-type-text span {
        font-size: 11px;
    }

    .school-type-icon img {
        width: 32px;
        height: 32px;
    }

    .school-type-icon i {
        font-size: 20px;
    }

    .school-type-item {
        padding: 14px 6px;
        gap: 6px;
    }

    .cards-track .card-col {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .search-bar {
        padding: 10px 12px;
        gap: 12px;
    }

    .search-select {
        min-width: 100px;
        font-size: 13px;
    }

    .school-type-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .school-type-item {
        min-width: 80px;
    }

    .school-type-text strong {
        font-size: 13px;
    }

    .school-type-text span {
        display: none;
    }

    .cards-track .card-col {
        flex: 0 0 calc(85% - 10px);
    }

    .section-block {
        padding: 28px 0;
    }

    .cards-track-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cards-track {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        min-height: 460px;
    }

    .hero-content {
        padding: 0px 44px 0px !important;
    }

    .search-bar {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 390px;
        margin-bottom: 15px;
        box-shadow: none;
    }

    .search-select-wrapper {
        width: 100%;
    }

    .search-select {
        width: 100%;
        min-width: unset;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .btn-search {
        justify-content: center;
        width: 100%;
    }

    .navbar-brand-text {
        /*display: none;*/
    }

    .school-type-icon img {
        width: 24px;
        height: 24px;
    }

    .school-type-bar {
        display: none;
    }

    .btn-custom {
        width: 373px;
        position: relative;
        display: inline-flex;
        height: 63px;
        padding: 12px 11px;
        gap: 10px;
        border: 1px solid #8EB6FF;
        border-radius: 8px;
        color: #fff;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        overflow: hidden;
        justify-content: left;
    }

        .btn-custom span, img {
            font-size: 15px;
        }

    .cb-infor {
        display: none;
    }

    #IconUserLogin {
        padding-left: 80px;
    }
}
