@charset "UTF-8";

/* ==========================================
   1. VARIABLES & RESET
   ========================================== */
:root {
    --primary-red: #dd2f24;
    --primary-sky: #3ca9e2;
    --sky-light: #eef7fc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f1f5f9;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
}

/* Framework Container */
.app-wrapper {
    width: 100%;
    max-width: 100%;
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
    padding-bottom: 30px;
}

/* ==========================================
   2. HEADER (GHIM CỐ ĐỊNH & CHIỀU CAO CHUẨN)
   ========================================== */
.app-header {
    background: var(--white);
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sky-light);
    color: var(--primary-sky);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.home-btn:hover {
    background: var(--primary-sky);
    color: var(--white);
}

.header-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}
/* ==========================================
   DÒNG CHỮ CHẠY THÔNG BÁO (MARQUEE)
   ========================================== */
.header-marquee {
    flex: 1;
    max-width: 480px;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 20px;
    padding: 3px 0;
    display: flex;
    align-items: center;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 12s linear infinite;
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
}

.marquee-text i {
    color: #ef4444;
    margin-right: 4px;
}

/* Tạm dừng hiệu ứng khi rê chuột hoặc chạm vào */
.header-marquee:hover .marquee-text {
    animation-play-state: paused;
}


/* ==========================================
   3. HERO BANNER
   ========================================== */
.hero-banner {
    background: radial-gradient(circle at top right, #ef4444 0%, #b91c1c 50%, #7f1d1d 100%);
    color: var(--white);
    padding: 32px 20px 48px 20px;
    text-align: center;
    position: relative;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.15);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.main-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sub-title {
    font-size: 12.5px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}

.pdf-wrapper {
    margin-top: 18px;
    margin-bottom: 8px;
}

.pdf-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: var(--white);
    color: var(--primary-red);
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.pdf-view-btn .pdf-icon {
    font-size: 15px;
    color: #dc2626;
}

.pdf-view-btn .external-icon {
    font-size: 11px;
    opacity: 0.6;
}

.pdf-view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    background-color: #ffffff;
    color: #b91c1c;
}

/* ==========================================
   4. FILTER CARD
   ========================================== */
.filter-card {
    background: var(--white);
    margin: -20px 16px 24px 16px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    z-index: 10;
}

.filter-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-item label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-sky);
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    background: #f8fafc;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
}

.select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-gray);
    pointer-events: none;
}

/* ==========================================
   5. RESULTS & SCORE LIST
   ========================================== */
.result-header {
    padding: 0 20px 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
}

.count-badge {
    background: var(--primary-sky);
    color: var(--white);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
}

.score-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.score-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.2s ease;
}

.score-card:hover {
    border-color: var(--primary-sky);
    box-shadow: 0 6px 18px rgba(60, 169, 226, 0.12);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.badge-campus {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.campus-hn { background: #fee2e2; color: var(--primary-red); }
.campus-hcm { background: #e0f2fe; color: #0284c7; }

.industry-code {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
}

.industry-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.subject-info {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--sky-light);
    padding: 10px;
    border-radius: 10px;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 8px 4px;
    border-radius: 8px;
}

.score-box .lbl {
    font-size: 10px;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 2px;
}

.score-box .val {
    font-size: 14px;
    font-weight: 800;
}

.score-box.active-highlight {
    background: var(--primary-red);
}

.score-box.active-highlight .lbl { color: rgba(255, 255, 255, 0.85); }
.score-box.active-highlight .val { color: var(--white); }

/* ==========================================
   6. RESPONSIVE DESIGN (TABLET & PC)
   ========================================== */
@media (min-width: 768px) {
    body {
        padding: 20px 0;
    }

    .app-wrapper {
        max-width: 1100px;
        min-height: calc(100vh - 40px);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        overflow: visible;
    }

    .app-header {
        height: 52px;
        padding: 0 24px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .header-title {
        font-size: 15px;
    }

    .hero-banner {
        padding: 44px 32px 60px 32px;
    }

    .main-title {
        font-size: 26px;
    }

    .sub-title {
        font-size: 14.5px;
    }

    .pdf-view-btn {
        padding: 12px 28px;
        font-size: 13.5px;
    }

    .filter-card {
        margin: -28px 32px 32px 32px;
        padding: 28px;
        border-radius: 16px;
    }

    .filter-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .result-header {
        padding: 0 32px 16px 32px;
        font-size: 16px;
    }

    .score-list {
        padding: 0 32px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .score-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
/* Hiệu ứng di chuyển chữ từ phải sang trái */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Tối ưu hiển thị cho màn hình nhỏ (Điện thoại) */
@media (max-width: 576px) {
    .header-title {
        display: none; /* Ẩn chữ tiêu đề phụ trên Mobile để nhường không gian cho dòng thông báo chạy */
    }
    .header-marquee {
        max-width: 100%;
        margin-right: 0;
    }
}
