@charset "UTF-8";

/* ==========================================
   1. GLOBAL VARIABLES & RESET
   ========================================== */
:root {
    --primary-red: #b91c1c;
    --primary-red-hover: #991b1b;
    --primary-blue: #0284c7;
    --primary-pink: #d946ef;
    --primary-teal: #0d9488;
    --bg-main: #f1f5f9;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: radial-gradient(circle at top, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

/* ==========================================
   2. CONTAINER & CARD LAYOUT
   ========================================== */
.page-container {
    width: 100%;
    max-width: 680px; /* Độ rộng lý tưởng cho dạng Linktree/Portal */
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ==========================================
   3. HEADER SECTION
   ========================================== */
.header-section {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    position: relative;
    margin-bottom: 12px;
    display: inline-block;
}

.logo-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    background: rgba(185, 28, 28, 0.1);
    border-radius: 50%;
    filter: blur(10px);
}

.logo-img {
    position: relative;
    width: 72px;
    height: 72px;
    object-fit: contain;
    z-index: 2;
}

.ministry-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-red);
    background: #fee2e2;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.school-name {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.portal-badge {
    display: inline-block;
}

.portal-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================
   4. NAVIGATION BUTTONS (LINKS STACK)
   ========================================== */
.links-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nav-button {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    transition: transform 0.25s ease;
}

.btn-icon {
    font-size: 20px;
}

.btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 8px;
}

.btn-label {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.btn-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-desc b {
    color: var(--text-dark);
}

.chevron {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover & Active States */
.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    background: var(--white);
}

.nav-button:hover .chevron {
    transform: translateX(3px);
}

.nav-button:hover .icon-box {
    transform: scale(1.05);
}

/* Color Variants */
/* Pink (Zalo) */
.nav-button.pink {
    border-color: rgba(217, 70, 239, 0.3);
}
.nav-button.pink .icon-box {
    background: #fdf4ff;
    color: var(--primary-pink);
}
.nav-button.pink .btn-label {
    color: #a21caf;
}
.nav-button.pink:hover {
    border-color: var(--primary-pink);
}

/* Blue (Điểm chuẩn) */
.nav-button.blue {
    border-color: rgba(2, 132, 199, 0.3);
}
.nav-button.blue .icon-box {
    background: #f0f9ff;
    color: var(--primary-blue);
}
.nav-button.blue .btn-label {
    color: #0369a1;
}
.nav-button.blue:hover {
    border-color: var(--primary-blue);
}

/* Red (Trụ sở Hà Nội) */
.nav-button.red {
    border-color: rgba(185, 28, 28, 0.3);
}
.nav-button.red .icon-box {
    background: #fef2f2;
    color: var(--primary-red);
}
.nav-button.red .btn-label {
    color: #991b1b;
}
.nav-button.red:hover {
    border-color: var(--primary-red);
}

/* Teal (Cơ sở II HCM) */
.nav-button.teal {
    border-color: rgba(13, 148, 136, 0.3);
}
.nav-button.teal .icon-box {
    background: #f0fdfa;
    color: var(--primary-teal);
}
.nav-button.teal .btn-label {
    color: #0f766e;
}
.nav-button.teal:hover {
    border-color: var(--primary-teal);
}

/* ==========================================
   CĂN TRÁI VÀ CHỈNH MÀU ĐỎ CHO NÚT DS TRÚNG TUYỂN
   ========================================== */
#openPopupBtn {
    text-align: left;           /* Căn trái mặc định cho thẻ button */
    justify-content: flex-start;/* Căn trái các phần tử con trong flexbox */
}

#openPopupBtn .btn-content {
    text-align: left;           /* Căn trái khối văn bản */
}

/* Tiêu đề nút màu đỏ đậm */
#openPopupBtn .btn-label {
    color: #dc2626 !important;
}

/* Đoạn mô tả bên dưới màu đỏ (nhẹ hơn một chút để dễ đọc) */
#openPopupBtn .btn-desc {
    color: #ef4444 !important;
}
/* ==========================================
   MÀU ĐỎ CHO SỐ ĐIỆN THOẠI HỖ TRỢ
   ========================================== */
.btn-desc .phone-num {
    color: #dc2626;      /* Màu đỏ nổi bật */
    font-weight: 700;    /* In đậm số điện thoại để thí sinh dễ nhìn */
}
/* ==========================================
   5. FOOTER
   ========================================== */
.footer-tag {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}
/* ==========================================
   ANNOUNCEMENT MARQUEE BANNER
   ========================================== */
.announcement-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 30px;
    padding: 8px 16px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.announcement-track {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    width: max-content;
    animation: marqueeScroll 18s linear infinite;
}

/* Tạm dừng hiệu ứng khi người dùng di chuột hoặc chạm vào */
.announcement-banner:hover .announcement-track {
    animation-play-state: paused;
}

.announce-item {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.announce-item.highlight {
    color: #dc2626;
    font-weight: 700;
}

.announce-item i {
    font-size: 13px;
}

.announce-sep {
    color: #f87171;
    font-size: 14px;
}

/* ==========================================
   POPUP / MODAL CHỌN CƠ SỞ
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    padding: 28px 24px 24px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px auto;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.campus-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    transition: all 0.25s ease;
    background: #f8fafc;
}

.campus-option .option-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.btn-hn .option-icon {
    background: #fee2e2;
    color: #dc2626;
}

.btn-hcm .option-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.campus-option .option-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.campus-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
}

.campus-desc {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.external-link-icon {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 8px;
}

.campus-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.btn-hn:hover {
    border-color: #f87171;
    background: #fff5f5;
}

.btn-hcm:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
}


/* Hiệu ứng cuộn lặp liên tục */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
/* ==========================================
   6. RESPONSIVE DESIGN (PC & TABLET)
   ========================================== */
@media (min-width: 640px) {
    body {
        padding: 40px 20px;
    }

    .card {
        padding: 36px 32px;
    }

    .school-name {
        font-size: 24px;
    }

    .portal-title {
        font-size: 15px;
    }

    .nav-button {
        padding: 18px 20px;
    }

    .icon-box {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .btn-label {
        font-size: 16px;
    }

    .btn-desc {
        font-size: 13px;
    }
}
