/* ND369 — Archive /khu-vuc/ */
/* --- CSS TRANG DANH B? (ARCHIVE KHU V?C) ? ??ng b? brand ND369 --- */

body.post-type-archive-khu_vuc #content.site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

body.post-type-archive-khu_vuc #primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.kv-archive-page {
    background: #fff;
}

.kv-archive-hero {
    background: linear-gradient(135deg, var(--primary-color, #004d99) 0%, #003366 100%);
    color: #fff;
    padding: 0 20px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.kv-archive-hero .ast-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 20px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.kv-archive-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.kv-archive-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color, #cc3300);
    color: #fff;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
}

.kv-archive-hero h1 {
    color: #fff !important;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.25;
    text-align: center !important;
    width: 100%;
}

.kv-archive-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
    text-align: center !important;
}

.kv-archive-section {
    width: 100%;
    padding: 48px 0;
    margin: 0;
}

.kv-archive-section--light {
    background: #fff;
}

.kv-archive-section--tint {
    background: var(--bg-light, #f4f8ff);
}

.kv-archive-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.kv-archive-section-header {
    display: block !important;
    float: none !important;
    clear: both;
    flex: 0 0 auto;
    order: 0;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 0 28px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(0, 77, 153, 0.12);
}

.kv-archive-city-title {
    display: block;
    width: 100%;
    color: var(--primary-color, #004d99);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 8px;
    text-align: center !important;
    text-transform: uppercase;
    line-height: 1.3;
}

.kv-archive-city-sub {
    display: block;
    width: 100%;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    text-align: center !important;
}

.kv-district-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    float: none !important;
    clear: both;
    flex: 0 0 auto;
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
}

.kv-district-item {
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 10px;
    padding: 18px 18px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kv-archive-section--light .kv-district-item {
    background: #fff;
}

.kv-archive-section--tint .kv-district-item {
    background: #fff;
}

.kv-district-item:hover {
    border-color: rgba(0, 77, 153, 0.35);
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.08);
}

.kv-district-name {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px dashed #e4ebf3;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.kv-district-name a {
    color: var(--primary-color, #004d99);
    text-decoration: none;
}

.kv-district-name a:hover {
    color: var(--secondary-color, #cc3300);
}

.kv-district-count {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
}

.kv-ward-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kv-ward-link {
    font-size: 13px;
    color: #444;
    background: var(--bg-light, #f4f8ff);
    border: 1px solid #e4ebf3;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s ease;
    line-height: 1.3;
}

.kv-ward-link:hover {
    background: var(--primary-color, #004d99);
    border-color: var(--primary-color, #004d99);
    color: #fff;
}

.kv-ward-link--all {
    background: transparent;
    border-color: var(--secondary-color, #cc3300);
    color: var(--secondary-color, #cc3300);
    font-weight: 700;
}

.kv-ward-empty {
    font-size: 12px;
    color: #999;
    width: 100%;
}

.kv-archive-empty {
    text-align: center;
    color: #666;
    margin: 0;
}

/* Legacy: trang m?i d?ng class kv-* */

@media (max-width: 1024px) {
    .kv-district-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kv-archive-hero {
        min-height: 200px;
    }

    .kv-archive-hero h1 {
        font-size: 1.7rem;
    }

    .kv-archive-section {
        padding: 36px 0;
    }

    .kv-archive-city-title {
        font-size: 1.4rem;
    }

    .kv-district-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
