/* =========================================================================
   Header custom styles — September (HASA) theme
   Layout: top bar (hotline | logo | search) + menu bar (navy) with red active.
   Colours are driven by Theme Options:
     --color-1st = Primary color   (Màu chính → RED, used for active/hover & accents)
     --color-2nd = Secondary color (Màu phụ   → NAVY, used for the menu bar)
   Fallbacks below match the TINPHAT brand (red #e2231a / navy #1b3c8e).
   CSS-only override, loaded after style.css.
   ========================================================================= */

/* ---------- GLOBAL FONT ---------- */
:root {
    --primary-font: 'Arial', Arial, Verdana, sans-serif;
    --color-text: #333;
}

body,
h1, h2, h3, h4, h5, h6,
button, input, select, textarea,
.ck-content {
    font-family: 'Arial', Arial, Verdana, sans-serif;
}

/* ---------- TOP BAR ---------- */
.header .header-main {
    background-color: #ffffff;
    padding: 0;
    border-bottom: 1px solid #ececec;
}

.header .header-main__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

/* Hotline (left) — uses primary (red) */
.header-hotline {
    justify-self: start;
}

.header-hotline__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-hotline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    color: var(--color-1st, #e2231a);
}

.header-hotline__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.header-hotline__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--color-1st, #e2231a);
    text-transform: uppercase;
}

.header-hotline__number {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-1st, #e2231a);
}

/* Logo (center) */
.header-logo {
    justify-self: center;
}

.header-logo .logo img {
    max-height: 95px;
    width: auto;
}

.header-logo__text {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-2nd, #1b3c8e);
}

/* Search (right) — primary (red) accents */
.header-search {
    justify-self: end;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.header-search__form {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    border: 1px solid var(--color-1st, #e2231a);
    border-radius: 4px;
    overflow: hidden;
}

.header-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
}

.header-search__input::placeholder {
    color: #9aa0a6;
}

.header-search__btn {
    flex: 0 0 auto;
    border: 0;
    width: 48px;
    background-color: var(--color-1st, #e2231a);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.header-search__btn:hover {
    background-color: color-mix(in srgb, var(--color-1st, #e2231a) 85%, #000);
}

.header-search__btn .feather {
    font-size: 18px;
}

/* ---------- MENU BAR (navy = secondary) ---------- */
.header .navigation {
    background-color: var(--color-2nd, #1b3c8e);
}

/* Ghi đè min-height: 80px của theme gốc (style.css) -> thanh menu PC = 50px */
.header .navigation,
.header .navigation > .container {
    min-height: 50px;
}

.header .navigation > .container {
    justify-content: flex-start;
    align-items: stretch; /* menu cao full bar -> ô đỏ active sát mép trên/dưới, không hở navy */
    height: 50px; /* chiều cao thanh menu trên PC */
}

/* Let the menu take the full container width so items can spread on one line. */
.header .navigation .navigation__center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

/* One-line menu: flex row, never wrap, spread evenly across the bar.
   Only the <ul> is a flexbox — <li> stays as-is so the dropdown caret (▾)
   and sub-menus keep the theme's original positioning. */
.navigation .menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
}

/* <li> stretches to the full bar height so the active/hover block is flush
   (sát) with the top and bottom of the navy bar. The dropdown sub-menu is
   position:absolute (out of flow) so it is unaffected. */
.navigation .menu > li {
    display: flex;
    align-items: stretch;
    padding-right: 0;
}

.navigation .menu > li > a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: normal;
    font-family: Roboto;
    line-height: 1.2;
    color: #ffffff;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Keep the dropdown caret vertically centred (don't let it stretch to the top). */
.navigation .menu > li > .sub-toggle-desktop {
    align-self: center;
}

/* Active / hover = primary (red) */
.navigation .menu > li > a:hover,
.navigation .menu > li.current-menu-item > a {
    background-color: var(--color-1st, #e2231a);
    color: #ffffff;
}

/* Neutralise base-theme leftovers (underline + active left-border) */
.navigation .menu > li > a::after { display: none; }
.navigation .menu > li.current-menu-item {
    border-left: none;
    padding-left: 0;
}

/* Dropdown caret colour on the navy bar */
.navigation .menu > li .sub-toggle-desktop {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- DROPDOWN SUB-MENUS ---------- */
.navigation .menu .sub-menu {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
    border-top: 3px solid var(--color-1st, #e2231a);
    border-radius: 0 0 4px 4px;
    padding: 6px 0;
    background-color: #ffffff;
}

.navigation .menu .sub-menu > li > a {
    padding: 9px 22px;
    font-size: 14px;
    text-transform: none;
    color: var(--color-heading, #1d1d1d);
}

.navigation .menu .sub-menu > li > a:hover {
    color: var(--color-1st, #e2231a);
    background-color: color-mix(in srgb, var(--color-1st, #e2231a) 8%, #fff);
}

/* ---------- STICKY ---------- */
.header.header--sticky > .navigation {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    background-color: var(--color-2nd, #1b3c8e);
    min-height: 50px; /* đè min-height:60px của theme khi sticky -> ô đỏ sát đáy */
}

.header.header--sticky > .navigation > .container {
    height: 50px;
    align-items: stretch;
}

/* ---------- MOBILE HEADER ---------- */
.header--mobile .navigation--mobile {
    border-bottom: none;
}

.header--mobile .navigation__center .logo img {
    max-height: fit-content;
    width: auto;
    padding: 0;
}

/* Ô tìm kiếm dưới logo (mobile) */
.header--mobile .mobile-search {
    padding: 8px 15px 12px;
    background: #ffffff;
}

.header--mobile .mobile-search .header-search__form {
    max-width: 100%;
}

/* Ô search mobile chỉ hiện < 1200px (ẩn ở PC) */
@media (min-width: 1200px) {
    .header--mobile .mobile-search {
        display: none;
    }
}

/* Nút hamburger mobile: chữ đỏ, không nền tròn */
.header--mobile .navigation--mobile .header__actions a.panel-trigger,
.header--mobile .navigation--mobile .header__actions a.panel-trigger:hover {
    background: transparent;
    color: var(--color-1st, #e2231a);
    width: auto;
    height: auto;
    border-radius: 0;
}

.header--mobile .navigation--mobile .header__actions a.panel-trigger i {
    font-size: 30px;
}

/* ---------- FLOATING CONTACT BUTTONS (footer): Zalo + hotline HN/HCM ---------- */
#zalo-call {
    position: fixed;
    bottom: 96px;
    left: 30px;
    z-index: 999;
}

#zalo-call img {
    width: 60px;
}

#hotphone {
    position: fixed;
    color: #fff;
    font-size: 20px;
    text-align: left;
    bottom: 3px;
    left: 3px;
    font-weight: 600;
    z-index: 9999;
    border-radius: 6px;
}

#hotphone a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-top: 7px;
    background: #ea281b;
    padding: 6px 20px;
    font-weight: 600;
    border-radius: 6px;
}

@media (max-width: 767px) {
    #hotphone { font-size: 15px; }
    #zalo-call img { width: 48px; }
}

/* ============================ FOOTER (epoxy) ============================ */
.footer.footer--epoxy {
    background-color: var(--color-2nd, #1b3c8e);
    color: #ffffff;
    margin-top: 0;
    padding: 0;
    font-size: 14px;
}

/* Force all footer text to white (override base theme's dark <p> colour). */
.footer.footer--epoxy,
.footer.footer--epoxy p,
.footer.footer--epoxy li,
.footer.footer--epoxy span,
.footer.footer--epoxy h3,
.footer.footer--epoxy h4,
.footer.footer--epoxy a,
.footer.footer--epoxy strong,
.footer.footer--epoxy .footer__about,
.footer.footer--epoxy .footer__company,
.footer.footer--epoxy .footer__office,
.footer.footer--epoxy .widget,
.footer.footer--epoxy .widget__content,
.footer.footer--epoxy .widget__content * {
    color: #ffffff;
}

.footer--epoxy a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer--epoxy a:hover {
    color: #ffffff;
    opacity: 0.75;
}

.footer--epoxy .footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1.35fr 1fr 1.1fr;
    gap: 36px;
    padding: 44px 0 36px;
}

.footer--epoxy .footer__title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 16px;
    line-height: 1.3;
}

/* Brand column */
.footer--epoxy .footer__logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer--epoxy .footer__logo img {
    max-height: 96px;
    width: auto;
}

.footer--epoxy .footer__about p {
    margin-bottom: 12px;
    line-height: 1.65;
}

.footer--epoxy .footer__badge img {
    max-width: 190px;
    height: auto;
    margin-top: 14px;
    border-radius: 4px;
}

/* Lists & text blocks */
.footer--epoxy .footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer--epoxy .footer__list li {
    padding: 5px 0;
    line-height: 1.5;
}

.footer--epoxy .footer__divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 22px 0;
}

.footer--epoxy .footer__company p,
.footer--epoxy .footer__office p {
    margin-bottom: 7px;
    line-height: 1.55;
}

.footer--epoxy .footer__office h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 14px 0 7px;
}

.footer--epoxy .footer__office:first-of-type h4 {
    margin-top: 0;
}

/* Footer widget area (column 3 — managed via admin widgets) */
.footer--epoxy .footer__col--widgets .widget--footer {
    margin-bottom: 24px;
}

.footer--epoxy .widget--footer .widget__title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.footer--epoxy .widget__links,
.footer--epoxy .widget__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer--epoxy .widget__links li,
.footer--epoxy .widget__content li {
    padding: 5px 0;
    line-height: 1.5;
}

/* Red bottom bar */
.footer--epoxy .footer__bottom {
    background-color: var(--color-1st, #e2231a);
}

.footer--epoxy .footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.footer--epoxy .footer__bottom-inner span { color: #ffffff; }

@media (max-width: 991px) {
    .footer--epoxy .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 575px) {
    .footer--epoxy .footer__grid { grid-template-columns: 1fr; }
    .footer--epoxy .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ============================ IMAGE BOX shortcode ============================ */

.ps-image-box__head {
    text-align: center;
    margin-bottom: 32px;
}

.ps-image-box__heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-2nd, #1b3c8e);
    margin: 0 0 8px;
}

.ps-image-box__subheading {
    color: #666;
    margin: 0;
}

.ps-image-box__item {
    text-align: center;
    padding: 16px 10px;
}

.ps-image-box__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ps-image-box__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.ps-image-box--circle .ps-image-box__icon {
    background-color: var(--color-1st, #e2231a);
}

.ps-image-box--circle .ps-image-box__icon img {
    max-width: 46px;
    max-height: 46px;
    width: auto;
    height: auto;
}

.ps-image-box--plain .ps-image-box__icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
}

.ps-image-box--plain .ps-image-box__icon img {
    max-width: 86px;
    max-height: 86px;
}

.ps-image-box__title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-2nd, #1b3c8e);
    margin: 0;
}

.ps-image-box__desc {
    color: #666;
    margin: 8px 0 0;
    text-transform: none;
    font-weight: 400;
}

.ps-image-box__link:hover .ps-image-box__title {
    color: var(--color-1st, #e2231a);
}

@media (max-width: 575px) {
    .ps-image-box__item { padding: 10px 4px; }
    .ps-image-box__icon { width: 58px; height: 58px; margin-bottom: 10px; }
    .ps-image-box--circle .ps-image-box__icon img { max-width: 30px; max-height: 30px; }
    .ps-image-box--plain .ps-image-box__icon img { max-width: 58px; max-height: 58px; }
    .ps-image-box__title { font-size: 12px; }
}

/* ============================ NEWS FEATURED shortcode ============================ */
.section--news-featured {
    padding: 15px 0;
}

.nf__head {
    text-align: center;
    margin-bottom: 30px;
}

.nf__heading {
    font-size: 26px;
    font-weight: normal;
    color: #414143;
    margin: 0 0 12px;
}

.nf__divider {
    display: inline-block;
    width: 148px;
    height: 15px;
    background: url('../img/e.png') no-repeat center;
}

.nf__divider::after {
    content: none;
}

.nf__sub {
    color: #666;
    margin-top: 12px;
}

.nf-card__thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f2f2f2;
}

.nf-card__thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.nf-card__thumb:hover img {
    transform: scale(1.04);
}

/* Chiều cao ảnh giống site cũ: ảnh lớn 360px, ảnh nhỏ 150px */
.nf-card--big .nf-card__thumb img {
    height: 360px;
    object-fit: cover;
}

.nf-card--small .nf-card__thumb img {
    height: 150px;
    object-fit: cover;
}

/* play button overlay */
.nf-card__thumb.has-play::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    transition: background 0.2s ease;
}

.nf-card__thumb.has-play::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: 3px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #ffffff;
}

.nf-card__thumb.has-play:hover::after {
    background: var(--color-1st, #e2231a);
}

.nf-card__title {
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.nf-card__title a {
    color: #4f4f4f;
    font-weight: 700;
    text-decoration: none;
}

.nf-card__title a:hover {
    color: var(--color-1st, #e2231a);
}

.nf-card--small {
    margin-bottom: 22px;
}

.nf-card__title--small {
    margin-top: 10px;
    font-size: 14px;
}

/* ============================ NEWS ROW shortcode (ribbon title) ============================ */
.section--news-row {
    padding: 10px 0;
}

/* Bỏ padding-top 60px của .section--homepage ở PC (style.css @media min-width:1200px) */
@media screen and (min-width: 1200px) {
    .section--homepage {
        padding-top: 0;
    }
}

/* Title bar = thanh viền chấm + ribbon đỏ chồng lên góc trái (giống #product-list-category) */
.section--news-row .nr__head {
    position: relative;
    height: 40px;
    margin-bottom: 22px;
    border: 1px dotted #d3d3d3;
}

.section--news-row .nr__label {
    position: absolute;
    left: 0;
    top: -1px;
    height: 40px;
    line-height: 40px;
    padding: 0 26px;
    background: #ef4136 url('../img/n.gif') no-repeat left top;
    color: #ffffff;
    font-size: 18px;
    font-weight: normal;
    text-transform: none;
}

.section--news-row .nr__viewall {
    position: absolute;
    right: 12px;
    top: 0;
    line-height: 40px;
    color: #333333;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.section--news-row .nr__viewall:hover {
    color: #ed1b24;
    text-decoration: underline;
}

.section--news-row .nr__col {
    margin-bottom: 16px;
}

/* Card = ảnh viền + padding + đổ bóng đáy (giống .item-product) */
.nr-card__thumb {
    display: block;
}

.nr-card__thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 1px solid #cbcbcb;
    padding: 3px;
    background: #ffffff;
    box-shadow: 0 8px 6px -6px #000000;
    transition: box-shadow 0.3s ease;
}

.nr-card__thumb:hover img {
    box-shadow: 0 8px 6px -6px #736565;
}

.nr-card__title {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    height: 40px;
    overflow: hidden;
}

.nr-card__title a {
    color: #4f4f4f;
    text-decoration: none;
    font-weight: bold;
}

.nr-card__title a:hover {
    color: #ed1b24;
}

/* ===== Tiêu đề khối sản phẩm (trending-products) giống .title-section-product-sale site cũ ===== */
.section--trending-products .section__header {
    position: relative;
    height: 40px;
    border: 1px dotted #d3d3d3;
    background: none;
    padding: 0;
    margin-bottom: 22px;
}

.section--trending-products .section__header h3 {
    position: absolute;
    left: 0;
    top: -1px;
    height: 40px;
    line-height: 40px;
    margin: 0;
    padding: 0 26px;
    background: #ef4136 url('../img/n.gif') no-repeat left top;
    color: #ffffff;
    font-size: 18px;
    font-weight: normal;
    text-transform: none;
    text-align: left;
}

.section--trending-products .section__viewall {
    position: absolute;
    right: 12px;
    top: 0;
    line-height: 40px;
    color: #333333;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.section--trending-products .section__viewall:hover {
    color: #ed1b24;
    text-decoration: underline;
}

/* ============================ NEWS LIST shortcode (thumb + title list) ============================ */
.news-list {
    margin-bottom: 28px;
}

.news-list__title {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-2nd, #1b3c8e);
    border-bottom: 1px solid #e3e3e3;
}

.news-list__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 70px;
    height: 3px;
    background: var(--color-1st, #e2231a);
}

.nlist-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.nlist-item:first-child {
    padding-top: 0;
}

.nlist-item:last-child {
    border-bottom: 0;
}

.nlist-item__thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 78px;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

.nlist-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nlist-item__thumb:hover img {
    transform: scale(1.06);
}

.nlist-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.nlist-item__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-2nd, #1b3c8e);
    text-decoration: none;
}

.nlist-item__title:hover {
    color: var(--color-1st, #e2231a);
}

.nlist-item__excerpt {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #777;
}

.custom-html-block {
    margin-bottom: 28px;
}

/* ============================ PROJECT detail page ============================ */
.project-detail {
    padding: 16px 0 44px;
}

.project-top {
    margin-bottom: 36px;
}

/* Gallery */
.project-gallery__main {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.project-gallery__main img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.project-gallery__thumbs {
    margin-top: 10px;
    position: relative;
}

/* Trước khi Owl init: xếp 1 hàng (tránh nhảy dọc) */
.project-gallery__thumbs:not(.owl-loaded) {
    display: flex;
    gap: 10px;
    overflow: hidden;
}

.project-gallery__thumbs:not(.owl-loaded) .project-gallery__thumb {
    flex: 0 0 calc((100% - 30px) / 4);
    max-width: calc((100% - 30px) / 4);
}

.project-gallery__thumb {
    display: block;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.project-gallery__thumb img {
    width: 100%;
    height: 66px;
    object-fit: cover;
    display: block;
}

.project-gallery__thumb.active {
    border-color: var(--color-1st, #e2231a);
}

/* Nút điều hướng slider thumbnail */
.project-gallery__thumbs .owl-nav button.owl-prev,
.project-gallery__thumbs .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-gallery__thumbs .owl-nav button.owl-prev { left: -8px; }
.project-gallery__thumbs .owl-nav button.owl-next { right: -8px; }
.project-gallery__thumbs .owl-nav button:hover { background: var(--color-1st, #e2231a) !important; }

/* Info (right of gallery) */
.project-info__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-2nd, #1b3c8e);
    margin: 0 0 16px;
    line-height: 1.3;
}

.project-info__excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-info__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-proj {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.btn-proj:hover {
    color: #fff;
    opacity: 0.9;
}

.btn-proj--phone {
    background-color: #6b9e3f;
}

.btn-proj--contact {
    background-color: var(--color-1st, #e2231a);
}

/* Bottom: content + sidebar */
.project-tab {
    display: inline-block;
    background: var(--color-1st, #e2231a);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 26px;
    border-radius: 4px 4px 0 0;
}

.project-main {
    border-top: 2px solid var(--color-1st, #e2231a);
    padding-top: 22px;
    margin-top: -2px;
}

.project-main .ck-content {
    line-height: 1.75;
}

.project-main .ck-content img {
    max-width: 100%;
    height: auto;
}

.project-tags {
    margin-top: 18px;
}

.project-tags a {
    color: var(--color-1st, #e2231a);
}

@media (max-width: 575px) {
    .project-gallery__thumb {
        flex-basis: calc((100% - 20px) / 3);
        max-width: calc((100% - 20px) / 3);
    }
}

/* ============================ PARTNERS shortcode (logo strip) ============================ */
.partners {
    padding: 36px 0;
}

.partners__title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-2nd, #1b3c8e);
    margin: 0 0 24px;
}

.partners__strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.partners__strip--bordered {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 10px 0;
}

.partners__item {
    flex: 0 0 calc(100% / var(--partners-per-row, 6));
    max-width: calc(100% / var(--partners-per-row, 6));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
}

.partners__item img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.partners__item a:hover img {
    transform: scale(1.06);
}

@media (max-width: 991px) {
    .partners__item {
        flex-basis: 25%;
        max-width: 25%;
    }
}

@media (max-width: 575px) {
    .partners__item {
        flex-basis: 33.333%;
        max-width: 33.333%;
    }
}

/* ============================ Blog category description (content) ============================ */
.category-content {
    margin: 24px 0 8px;
}

.category-content__inner {
    line-height: 1.7;
}

.category-content__inner img {
    max-width: 100%;
    height: auto;
}

.category-content__inner p {
    font-size: 16px;
}

.category-content__inner h1,
.category-content__inner h2,
.category-content__inner h3 {
    color: var(--color-2nd, #1b3c8e);
    margin-top: 1rem;
}

/* ============================ BLOG layout with left sidebar ============================ */
.blog-page {
    padding: 24px 0 44px;
}

/* Page title bar (e.g. "Tin Tức") */
.blog-page .section--blog > .section__header {
    background: #f3f4f6;
    border-left: 4px solid var(--color-1st, #e2231a);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.blog-page .section--blog > .section__header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
}

/* breadcrumb sits above the title in the main column */
.blog-page__main .breadcrumb,
.blog-page__main nav[aria-label="breadcrumb"] {
    margin-bottom: 14px;
}

/* ---- Sidebar widgets ---- */
.blog-sidebar .blog-widget {
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    margin-bottom: 26px;
    overflow: hidden;
    background: #fff;
}

.blog-sidebar .blog-widget__title {
    background: var(--color-1st, #e2231a);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    padding: 12px 16px;
}

/* Categories list */
.blog-sidebar .blog-widget__cats {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.blog-sidebar .blog-widget__cats > li {
    border-bottom: 1px dashed #e6e6e6;
}

.blog-sidebar .blog-widget__cats > li:last-child {
    border-bottom: 0;
}

.blog-sidebar .blog-widget__cats > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.blog-sidebar .blog-widget__cats > li > a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-1st, #e2231a);
    margin-right: 10px;
    flex: 0 0 auto;
}

.blog-sidebar .blog-widget__cats > li > a::after {
    content: "\203A"; /* › */
    color: #bbb;
    font-size: 18px;
    line-height: 1;
    margin-left: auto;
    padding-left: 8px;
}

.blog-sidebar .blog-widget__cats > li > a:hover {
    color: var(--color-1st, #e2231a);
}

/* Recent (Dự án mới) */
.blog-sidebar .blog-widget__recent {
    list-style: none;
    margin: 0;
    padding: 12px 16px;
}

.blog-sidebar .recent-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.blog-sidebar .recent-item:first-child {
    padding-top: 0;
}

.blog-sidebar .recent-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.blog-sidebar .recent-item__thumb {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.blog-sidebar .recent-item__thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-sidebar .recent-item__thumb:hover img {
    transform: scale(1.05);
}

.blog-sidebar .recent-item__title {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: #333;
    text-decoration: none;
    text-align: center;
}

.blog-sidebar .recent-item__title:hover {
    color: var(--color-1st, #e2231a);
}

/* ============================ Product price color ============================ */
.product .product__price {
    color: #ef4136;
}

/* giá ở trang chi tiết sản phẩm (giống lamia) */
.product--detail .product__price {
    display: block;
    margin-bottom: 15px;
}

.product--detail .product__price .product__price-row,
.product--detail .product__price .product__price-inner {
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
    flex-wrap: wrap;
    gap: 10px;
}

.product--detail .product__price .product-sale-price-text,
.product--detail .product__price [data-bb-value="product-price"] {
    color: var(--color-1st, #e2231a);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.product--detail .product__price del.product-price-text {
    color: #999;
    font-size: 16px;
    font-weight: 400;
    text-decoration: line-through;
}

.product--detail .product__price .product-discount-badge {
    align-items: center;
    background-color: #fff0f0;
    border: 1px solid #ffd0d0;
    border-radius: 4px;
    color: var(--color-danger, #db1d2c);
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    padding: 3px 8px;
    white-space: nowrap;
}

/* tab title trang chi tiết sản phẩm: căn trái */
.product--detail .tab-list {
    text-align: left;
}

/* bỏ padding-top:100px của .product__content (rule mặc định theme) */
@media (min-width: 992px) {
    .product--detail .product__content {
        padding-top: 0;
    }
}

/* bỏ margin-bottom:36px của .product__shopping */
.product--detail .product__shopping {
    margin-bottom: 0;
}

/* dòng phụ dưới tên sản phẩm: điểm đánh giá | số đánh giá | đã bán (giống lamia) */
.product-detail__sub-info {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.psi-rating-row {
    align-items: center;
    color: #555;
    display: flex;
    flex-flow: row nowrap;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 6px;
}

.psi-rating-row .psi-avg-score {
    color: var(--color-danger, #db1d2c);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.psi-rating-row .rating_wrap {
    align-items: center;
    display: inline-flex;
}

.psi-rating-row .rating_wrap .rating {
    margin-bottom: 0;
}

.psi-rating-row .psi-sep {
    color: #ddd;
    font-size: 14px;
    line-height: 1;
}

.psi-rating-row .psi-review-count {
    color: #555;
}

.psi-rating-row .psi-sold {
    color: #555;
    font-size: 13px;
}

.psi-rating-row .psi-val {
    color: #333;
    font-weight: 600;
}

/* PC: giới hạn chiều cao ảnh chính sản phẩm 500px */
@media (min-width: 1200px) {
    .product--detail .product__gallery.slick-initialized.slick-slider {
        max-height: 500px;
    }

    .product--detail .product__gallery .item,
    .product--detail .product__gallery .item img,
    .product--detail .product__gallery img {
        max-height: 500px;
        object-fit: contain;
    }
}

/* ============================ Đánh giá sản phẩm (giống lamia .product-rating) ============================ */
.product-rating {
    background: #fff;
}

.module-reviews {
    border-top: 1px solid #e5e5e5;
    margin-top: 30px;
}

.module-reviews__title {
    display: block;
    font-size: 22px;
    font-weight: 700;
    padding: 20px 0;
    text-transform: capitalize;
    color: #282828;
}

.reviews-star__statistic {
    border: 1px solid #ddd;
    border-radius: 10px 0 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
}

.reviews-star__child {
    align-items: center;
    color: #222;
    display: flex;
    font-size: 16px;
    justify-content: center;
}

.reviews-star__child__averaged {
    color: #fe9727;
    font-size: 35px;
    font-weight: 700;
    line-height: 46px;
    margin-right: 8px;
}

.reviews-star__child__star {
    flex: 0 0 90px;
    height: 18px;
    max-width: 90px;
    min-width: 90px;
    position: relative;
}

.reviews-star__child__starbackground,
.product-detail__rating__background {
    background-image: url('../img/rating.svg');
    background-position: 0;
    background-repeat: repeat-x;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.reviews-star__child__starbar,
.product-detail__rating__bar {
    background-image: url('../img/rating-filled.svg');
    background-position: 0;
    background-repeat: repeat-x;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 0;
    z-index: 2;
}

.reviews-star__detail {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 18px;
}

.product-rating__comment {
    margin-bottom: 6px;
}

.product-detail__rating-wrapper {
    position: relative;
    flex: 0 0 90px;
    width: 90px;
    height: 18px;
}

.progress-rating {
    height: 13px !important;
}

.text-rating-progress {
    text-align: right;
    width: 22px;
    font-size: 13px;
}

.reviews-star__button-comment {
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 0 10px 10px 0;
    display: flex;
    justify-content: center;
    padding: 16px;
}

.custom-write-review > a.btn--custom,
.custom-write-review > button.btn--custom {
    border: 1px solid #221f20;
    border-radius: 3px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .reviews-star__statistic,
    .reviews-star__detail,
    .reviews-star__button-comment {
        border-radius: 0;
    }
}

/* popup overlay viết đánh giá (giống lamia .review_form_wrapper) — canh giữa bằng flex */
.review_form_wrapper {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.review_form_wrapper.is-open {
    display: flex;
}

.review_form_wrapper .mfp-bg {
    position: fixed;
    inset: 0;
    background: #0b0b0b;
    opacity: 0.7;
    z-index: 1;
}

.review_form_wrapper__level1 {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.review_form_wrapper__level1__level2 {
    width: 100%;
}

.review_form_wrapper__level1__level2__level3 {
    background: #fff;
    border-radius: 6px;
    width: 100%;
}

.product-rating__form.custom-review-form {
    position: relative;
    padding: 0;
}

.product-rating__form .col-12 {
    padding: 0 20px 20px;
}

.product-rating__form .col-12 > h4:first-child {
    border-bottom: 1px solid #e5e5e5;
    margin: 0 -20px 18px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
}

.product-rating__form button[type="submit"] {
    background: #e52727;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-weight: 600;
    padding: 10px 32px;
    min-width: 175px;
}

.product-rating__form button[type="submit"]:hover {
    background: #c81f1f;
    color: #fff;
}

.product-rating__form__close {
    align-items: center;
    background: #000;
    border: 0;
    border-radius: 50%;
    color: #fff;
    display: flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 28px;
    z-index: 10;
}

.product-rating__form__close > svg {
    width: 14px;
    height: 14px;
}

.product-rating__form__close > svg > path {
    fill: currentColor;
}

/* upload ảnh trong form đánh giá (giống lamia) */
.image-upload__viewer {
    display: flex;
    flex-wrap: wrap;
}

.image-viewer__list {
    display: block;
    width: 100%;
}

.image-upload__uploader-container {
    display: inline-block;
}

.image-upload__uploader-container:hover {
    cursor: pointer;
}

.image-upload__uploader-container .image-upload__uploader {
    align-items: center;
    border: 1px dashed #c4c6cf;
    display: flex;
    flex-direction: column;
    height: 70px;
    justify-content: center;
    position: relative;
    width: 70px;
}

.image-upload__uploader-container .image-upload__uploader:hover {
    background: #d9edf7;
}

.image-upload__uploader-container .image-upload__uploader:hover .image-upload__file-input {
    cursor: pointer;
}

.image-upload__icon {
    color: #333;
    font-size: 20px;
    margin-bottom: 8px;
}

.image-upload__uploader > svg {
    width: 22px;
    height: 22px;
    color: #333;
    margin-bottom: 6px;
}

.image-upload__text {
    color: #333;
    font-size: 10px;
    padding: 0 3px;
    text-align: center;
}

.image-upload__file-input {
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.image-viewer__item {
    background-color: #eee;
    border: 1px solid #c4c6cf;
    display: inline-block;
    height: 70px;
    margin-right: 2px;
    margin-top: 5px;
    position: relative;
    text-align: initial;
    transition: all 0.3s cubic-bezier(0.46, 0.03, 0.52, 0.96);
    width: 70px;
}

.image-viewer__item img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.image-viewer__icon-remove {
    cursor: pointer;
    position: absolute;
    right: 2px;
    top: -1px;
    z-index: 1;
}

.image-viewer__icon-remove i {
    background: #848484;
    border-radius: 50%;
    color: #fff;
    display: inline-block;
    font-size: 10px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    width: 20px;
}

.image-upload__viewer .image-viewer__list .loading {
    background-color: rgba(146, 162, 177, 0.52);
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
}

.image-upload__viewer .image-viewer__list .loading .half-circle-spinner {
    height: 30px;
    width: 30px;
}

/* ============================ Blog/Project detail content ============================ */
.post--detail .post__content,
.ck-content.rte-content {
    font-size: 16px;
}

.ck-content p {
    font-size: 16px;
}

.ck-content img {
    max-width: 100%;
    width: auto;
    height: auto;
}

/* ============================ Item tin tức (giống .item-news-cat web cũ) ============================ */
.item-news-cat {
    border: 1px solid #ccc;
    margin-bottom: 20px;
    background: #fff;
}

.item-news-cat:hover {
    border: 1px solid #ffe651;
}

.item-news-cat:hover .f {
    background: #ffde17;
    border-bottom: solid 1px #fdcd15;
}

.item-news-cat img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.item-news-cat strong {
    display: block;
    line-height: 16px;
    height: 32px;
    overflow: hidden;
    text-align: center;
    padding: 0 10px;
    margin-top: 7px;
    margin-bottom: 5px;
    font-size: 14px;
}

.item-news-cat strong a {
    color: #333;
    text-decoration: none;
}

.item-news-cat strong a:hover {
    color: #ef4136;
}

.item-news-cat b {
    display: block;
    width: 40px;
    height: 2px;
    background-color: #ef4136;
    margin: auto;
    overflow: hidden;
}

.item-news-cat span {
    display: block;
    line-height: 16px;
    height: 42px;
    overflow: hidden;
    text-align: justify;
    color: #666;
    padding: 10px 10px 0;
    margin-bottom: 10px;
    font-size: 13px;
}

.item-news-cat .f {
    display: block;
    line-height: 30px;
    border-bottom: solid 1px #cacbcf;
    text-align: center;
    background: #f2f2f2;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* ============================ Item danh mục dự án (giống .item-product web cũ) ============================ */
.item-product {
    margin-top: 10px;
    margin-bottom: 20px;
}

.item-product a img {
    border: solid 1px #cbcbcb;
    padding: 3px;
    background-color: #fff;
    display: block;
    box-shadow: 0 8px 6px -6px black;
    transition: 0.3s;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.item-product a img:hover {
    box-shadow: 0 8px 6px -6px #736565;
}

.item-product strong {
    display: block;
    height: 40px;
    overflow: hidden;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.item-product strong a {
    color: #333;
    text-decoration: none;
}

.item-product strong a:hover {
    color: #ef4136;
}

/* checkout: ẩn logo mặc định (đã có header theme) */
.checkout-page .checkout-logo {
    display: none;
}

/* ============================ Icon giỏ hàng cạnh ô tìm kiếm ============================ */
.header-main__inner {
    align-items: center;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search .header-search__form {
    flex: 1 1 auto;
}

.header-cart {
    flex: 0 0 auto;
}

.navigation--mobile .navigation__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-cart__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-2nd, #1b3c8e);
    font-size: 24px;
}

.header-cart__link:hover {
    color: var(--color-1st, #e2231a);
}

.header-cart__link .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 4px;
    background: var(--color-1st, #e2231a);
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

/* ============================ Breadcrumb giống web cũ (.ulink songohan) ============================ */
.breadcrumb-wrapper {
    background: none;
    padding: 0px;
    margin-bottom: 15px;
}

/* trang full-width: thanh breadcrumb nền xám tràn ngang */
.breadcrumb-wrapper--full {
    background: #f5f5f5;
    border-bottom: 1px solid #ccc;
}

.breadcrumb--custom {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    background-color: #f5f5f5;
    border-left: 2px solid #fa3e3d;
    border-right: 1px solid #e6e6e6;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

.breadcrumb--custom li {
    display: block;
    flex: 0 0 auto;
    background: url('../img/g8.gif') no-repeat left center;
    padding-left: 26px;
    padding-right: 8px;
    height: 30px;
    line-height: 30px;
    font-size: 13px;
    font-weight: bold;
    color: #282828;
    white-space: nowrap;
}

.breadcrumb--custom li:first-child {
    background: none;
    padding-left: 14px;
}

/* mục đầu: icon home thay chữ */
.breadcrumb--custom li.bc-home {
    padding-left: 12px;
    padding-right: 10px;
}

.breadcrumb--custom li.bc-home a {
    display: inline-flex;
    align-items: center;
    height: 30px;
}

.breadcrumb--custom li.bc-home img {
    height: 16px;
    width: auto;
    display: block;
}

/* bỏ dấu "/" mặc định của theme */
.breadcrumb--custom li:before {
    content: none !important;
    margin: 0 !important;
}

.breadcrumb--custom li a {
    color: #333;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.breadcrumb--custom li a:hover {
    color: #fa3e3d;
}

/* mục cuối (trang hiện tại): màu đỏ, cắt gọn nếu quá dài */
.breadcrumb--custom li.active {
    flex: 0 1 auto;
    min-width: 0;
    color: #fa3e3d;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (min-width: 1200px) {
    .section--blog {
        padding: 0px 0 60px;
    }
}

@media screen and (min-width: 1200px) {
    .single-product .page--inner {
        padding: 0px 0 100px;
    }
}
