:root {
    --green: #14532d;
    --green-mid: #15803d;
    --red: #b91c1c;
    --ink: #1f2937;
    --muted: #6b7280;
    --paper: #fdfbf7;
}

body.content-page {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--ink);
    background-color: #4b5563;
    background-image: radial-gradient(#374151 1px, transparent 1px);
    background-size: 20px 20px;
    line-height: 1.7;
}
body.content-page *, body.content-page *::before, body.content-page *::after { box-sizing: border-box; }

/* Đầu trang và chân trang dùng chung */
.site-header { width: 100%; }
.site-header .wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    justify-content: space-between;
}
.brand {
    font-family: 'Itim', cursive;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a.active { color: #fde68a; }

.site-footer {
    color: #d1d5db;
    font-size: 0.88rem;
    text-align: center;
    padding: 16px 20px 40px;
    width: 100%;
    line-height: 1.6;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 8px; }
.site-footer nav a { color: #f3f4f6; text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: #fde68a; }
.site-footer p { margin: 4px 0; }

/* Trang nội dung */
.article {
    max-width: 820px;
    margin: 10px auto 24px;
    background: var(--paper);
    border-radius: 12px;
    box-shadow: 12px 12px 30px rgba(0, 0, 0, 0.3);
    padding: 40px 48px;
    border-top: 6px solid var(--green-mid);
    line-height: 1.75;
}
.article h1 {
    font-family: 'Itim', cursive;
    color: var(--green);
    font-size: 2.1rem;
    line-height: 1.25;
    margin: 0 0 8px;
    font-weight: 400;
}
.article .meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 24px; }
.article h2 {
    font-family: 'Itim', cursive;
    color: var(--green);
    font-size: 1.5rem;
    margin: 32px 0 10px;
    font-weight: 400;
    line-height: 1.3;
}
.article h3 { font-size: 1.1rem; font-weight: 700; margin: 22px 0 6px; color: #1e3a8a; }
.article p { margin: 0 0 14px; font-size: 1.02rem; }
.article ul, .article ol { padding-left: 1.4rem; margin: 0 0 16px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 6px; font-size: 1.02rem; }
.article a { color: #1d4ed8; text-decoration: underline; }
.article strong { font-weight: 700; }
.article table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 0.97rem; }
.article th, .article td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; vertical-align: top; }
.article th { background: #f0fdf4; color: var(--green); }

.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

.callout {
    background: #fef9c3;
    border-left: 4px solid #facc15;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }

.script-box {
    background: #eff6ff;
    border: 2px dashed #93c5fd;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 14px 0 22px;
    font-family: 'Mali', cursive;
    color: #1e3a8a;
    white-space: pre-line;
    line-height: 1.7;
}

.card-list { list-style: none !important; padding: 0 !important; display: grid; gap: 14px; }
.card-list li { margin: 0; }
.card-list li a {
    display: block;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
}
.card-list li a:hover { border-color: var(--green-mid); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.card-list strong { display: block; font-family: 'Itim', cursive; font-weight: 400; font-size: 1.2rem; color: var(--green); }
.card-list span { color: var(--muted); font-size: 0.95rem; }

.cta {
    display: inline-block;
    background: var(--red);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 700;
}
.cta:hover { background: #991b1b; }

.related { margin-top: 36px; padding-top: 18px; border-top: 1px dashed #d1d5db; }

/* Biểu mẫu liên hệ */
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.form-field input, .form-field textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid #86efac; border-color: var(--green-mid); }
.form-button {
    background: var(--green-mid);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}
.form-button:disabled { opacity: 0.6; cursor: default; }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status.ok { color: var(--green-mid); }
.form-status.error { color: var(--red); }

@media (max-width: 640px) {
    .article { padding: 24px 20px; margin: 6px 10px 20px; }
    .article h1 { font-size: 1.7rem; }
}
