/* Public pages: responsive layout, readable content and keyboard navigation. */
:root { --brand-green: #147b21; --text-color: #243746; }
html { scroll-padding-top: 24px; }
body { overflow-wrap: break-word; }
*, *::before, *::after { box-sizing: border-box; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 10000; padding: 12px 18px; background: white; color: #145b20; }
.skip-link:focus { top: 10px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #166dca; outline-offset: 4px; }
#header { margin: 16px 0 8px; }
#header > .container { display: flex; align-items: center; gap: 20px; }
.site-logo { flex: 0 0 180px; }
.site-logo img { display: block; width: 180px; height: auto; }
.site-navigation { flex: 1; min-width: 0; }
.desktop-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.desktop-navigation .navbar-d { width: auto; margin: 0; }
.desktop-navigation .navbar-d > ul > li { margin: 4px 0; }
.desktop-navigation .navbar-d > ul > li > a { padding: 14px 10px; font-size: 14px; line-height: 1.4; }
.desktop-navigation .navbar-d li:focus-within > ul { display: block; opacity: 1; visibility: visible; }
.header-phone { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 24px; background: #086da8; color: white; font-weight: 700; white-space: nowrap; }
.header-phone:hover, .header-phone:focus { color: white; background: #085c8d; }
.mobile-navigation { display: none; }
#content, #content-sidebar, .bg-content, .entry-content, .post-details { min-width: 0; }
.bg-content::after { content: ''; display: table; clear: both; }
.seo-page-heading h1, .entry-title, .category-title h1 { line-height: 1.35; overflow-wrap: anywhere; }
.seo-page-heading { padding: 16px 0; }
.head-slider { clear: both; }
.head-slider img { display: block; width: 100%; height: auto; object-fit: contain; }
.head-slider .owl-carousel:not(.owl-loaded) { display: block; }
.head-slider .owl-carousel:not(.owl-loaded) > .item:not(:first-child) { display: none; }
.home-intro { max-width: 80ch; margin: 0 0 24px; color: var(--text-color); }
.home-intro p { margin-bottom: 10px; }
.product-items { margin-left: 0; margin-right: 0; }
.product-item .product-name, .product-item .small-title { font-size: 16px; line-height: 1.5; padding: 12px; }
.product-item .product-name a, .product-item .small-title a { display: block; font-size: inherit; }
.product-items .product-item img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.posts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.posts-list > .postWrapper { width: auto !important; padding: 0; min-width: 0; }
.post-image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.post-details { padding: 12px; }
.postTitle .post-title { font-size: 18px; line-height: 1.5; background: none; }
.postTitle .post-title a { color: #176e24; }
.post-description { line-height: 1.65; }
.post-meta { margin: 10px 0 16px; font-size: 14px; color: #5a6973; }
.single-post-page .post-wrapper { padding: clamp(16px, 3vw, 32px); }
.entry-content { max-width: 82ch; margin: 24px auto; color: var(--text-color); text-align: left; font-size: 18px; line-height: 1.8; }
.entry-content > *, .contact-info > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { line-height: 1.45; margin-top: 1.5em; scroll-margin-top: 24px; }
.entry-content h2 span { color: #166a26 !important; background: none; -webkit-text-fill-color: currentColor; }
.entry-content ul { list-style: disc; padding-left: 1.5em; margin: 16px 0; }
.entry-content ol { list-style: decimal; padding-left: 1.5em; margin: 16px 0; }
.entry-content li { margin-bottom: 8px; }
.entry-content img, .contact-info img { max-width: 100% !important; height: auto !important; }
.entry-content iframe, .contact-info iframe, .entry-content video { max-width: 100% !important; }
.entry-content table { display: block; max-width: 100% !important; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 8px 12px; border: 1px solid #dbe3e8; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.article-toc { padding: 16px 20px; margin: 20px 0; }
.article-toc summary { cursor: pointer; font-size: 18px; font-weight: 700; }
.article-toc ol { margin: 12px 0 0; padding-left: 20px; list-style: decimal; }
.article-toc li { margin: 0; padding: 6px 0; line-height: 1.5; font-weight: 400; }
.article-toc li:hover { background: transparent; }
.article-toc a { display: inline-block; padding: 3px 0; }
.article-toc .toc-h3 { margin-left: 16px; }
.breadcrumb-list { padding: 12px 0; color: #536572; font-size: 14px; }
.breadcrumb-list ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0; }
.breadcrumb-list li + li::before { content: '/'; margin-right: 10px; color: #647580; }
.breadcrumb-list [aria-current] { font-weight: 500; }
.footer-top { clear: both; padding: 24px 0; }
.footer-top .widget-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer-top li a { display: inline-block; padding: 6px 0; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; }
.search-form { display: flex; gap: 8px; margin: 16px 0 24px; }
.search-form input { flex: 1; min-width: 0; padding: 10px; border: 1px solid #9ba9b1; border-radius: 6px; }
.search-form button { border: 0; border-radius: 6px; padding: 10px 18px; color: white; background: var(--brand-green); }
@media (max-width: 1099px) {
    #header > .container { display: block; }
    .site-logo { display: block; width: 180px; margin: 0 auto 14px; }
    .desktop-navigation { display: none; }
    .mobile-navigation { display: block; }
    .mobile-navigation summary { padding: 12px 16px; border-radius: 10px; background: var(--brand-green); color: white; font-weight: 700; cursor: pointer; min-height: 48px; }
    .mobile-navigation nav { padding: 8px 12px; border: 1px solid #d7e5d9; border-radius: 0 0 10px 10px; background: white; }
    .mobile-navigation nav ul { list-style: none; }
    .mobile-navigation nav ul ul { padding-left: 18px; border-left: 2px solid #e2eee5; }
    .mobile-navigation nav a { display: block; min-height: 44px; padding: 10px 4px; color: #185a25; }
    .posts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    #hotline, .zalo-container { display: none; }
    .mobile_chat { padding-bottom: env(safe-area-inset-bottom, 0px); }
    .mobile_chat .container { max-width: 100%; }
    .mobile_chat a { min-height: 58px; }
    .quy-trinh .col-quy-trinh { width: 50%; padding: 12px; }
    .col-quy-trinh::after { display: none; }
    .product-items .product-item { width: 50%; }
    .entry-content { font-size: 17px; }
}
@media (max-width: 575px) {
    .container { padding-left: 16px; padding-right: 16px; }
    #columns > .row { margin-left: -8px; margin-right: -8px; }
    .seo-page-heading h1, .entry-title, .category-title h1 { font-size: 26px; }
    .seo-page-heading { padding: 14px 0; }
    .quy-trinh .col-quy-trinh { padding: 10px 8px; }
    .col-quy-trinh .head-text h3 { font-size: 19px; }
    .col-quy-trinh .head-text p { font-size: 15px; line-height: 1.6; }
    .col-quy-trinh .steps { width: 82px; height: 82px; margin-bottom: 18px; }
    .col-quy-trinh .steps span { font-size: 36px; }
    .space-base { padding: 8px 0; margin-bottom: 28px; }
    .head-title h2, .quy-trinh h2 { font-size: 25px; line-height: 1.4; }
    .post-details { padding: 14px; }
    .posts-list { grid-template-columns: minmax(0, 1fr); }
    .single-post-page .post-wrapper { padding: 16px; }
    .entry-content { font-size: 16px; line-height: 1.8; }
    .entry-content h2 { font-size: 22px; margin-left: 0; }
    .entry-content h2::before { position: static; }
    .entry-content h3 { font-size: 20px; }
    .article-toc { padding: 12px 14px; }
    .footer-top .col-md-3, .footer-top .col-md-5 { margin-bottom: 20px; }
}
@media (max-width: 399px) {
    .product-items .product-item { width: 100% !important; padding-left: 0; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.contact-page { padding: 20px 0 36px; max-width: 82ch; margin: 0 auto; }
.contact-page h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 20px; }
.contact-page h2 { font-size: 24px; line-height: 1.4; margin: 24px 0 16px; }
.contact-card { padding: 20px; border: 1px solid #dce8df; border-radius: 14px; background: #fff; }
.contact-card h2 { margin-top: 0; }
.contact-card address { font-style: normal; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.contact-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-steps { list-style: decimal; padding-left: 24px; }
.contact-steps li { margin-bottom: 12px; }
