/* Modern Styles for Gaohouse Theme */

:root {
    --primary: #28b350;
    /* Green from Gaohouse logo */
    --primary-light: #3cd368;
    --primary-dark: #1e8a3c;
    --secondary: #ed1c24;
    --accent: #ed1c24;
    /* Red for hover/active states */
    --accent-light: #ff474f;
    --accent-dark: #b8151b;
    --dark: #0B1224;
    --muted: rgba(15, 23, 42, 0.68);
    --gray-light: #F8FAFC;
    --white: #FFFFFF;

    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --stroke: rgba(2, 6, 23, 0.08);
    --stroke-strong: rgba(2, 6, 23, 0.12);

    --shadow-soft: 0 18px 60px rgba(2, 6, 23, 0.08);
    --shadow-card: 0 14px 36px rgba(2, 6, 23, 0.10);
    --shadow-float: 0 28px 72px rgba(2, 6, 23, 0.14);

    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--dark);
    background:
        radial-gradient(900px 500px at 10% -5%, rgba(255, 90, 0, 0.18) 0%, rgba(255, 90, 0, 0.0) 60%),
        radial-gradient(900px 500px at 95% 10%, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0.0) 60%),
        radial-gradient(850px 520px at 50% 120%, rgba(16, 185, 129, 0.10) 0%, rgba(16, 185, 129, 0.0) 60%),
        linear-gradient(180deg, #ffffff 0%, var(--gray-light) 45%, #ffffff 100%);
    background-color: var(--gray-light);
}

/* Mirror gaohouse.vn typography contract for body, nav, headings and content. */
html,
body,
button,
input,
select,
textarea,
.nav>li>a,
h1,
h2,
h3,
h4,
h5,
h6,
.heading-font,
.display-font,
.section-title,
.alt-font,
.widget-title,
span.widget-title,
.entry-content,
.entry-content p,
.entry-content li,
.entry-content a,
.entry-content strong,
.entry-content b,
.format-content,
.format-content p,
.format-content li,
.format-content a,
.format-content strong,
.format-content b,
.format-content .wp-block-heading,
.prose,
.prose p,
.prose li,
.prose a,
.prose strong,
.prose b,
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6,
.prose .wp-block-heading {
    font-family: Arial, Helvetica, sans-serif !important;
}

.container-custom {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Better defaults */
img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: rgba(255, 90, 0, 0.22);
}

/* Headings */
.display-font {
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: -0.02em;
}

/* Topbar + Header */
.site-topbar {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}

.site-header {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(2, 6, 23, 0.08);
    transition: background 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.site-header.is-scrolled {
    background: var(--surface-strong);
    border-bottom-color: rgba(2, 6, 23, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.search-pill {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(2, 6, 23, 0.10);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
}

.search-pill:focus-within {
    border-color: rgba(255, 90, 0, 0.55);
    box-shadow: 0 14px 34px rgba(255, 90, 0, 0.14);
}



/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #FF2A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Surfaces */
.surface {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.surface-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(2, 6, 23, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.surface-card:hover {
    box-shadow: var(--shadow-float);
}

/* Navigation */
.main-menu a {
    position: relative;
    font-weight: 700 !important;
    color: #000000 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

@media (min-width: 1200px) {
    .main-menu {
        font-size: 14px !important;
    }
}

/* Remove background from highlight boxes in product summary */
div[class*="bg-[#f8faf5]"],
div[class*="border-[#e0e8d6]"],
.woocommerce-product-details__short-description .bg-white,
.woocommerce-product-details__short-description [class*="bg-"] {
    background-color: transparent !important;
    border: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-shadow: none !important;
}

.main-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-menu>li:hover>a::after,
.main-menu>li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-page-ancestor, .current-menu-parent, .current_page_parent)>a::after,
.main-menu>li>a[aria-current="page"]::after {
    width: 100%;
}

.main-menu>li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-page-ancestor, .current-menu-parent, .current_page_parent)>a,
.main-menu>li>a[aria-current="page"] {
    color: var(--accent);
}

.main-menu>.has-children>.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 14rem;
    min-width: 14rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 50;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-style: solid;
    border-width: 2px 0 0;
}

.main-menu>.has-children:hover>.sub-menu,
.main-menu>.has-children:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
}

.main-menu>.has-children>a .gaohouse-menu-caret {
    transition: transform 0.3s ease;
}

.main-menu>.has-children:hover>a .gaohouse-menu-caret,
.main-menu>.has-children:focus-within>a .gaohouse-menu-caret {
    transform: rotate(180deg);
}

.main-menu .sub-menu>li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-page-ancestor, .current-menu-parent, .current_page_parent)>a,
.main-menu .sub-menu>li>a[aria-current="page"] {
    color: var(--accent);
    background: rgba(237, 28, 36, 0.08);
}

.mobile-nav-container .sub-menu {
    position: static;
    width: auto;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    z-index: auto;
    border-radius: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    border-top: 0;
}

.mobile-nav-container li {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mobile-nav-container li>a {
    position: relative;
    border-radius: 0.875rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-nav-container li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-page-ancestor, .current-menu-parent, .current_page_parent) {
    border-color: rgba(237, 28, 36, 0.22);
}

.mobile-nav-container li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-page-ancestor, .current-menu-parent, .current_page_parent)>a,
.mobile-nav-container li>a[aria-current="page"] {
    color: var(--accent);
    background: rgba(237, 28, 36, 0.08);
}

.block-news .gaohouse-home-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.block-news .container-custom,
.block-news .gaohouse-home-news-shell {
    position: relative;
    z-index: 1;
}

.block-news .gaohouse-home-news-shell {
    width: 100%;
    margin: 0 auto;
}

.block-news .gaohouse-home-news-heading {
    margin-bottom: 1.875rem;
}

.block-news .gaohouse-home-news-title {
    margin: 0;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1.15;
    font-weight: 800;
}

.block-news .gaohouse-home-news-subtitle {
    margin-top: 0.625rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.block-news .gaohouse-home-news-featured-card {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.block-news .gaohouse-home-news-featured-media {
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.block-news .gaohouse-home-news-featured img,
.block-news .gaohouse-home-news-side-thumb img {
    display: block;
}

.block-news .gaohouse-home-news-featured>.mt-4 {
    margin-top: 0.75rem;
}

.block-news .gaohouse-home-news-featured-title {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 800;
}

.block-news .gaohouse-home-news-featured-date {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.block-news .gaohouse-home-news-featured-excerpt {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.75;
    opacity: 0.95;
}

.block-news .gaohouse-home-news-featured p,
.block-news .gaohouse-home-news-side-copy h3 {
    color: #fff;
}

.block-news .gaohouse-home-news-side {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.block-news .gaohouse-home-news-side-card {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    padding: 0;
}

.block-news .gaohouse-home-news-side-thumb {
    width: 27%;
    min-width: 132px;
    flex: 0 0 27%;
}

.block-news .gaohouse-home-news-side-copy {
    justify-content: flex-start;
    padding-top: 0.15rem;
}

.block-news .gaohouse-home-news-side-copy h3 {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 800;
}

.block-news .gaohouse-home-news-side-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .gaohouse-archive-benefits {
        gap: 1rem;
    }

    .gaohouse-archive-benefit-card {
        width: auto;
        padding: 1rem 0.875rem;
    }

    .gaohouse-archive-benefit-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0.75rem;
        font-size: 1.125rem;
    }

    .gaohouse-archive-benefit-title {
        font-size: 0.83rem;
    }

    .gaohouse-archive-benefit-desc {
        font-size: 0.82rem;
    }

    .block-news .gaohouse-home-news-layout {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        align-items: start;
        gap: 0.5rem;
    }

    .block-news .gaohouse-home-news-featured {
        display: block;
        padding-right: 0.25rem;
    }

    .block-news .gaohouse-home-news-featured-card {
        max-width: none;
        margin: 0;
        height: auto;
    }

    .block-news .gaohouse-home-news-side {
        display: flex;
        gap: 1.1rem;
        padding-left: 0.25rem;
    }

    .block-news .gaohouse-home-news-side-card {
        min-height: 0;
        height: auto;
        padding: 0;
    }

    .block-news .gaohouse-home-news-side-thumb {
        width: 27%;
        flex-basis: 27%;
        min-width: 136px;
    }

    .block-news .gaohouse-home-news-featured-title {
        font-size: 0.98rem;
    }

    .block-news .gaohouse-home-news-featured-excerpt {
        max-width: 95%;
    }

    .block-news .gaohouse-home-news-side-copy h3 {
        font-size: 0.92rem;
    }
}

@media (max-width: 1023px) {

    .gaohouse-archive-sidebar,
    .gaohouse-archive-main {
        max-width: 100%;
    }

    .block-news .gaohouse-home-news-title {
        font-size: 1.9rem;
    }

    .block-news .gaohouse-home-news-featured-title {
        font-size: 1.3rem;
    }

    .block-news .gaohouse-home-news-side-thumb {
        width: 140px;
        min-width: 140px;
        flex-basis: 140px;
    }

    .block-news .gaohouse-home-news-side-copy h3 {
        font-size: 0.98rem;
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-card {
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border: none;
    overflow: hidden;
    padding: 0 !important;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.product-card .product-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

/* Remove inner image container border & gap */
.product-card>div:first-child {
    border: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Product card info padding */
.product-card .variant-btn,
.product-card h3,
.product-card>.flex {
    padding-left: 8px;
    padding-right: 8px;
}

.product-card>div:not(:first-child) {
    padding-left: 10px;
    padding-right: 10px;
}

.product-card>div:last-child {
    padding-bottom: 10px;
}

.gaohouse-archive-benefits {
    gap: 0.75rem;
}

.gaohouse-archive-benefit-card {
    width: 150px;
    padding: 0.875rem 0.75rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.gaohouse-archive-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.10);
}

.gaohouse-archive-benefit-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.625rem;
    font-size: 1rem;
}

.gaohouse-archive-benefit-title {
    margin-bottom: 0;
    font-size: 0.62rem;
    line-height: 1.35;
}

.gaohouse-archive-benefit-desc {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    line-height: 1.4;
}

.gaohouse-archive-sidebar {
    flex: 0 0 21%;
    max-width: 21%;
}

.gaohouse-archive-main {
    flex: 1 1 auto;
}

/* Mobile menu */
#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    z-index: 2147483645 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.mobile-menu-active #mobile-menu-overlay {
    opacity: 1;
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 22rem);
    max-width: 22rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    isolation: isolate;
    z-index: 2147483646 !important;
    display: none;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 20px 0 25px -5px rgba(0, 0, 0, 0.1);
}

#mobile-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 0;
}

#mobile-menu>* {
    position: relative;
    z-index: 1;
}

#mobile-menu.menu-open {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-nav-container .menu-item-mobile-parent>a {
    padding-right: 3rem;
    transition: color 0.2s ease;
}

.mobile-nav-container .menu-item-mobile-parent.is-open>a {
    color: var(--accent);
}

.mobile-submenu-toggle {
    border-left: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.75rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-submenu-toggle:hover,
.mobile-submenu-toggle:focus-visible,
.mobile-nav-container li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-page-ancestor, .current-menu-parent, .current_page_parent)>.mobile-submenu-toggle,
.mobile-nav-container .menu-item-mobile-parent.is-open>.mobile-submenu-toggle {
    color: var(--accent);
    background: rgba(237, 28, 36, 0.08);
    outline: none;
}

.mobile-nav-container .menu-item-mobile-parent.is-open>.sub-menu {
    padding-top: 0.35rem;
}

/* Tabs */
.tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Marquee */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partners-marquee-track {
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
    gap: 4rem;
}

.partners-marquee-wrapper:hover .partners-marquee-track {
    animation-play-state: paused;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.partner-logo-item,
.partner-logo-card {
    transition: all 0.4s ease;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    min-height: 7.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
}

.partner-swiper {
    overflow: hidden;
}

.partner-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.partner-logo-slide {
    height: auto;
    display: flex;
}

.partner-logo-slide .partner-logo-card {
    width: 100%;
}

.partner-logo-item:hover,
.partner-logo-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 90, 0, 0.3);
}

.partner-logo-image {
    max-width: 75%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transition: transform 0.3s ease;
}

.partner-logo-card:hover .partner-logo-image,
.partner-logo-card:focus-within .partner-logo-image {
    opacity: 1;
    transform: scale(1.03);
}

@media (min-width: 640px) {
    .partner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .partner-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #FF2A00 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 90, 0, 0.4);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(2, 6, 23, 0.12);
    color: rgba(15, 23, 42, 0.92);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.10);
}

.btn-soft:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 90, 0, 0.30);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.14);
}

/* Badges & Tags */
.badge {
    background: rgba(255, 90, 0, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Glowing Elements */
.glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 90, 0, 0.4);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Section titles */
.section-kicker {
    color: rgba(255, 90, 0, 0.95);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.section-title {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Lock product summary typography to Arial to avoid inherited legacy fonts. */
.single-product .gaohouse-product-summary,
.single-product .gaohouse-product-summary h1,
.single-product .gaohouse-product-summary h2,
.single-product .gaohouse-product-summary h3,
.single-product .gaohouse-product-summary p,
.single-product .gaohouse-product-summary span,
.single-product .gaohouse-product-summary a,
.single-product .gaohouse-product-summary button {
    font-family: Arial, Helvetica, sans-serif !important;
}

/*
 * Arial usually ships with 400/700 only. Cap synthetic 800/900 weights so
 * headings and prices render cleanly instead of using faux-bold outlines.
 */
h1,
h2,
h3,
h4,
h5,
h6,
.heading-font,
.display-font,
.section-title,
.section-kicker,
[class*="font-extrabold"],
[class*="font-black"] {
    font-weight: 700 !important;
}

.gaohouse-main-heading-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.gaohouse-main-heading-line {
    position: relative;
    flex: 1 1 0;
    max-width: 190px;
    height: 1px;
    background: #b5b5b5;
}

.gaohouse-main-heading-line::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78px;
    height: 5px;
    border-top: 1px solid #2f2f2f;
    border-bottom: 1px solid #2f2f2f;
    transform: translate(-50%, -50%);
}

.gaohouse-main-heading-wrap>.gaohouse-main-heading-line:first-child::after {
    left: auto;
    right: 2px;
    transform: translateY(-50%);
}

.gaohouse-main-heading-wrap>.gaohouse-main-heading-line:last-child::after {
    left: 2px;
    transform: translateY(-50%);
}

.gaohouse-main-heading-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    padding: 10px 28px;
    background: #fff;
    color: #2f2f2f;
    border: 1px solid #7f7f7f;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bg-white .gaohouse-main-heading-ribbon::before,
.bg-white .gaohouse-main-heading-ribbon::after {
    background: #ffffff;
}

.gaohouse-main-heading-ribbon::before,
.gaohouse-main-heading-ribbon::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background: #f8fafc;
    z-index: 2;
    pointer-events: none;
}

.gaohouse-main-heading-ribbon::before {
    left: -1px;
    border-top: 1px solid #7f7f7f;
    border-right: 1px solid #7f7f7f;
    transform: translate(-47%, -52%) rotate(45deg);
}

.gaohouse-main-heading-ribbon::after {
    right: -1px;
    border-left: 1px solid #7f7f7f;
    border-bottom: 1px solid #7f7f7f;
    transform: translate(47%, -52%) rotate(45deg);
}

@media (max-width: 767px) {
    .gaohouse-main-heading-wrap {
        gap: 0;
    }

    .gaohouse-main-heading-line {
        max-width: 72px;
    }

    .gaohouse-main-heading-line::after {
        width: 34px;
    }

    .gaohouse-main-heading-wrap>.gaohouse-main-heading-line:first-child::after {
        right: 1px;
    }

    .gaohouse-main-heading-wrap>.gaohouse-main-heading-line:last-child::after {
        left: 1px;
    }

    .gaohouse-main-heading-ribbon {
        padding: 6px 16px;
        font-size: 15px;
    }

    .gaohouse-main-heading-ribbon::before,
    .gaohouse-main-heading-ribbon::after {
        width: 20px;
        height: 20px;
    }
}

/*
 * Product/article content often uses bold paragraphs as visual headings.
 * Lock them to the same Arial stack and real bold weight to avoid faux-bold
 * rendering that makes Vietnamese diacritics look broken.
 */
.entry-content .wp-block-heading,
.entry-content strong,
.entry-content b,
.format-content .wp-block-heading,
.format-content strong,
.format-content b,
.prose .wp-block-heading,
.prose strong,
.prose b {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
    font-style: normal;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    letter-spacing: normal;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Category Swiper - full bleed images */
.categorySwiper .swiper-slide a {
    display: block;
    border-radius: 0;
}

.categorySwiper .swiper-slide img {
    border-radius: 0;
}

/* Product category archive slider */
.gaohouse-cat-slider {
    position: relative;
}

.gaohouse-cat-slider-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.gaohouse-cat-slider-track {
    display: flex;
    min-width: max-content;
    gap: 12px;
    padding: 0 8px;
}

.gaohouse-cat-slide {
    width: 140px;
    flex: 0 0 140px;
    scroll-snap-align: start;
}

.gaohouse-cat-media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f3f4f6;
}

.gaohouse-cat-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gaohouse-cat-nav {
    position: absolute;
    top: 40%;
    z-index: 10;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.gaohouse-cat-nav-prev {
    left: 4px;
}

.gaohouse-cat-nav-next {
    right: 4px;
}

@media (min-width: 768px) {
    .gaohouse-cat-slider-track {
        gap: 24px;
        padding: 0 16px;
    }

    .gaohouse-cat-slide {
        width: 260px;
        flex-basis: 260px;
    }

    .gaohouse-cat-nav {
        width: 40px;
        height: 40px;
        opacity: 1;
        transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    }

    .gaohouse-cat-nav-prev {
        left: 0;
        transform: translate(-16px, -50%);
    }

    .gaohouse-cat-nav-next {
        right: 0;
        transform: translate(16px, -50%);
    }

    .gaohouse-cat-nav-prev:hover {
        transform: translate(-16px, -50%) scale(1.1);
    }

    .gaohouse-cat-nav-next:hover {
        transform: translate(16px, -50%) scale(1.1);
    }
}

@media (min-width: 1024px) {
    .gaohouse-cat-slide {
        width: 320px;
        flex-basis: 320px;
    }
}

/* Hide scrollbar for mobile horizontal scroll */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.site-footer .gaohouse-footer-widget ul,
.site-footer .gaohouse-footer-widget ol,
.site-footer .gaohouse-footer-widget .menu,
.site-footer .gaohouse-footer-widget .wp-block-page-list,
.site-footer .gaohouse-footer-widget .wp-block-navigation__container {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.site-footer .gaohouse-footer-widget li,
.site-footer .gaohouse-footer-widget .wp-block-navigation-item {
    margin-bottom: 0.75rem;
}

.site-footer .gaohouse-footer-widget li:last-child,
.site-footer .gaohouse-footer-widget .wp-block-navigation-item:last-child {
    margin-bottom: 0;
}

.site-footer .gaohouse-footer-widget a,
.site-footer .gaohouse-footer-widget .wp-block-navigation-item__content {
    align-items: center;
    color: inherit;
    display: flex;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .gaohouse-footer-widget a:hover,
.site-footer .gaohouse-footer-widget .wp-block-navigation-item__content:hover {
    color: var(--primary, #ed1c24);
}

.site-footer .gaohouse-footer-widget a::before,
.site-footer .gaohouse-footer-widget .wp-block-navigation-item__content::before {
    color: #9ca3af;
    content: "\f105";
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    line-height: 1;
    margin-right: 8px;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.site-footer .gaohouse-footer-widget .wp-block-heading,
.site-footer .gaohouse-footer-widget .widget-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.site-footer .gaohouse-footer-widget p:last-child {
    margin-bottom: 0;
}

.entry-content,
.page-content,
.term-description,
.format-content,
.prose {
    background-color: #ffffff !important;
    color: #444444;
    font-size: clamp(0.98rem, 0.95rem + 0.18vw, 1.0625rem);
    line-height: 1.5;
}

.entry-content>*:first-child,
.page-content>*:first-child,
.term-description>*:first-child,
.format-content>*:first-child,
.prose>*:first-child {
    margin-top: 0 !important;
}

.entry-content>*:last-child,
.page-content>*:last-child,
.term-description>*:last-child,
.format-content>*:last-child,
.prose>*:last-child {
    margin-bottom: 0 !important;
}

.entry-content p,
.entry-content p *,
.entry-content p,
.entry-content p *,
.page-content p,
.page-content p *,
.term-description p,
.term-description p *,
.format-content p,
.format-content p *,
.prose p,
.prose p *,
.product-short-description p,
.product-short-description p *,
#tab-description p,
#tab-description p *,
.woocommerce-product-details__short-description p,
.woocommerce-product-details__short-description p * {
    margin: 0 0 1.25rem;
    line-height: 1.6;
    font-size: 16px !important;
    color: #000000 !important;
    text-align: justify !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Force center alignment for components explicitly marked as text-center */
.entry-content .text-center,
.entry-content .text-center *,
.page-content .text-center,
.page-content .text-center *,
.term-description .text-center,
.term-description .text-center *,
.format-content .text-center,
.format-content .text-center *,
.prose .text-center,
.prose .text-center * {
    text-align: center !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content .wp-block-heading,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.page-content .wp-block-heading,
.term-description h1,
.term-description h2,
.term-description h3,
.term-description h4,
.term-description h5,
.term-description h6,
.term-description .wp-block-heading,
.format-content h1,
.format-content h2,
.format-content h3,
.format-content h4,
.format-content h5,
.format-content h6,
.format-content .wp-block-heading,
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6,
.prose .wp-block-heading {
    color: #000000 !important;
    line-height: 1.4;
    margin: 2rem 0 1rem;
    font-weight: 700 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.entry-content h1,
.page-content h1,
.term-description h1,
.format-content h1,
.prose h1 {
    font-size: clamp(1.6rem, 1.4rem + 0.7vw, 2.1rem);
}

.entry-content h2,
.entry-content h2 *,
.entry-content .wp-block-heading,
.entry-content .wp-block-heading *,
.page-content h2,
.page-content h2 *,
.page-content .wp-block-heading,
.page-content .wp-block-heading *,
.term-description h2,
.term-description h2 *,
.term-description .wp-block-heading,
.term-description .wp-block-heading *,
.format-content h2,
.format-content h2 *,
.format-content .wp-block-heading,
.format-content .wp-block-heading *,
.prose h2,
.prose h2 *,
.prose .wp-block-heading,
.prose .wp-block-heading *,
.product-short-description h2,
.product-short-description h2 *,
#tab-description h2,
#tab-description h2 *,
.woocommerce-product-details__short-description h2,
.woocommerce-product-details__short-description h2 * {
    font-size: 25.6px !important;
}

.entry-content h3,
.entry-content h3 *,
.page-content h3,
.page-content h3 *,
.term-description h3,
.term-description h3 *,
.format-content h3,
.format-content h3 *,
.prose h3,
.prose h3 *,
.product-short-description h3,
.product-short-description h3 *,
#tab-description h3,
#tab-description h3 *,
.woocommerce-product-details__short-description h3,
.woocommerce-product-details__short-description h3 * {
    font-size: 20px !important;
}

.entry-content h4,
.entry-content h4 *,
.page-content h4,
.page-content h4 *,
.term-description h4,
.term-description h4 *,
.format-content h4,
.format-content h4 *,
.prose h4,
.prose h4 *,
.product-short-description h4,
.product-short-description h4 *,
#tab-description h4,
#tab-description h4 *,
.woocommerce-product-details__short-description h4,
.woocommerce-product-details__short-description h4 * {
    font-size: 18px !important;
}

.entry-content h5,
.entry-content h6,
.page-content h5,
.page-content h6,
.term-description h5,
.term-description h6,
.format-content h5,
.format-content h6,
.prose h5,
.prose h6 {
    font-size: 1.05rem;
}

.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-table,
.format-content figure,
.format-content .wp-block-image,
.format-content .wp-block-table,
.prose figure,
.prose .wp-block-image,
.prose .wp-block-table {
    margin: 1.75rem auto;
    max-width: 100%;
}

.entry-content figure:not(.wp-block-table):not(.blocks-gallery-item),
.entry-content .wp-block-image,
.format-content figure:not(.wp-block-table):not(.blocks-gallery-item),
.format-content .wp-block-image,
.prose figure:not(.wp-block-table):not(.blocks-gallery-item),
.prose .wp-block-image {
    width: auto;
    /* removed arbitrary hardcoded width */
}

.entry-content img,
.format-content img,
.prose img {
    display: block;
    height: auto;
    margin: 1.5rem auto;
    max-width: 100%;
}

.entry-content>img:not(.emoji):not(.wp-smiley),
.entry-content>a>img:not(.emoji):not(.wp-smiley),
.entry-content p>img:not(.emoji):not(.wp-smiley),
.entry-content p>a>img:not(.emoji):not(.wp-smiley),
.format-content>img:not(.emoji):not(.wp-smiley),
.format-content>a>img:not(.emoji):not(.wp-smiley),
.format-content p>img:not(.emoji):not(.wp-smiley),
.format-content p>a>img:not(.emoji):not(.wp-smiley),
.prose>img:not(.emoji):not(.wp-smiley),
.prose>a>img:not(.emoji):not(.wp-smiley),
.prose p>img:not(.emoji):not(.wp-smiley),
.prose p>a>img:not(.emoji):not(.wp-smiley) {
    width: auto;
    /* removed arbitrary hardcoded width */
}

.entry-content>img:not(.emoji):not(.wp-smiley),
.entry-content>a>img:not(.emoji):not(.wp-smiley),
.entry-content p>img:not(.emoji):not(.wp-smiley),
.entry-content p>a>img:not(.emoji):not(.wp-smiley),
.entry-content figure img:not(.emoji):not(.wp-smiley),
.entry-content .wp-block-image img:not(.emoji):not(.wp-smiley),
.format-content>img:not(.emoji):not(.wp-smiley),
.format-content>a>img:not(.emoji):not(.wp-smiley),
.format-content p>img:not(.emoji):not(.wp-smiley),
.format-content p>a>img:not(.emoji):not(.wp-smiley),
.format-content figure img:not(.emoji):not(.wp-smiley),
.format-content .wp-block-image img:not(.emoji):not(.wp-smiley),
.prose>img:not(.emoji):not(.wp-smiley),
.prose>a>img:not(.emoji):not(.wp-smiley),
.prose p>img:not(.emoji):not(.wp-smiley),
.prose p>a>img:not(.emoji):not(.wp-smiley),
.prose figure img:not(.emoji):not(.wp-smiley),
.prose .wp-block-image img:not(.emoji):not(.wp-smiley) {
    /* removed legacy aggressive styling */
    height: auto;
}

.entry-content figure img,
.entry-content .wp-block-image img,
.format-content figure img,
.format-content .wp-block-image img,
.prose figure img,
.prose .wp-block-image img {
    margin: 0 auto;
    width: auto;
    max-width: 100%;
}

.entry-content figure,
.entry-content .wp-block-image,
.format-content figure,
.format-content .wp-block-image,
.prose figure,
.prose .wp-block-image {
    text-align: center;
}

.entry-content figcaption,
.entry-content .wp-element-caption,
.format-content figcaption,
.format-content .wp-element-caption,
.prose figcaption,
.prose .wp-element-caption {
    color: #64748b;
    font-size: 0.92rem;
    margin-top: 0.65rem;
    text-align: center;
}

.single-post .entry-content figure:not(.wp-block-table):not(.blocks-gallery-item),
.single-post .entry-content .wp-block-image,
.single-post .format-content figure:not(.wp-block-table):not(.blocks-gallery-item),
.single-post .format-content .wp-block-image,
.single-post .prose figure:not(.wp-block-table):not(.blocks-gallery-item),
.single-post .prose .wp-block-image {
    width: auto;
    max-width: 100%;
}

.single-post .entry-content>img:not(.emoji):not(.wp-smiley),
.single-post .entry-content>a>img:not(.emoji):not(.wp-smiley),
.single-post .entry-content p>img:not(.emoji):not(.wp-smiley),
.single-post .entry-content p>a>img:not(.emoji):not(.wp-smiley),
.single-post .format-content>img:not(.emoji):not(.wp-smiley),
.single-post .format-content>a>img:not(.emoji):not(.wp-smiley),
.single-post .format-content p>img:not(.emoji):not(.wp-smiley),
.single-post .format-content p>a>img:not(.emoji):not(.wp-smiley),
.single-post .prose>img:not(.emoji):not(.wp-smiley),
.single-post .prose>a>img:not(.emoji):not(.wp-smiley),
.single-post .prose p>img:not(.emoji):not(.wp-smiley),
.single-post .prose p>a>img:not(.emoji):not(.wp-smiley),
.single-post .prose figure img:not(.emoji):not(.wp-smiley),
.single-post .prose .wp-block-image img:not(.emoji):not(.wp-smiley) {
    width: auto;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.single-post .entry-content figure img,
.single-post .entry-content .wp-block-image img,
.single-post .format-content figure img,
.single-post .format-content .wp-block-image img,
.single-post .prose figure img,
.single-post .prose .wp-block-image img {
    width: auto;
    max-width: 100%;
}

.gaohouse-news-list-thumb {
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .gaohouse-news-list-thumb {
        width: 380px;
        min-width: 380px;
        height: 210px;
        aspect-ratio: auto !important;
    }
}

@media (min-width: 1024px) {
    .single-post .gaohouse-single-toc-sticky {
        display: block !important;
    }

    .single-post .gaohouse-single-toc-sticky {
        position: sticky;
        top: 132px;
        align-self: flex-start;
    }

    .gaohouse-toc-link.active {
        color: var(--primary) !important;
        background-color: rgba(237, 28, 36, 0.05) !important;
        font-weight: 700 !important;
    }

    .gaohouse-single-toc-sticky .bg-white {
        background-color: rgba(248, 250, 252, 0.5) !important;
        /* bg-slate-50/50 */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-color: rgba(226, 232, 240, 0.5) !important;
        /* border-slate-100/50 */
    }
}

.format-content .wp-block-table,
.prose .wp-block-table {
    overflow-x: auto;
}

.format-content table,
.prose table {
    border-collapse: collapse;
    display: table;
    margin: 0 auto;
    max-width: 100%;
    table-layout: auto;
    width: 100%;
}

.format-content th,
.format-content td,
.prose th,
.prose td {
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
}

.format-content th,
.prose th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
}

@media (max-width: 767px) {

    .format-content,
    .prose {
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .format-content h1,
    .format-content h2,
    .format-content h3,
    .format-content h4,
    .format-content h5,
    .format-content h6,
    .format-content .wp-block-heading,
    .prose h1,
    .prose h2,
    .prose h3,
    .prose h4,
    .prose h5,
    .prose h6,
    .prose .wp-block-heading {
        margin: 1.25rem 0 0.65rem;
    }

    .format-content figure,
    .format-content .wp-block-image,
    .format-content .wp-block-table,
    .prose figure,
    .prose .wp-block-image,
    .prose .wp-block-table {
        margin: 1.25rem auto;
    }

    .format-content th,
    .format-content td,
    .prose th,
    .prose td {
        padding: 0.7rem 0.8rem;
    }
}

.format-content ul,
.format-content ol,
.prose ul,
.prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.format-content ul,
.prose ul {
    list-style: disc;
}

.format-content ol,
.prose ol {
    list-style: decimal;
}

.format-content ul ul,
.prose ul ul {
    list-style: circle;
}

.format-content ol ol,
.prose ol ol {
    list-style: lower-alpha;
}

.format-content li,
.prose li {
    display: list-item;
    margin: 0.35rem 0;
}

.format-content li::marker,
.prose li::marker {
    color: var(--secondary);
}

/* ======================================================================
 * ABOUT PAGE — block-about-article
 * ====================================================================== */

.block-about-article .prose h2 {
    scroll-margin-top: 130px;
}

.block-about-article .prose h3 {
    scroll-margin-top: 130px;
}

.block-about-article .prose p {
    font-size: 1rem;
    line-height: 1.85;
    color: #475569;
}

.block-about-article .prose strong {
    color: #1e293b;
}

/* TOC sidebar scroll-spy active link */
.about-toc-nav a.text-primary {
    border-left: 3px solid var(--primary);
}

/* TOC sidebar: smooth hover transition */
.about-toc-nav a {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* Swiper in about page */
.aboutGallerySwiper .swiper-slide,
.productionSwiper .swiper-slide {
    position: relative;
}

.aboutGallerySwiper .swiper-pagination-bullet,
.productionSwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.aboutGallerySwiper .swiper-pagination-bullet-active,
.productionSwiper .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* Mobile: TOC becomes top bar */
@media (max-width: 1023px) {
    .about-toc-sidebar {
        position: static !important;
    }

    .block-about-article article {
        width: 100%;
    }
}

/* Desktop sidebar min-width */
@media (min-width: 1024px) {
    .block-about-article aside {
        min-width: 280px;
        max-width: 320px;
    }
}