:root {
    --primary: #0b66c3;
    --dark: #102235;
    --muted: #64748b;
    --light: #f5f7fa;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    position: relative;
    top: auto;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 220px;
}

.site-logo img {
    width: auto;
    max-width: 100%;
    height: 58px;
    object-fit: contain;
}

.site-logo-text {
    display: block;
    max-width: 220px;
    overflow: hidden;
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.main-nav a {
    font-weight: 600;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav .admin-link {
    color: #b45309;
}

.header-hotline {
    padding: 10px 14px;
    color: #fff;
    font-weight: 700;
    background: var(--primary);
    border-radius: 8px;
    white-space: nowrap;
}

.mobile-hotline {
    display: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 4px;
    font-size: 28px;
    background: transparent;
    border: 0;
}

.hero {
    padding: 76px 0;
    background: linear-gradient(
        135deg,
        #eff6ff,
        #f8fafc
    );
}

.hero h1 {
    max-width: 760px;
    margin: 10px 0 18px;
    font-size: 45px;
    line-height: 1.15;
}

.hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
}

.eyebrow {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-hero {
    padding: 48px 0;
    background: var(--light);
}

.page-hero h1 {
    margin: 6px 0 0;
    font-size: 40px;
}

.section {
    padding: 60px 0;
}

.section-light {
    background: var(--light);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.card img {
    width: 100%;
    margin-bottom: 14px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--light);
    border-radius: 10px;
}

.card h2,
.card h3 {
    margin: 0 0 9px;
    font-size: 19px;
    line-height: 1.4;
}

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

.news-list {
    display: grid;
    gap: 14px;
}

.news-row {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.news-row h3 {
    margin: 0 0 8px;
}

.content-box {
    max-width: 900px;
}

.detail-image {
    width: 100%;
    max-width: 850px;
    margin-bottom: 28px;
    border-radius: 14px;
}

.wysiwyg img {
    height: auto;
}

.wysiwyg table {
    max-width: 100%;
    border-collapse: collapse;
}

.pagination,
.ph-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 30px auto 0;
}

.pagination a,
.ph-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
}

.pagination a.active,
.ph-pagination a.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.pagination-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 38px;
    color: inherit;
    opacity: .65;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font: inherit;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.contact-form button {
    padding: 12px 20px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
}

.map-box {
    margin-top: 24px;
    overflow: hidden;
    border-radius: 12px;
}

.map-box iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

.site-footer {
    padding: 46px 0 22px;
    margin-top: 40px;
    color: #fff;
    background: var(--dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    width: auto;
    max-width: 210px;
    max-height: 70px;
    margin-bottom: 16px;
    object-fit: contain;
}

.site-footer h3 {
    margin-top: 0;
}

.site-footer a {
    color: #fff;
}

.footer-copyright {
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 1100px) {
    .header-row {
        gap: 14px;
    }

    .site-logo {
        max-width: 180px;
    }

    .site-logo img {
        height: 52px;
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav a {
        font-size: 14px;
    }
}

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

    .header-hotline {
        display: none;
    }

    .site-logo {
        max-width: 170px;
    }
}

@media (max-width: 767px) {
    .header-row {
        position: relative;
        display: grid;
        grid-template-columns: minmax(100px, 1fr) auto auto;
        gap: 10px;
        min-height: 62px;
    }

    .site-logo {
        max-width: 150px;
    }

    .site-logo img {
        height: 48px;
    }

    .site-logo-text {
        max-width: 150px;
        font-size: 15px;
    }

    .mobile-hotline {
        display: block;
    }

    .menu-toggle {
        display: block;
        margin-left: 0;
    }

    .main-nav {
        position: absolute;
        top: 62px;
        right: 0;
        left: 0;
        display: none;
        align-items: flex-start;
        padding: 16px 4%;
        background: #fff;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        flex-direction: column;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 6px 0;
        font-size: 15px;
    }

    .hero {
        padding: 54px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .section {
        padding: 44px 0;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .card-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .header-row {
        grid-template-columns: minmax(82px, 1fr) auto auto;
    }

    .site-logo {
        max-width: 120px;
    }

    .site-logo img {
        height: 42px;
    }

    .mobile-hotline {
        font-size: 12px;
    }
}

/* BUILD04: menu danh mục động */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.submenu-toggle {
    padding: 2px 4px;
    margin-left: 2px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    z-index: 120;
    display: none;
    width: 320px;
    max-height: 70vh;
    padding: 14px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown.is-open > .dropdown-menu {
    display: block;
}

.dropdown-group + .dropdown-group {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
}

.dropdown-title {
    display: block;
    color: var(--primary);
    font-weight: 800 !important;
}

.dropdown-children {
    display: grid;
    gap: 5px;
    padding-top: 7px;
}

.dropdown-children a {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 767px) {
    .nav-item {
        display: grid;
        grid-template-columns: 1fr auto;
        width: 100%;
    }

    .nav-item > a {
        width: auto;
    }

    .submenu-toggle {
        display: block;
        width: 38px;
        font-size: 20px;
    }

    .dropdown-menu {
        position: static;
        grid-column: 1 / -1;
        width: 100%;
        max-height: none;
        padding: 10px 12px;
        box-shadow: none;
        border-radius: 8px;
    }

    .has-dropdown:hover > .dropdown-menu {
        display: none;
    }

    .has-dropdown.is-open > .dropdown-menu {
        display: block;
    }
}

.main-nav a.active{color:var(--primary)}
.header-search input{width:135px;padding:8px 10px;border:1px solid var(--border);border-radius:8px}
.alert{padding:12px 14px;margin-bottom:16px;border-radius:8px}.alert-success{background:#ecfdf5;color:#047857}.alert-error{background:#fef2f2;color:#b91c1c}
.search-page-form{display:flex;gap:10px;margin-bottom:30px}.search-page-form input{flex:1;padding:12px;border:1px solid var(--border);border-radius:8px}.search-page-form button{padding:12px 20px;border:0;border-radius:8px;background:var(--primary);color:#fff;font-weight:700}
.category-layout{display:grid;grid-template-columns:250px 1fr;gap:30px}.category-sidebar{border:1px solid var(--border);border-radius:12px;padding:18px;height:max-content}.category-sidebar ul{padding-left:20px}.category-group>a{font-weight:700;color:var(--primary)}
.ph-breadcrumb{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px;color:var(--muted);font-size:14px}
.error-page{text-align:center;padding:100px 0}.error-code{font-size:100px;font-weight:900;color:var(--primary);line-height:1}.btn-home{display:inline-block;margin-top:18px;padding:12px 20px;background:var(--primary);color:#fff;border-radius:8px;font-weight:700}
@media(max-width:991px){.header-search{display:none}.category-layout{grid-template-columns:1fr}.category-sidebar{order:2}}


.main-nav > a.active,
.nav-item.active > a {
    color: var(--primary);
}

.ph-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.ph-breadcrumb a {
    color: var(--primary);
}

.category-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
}

.category-sidebar {
    align-self: start;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.category-sidebar h3 {
    margin-top: 0;
}

.category-sidebar ul {
    padding-left: 18px;
    margin: 8px 0 12px;
}

.category-group > a {
    color: var(--primary);
    font-weight: 700;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.submenu-toggle {
    padding: 2px 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    display: none;
    width: min(720px, 80vw);
    max-height: 70vh;
    padding: 18px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .12);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dropdown-title {
    color: var(--primary);
    font-weight: 800;
}

.dropdown-menu ul {
    padding-left: 16px;
    margin: 8px 0;
}

.header-search input {
    width: 120px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.related-grid {
    grid-template-columns: repeat(4, 1fr);
}

.search-page-form {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.search-page-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.search-page-form button {
    padding: 12px 20px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
}

.search-block {
    margin-top: 34px;
}

@media (max-width: 991px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        order: 2;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .nav-item {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        max-height: none;
        margin-top: 8px;
        box-shadow: none;
    }

    .has-dropdown:hover .dropdown-menu {
        display: none;
    }

    .has-dropdown.is-open .dropdown-menu {
        display: block;
    }

    .header-search,
    .header-search input {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
.language-switcher{display:flex;align-items:center;gap:6px;margin-left:10px}.language-switcher a{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:28px;padding:0 7px;border:1px solid #d7dce3;border-radius:999px;color:inherit;text-decoration:none;font-size:12px;font-weight:700}.language-switcher a.active{background:#b4864f;border-color:#b4864f;color:#fff}@media(max-width:991px){.language-switcher{margin:8px 0}}


/* BUILD81.45.6.6.1 — Sticky changes position only; normal Header CSS remains the visual baseline. */
.ph-site-header.ph-site-header--sticky { position: sticky; top: 0; z-index: 1000; }
.ph-public-topbar.ph-public-topbar--sticky { position: sticky; top: 0; z-index: 1010; }
body.ph-topbar-sticky-enabled .ph-site-header.ph-site-header--sticky { top: 44px; }
body.ph-admin-toolbar-active .ph-public-topbar.ph-public-topbar--sticky { top: var(--ph-admin-toolbar-height,48px); }
body.ph-admin-toolbar-active:not(.ph-topbar-sticky-enabled) .ph-site-header.ph-site-header--sticky { top: var(--ph-admin-toolbar-height,48px); }
body.ph-admin-toolbar-active.ph-topbar-sticky-enabled .ph-site-header.ph-site-header--sticky { top: calc(var(--ph-admin-toolbar-height,48px) + 44px); }
