/* =========================================
   1. VARIABLES & RESET (GLOBAL)
   ========================================= */
   :root {
    --primary-green: #246946;
    --dark-green: #1b5236;
    --light-green-bg: #eaf3ef;
    --bg-light: #f0f4f8;        
    --bg-green: #206b45;        
    --text-white: #ffffff;
    --text-gray: #333;
    --border-color: #ddd;
    --input-bg: #ffffff;
    --header-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
body, html { height: 100%; width: 100%; }
a { text-decoration: none; transition: color 0.2s; color: inherit; }
ul { list-style: none; }
.red { color: red; }

/* Body máº·c Ä‘á»‹nh cho Login/Register */
body { display: flex; flex-direction: column; min-height: 100vh; background-color: var(--bg-green); }
/* Body riÃªng cho trang Dashboard/Profile */
body.dashboard-body { background-color: #f5f5f5; display: flex; flex-direction: column; min-height: 100vh; height: auto; }

/* =========================================
   2. SHARED COMPONENTS (BUTTONS, INPUTS)
   ========================================= */
.btn-green-fill {
    background-color: var(--primary-green); color: white; border: none; padding: 10px 20px;
    border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-green-fill:hover { background-color: var(--dark-green); }
.w-100 { width: 100%; }

/* =========================================
   3. LOGIN & REGISTER PAGE STYLES
   ========================================= */
/* Container Login/Register */
.container { display: flex; min-height: 100vh; width: 100%; background-color: white; }

/* Sidebar Login */
.login-sidebar { width: 35%; background-color: var(--primary-green); color: var(--text-white); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; min-width: 320px; }
.logo-box { text-align: center; margin-bottom: 20px; }
.logo-svg { width: 50px; height: 50px; fill: white; margin-bottom: 5px; }
.logo-text { font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.logo-sub { font-size: 14px; opacity: 0.9; }
.welcome-text { font-size: 22px; font-weight: 700; margin: 30px 0 5px; }
.instruction-text { font-size: 14px; margin-bottom: 30px; opacity: 0.8; }
.login-form { width: 100%; max-width: 350px; }

/* Input Login */
.input-group { position: relative; margin-bottom: 15px; }
.input-group i.icon-left { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #888; }
.input-group input { width: 100%; padding: 12px 15px 12px 40px; border-radius: 6px; border: none; outline: none; font-size: 14px; }
.input-group i.icon-right { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #888; cursor: pointer; }
.btn-login { width: 100%; padding: 12px; border-radius: 6px; border: none; background: white; color: var(--primary-green); font-weight: 700; cursor: pointer; margin-top: 10px; }
.btn-login:hover { background-color: #e0e0e0; }
.btn-login:focus { outline: none; }
.forgot-pass { display: block; text-align: right; color: #40A9FF; font-size: 12px; margin: 10px 0 20px; text-decoration: underline; }
.social-login { display: flex; gap: 10px; margin-bottom: 20px; }
.btn-social { flex: 1; padding: 10px; border-radius: 6px; border: none; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; }
.btn-social:focus { outline: none; }
.btn-social i.fa-facebook { color: #1877F2; } .btn-social i.fa-google { color: #DB4437; }
.register-link { font-size: 13px; } .register-link a { color: #f0a500; font-weight: bold; }

/* Content Pháº£i (Login) */
.main-content { width: 65%; padding: 40px; display: flex; flex-direction: column; align-items: center; overflow-y: auto; }
.main-content { width: 65%; padding: 40px; display: flex; flex-direction: column; align-items: center; overflow-y: auto; overflow-x: hidden; }
.logo-box-light { margin-bottom: 30px; text-align: center; }
.logo-box-light .logo-svg { fill: var(--primary-green); width: 60px; height: 60px; }
.logo-box-light .logo-text { color: var(--primary-green); font-size: 28px; }
.logo-box-light .logo-sub { color: #666; }
.main-title { text-align: center; color: var(--primary-green); margin-bottom: 50px; font-size: 18px; text-transform: uppercase; }
.main-title span { color: #ff6b35; font-weight: 800; }
.exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; width: 100%; max-width: 900px; margin: 0 auto; }
.exam-card { background: var(--primary-green); color: white; padding: 15px 20px; border-radius: 12px; display: flex; align-items: center; gap: 15px; min-height: 65px; transition: 0.2s; }
.exam-card:hover { transform: translateY(-3px); background: var(--dark-green); }
.exam-icon { font-size: 32px; opacity: 0.9; }
.exam-text { font-weight: 700; font-size: 14px; text-transform: uppercase; line-height: 1.4; }

.top-header {
    background: white;
    /* TÄƒng padding hai bÃªn lÃªn (vÃ­ dá»¥ 10% hoáº·c sá»‘ px lá»›n hÆ¡n) */
    /* padding: 10px 10%;  */
    padding: 0;
    display: flex;
    /* justify-content: space-between; */
    justify-content: center;
    /* align-items: center; */
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Quan trá»ng: Äáº£m báº£o padding khÃ´ng lÃ m trÃ n chiá»u rá»™ng */
    /* box-sizing: border-box;  */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-wrapper {
    width: 100%;
    max-width: 900px; /* Báº±ng vá»›i max-width cá»§a register-card */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Padding nhá» Ä‘á»ƒ khÃ´ng dÃ­nh sÃ¡t mÃ©p khi thu nhá» mÃ n hÃ¬nh */
    box-sizing: border-box;
}
.header-logo { display: flex; align-items: center; gap: 8px; }
.logo-svg-small { width: 24px; height: 24px; fill: var(--primary-green); }
.brand-name { font-weight: 700; color: var(--primary-green); font-size: 14px; }
.header-support { font-size: 13px; color: #555; }
.support-email { margin-left: 20px; color: var(--primary-green); }
.register-container { flex: 1; display: flex; justify-content: center; align-items: center; padding: 40px 20px; background: var(--bg-green); margin-top: 60px; }
.register-card { background: white; width: 100%; max-width: 900px; border-radius: 12px; padding: 30px 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.back-link { color: #226C47; font-size: 14px; display: flex; align-items: center; gap: 5px; margin-bottom: 25px; }
.register-form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 500; color: #333; }
.form-group input, .form-group select { padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 14px; outline: none; height: 42px; background: white; }
.form-group input:focus { border-color: var(--primary-green); }
.relative { position: relative; }
.icon-eye { position: absolute; right: 15px; top: 38px; cursor: pointer; color: #888; }
.checkbox-group { flex-direction: row; align-items: center; gap: 10px; margin-top: 10px; }
.checkbox-group input { width: 16px; height: 16px; }
.btn-register { background: var(--primary-green); color: white; border: none; padding: 12px; border-radius: 6px; font-weight: 700; cursor: pointer; margin-top: 10px; transition: 0.3s; }
.btn-register:hover { background: var(--dark-green); }
.login-redirect { text-align: center; font-size: 13px; margin-top: 10px; }
.login-redirect a { color: var(--primary-green); font-weight: 500; }
.site-footer { background: #1e5c3d; color: #fff; text-align: center; padding: 15px; font-size: 12px; border-top: 1px solid rgba(255,255,255,0.1); }

/* =========================================
   4. DASHBOARD / PROFILE PAGE STYLES (NEW)
   ========================================= */
/* Dashboard Header */
.dashboard-header { background: white; height: var(--header-height); border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: center; padding: 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
#header-placeholder { height: var(--header-height); }
.header-container {width: 100%;max-width: 1500px;padding: 0 20px;display: flex;justify-content: space-between;align-items: center;}
.logo-area .logo-link { display: flex; align-items: center; gap: 10px; }
.logo-text-col { display: flex; flex-direction: column; justify-content: center; }
.brand-sub { font-size: 10px; color: #888; font-weight: normal; letter-spacing: 0; text-transform: none; }
.header-actions { display: flex; align-items: center; gap: 20px; font-size: 14px; position: relative; z-index: 1001;}

.balance-info { display: flex; align-items: center; gap: 5px; cursor: pointer; color: var(--text-gray); position: relative;
    z-index: 1002;}
.balance-number { color: #333; }
.user-dropdown { display: flex; align-items: center; gap: 8px; background: #eee; padding: 5px 15px 5px 5px; border-radius: 20px; cursor: pointer; position: relative;
    z-index: 1002;
    transition: background 0.3s; /* Hiá»‡u á»©ng mÆ°á»£t khi hover */}
.avatar-circle-sm { width: 30px; height: 30px; background: #ccc; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1003;
    border: 1px solid #eee;
}
.dropdown-menu.show { display: block; }
.dropdown-menu a { display: block; padding: 10px 20px; color: #333; font-size: 14px; transition: 0.2s; }
.dropdown-menu a:hover { background: #f5f5f5; color: var(--primary-green); }
.dropdown-menu a i { width: 20px; color: #888; margin-right: 5px; }

.mobile-menu-btn { display: none; font-size: 20px; cursor: pointer; }

/* Dashboard Layout */
.dashboard-container { display: flex; max-width: 1200px; margin: 100px auto 30px; gap: 30px; padding: 0 20px; align-items: flex-start; flex: 1; width: 100%; }

/* Sidebar */
.sidebar { width: 280px; background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; flex-shrink: 0; margin-top: 43px ; }
.sidebar-user { background: #f9f9f9; padding: 20px; text-align: center; border-bottom: 1px solid #eee; }
.avatar-circle-lg { width: 60px; height: 60px; background: #ccc; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; font-weight: bold; margin: 0 auto 10px; }
.user-name { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 5px; }
.join-date { font-size: 12px; color: #888; }
.sidebar-menu { padding: 10px 0; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: #226C47; font-size: 14px; border-left: 3px solid transparent; }
.menu-item:hover { background: #f5f5f5; color: var(--primary-green); }
.menu-item.active { background: var(--light-green-bg); color: var(--primary-green); border-left-color: var(--primary-green); font-weight: 500; }
.menu-item.logout { margin-top: 10px; border-top: 1px solid #eee; color: #226C47; }

/* Content Area */
.content-area { flex: 1; }
.section-title { font-size: 20px; color: var(--primary-green); margin-bottom: 20px; }

/* Profile Layout */
.profile-layout { display: flex; gap: 30px; background: white; border-radius: 8px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.profile-left { width: 250px; display: flex; flex-direction: column; align-items: center; gap: 15px; border-right: 1px solid #eee; padding-right: 30px; }
.avatar-box { width: 100%; height: 200px; background: white; border: 1px solid #eee; border-radius: 8px; } 
.btn-outline { background: white; border: 1px solid #ddd; padding: 8px 15px; border-radius: 20px; font-size: 13px; cursor: pointer; width: 100%; color: #333; }
.btn-outline:hover { background: #f9f9f9; }
.student-code { font-size: 13px; color: #555; margin-bottom: 10px; }
.profile-right { flex: 1; }

/* Form trong Dashboard */
.form-group-dash { margin-bottom: 20px; }
.form-group-dash label { display: block; font-size: 13px; color: #555; margin-bottom: 5px; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #888; font-size: 14px; }
.input-with-icon input, .input-with-icon select { width: 100%; padding: 10px 10px 10px 35px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; }
.input-with-icon input:focus { border-color: var(--primary-green); }
.input-with-icon input:disabled { background: #f9f9f9; cursor: not-allowed; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.btn-save { background: var(--primary-green); color: white; border: none; padding: 10px 40px; border-radius: 6px; font-weight: bold; cursor: pointer; }
.btn-save:hover { background: var(--dark-green); }

/* Main Footer (Lá»›n) */
.main-footer { background: var(--primary-green); color: white; padding: 40px 0 0; margin-top: 50px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr; gap: 30px; padding: 0 20px 40px; }
.footer-heading { font-size: 14px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 2; color: rgba(255,255,255,0.9); }
.footer-col i { width: 20px; margin-right: 5px; text-align: center; }
.footer-brand { font-weight: bold; margin-bottom: 10px; display: flex; align-items: center; }
.social-icons { margin-top: 15px; display: flex; gap: 10px; }
.social-btn { width: 32px; height: 32px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.social-btn:hover { background: white; color: var(--primary-green); }
.footer-bottom { background: #184d32; text-align: center; padding: 15px; font-size: 12px; color: rgba(255,255,255,0.7); }

/* Floating Buttons */
.floating-buttons { position: fixed; right: 20px; bottom: 100px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.float-btn { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.2s; }
.float-btn:hover { transform: scale(1.1); }
.float-btn.chat { background: #4caf50; }
.float-btn.phone { background: #4caf50; }
.float-btn.zalo { background: #0088ff; }

/* =========================================
   5. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    /* Login */
    .login-sidebar { width: 100%; }
    .main-content { display: none; }
    /* Dashboard */
    .dashboard-container { flex-direction: column; }
    .sidebar { width: 100%; display: flex; flex-direction: column; }
    .sidebar-menu { display: flex; overflow-x: auto; padding: 0; }
    .menu-item { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .menu-item.active { border-left: none; border-bottom-color: var(--primary-green); }
    .profile-layout { flex-direction: column; }
    .profile-left { width: 100%; border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; padding-right: 0; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Login/Register Mobile */
    .container { flex-direction: column; }
    .login-sidebar { width: 100%; padding: 40px 20px; border-radius: 0 0 20px 20px; flex: 1; }
    .form-row { grid-template-columns: 1fr; }
    
    /* Dashboard Mobile */
    .dashboard-header { padding: 0; }
    .balance-info, .balance-number { display: none; }
    .mobile-menu-btn { display: block; margin-left: auto; }
    .user-dropdown { margin-left: 0; }
    .footer-content { grid-template-columns: 1fr; }
    .floating-buttons { bottom: 20px; right: 10px; }
    .float-btn { width: 40px; height: 40px; font-size: 18px; }
}
/* =========================================
   6. RECHARGE PAGE STYLES (NEW)
   ========================================= */

.recharge-layout {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Thanh thÃ´ng tin user á»Ÿ trÃªn */
.user-info-bar {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    /* border-bottom: 1px solid #f0f0f0; (Tuá»³ chá»n náº¿u muá»‘n cÃ³ Ä‘Æ°á»ng káº») */
}

.info-item {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item i {
    color: var(--primary-green);
    font-size: 16px;
}

.green-text {
    color: var(--primary-green);
    font-weight: bold;
}

/* Há»™p chá»©a QR Code */
.qr-box {
    background-color: #f9f9f9; /* MÃ u ná»n xÃ¡m nháº¹ giá»‘ng áº£nh */
    padding: 50px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.qr-instruction {
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

/* áº¢nh QR vÃ  logo ngÃ¢n hÃ ng á»Ÿ giá»¯a */
.qr-image-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #00008B; /* MÃ u xanh MB Bank */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 12px;
}

/* DÃ²ng ná»™i dung chuyá»ƒn khoáº£n */
.qr-code-text {
    font-size: 16px;
    font-weight: 500;
}

.highlight-code {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 20px;
}

/* DÃ²ng lÆ°u Ã½ cuá»‘i cÃ¹ng */
.qr-note {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    max-width: 800px;
}

/* Responsive cho trang náº¡p tiá»n */
@media (max-width: 768px) {
    .user-info-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .qr-box {
        padding: 30px 15px;
    }
    
    .qr-image-wrapper {
        width: 180px;
        height: 180px;
    }
}
/* =========================================
   7. PAYMENT HISTORY PAGE STYLES (NEW)
   ========================================= */

/* Container xÃ¡m bao quanh danh sÃ¡ch */
.payment-history-layout {
    background: #f2f2f2; /* MÃ u xÃ¡m nháº¡t ná»n */
    border-radius: 8px;
    padding: 20px;
    /* CÃ³ thá»ƒ thÃªm min-height náº¿u muá»‘n */
    min-height: 400px;
}

/* Má»—i dÃ²ng giao dá»‹ch (tháº» tráº¯ng) */
.transaction-item {
    background: white;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.transaction-item:last-child {
    margin-bottom: 0;
}

/* Cá»™t trÃ¡i: Icon + ThÃ´ng tin */
.trans-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Icon trÃ²n */
.trans-icon {
    width: 20px;
    height: 20px;
    border: 1px solid #777;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #555;
    margin-top: 2px; /* CÄƒn chá»‰nh nháº¹ so vá»›i dÃ²ng text Ä‘áº§u */
}

/* ThÃ´ng tin chi tiáº¿t */
.trans-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.trans-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.trans-time {
    font-size: 12px;
    color: #999;
}

/* Sá»‘ tiá»n bÃªn pháº£i */
.trans-amount {
    font-weight: 700;
    font-size: 15px;
}

/* MÃ u sá»‘ tiá»n: DÆ°Æ¡ng (Xanh) - Ã‚m (Äá») */
.amount-in {
    color: #4caf50; /* MÃ u xanh lÃ¡ tÆ°Æ¡i hÆ¡n cho tiá»n vÃ o */
}

.amount-out {
    color: #e53935; /* MÃ u Ä‘á» cho tiá»n ra */
}

/* PhÃ¢n trang (Pagination) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.page-num {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    transition: 0.2s;
    font-weight: 500;
}

.page-num:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.page-num.active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* Responsive mobile cho lá»‹ch sá»­ */
@media (max-width: 500px) {
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .trans-amount {
        align-self: flex-end; /* Äáº©y sá»‘ tiá»n sang pháº£i */
        font-size: 16px;
    }
}
/* =========================================
   8. EXAM HISTORY PAGE STYLES (NEW)
   ========================================= */

.exam-history-layout {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Container cuá»™n ngang náº¿u mÃ n hÃ¬nh nhá» */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Báº£ng tÃ¹y chá»‰nh */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Äáº£m báº£o báº£ng khÃ´ng bá»‹ co quÃ¡ nhá» */
}

.custom-table th, .custom-table td {
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
}

/* Header cá»§a báº£ng */
.custom-table thead tr {
    background-color: white;
    border-bottom: 2px solid #eee;
}

.custom-table th {
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

/* Body cá»§a báº£ng */
.custom-table tbody tr {
    transition: background 0.2s;
}

/* Táº¡o mÃ u ná»n xen káº½ (Zebra striping) giá»‘ng áº£nh */
.custom-table tbody tr:nth-child(odd) {
    background-color: #f2f2f2; /* MÃ u xÃ¡m nháº¡t */
}

.custom-table tbody tr:nth-child(even) {
    background-color: #ffffff; /* MÃ u tráº¯ng */
}

.custom-table tbody tr:hover {
    background-color: #e8f5e9; /* Hover mÃ u xanh nháº¹ */
}
/* =========================================
   9. CHANGE PASSWORD PAGE STYLES (NEW)
   ========================================= */

.password-layout {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center; /* CÄƒn giá»¯a form */
    min-height: 400px;
}

.password-form {
    width: 100%;
    max-width: 600px; /* Giá»›i háº¡n chiá»u rá»™ng form cho Ä‘áº¹p */
}

.form-group-pass {
    margin-bottom: 25px;
}

.form-group-pass label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Style cho input cÃ³ icon á»Ÿ 2 bÃªn */
.input-with-icon-both {
    position: relative;
}

.input-with-icon-both input {
    width: 100%;
    padding: 12px 40px; /* padding trÃ¡i pháº£i chá»«a chá»— cho icon */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.input-with-icon-both input:focus {
    border-color: var(--primary-green);
}

/* Icon khÃ³a bÃªn trÃ¡i */
.input-with-icon-both .icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
}

/* Icon máº¯t bÃªn pháº£i */
.input-with-icon-both .icon-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 14px;
}

.form-actions-center {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-save-pass {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 60px; /* NÃºt dÃ i hÆ¡n má»™t chÃºt */
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
}

.btn-save-pass:hover {
    background: var(--dark-green);
}
/* --- FIX Lá»–I 2 ICON CON Máº®T --- */

/* áº¨n nÃºt hiá»‡n máº­t kháº©u máº·c Ä‘á»‹nh cá»§a trÃ¬nh duyá»‡t (Chrome/Edge/Cá»‘c Cá»‘c) */
input[type="password"]::-webkit-password-reveal-button,
input[type="password"]::-webkit-password-reveal-button {
    display: none;
    -webkit-appearance: none;
}

/* áº¨n trÃªn trÃ¬nh duyá»‡t Internet Explorer / Edge cÅ© */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
/* =========================================
   10. EXAM DETAIL PAGE STYLES (NEW)
   ========================================= */

/* Breadcrumb Bar */
.breadcrumb-bar {
    background-color: #f9f9f9;
    margin-top: 70px; /* Äáº©y xuá»‘ng dÆ°á»›i header cá»‘ Ä‘á»‹nh */
    padding: 10px 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.container-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.container-center a {
    color: #666;
}

.container-center a:hover {
    color: var(--primary-green);
}

.container-center i {
    font-size: 10px;
}

.container-center span {
    color: var(--primary-green);
    font-weight: 500;
}

/* Main Container (Centered) */
/* Äiá»u chá»‰nh container trang chi tiáº¿t rá»™ng ra báº±ng trang chá»§ */
.exam-detail-container {
    max-width: 1200px;
    margin: 30px auto 50px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* TÃ¹y chá»‰nh cÃ¡c card bÃªn trong Ä‘á»ƒ chiáº¿m háº¿t chiá»u ngang má»›i */
.detail-card {
    background: white;
    border-radius: 8px;
    padding: 35px; /* TÄƒng padding Ä‘á»ƒ cÃ¢n Ä‘á»‘i vá»›i chiá»u rá»™ng má»›i */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

/* Header Ä‘á» thi */
.exam-header-center {
    text-align: center;
    margin-bottom: 25px;
}

.sub-label {
    font-size: 13px;
    color: #1a73e8; /* MÃ u xanh dÆ°Æ¡ng nháº¡t giá»‘ng áº£nh */
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.exam-title-main {
    font-size: 24px;
    color: #1a73e8; /* MÃ u xanh dÆ°Æ¡ng Ä‘áº­m hÆ¡n */
    font-weight: 700;
    text-transform: uppercase;
}

/* Báº£ng cáº¥u trÃºc Ä‘á» thi */
.exam-structure-box {
    margin: 0 30px 30px;
}

.struct-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.structure-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.structure-table th, .structure-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.structure-table th.green-head {
    color: #2e7d32; /* MÃ u xanh lÃ¡ chá»¯ header */
    font-weight: 700;
}

.structure-table td.bold-text {
    font-weight: 700;
    color: #2e7d32;
    text-align: left;
    padding: 10px 20px;
    background: #f9f9f9;
}

/* NÃºt báº¯t Ä‘áº§u */
.action-area {
    text-align: center;
}

.btn-start-exam {
    background-color: #4caf50; /* MÃ u xanh lÃ¡ tÆ°Æ¡i */
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 0 #388e3c; /* Táº¡o hiá»‡u á»©ng nÃºt ná»•i */
    transition: 0.2s;
}

.btn-start-exam:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #388e3c;
}

/* Pháº§n Lá»‹ch sá»­ lÃ m bÃ i */
.card-title-sm {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.warning-box {
    border: 1px solid #ffcc00;
    background-color: #fffbef;
    color: #d48806;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.history-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
}

.hist-badge {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}
.hist-badge.gray { background: #e0e0e0; color: #555; }

.hist-score-box {
    width: 60px;
    height: 35px;
    border: 2px solid #ff4d4f;
    color: #ff4d4f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 4px;
    font-size: 16px;
}

.hist-info {
    font-size: 13px;
    color: #888;
    display: flex;
    gap: 20px;
}

.btn-detail-outline {
    border: 1px solid #1a73e8;
    color: #1a73e8;
    background: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.btn-detail-outline:hover { background: #f0f8ff; }

/* Báº£ng xáº¿p háº¡ng */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.lb-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle-sm.gray-bg { background: #e0e0e0; color: #555; }
.avatar-circle-sm.black-bg { background: #333; color: white; }

.lb-info {
    display: flex;
    flex-direction: column;
}

.lb-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.lb-date {
    font-size: 12px;
    color: #999;
}

.lb-score {
    background: #ff4081; /* MÃ u há»“ng Ä‘áº­m */
    color: white;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .exam-detail-container {
        margin: 15px auto 30px;
        padding: 0 12px;
        gap: 15px;
    }

    .detail-card {
        padding: 20px 15px;
    }

    .exam-header-center {
        margin-bottom: 15px;
    }

    .exam-title-main {
        font-size: 20px;
    }

    .exam-structure-box {
        margin: 0 0 20px 0;
    }

    .structure-table th, .structure-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .structure-table td.bold-text {
        padding: 8px 12px;
    }

    .btn-start-exam {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }

    .history-row-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 12px;
    }

    .hist-info {
        gap: 10px;
        flex-wrap: wrap;
    }

    .lb-score {
        font-size: 14px;
        padding: 3px 8px;
    }
}
/* =========================================
   11. EXAM OVERVIEW PAGE STYLES (NEW)
   ========================================= */

/* Layout Grid 2 cá»™t */
.overview-grid-container {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 3.5fr 1fr; /* Cá»™t trÃ¡i lá»›n gáº¥p 2.5 láº§n cá»™t pháº£i */
    gap: 20px;
}

/* Cá»™t trÃ¡i: Card chÃ­nh */
.overview-main-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* HÃ ng chá»©a 3 icon trÃ²n */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.stat-circle {
    width: 80px;
    height: 80px;
    background-color: #4caf50; /* MÃ u xanh lÃ¡ */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* NÃºt báº¯t Ä‘áº§u lá»›n */
.action-area-large {
    text-align: center;
    margin-top: 20px;
}

.btn-start-large {
    background: linear-gradient(to bottom, #4caf50, #43a047);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    padding: 15px 50px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 0 #2e7d32;
    transition: transform 0.1s, box-shadow 0.1s;
    text-transform: uppercase;
}

.btn-start-large:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2e7d32;
}

.start-note {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

/* Cá»™t pháº£i: Sidebar Báº£ng xáº¿p háº¡ng */
.overview-sidebar-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
    max-height: 400px;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    text-align: center;
}

/* Danh sÃ¡ch xáº¿p háº¡ng nhá» */
.mini-lb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-lb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.mini-lb-item:last-child {
    border-bottom: none;
}

.mini-lb-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle-xs {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    background: #e0e0e0;
}

.mini-lb-info {
    display: flex;
    flex-direction: column;
}

.mini-lb-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.mini-lb-date {
    font-size: 10px;
    color: #999;
}

.mini-lb-score {
    background: #ff4081;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .overview-grid-container {
        grid-template-columns: 1fr; /* Chuyá»ƒn thÃ nh 1 cá»™t trÃªn mobile/tablet */
    }
    
    .stats-row {
        gap: 20px;
    }
    
    .stat-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 14px;
    }
}
/* =========================================
   12. TAKING EXAM PAGE STYLES (NEW)
   ========================================= */

.exam-taking-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* Chia cá»™t trÃ¡i lá»›n, pháº£i nhá» */
    gap: 30px;
    align-items: start; /* Quan trá»ng Ä‘á»ƒ sticky hoáº¡t Ä‘á»™ng */
}

/* Cá»™t trÃ¡i: Danh sÃ¡ch cÃ¢u há»i */
.question-list-area {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.exam-part-title {
    font-size: 16px;
    color: #4285f4; /* MÃ u xanh dÆ°Æ¡ng tiÃªu Ä‘á» */
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.question-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* ÄÆ°á»ng káº» ngÄƒn cÃ¡ch */
}

.question-item:last-child {
    border-bottom: none;
}

.q-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.q-option-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
}

.q-option-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-green);
    margin-top: 3px;
}

/* Cá»™t pháº£i: Sidebar Sticky (LuÃ´n ná»•i) */
.exam-sidebar-right {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; /* Giá»¯ cá»‘ Ä‘á»‹nh khi cuá»™n */
    top: 90px; /* CÃ¡ch mÃ©p trÃªn 90px */
}

/* Äá»“ng há»“ Ä‘áº¿m ngÆ°á»£c */
.timer-box {
    text-align: center;
    margin-bottom: 20px;
}

.timer-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.timer-value {
    font-size: 28px;
    font-weight: 700;
    color: #2e7d32; /* MÃ u xanh lÃ¡ Ä‘áº­m */
}

/* NÃºt ná»™p bÃ i */
.btn-submit-exam {
    width: 100%;
    background: #2e7d32;
    color: white;
    font-weight: 700;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.btn-submit-exam:hover {
    background: #1b5e20;
}

/* Tiáº¿n Ä‘á»™ */
.progress-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.blue-text {
    color: #1a73e8;
    font-weight: 700;
}

/* LÆ°á»›i sá»‘ cÃ¢u há»i */
.question-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cá»™t */
    gap: 10px;
}

.q-num {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    margin: 0 auto;
}

.q-num:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* Tráº¡ng thÃ¡i Ä‘Ã£ lÃ m (Ä‘Æ°á»£c JS thÃªm vÃ o) */
.q-num.answered {
    background-color: #e8f5e9;
    border-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
    .exam-taking-container {
        grid-template-columns: 1fr; /* Chuyá»ƒn thÃ nh 1 cá»™t */
    }
    
    .exam-sidebar-right {
        position: static; /* Bá» sticky trÃªn mobile */
        order: -1; /* ÄÆ°a Ä‘á»“ng há»“ lÃªn Ä‘áº§u trang */
        margin-bottom: 20px;
    }
    
    .question-grid {
        grid-template-columns: repeat(8, 1fr); /* Nhiá»u cá»™t hÆ¡n trÃªn mobile ngang */
    }
}
/* =========================================
   13. EXAM RESULT PAGE STYLES (NEW)
   ========================================= */

.result-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.result-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 1200px;
}

.result-header-logo {
    text-align: center;
    margin-bottom: 15px;
}

.brand-name-small {
    font-weight: 800;
    color: var(--primary-green);
    font-size: 14px;
}

.result-title {
    text-align: center;
    color: #d32f2f; /* MÃ u Ä‘á» Ä‘áº­m */
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* ThÃ´ng tin thÃ­ sinh (Form-like) */
.candidate-info-box {
    max-width: 800px;
    margin: 0 auto 40px;
}

.info-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: center;
    margin-bottom: 12px;
}

.info-row label {
    font-size: 14px;
    color: #333;
}

.info-row label i {
    font-weight: normal;
    color: #666;
}

.info-val {
    background: #e0e0e0; /* MÃ u xÃ¡m ná»n input */
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

/* Báº£ng Ä‘iá»ƒm dashboard */
.score-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Card Ä‘iá»ƒm tá»•ng (Äá» lá»›n) */
.total-score-card {
    background-color: #d32f2f; /* MÃ u Ä‘á» */
    color: white;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center;  <-- Bá» dÃ²ng nÃ y Ä‘á»ƒ text canh trÃ¡i nhÆ° áº£nh */
}

.score-label {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.big-score {
    font-size: 80px;
    font-weight: 700;
    line-height: 1;
    margin: 10px 0;
}

.score-range {
    font-size: 14px;
    opacity: 0.9;
    border-left: 2px solid rgba(255,255,255,0.5);
    padding-left: 10px;
}

/* Danh sÃ¡ch Ä‘iá»ƒm thÃ nh pháº§n */
.sub-score-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.sub-score-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-badge {
    background-color: #d32f2f;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    min-width: 140px;
    display: flex;
    justify-content: space-between;
}

.sc-divider {
    opacity: 0.5;
    font-weight: 300;
    margin: 0 10px;
}

.sc-range {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

.score-desc {
    font-size: 13px;
    color: #d32f2f;
}

.vn-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.en-title {
    font-style: italic;
    color: #333;
    font-weight: 500;
    font-size: 12px;
}

/* Feedback vÃ  nÃºt báº¥m */
.result-feedback {
    text-align: center;
    color: #4caf50; /* MÃ u xanh lÃ¡ thÃ´ng bÃ¡o */
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.result-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #eee;
    width: 1200px;
}

.btn-back-gray {
    background: #e0e0e0;
    color: #333;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-view-key {
    background: #1565c0; /* MÃ u xanh dÆ°Æ¡ng Ä‘áº­m */
    color: white;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.btn-view-key:hover {
    background: #0d47a1;
}

/* Responsive */
@media (max-width: 768px) {
    .info-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .score-dashboard {
        grid-template-columns: 1fr;
    }
    
    .sub-score-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .score-badge {
        width: 100%;
    }
}
/* =========================================
   14. EXAM LIST PAGE STYLES (NEW)
   ========================================= */

.exam-list-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1080px 1fr; /* Cá»™t trÃ¡i cá»‘ Ä‘á»‹nh 180px, pháº£i tá»± giÃ£n */
    gap: 20px;
    align-items: start;
}

/* Sidebar Danh má»¥c */
.category-sidebar {
    background: transparent;
}

.cat-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cat-item {
    display: block;
    padding: 8px 5px;
    background-color: #e9ecef; /* MÃ u xÃ¡m nháº¡t */
    color: #226C47;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: 0.2s;
    line-height: 1.0;
}

.cat-item:hover {
    background-color: #dbe4e0;
}

.cat-item.active {
    background-color: #1b5e20; /* MÃ u xanh Ä‘áº­m active */
    color: white;
}

/* Grid Ä‘á» thi */
.exam-grid-section {
    width: 100%;
}

.exam-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cá»™t trÃªn 1 hÃ ng */
    gap: 20px;
    margin-bottom: 30px;
}

.exam-item-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 360px;
}

.exam-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card-thumb {
    position: relative;
    width: 100%;
    height: 140px;
    background: #f0f0f0;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-full {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(46, 125, 50, 0.9); /* MÃ u xanh lÃ¡ trong suá»‘t */
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 4px 0;
}

.card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giá»›i háº¡n 2 dÃ²ng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.meta-time {
    color: #666;
}

.meta-tag {
    background-color: #1b5e20;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 10px;
}

.meta-price {
    color: #2e7d32;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .exam-list-grid {
        grid-template-columns: repeat(3, 1fr); /* Tablet: 3 cá»™t */
    }
}

@media (max-width: 900px) {
    .exam-list-container {
        grid-template-columns: 1fr; /* Mobile: 1 cá»™t dá»c */
    }
    
    .category-sidebar {
        margin-bottom: 20px;
    }

    .cat-list {
        display: flex;
        flex-direction: row; /* Sidebar chuyá»ƒn thÃ nh thanh trÆ°á»£t ngang */
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .cat-item {
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .exam-list-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobile nhá»: 2 cá»™t */
    }
}
/* =========================================
   14. EXAM LIST PAGE STYLES (RESPONSIVE UPDATE)
   ========================================= */

/* --- PC & Laptop (> 1024px) --- */
.exam-list-container {
    max-width: 1500px;
    margin: 100px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 364px 1fr; /* Cá»™t trÃ¡i cá»‘ Ä‘á»‹nh, pháº£i tá»± giÃ£n */
    gap: 30px;
    align-items: start;
    flex: 1;
    width: 100%;
}

/* Sidebar Danh má»¥c */
.cat-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #226C47;
}

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cat-item {
    display: block;
    padding: 8px 5px;
    background-color: #e9ecef;
    color: #226C47;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: 0.2s;
    height: 48px;
    justify-content: ju;
    line-height: 2.4;
    /* align-items: anchor-center; */
    /* display: inline-flex; */
    text-transform: uppercase;
    /* width: 364px; */
    text-decoration: none; /* Bá» gáº¡ch chÃ¢n */
    text-decoration: de;
}

.cat-item:hover {
    background-color: #dbe4e0;
}

.cat-item.active {
    background-color: #1b5e20;
    color: white;
}

/* Grid Äá» thi */
.exam-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Máº·c Ä‘á»‹nh 4 cá»™t */
    gap: 10px;
    margin-bottom: 30px;
}

.exam-item-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    /* height: 400px; */ /* Äáº£m báº£o cÃ¡c tháº» cao báº±ng nhau */
}

.exam-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card-thumb {
    position: relative;
    width: 100%;
    padding-top: 90%; /* Tá»‰ lá»‡ khung hÃ¬nh 5:3 */
    background: #f0f0f0;
}

.card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 269px; */
    object-fit: cover;
}

.badge-full {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(46, 125, 50, 0.9);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 4px 0;
}

.card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px; /* Giá»¯ chá»— cho 2 dÃ²ng text */
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    flex-wrap: nowrap;
    gap: 5px;
}

.meta-time { color: #666; }

.meta-tag {
    background-color: #1b5e20;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 10px;
}

.meta-price {
    color: #2e7d32;
    font-weight: 700;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-num {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
}

.page-num.active, .page-num:hover {
    background-color: #1b5e20;
    color: white;
    border-color: #1b5e20;
}


/* --- TABLET (768px - 1024px) --- */
@media (max-width: 1024px) {
    .exam-list-container {
        grid-template-columns: 160px 1fr; /* Thu nhá» sidebar chÃºt */
        gap: 20px;
    }

    .exam-list-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cá»™t */
    }
}

/* --- MOBILE & TABLET NHá»Ž (< 900px) --- */
@media (max-width: 900px) {
    .exam-list-container {
        display: block; /* Bá» grid, xáº¿p chá»“ng dá»c */
    }

    /* Biáº¿n Sidebar thÃ nh thanh trÆ°á»£t ngang */
    .category-sidebar {
        margin-bottom: 25px;
        overflow: hidden;
    }

    .cat-list {
        flex-direction: row; /* Xáº¿p ngang */
        overflow-x: auto; /* Cho phÃ©p cuá»™n ngang */
        white-space: nowrap; /* KhÃ´ng xuá»‘ng dÃ²ng */
        padding-bottom: 10px;
        /* áº¨n thanh cuá»™n xáº¥u xÃ­ */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE */
    }
    
    .cat-list::-webkit-scrollbar { 
        display: none; /* Chrome/Safari */
    }

    .cat-item {
        display: inline-block;
        font-size: 12px;
        padding: 8px 12px;
        border: 1px solid #ddd;
        background: white;
        border-radius: 20px; /* Bo trÃ²n nhÆ° nÃºt */
    }

    .cat-item.active {
        background-color: #1b5e20;
        border-color: #1b5e20;
    }

    .exam-list-grid {
        grid-template-columns: repeat(3, 1fr); /* Váº«n giá»¯ 3 cá»™t á»Ÿ mÃ n hÃ¬nh nhá»¡ */
    }
}

/* --- MOBILE (< 600px) --- */
@media (max-width: 600px) {
    .exam-list-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cá»™t */
        gap: 15px;
    }

    .card-title {
        font-size: 13px; /* Giáº£m cá»¡ chá»¯ tiÃªu Ä‘á» */
        min-height: 36px;
    }

    .card-meta {
        font-size: 10px;
    }
    
    .meta-tag {
        display: none; /* áº¨n bá»›t tag náº¿u quÃ¡ cháº­t */
    }
}

/* --- MOBILE Ráº¤T NHá»Ž (< 380px) --- */
@media (max-width: 380px) {
    .exam-list-grid {
        grid-template-columns: 1fr; /* 1 cá»™t duy nháº¥t */
    }
    
    .exam-item-card {
        flex-direction: row; /* Chuyá»ƒn sang dáº¡ng náº±m ngang (áº¢nh trÃ¡i - Text pháº£i) */
        height: 100px;
    }
    
    .card-thumb {
        width: 100px;
        height: 100%;
        padding-top: 0;
        flex-shrink: 0;
    }
    
    .card-body {
        padding: 10px;
        justify-content: center;
    }
    
    .badge-full {
        font-size: 9px;
        padding: 2px 0;
    }
}
/* ThÃªm má»›i vÃ o file style.css */

.logo-img {
    width: 170px; /* Äiá»u chá»‰nh kÃ­ch thÆ°á»›c logo theo Ã½ muá»‘n */
    height: auto;
    object-fit: contain;
}

/* Náº¿u báº¡n dÃ¹ng áº£nh chá»©a cáº£ chá»¯ (Full Logo), hÃ£y áº©n pháº§n text HTML Ä‘i */
/* Bá» comment dÃ²ng dÆ°á»›i náº¿u áº£nh cá»§a báº¡n Ä‘Ã£ bao gá»“m chá»¯ */
/* .logo-text, .logo-sub { display: none; } */

/* TÃ¹y chá»‰nh riÃªng cho logo bÃªn pháº£i náº¿u cáº§n to hÆ¡n */
.logo-box-light {
    text-align: center;
    margin-bottom: 30px;
}

/* Chá»‰nh kÃ­ch thÆ°á»›c áº£nh logo */
.logo-box-light .logo-img {
    width: 215px;       /* Äá»™ rá»™ng logo (báº¡n cÃ³ thá»ƒ tÄƒng giáº£m sá»‘ nÃ y) */
    max-width: 80%;     /* Äáº£m báº£o khÃ´ng bá»‹ trÃ n mÃ n hÃ¬nh Ä‘iá»‡n thoáº¡i */
    height: auto;       /* Tá»± Ä‘á»™ng tÃ­nh chiá»u cao Ä‘á»ƒ khÃ´ng bá»‹ mÃ©o */
    display: block;     /* GiÃºp cÄƒn giá»¯a dá»… hÆ¡n */
    margin: 0 auto 10px auto; /* CÄƒn giá»¯a vÃ  táº¡o khoáº£ng cÃ¡ch dÆ°á»›i */
    object-fit: contain;
}
/* --- Táº O KHUNG MÃ€U XÃM --- */
.gray-box {
    background-color: #F0F6FA; /* MÃ u xÃ¡m theo yÃªu cáº§u */
    padding: 40px;             /* Khoáº£ng cÃ¡ch tá»« viá»n vÃ o ná»™i dung */
    border-radius: 15px;       /* Bo trÃ²n gÃ³c cho má»m máº¡i */
    margin-top: 20px;          /* CÃ¡ch pháº§n Logo bÃªn trÃªn má»™t chÃºt */
    width: 110%;               /* Chiáº¿m háº¿t chiá»u rá»™ng cho phÃ©p */
    box-sizing: border-box; 
    height: 650px;   /* Äáº£m báº£o padding khÃ´ng lÃ m vá»¡ khung */
    height: 85%;   /* Äáº£m báº£o padding khÃ´ng lÃ m vá»¡ khung */
}

/* TÃ¹y chá»‰nh láº¡i tiÃªu Ä‘á» má»™t chÃºt Ä‘á»ƒ phÃ¹ há»£p ná»n xÃ¡m */
.gray-box .main-title {
    margin-top: 0;             /* Bá» khoáº£ng cÃ¡ch thá»«a phÃ­a trÃªn tiÃªu Ä‘á» */
    color: #226C47;               /* Äá»•i mÃ u chá»¯ cho dá»… Ä‘á»c trÃªn ná»n xÃ¡m (náº¿u cáº§n) */
}

/* Style cho khung chá»©a áº£nh */
.avatar-box {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 0 auto 15px;
    overflow: hidden; /* Cáº¯t pháº§n thá»«a Ä‘á»ƒ áº£nh luÃ´n trÃ²n */
    position: relative;
    background-color: #eee;
}

/* Style cho áº£nh bÃªn trong */
.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Quan trá»ng: GiÃºp áº£nh khÃ´ng bá»‹ mÃ©o */
    display: block;
}