:root {
    --green-900: #063f2d;
    --green-800: #07543b;
    --green-700: #0c704d;
    --green-100: #e6f4ea;
    --cream: #fbf7ef;
    --text: #1c2520;
    --muted: #66746d;
    --border: #dde8e1;
    --danger: #b42318;
    --shadow: 0 22px 60px rgba(6, 63, 45, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #eef7f1 0%, #ffffff 42%, #f8fbf8 100%);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: radial-gradient(circle at 20% 10%, rgba(112, 188, 135, .35), transparent 32%), linear-gradient(120deg, #03291e, var(--green-900));
    color: #fff;
    padding: 18px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand img {
    display: block;
    max-width: min(520px, 64vw);
    height: auto;
}

.top-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .top-nav a,
    .btn-ghost {
        color: #fff;
        border: 1px solid rgba(255,255,255,.32);
        border-radius: 999px;
        text-decoration: none;
        padding: 9px 14px;
        background: rgba(255,255,255,.08);
        font-weight: 700;
        cursor: pointer;
    }

.page-shell {
    padding: 32px 0 48px;
}

.hero-card,
.form-card,
.login-card,
.admin-card,
.success-card {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 32px;
    margin-bottom: 22px;
    overflow: hidden;
    position: relative;
}

    .hero-card:after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        right: -80px;
        top: -110px;
        background: rgba(21, 122, 80, .08);
    }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-800);
    background: var(--green-100);
    border: 1px solid #cbe6d3;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .02em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.05;
    margin: 18px 0 14px;
    color: var(--green-900);
}

h2 {
    font-size: clamp(24px, 3vw, 34px);
    color: var(--green-900);
}

.lead {
    font-size: 18px;
    line-height: 1.6;
    color: #34443b;
    max-width: 900px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.info-box {
    background: #f8fcf9;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
}

.info-box-wide {
    grid-column: 1 / -1;
}

.info-box h3 {
    color: var(--green-800);
    margin-bottom: 10px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.form-card,
.admin-card {
    padding: 28px;
}

.form-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    padding-bottom: 18px;
}

    .form-title p,
    .privacy-note,
    .muted {
        color: var(--muted);
    }

.required,
.field-error,
.validation-summary {
    color: var(--danger);
}

.validation-summary {
    background: #fff4f2;
    border: 1px solid #ffd6cf;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.field-error {
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

.form-grid,
.filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.filter-form {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    align-items: end;
    margin-bottom: 22px;
}

.form-group.full,
.field-block,
.filter-actions {
    grid-column: 1 / -1;
}

    .form-group label,
    .field-block legend {
        display: inline-block;
        font-weight: 800;
        margin-bottom: 8px;
        color: #21342b;
    }

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cbd9d1;
    border-radius: 14px;
    padding: 12px 13px;
    font: inherit;
    outline: none;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

    input:focus,
    textarea:focus,
    select:focus {
        border-color: var(--green-700);
        box-shadow: 0 0 0 4px rgba(12, 112, 77, .12);
    }

textarea {
    resize: vertical;
}

.field-block {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    margin: 0 0 18px;
    background: #fff;
}

    .field-block.compact {
        margin: 0;
    }

.radio-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #d5e5dc;
    border-radius: 16px;
    margin-bottom: 10px;
    cursor: pointer;
}

    .radio-card:hover {
        background: #f8fcf9;
    }

    .radio-card input,
    .inline-radio input,
    .remember-me input {
        width: auto;
        margin-top: 3px;
    }

.inline-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 24px;
    font-weight: 700;
}

.form-actions,
.filter-actions,
.pagination,
.admin-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-actions {
    margin-top: 24px;
}

button,
a {
    font: inherit;
}

.btn-primary,
.btn-secondary,
.btn-export {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 12px 20px;
    border: 0;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-800), #0e8f60);
    color: #fff;
    box-shadow: 0 14px 26px rgba(12, 112, 77, .24);
}

.btn-secondary {
    color: var(--green-800);
    background: var(--green-100);
}

.btn-export {
    color: #fff;
    background: #174ea6;
}

.full-width {
    width: 100%;
}

.success-card,
.login-card {
    padding: 34px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.login-card {
    text-align: left;
}

    .login-card p {
        color: var(--muted);
    }

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 18px;
    font-weight: 700;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: 40px;
    font-weight: 900;
}

.admin-heading {
    justify-content: space-between;
    margin-bottom: 18px;
}

    .admin-heading h1 {
        margin-bottom: 6px;
    }

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.data-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    background: #fff;
}

    .data-table th,
    .data-table td {
        text-align: left;
        padding: 12px;
        border-bottom: 1px solid var(--border);
        vertical-align: top;
        font-size: 14px;
    }

    .data-table th {
        background: #eef7f1;
        color: var(--green-900);
        font-weight: 900;
        white-space: nowrap;
    }

    .data-table tbody tr:hover {
        background: #fbfdfb;
    }

.empty-row {
    text-align: center !important;
    color: var(--muted);
    padding: 28px !important;
}

.pagination {
    justify-content: center;
    margin-top: 18px;
}

    .pagination a,
    .pagination span {
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 9px 14px;
        text-decoration: none;
        color: var(--green-800);
        background: #fff;
        font-weight: 800;
    }

.site-footer {
    padding: 26px 0;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 820px) {
    .header-inner,
    .form-title,
    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .info-grid,
    .form-grid,
    .filter-form {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .form-card,
    .admin-card,
    .login-card,
    .success-card {
        padding: 22px;
        border-radius: 22px;
    }

    .top-nav {
        justify-content: flex-start;
    }
}
/* Fix font chữ in đậm cho đồng bộ giống phần "Lịch ôn thi môn Vẽ Mỹ thuật miễn phí" */
b,
strong,
label,
.form-label,
.fw-bold,
.badge,
.badge-soft,
.card-title,
.info-title,
.section-title,
.form-section-title,
.registration-form label,
.registration-form .form-label,
.hero-card b,
.hero-card strong,
.hero-card .fw-bold,
.info-card b,
.info-card strong,
.info-card-title,
.exam-info-title {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

/* Riêng label trong form như "Đăng ký thi năng khiếu đợt" */
.form-label,
.registration-form label,
.form-group label,
.form-check-label {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-weight: 700 !important;
    color: #073f2e;
}

/* Badge trên cùng "Tuyển sinh 2026" */
.badge,
.badge-soft,
.hero-badge {
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-weight: 700 !important;
}
/* Cho tiêu đề lớn nhỏ lại để nằm 1 dòng trên màn hình desktop */
.hero-title,
.page-title,
h1 {
    font-size: clamp(36px, 3.8vw, 54px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.04em !important;
}

/* Từ màn hình laptop trở lên thì cố giữ 1 dòng */
@media (min-width: 992px) {
    .hero-title,
    .page-title,
    h1 {
        white-space: nowrap !important;
    }
}

/* Mobile vẫn cho xuống dòng để không vỡ giao diện */
@media (max-width: 991px) {
    .hero-title,
    .page-title,
    h1 {
        white-space: normal !important;
        font-size: 36px !important;
    }
}
/* Ép tiêu đề lớn luôn 1 dòng, mobile tự nhỏ chữ */
.hero-title,
.page-title,
h1 {
    white-space: nowrap !important;
    font-size: clamp(22px, 4.6vw, 52px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
}

/* Tablet */
@media (max-width: 991px) {
    .hero-title,
    .page-title,
    h1 {
        font-size: clamp(20px, 4.8vw, 38px) !important;
    }
}

/* Điện thoại */
@media (max-width: 576px) {
    .hero-title,
    .page-title,
    h1 {
        font-size: clamp(15px, 4.2vw, 22px) !important;
        white-space: nowrap !important;
        line-height: 1.1 !important;
        letter-spacing: -0.05em !important;
    }
}

/* Điện thoại rất nhỏ */
@media (max-width: 390px) {
    .hero-title,
    .page-title,
    h1 {
        font-size: 14px !important;
        letter-spacing: -0.055em !important;
    }
}
