/* Policy pages (quy-che-hoat-dong, chinh-sach-*, tiep-nhan-giai-quyet-khieu-nai).
   Typography comes from blog.css (.blog-header, .blog-content); this file only adds
   the two-column layout, the sidebar, and the step / info / contact blocks. */

.policy-page { padding: 15px 10px 40px; }

.policy-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* --- Sidebar: list of all policies --- */
.policy-nav {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 18px 0;
    position: sticky;
    top: 15px;
}
.policy-nav h2 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    margin: 0 18px 10px;
}
.policy-nav ul { list-style: none; margin: 0; padding: 0; }
.policy-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #444;
    font-size: 14px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: 0.2s;
}
.policy-nav a i { width: 16px; color: #999; text-align: center; }
.policy-nav a:hover { background: #f9f9f9; color: var(--primary-red); }
.policy-nav a.active {
    border-left-color: var(--primary-red);
    background: #fff5f5;
    color: var(--primary-red);
    font-weight: 700;
}
.policy-nav a.active i { color: var(--primary-red); }

/* --- Article card --- */
.policy-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 30px 36px;
    max-width: none;
}
.policy-article .blog-header { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.policy-updated { color: #888; font-size: 13px; }
.policy-updated i { margin-right: 4px; }
.policy-article .blog-content h2 {
    font-size: 1.15rem;
    color: var(--primary-red);
    margin: 1.75rem 0 0.75rem;
}
.policy-article .blog-content h2:first-child { margin-top: 0; }
.policy-lead { font-size: 1.05rem; color: #444; }

/* --- Numbered steps (Bước 1, 2, …) --- */
.policy-steps { list-style: none; counter-reset: step; padding-left: 0 !important; margin: 0 0 1rem; }
.policy-steps li {
    counter-increment: step;
    position: relative;
    padding: 2px 0 12px 46px;
    margin: 0 !important;
}
.policy-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.policy-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 32px;
    bottom: 2px;
    width: 2px;
    background: #f1c4c9;
}
.policy-steps strong { color: #222; }

/* --- Company info box --- */
.policy-info {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 16px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 0 0 1rem;
}
.policy-info dt { font-weight: 700; color: #555; }
.policy-info dd { margin: 0; color: #333; }

/* --- Contact box at the end of each page --- */
.policy-contact {
    margin-top: 2rem;
    padding: 18px 20px;
    border-radius: 8px;
    background: #fff5f5;
    border: 1px solid #f6d5d9;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.policy-contact p { margin: 0; color: #444; }
.policy-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.policy-contact-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
}
.policy-contact-actions .btn-call { background: var(--primary-red); color: #fff !important; }
.policy-contact-actions .btn-call:hover { background: var(--primary-red-hover); }
.policy-contact-actions .btn-zalo { background: #0068ff; color: #fff !important; }
.policy-contact-actions .btn-zalo:hover { background: #0052cc; }

@media (max-width: 992px) {
    .policy-layout { grid-template-columns: 1fr; gap: 16px; }
    .policy-nav { position: static; padding: 12px 0; }
    .policy-article { padding: 22px 18px; }
}
@media (max-width: 576px) {
    .policy-info { grid-template-columns: 1fr; gap: 2px; }
    .policy-info dd { margin-bottom: 8px; }
    .policy-contact { flex-direction: column; align-items: stretch; }
    .policy-contact-actions a { justify-content: center; flex: 1; }
}

/* global.css strips list markers site-wide; policy lists need visible bullets */
.policy-article .blog-content ul { list-style: disc; padding-left: 1.4rem; }
.policy-article .blog-content ul li::marker { color: var(--primary-red); }

/* Restored WordPress pages: delivery tables and the contact-page map */
.policy-table { overflow-x: auto; margin: 0 0 1.25rem; }
.policy-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.policy-table td, .policy-table th { border: 1px solid #e5e5e5; padding: 10px 12px; vertical-align: top; text-align: left; }
.policy-table tr:first-child td { background: #fafafa; font-weight: 700; }
.policy-map { display: block; width: 100%; height: 340px; border: 0; border-radius: 8px; margin: 0.5rem 0 1.5rem; }
