/* Montserrat — cân bằng: body 400, tiêu đề 600 */
body,
html,
.writeux {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.title-h2, .title-h2 *,
.page-section-title,
.group-title {
    font-weight: 600 !important;
}

strong, b {
    font-weight: 600;
}

/* Homepage grid — products & services fill full width like news section */
.idx-home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
    margin-top: 16px;
}

@media screen and (min-width: 768px) {
    .idx-home-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px 24px;
        margin-top: 24px;
    }
}

.idx-home-grid--services .prizes-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.idx-home-grid--services .prizes-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.idx-home-grid--services a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.idx-group-products-wrapper .group-products-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
}

.idx-group-products-wrapper .group-products-item .icon {
    height: 80px;
    margin: 24px 0 16px;
}

.idx-group-products-wrapper .group-products-item .icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.idx-group-products-wrapper .group-products-item .name {
    border-bottom: none;
    border-top: 1px solid #e8e8e8;
    min-height: 56px;
    font-size: 14px;
    line-height: 1.4;
}

.idx-prizes .prizes-item .name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

@media screen and (min-width: 768px) {
    .idx-home-grid--services {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .idx-prizes .prizes-item .logo {
        flex: 0 0 120px;
        width: 120px;
        height: 80px;
    }
}

/* Design tokens — unified brand palette */
:root {
    --brand-primary: #02519b;
    --brand-primary-light: #009de1;
    --brand-primary-hover: #003d75;
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-light: #e8e8e8;
    --section-gap: 28px;
    --section-gap-lg: 44px;
}

a:hover {
    color: var(--brand-primary);
}

body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ── Header ── */
.header {
    box-shadow: none !important;
}

.header .header-main {
    background-color: #fff;
    box-shadow: none;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

body.has-hero-header .header .header-main {
    background-color: transparent;
}

/* Scroll / menu open → white solid */
body.has-hero-header .header.is-solid .header-main,
body.has-hero-header .header.is-menu-open .header-main {
    background-color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Hover (not scrolled) → subtle glass, NOT solid blue/white */
body.has-hero-header .header.is-hover:not(.is-solid) .header-main {
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

/* Nav — bold */
.header-main-nav > ul > li > a {
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

@media screen and (min-width: 1024px) {
    .header-main-nav > ul > li > a {
        font-size: 14px;
        padding: 22px 0;
    }

    .header-main-nav > ul > li > a:after {
        border-top-color: var(--brand-primary) !important;
    }

    /* Submenu dropdown arrows — visible on desktop */
    .header-main-nav > ul > li.has-submenu {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        color: var(--text-primary);
    }

    .header-main-nav > ul > li.has-submenu > .icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 14px;
        height: 10px;
        margin-left: 3px;
        flex-shrink: 0;
        color: inherit;
        pointer-events: none;
        transition: transform 0.25s ease;
    }

    .header-main-nav > ul > li.has-submenu:hover > .icon {
        transform: rotate(180deg);
    }

    .header-main-nav > ul > li.has-submenu > .icon svg {
        width: 12px;
        height: 7px;
        display: block;
    }
}

@media screen and (max-width: 1023px) {
    .header-main-nav > ul > li > a {
        font-size: 15px;
        font-weight: 600 !important;
        padding: 12px 0 12px 16px;
    }

    .header-main-nav > ul > li > .icon {
        color: var(--brand-primary);
    }
}

/* Language switcher — override app.css white default on children */
.header-main-right .languages-selected {
    align-items: center;
    gap: 6px;
    color: var(--text-primary) !important;
}

.header-main-right .languages-selected > * {
    color: var(--text-primary) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.header-main-right .languages-selected > span:first-child {
    font-weight: 600;
    font-size: 14px;
}

.header-main-right .languages-selected .icon {
    display: flex;
    align-items: center;
    line-height: 0;
    color: inherit !important;
}

.header-main-right .languages-selected .icon svg {
    width: 13px;
    height: 8px;
}

/* Hero header — white text & arrows when transparent/hover-glass */
body.has-hero-header .header:not(.is-solid) .header-main-nav > ul > li,
body.has-hero-header .header:not(.is-solid) .header-main-nav > ul > li > a {
    color: #fff;
}

body.has-hero-header .header:not(.is-solid) .header-main-nav > ul > li > a:after {
    border-top-color: #fff !important;
}

body.has-hero-header .header:not(.is-solid) .header-main-right .languages-selected,
body.has-hero-header .header:not(.is-solid) .header-main-right .languages-selected > * {
    color: #fff !important;
}

body.has-hero-header .header:not(.is-solid) .header-main-right .toggle__line span,
body.has-hero-header .header:not(.is-solid) .header-main-right .toggle__line span:before,
body.has-hero-header .header:not(.is-solid) .header-main-right .toggle__line span:after {
    border-top-color: #fff;
}

/* Scrolled hero / inner pages — dark text, brand arrows */
body.has-hero-header .header.is-solid .header-main-nav > ul > li,
body.has-hero-header .header.is-solid .header-main-nav > ul > li > a,
body:not(.has-hero-header) .header-main-nav > ul > li,
body:not(.has-hero-header) .header-main-nav > ul > li > a {
    color: var(--text-primary);
}

body.has-hero-header .header.is-solid .header-main-nav > ul > li > a:after {
    border-top-color: var(--brand-primary) !important;
}

body.has-hero-header .header.is-solid .header-main-right .languages-selected,
body.has-hero-header .header.is-solid .header-main-right .languages-selected > *,
body:not(.has-hero-header) .header-main-right .languages-selected,
body:not(.has-hero-header) .header-main-right .languages-selected > * {
    color: var(--text-primary) !important;
}

/* Logo block — only at very top, fully transparent */
body.has-hero-header .header:not(.is-solid):not(.is-hover) .header-main__logo {
    background: #fff;
    padding: 6px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 1024px) {
    body.has-hero-header .header:not(.is-solid):not(.is-hover) .header-main__logo {
        padding: 8px 18px;
    }
}

/* Hero layout */
body.has-hero-header main {
    padding-top: 0 !important;
}

body.has-hero-header main > .banner {
    margin-top: calc(var(--hHeader, 72px) * -1);
}

body.has-hero-header .banner {
    z-index: 1;
}

body.has-hero-header .header {
    z-index: 1000;
}

body:not(.has-hero-header) .header .header-main {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Mobile menu open */
body.has-hero-header .header.is-menu-open .header-main-nav > ul > li > a {
    color: var(--text-primary);
}

body.has-hero-header .header.is-menu-open .header-main-right .languages-selected,
body.has-hero-header .header.is-menu-open .header-main-right .languages-selected > * {
    color: var(--text-primary) !important;
}

body.has-hero-header .header.is-menu-open .header-main-right .toggle__line span,
body.has-hero-header .header.is-menu-open .header-main-right .toggle__line span:before,
body.has-hero-header .header.is-menu-open .header-main-right .toggle__line span:after {
    border-top-color: var(--text-primary);
}

/* ── Section & page titles ── */
.title-h2,
.title-h2 *,
.page-section-title {
    font-size: 20px !important;
    font-weight: 600;
    line-height: 1.3 !important;
    color: var(--text-primary) !important;
}

.page-section-title {
    margin-bottom: 14px;
}

.page-section-title--spaced {
    margin-top: 32px;
}

@media screen and (min-width: 768px) {
    .title-h2,
    .title-h2 *,
    .page-section-title {
        font-size: 22px !important;
    }

    .page-section-title--spaced {
        margin-top: 36px;
    }
}

@media screen and (min-width: 1024px) {
    .title-h2,
    .title-h2 *,
    .page-section-title {
        font-size: 24px !important;
    }
}

.group-title:before {
    border-left-color: var(--brand-primary) !important;
}

.group-title {
    min-height: 28px;
    padding-left: 18px;
    margin-bottom: 0;
}

.title-wrapper {
    margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
    .title-wrapper {
        margin-bottom: 10px;
    }
}

/* Card grids — balanced columns on all list pages */
.page-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media screen and (min-width: 768px) {
    .page-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 30px;
    }
}

@media screen and (min-width: 1024px) {
    .page-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.page-card-grid > li {
    width: 100%;
    max-width: 100%;
}

/* News category nav */
.news-list-nav ul > li > a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
}

.news-list-nav ul > li.is-actived > a,
.news-list-nav ul > li > a:hover {
    color: var(--brand-primary) !important;
    font-weight: 600;
}

/* Contact page */
.breadcrumbs {
    padding-top: 10px !important;
    padding-bottom: 4px !important;
}

@media screen and (min-width: 1024px) {
    .breadcrumbs {
        padding-top: 14px !important;
    }
}

#contactPage .contact {
    margin-top: 12px !important;
}

@media screen and (min-width: 768px) {
    #contactPage .contact {
        margin-top: 16px !important;
    }
}

.contact-wrapper-infor {
    padding: 20px 0 !important;
}

@media screen and (min-width: 1024px) {
    .contact-wrapper-infor {
        padding: 24px 0 !important;
    }
}

.contact-wrapper-infor .item-title {
    margin-left: 16px !important;
    margin-right: 16px !important;
    padding-bottom: 10px !important;
}

.contact-wrapper-infor .item-title__icon {
    width: 36px !important;
    height: 36px !important;
    margin-right: 12px !important;
}

.contact-wrapper-infor .item-title__txt {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--text-primary) !important;
}

.contact-wrapper-infor .item-desc {
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.55 !important;
    color: var(--text-secondary);
    margin-left: 16px !important;
    padding-right: 16px !important;
}

.contact-wrapper-infor .item-desc p,
.contact-wrapper-infor .item-desc li {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.contact-wrapper-infor .item:not(:last-child) {
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
}

.contact-wrapper-form {
    margin-top: 20px !important;
    padding: 20px 16px !important;
}

@media screen and (min-width: 1024px) {
    .contact-wrapper-form {
        margin-top: 0 !important;
        margin-left: 24px !important;
        padding: 24px !important;
    }
}

.contact-wrapper-form .form__title {
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--text-primary) !important;
    margin: 0;
}

.contact-wrapper-form .form-desc {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-top: 6px !important;
    color: var(--text-secondary) !important;
}

.contact-wrapper-form .form-desc p {
    font-size: 13px !important;
    margin: 0;
}

.contact-wrapper-form .form-wp {
    margin-top: 14px !important;
}

#contactPage form.form .group-input input:not([type=submit]):not([type=checkbox]):not([type=radio]),
#contactPage form.form .group-input textarea,
#contactPage form.form .group-input select {
    font-size: 15px !important;
    line-height: 1.45 !important;
    padding: 8px 10px !important;
}

#contactPage form.form .group-input .placeholder > p {
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 8px 10px !important;
}

#contactPage form.form .group-submit button,
#contactPage form.form .group-submit button span {
    font-size: 15px !important;
    font-weight: 600 !important;
}

.contact-maps {
    margin-top: 24px !important;
}

@media screen and (min-width: 1024px) {
    .contact-maps {
        margin-top: 32px !important;
    }
}

.contact-wrapper-infor .item-desc a:hover {
    color: var(--brand-primary) !important;
}

/* Product sidebar nav */
.products-wp-nav > ul > li > a {
    font-weight: 600;
    font-size: 15px;
}

.products-wp-nav ul ul > li > a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.products-wp-nav ul ul > li > a:hover {
    color: var(--brand-primary);
}

/* Buttons & link hovers */
.product-item:hover .product-item-content .name,
.product-item:hover .product-item-content .name a,
.news-item:hover .news-item-content .name,
.news-item:hover .news-item-content .name a {
    color: var(--brand-primary) !important;
}

.btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
}

/* Breadcrumbs */
.breadcrumbs-item,
.breadcrumbs-item__link {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
}

.breadcrumbs-item__link:hover {
    color: var(--brand-primary);
    font-weight: 600;
}

.breadcrumbs-item.is-actived {
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer */
.footer-nav-item__name {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.footer-nav-item ul > li > a {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.footer-nav-item ul > li > a:hover {
    color: var(--brand-primary-light) !important;
}

/* Section spacing — unified, no double margins */
.idx-prizes,
.idx-news,
.idx-clients,
.idx-showroom {
    margin-top: 0 !important;
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

.idx-group-products {
    padding-top: var(--section-gap) !important;
    padding-bottom: var(--section-gap) !important;
}

@media screen and (min-width: 1024px) {
    .idx-prizes,
    .idx-news,
    .idx-clients,
    .idx-showroom {
        padding-top: var(--section-gap-lg);
        padding-bottom: var(--section-gap-lg);
    }

    .idx-group-products {
        padding-top: var(--section-gap-lg) !important;
        padding-bottom: var(--section-gap-lg) !important;
    }
}

.idx-group-products-wrapper,
.idx-prizes-wrapper,
.idx-news-wrapper {
    margin-top: 16px;
}

@media screen and (min-width: 768px) {
    .idx-group-products-wrapper,
    .idx-prizes-wrapper,
    .idx-news-wrapper {
        margin-top: 20px;
    }
}

/* ── Product cards ── */
.product-item-content {
    margin-top: 12px;
}

.product-item-content .name,
.product-item-content .name a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

@media screen and (min-width: 768px) {
    .product-item-content .name,
    .product-item-content .name a {
        font-size: 16px;
    }
}

.product-item-content .desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* ── News cards ── */
.news-item-content {
    padding-top: 10px;
}

.news-item-content .time {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.news-item-content .name,
.news-item-content .name a {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 6px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

@media screen and (min-width: 768px) {
    .news-item-content .name,
    .news-item-content .name a {
        font-size: 17px;
    }
}

.news-item-content .desc,
.news-item-content .desc p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ── Services / prizes on homepage ── */
.idx-prizes .prizes-item .name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.idx-group-products-wrapper .group-products-item .name,
.idx-group-products-wrapper .group-products-item .name a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

@media screen and (min-width: 768px) {
    .idx-group-products-wrapper .group-products-item .name,
    .idx-group-products-wrapper .group-products-item .name a {
        font-size: 15px;
    }
}

/* ── Product detail & inner pages ── */
.products-detail__title,
.content__title {
    font-weight: 600;
    line-height: 1.3 !important;
}

.products-detail-infor-content .content__title {
    font-size: 24px;
}

@media screen and (min-width: 768px) {
    .products-detail-infor-content .content__title {
        font-size: 28px;
    }
}

/* Write-up / CMS content */
.writeux h1,
.writeux h2,
.writeux h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    color: var(--text-primary);
}

.writeux h2 { font-size: 1.5rem; }
.writeux h3 { font-size: 1.25rem; }

.writeux p {
    margin-bottom: 1em;
    line-height: 1.7;
    font-weight: 400;
    color: var(--text-secondary);
}

.writeux li {
    font-weight: 400;
    color: var(--text-secondary);
}

/* Inner pages — tighter vertical rhythm */
.idx-projects-wrapper {
    margin-top: 20px !important;
}

.news-list {
    padding-top: 16px !important;
}

@media screen and (min-width: 768px) {
    .news-list {
        padding-top: 24px !important;
    }
}

.page-card-grid {
    gap: 16px;
}

@media screen and (min-width: 768px) {
    .page-card-grid {
        gap: 20px 24px;
    }
}

/* Mobile grid tweaks */
@media screen and (max-width: 767px) {
    .idx-home-grid {
        gap: 12px 10px;
    }

    .idx-group-products-wrapper .group-products-item .icon {
        height: 64px;
        margin: 16px 0 12px;
    }

    .idx-group-products-wrapper .group-products-item .icon img {
        width: 64px;
        height: 64px;
    }

    .idx-group-products-wrapper .group-products-item .name {
        min-height: 48px;
        font-size: 13px;
    }

    .idx-home-grid--services .prizes-item {
        padding: 12px;
    }

    .title-h2,
    .title-h2 * {
        font-size: 18px !important;
    }
}
