/* Homepage content only — chrome is in site.css */
.home-wrap {
    --navy: #123a73;
    --blue: #2b5ea8;
    --line: #e2e8f0;
    --text: #243447;
    --muted: #6b7c8f;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--text);
    box-sizing: border-box;
    padding: 4px 14px 6px;
}

.home-wrap *,
.home-wrap *:before,
.home-wrap *:after {
    box-sizing: border-box;
}

.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
    align-items: stretch;
}

.home-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(18, 58, 115, 0.05);
}

.home-card-login {
    background:
        linear-gradient(180deg, rgba(232, 241, 255, 0.86), rgba(255, 255, 255, 0.9)),
        url(/css/img/hd_bg.jpg) center / cover no-repeat;
    border-color: #c5d8f2;
}

.home-card-stat {
    background:
        linear-gradient(180deg, rgba(231, 246, 239, 0.86), rgba(255, 255, 255, 0.9)),
        url(/css/img/bg-user.jpg) center / cover no-repeat;
    border-color: #b9ddc8;
}

.home-card-title {
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    background: #123a73;
}

.home-card-login .home-card-title {
    background: #1e5fad;
}

.home-card-stat .home-card-title {
    background: #2a7a62;
}

.home-card-body {
    padding: 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-login-fields {
    display: grid;
    gap: 10px;
}

.home-login-fields input[type="text"],
.home-login-fields input[type="password"] {
    width: 100% !important;
    box-sizing: border-box;
    border: 1px solid #d5e0ee !important;
    border-radius: 8px !important;
    padding: 11px 12px !important;
    font-size: 14px;
    background: #fff !important;
}

.home-login-fields input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 58, 115, 0.12);
    border-color: #123a73 !important;
}

.home-login-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.home-wrap ._csdf {
    float: none !important;
    display: block !important;
    margin: 0 !important;
    width: 100%;
}

.home-wrap ._csdf a,
.home-wrap ._csdf {
    text-decoration: none;
}

.home-wrap ._csdf div:nth-child(1),
.home-wrap ._csdf div:nth-child(2) {
    background: none;
    padding: 0;
    float: none;
}

.home-wrap ._csdf a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #123a73;
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
}

.home-wrap ._csdf a:hover {
    background: #0f2f5c;
}

.home-wrap .home-btn-register a,
.home-wrap ._csdf.home-btn-register a {
    background: #e07b00;
    color: #fff;
    border: 0;
    box-shadow: none;
}

.home-wrap .home-btn-register a:hover {
    background: #c45f00;
}

.home-forgot {
    display: block;
    margin-top: 12px;
    text-align: center;
    color: #2b5ea8 !important;
    font-weight: 600;
}

.home-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.home-stat {
    text-align: center;
    border-radius: 10px;
    padding: 16px 8px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #123a73;
    background: #f6f8fb;
    border: 1px solid var(--line);
}

.home-stat i {
    font-size: 18px;
    margin-bottom: 6px;
}

.home-stat b {
    display: block;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.home-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
}

.home-stat-day {
    background: #fff4e5;
    border-color: #f0d3a8;
    color: #c45f00;
}

.home-stat-reg {
    background: #e8f1ff;
    border-color: #c5d8f2;
    color: #1e5fad;
}

.home-stat-sk {
    background: #e7f6ef;
    border-color: #b9ddc8;
    color: #1b8a4a;
}

.home-account {
    background: #fff;
    color: var(--text);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(18, 58, 115, 0.05);
}

.home-account .profile {
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0;
    display: block;
}

.home-account h2 {
    background: none !important;
    width: auto !important;
    padding: 0 0 8px !important;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--line);
    color: #123a73;
}

.home-account .btn1,
.home-account a.btn {
    border-radius: 8px !important;
    font-weight: 700;
}

.home-account .btn-primary {
    background: #123a73 !important;
    border-color: #123a73 !important;
    color: #fff !important;
}

.home-account .btn-dar {
    background: #f4f7fb !important;
    color: #123a73 !important;
    border: 1px solid var(--line) !important;
}

.home-account #_tb,
.home-account span[style*="red"] {
    color: #a14a12 !important;
}

.home-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.home-wrap .vitri-img {
    display: none;
}

.home-wrap .top_thisinh_default,
.home-wrap .top_thisinh_quan,
.home-wrap ._dangnhap {
    background: none !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
}

.home-wrap .top_thisinh_quan > .items {
    height: auto !important;
    width: 100% !important;
    float: none !important;
    border: 0 !important;
    display: block !important;
}

.home-wrap .items._dangnhap {
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
    margin: 0 !important;
}

.home-wrap .items.home-news {
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(18, 58, 115, 0.05);
    margin: 0 0 14px !important;
}

.home-wrap .items .title {
    background: #c43c3c !important;
    color: #fff !important;
    padding: 12px 16px !important;
    width: auto !important;
    border-radius: 0 !important;
    font-weight: 700;
}

.home-wrap .thongbao {
    width: auto;
    padding: 6px 8px 10px;
    margin: 0;
}

.home-wrap ._thongbao {
    width: 100%;
}

.home-wrap ._thongbao a {
    color: #123a73;
    font-weight: 600;
}

.home-wrap ._thongbao a:hover {
    color: #2b5ea8;
}

.home-wrap ._thongbao td {
    padding: 9px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f6;
}

.home-wrap ._thongbao tr:last-child td {
    border-bottom: 0;
}

.home-wrap ._thongbao tr td:first-child {
    width: 96px;
    color: #c45f00;
    font-weight: 700;
    white-space: nowrap;
}

.home-wrap ._thongbao td div[style*="position: absolute"] {
    display: none;
}

.home-wrap .home-boards {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100% !important;
}

.home-wrap .top_thisinh_quan > .bangdiem {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 6px 18px rgba(18, 58, 115, 0.05);
    display: block;
    min-height: 0;
    height: auto !important;
    position: relative;
}

.home-wrap .t2 {
    color: #fff !important;
    padding: 12px 16px !important;
    width: auto !important;
    border-radius: 0 !important;
    font-weight: 700;
    text-align: center;
    background: #123a73 !important;
}

.home-board-gold .t2 {
    background: #9a6b00 !important;
}

.home-board-teal .t2 {
    background: #067066 !important;
}

.home-wrap .bangdiem > div {
    display: block;
}

.home-wrap .home-rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f6;
}

.home-wrap .home-rank-info {
    flex: 1;
    min-width: 0;
}

.home-wrap .home-rank-info span {
    font-size: 12px;
    font-style: italic;
    color: #6b7c8f;
}

.home-wrap .home-rank-score {
    color: #123a73;
    font-weight: 700;
    font-size: 15px;
    min-width: 28px;
    text-align: right;
}

.home-wrap .bangxephang {
    width: 100%;
    table-layout: auto;
}

.home-wrap .bangxephang td,
.home-wrap .bangxephang th {
    padding: 9px 10px !important;
    border-bottom: 1px solid #eef2f6;
    overflow: visible;
}

.home-wrap .bangxephang td:first-child {
    width: 48px !important;
    min-width: 48px;
    text-align: center;
    vertical-align: middle;
}

.home-wrap .bangxephang .m1 {
    color: #243447;
    margin: 0;
    font-size: 14px;
}

.home-wrap .bangxephang td:last-child {
    color: #123a73;
    font-weight: 700;
    text-align: center;
    font-size: 15px;
}

.home-wrap .bangxephang tr:last-child td {
    padding-bottom: 10px !important;
}

.home-wrap .r_1 {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 13px !important;
    padding: 0 !important;
    margin: 0 auto;
    float: none !important;
    display: block;
    box-sizing: border-box;
    overflow: visible;
}

.home-wrap .c_1 { background: #c48a10; }
.home-wrap .c_2 { background: #8e9eab; }
.home-wrap .c_3 { background: #c45f00; }
.home-wrap .c_4 { background: #1e5fad; }
.home-wrap .c_5 { background: #1b8a4a; }
.home-wrap .c_more { background: #123a73; }

.home-wrap .home-more-list {
    display: none;
}

.home-wrap .items_thisinh {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

.home-wrap .xemthem {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    text-align: center;
    padding: 10px 8px !important;
    margin: 0 !important;
    border-top: 1px solid #e2e8f0;
    background: #eef2f6;
}

.home-wrap .xemthem a {
    display: inline;
    padding: 0;
    border-radius: 0;
    background: none !important;
    font-weight: 700;
    text-decoration: none;
}

.home-board-gold .xemthem {
    background: #f3efe6;
}

.home-board-gold .xemthem a {
    color: #7a5600 !important;
}

.home-board-teal .xemthem {
    background: #e8f3f1;
}

.home-board-teal .xemthem a {
    color: #055c54 !important;
}

.home-wrap .home-hidden,
.home-wrap .top_thisinh_quan.home-hidden {
    display: none !important;
}

.home-wrap .adv_main_default {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    margin-top: 14px;
}

.home-wrap .advs_default,
.home-wrap .adv_main_default > .advs_default {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.home-wrap .advs_default a,
.home-wrap .adv_main_default > .advs_default a {
    width: 100% !important;
    height: auto !important;
}

.home-wrap .advs_default img,
.home-wrap .adv_main_default > .advs_default a img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}

.home-wrap .clear10 {
    height: 8px;
}

@media (max-width: 800px) {
    .home-hero,
    .home-wrap .home-boards,
    .home-stats,
    .home-login-actions {
        grid-template-columns: 1fr;
    }

    .home-card {
        min-height: 0;
    }
}
