/**
 * Theme Name: smartsign
 * Template: hd
 * Author: Gaudev
 * Author URI: https://webhd.vn
 * Requires PHP: 8.2
 * Version: 1.0 Alpha
 * Text Domain: smartsign
 * Domain Path: /languages
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Basic Reset & Body Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    padding: 7px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-branding {
    text-align: left;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.site-footer p {
    font-size: 0.9em;
}

/* List Styles - to fix square bullet points */
.breadcrumb-desc ul,
.hb_product_box4 ._desc ul,
.hb_product_box5 ._desc ul,
.hb_product_box6 ._desc ul {
    list-style-type: disc;
    /* Use a standard disc for bullet points */
    margin-left: 20px;
    /* Add some indentation */
}

.breadcrumb-desc ul li,
.hb_product_box4 ._desc ul li,
.hb_product_box5 ._desc ul li,
.hb_product_box6 ._desc ul li {
    margin-bottom: 5px;
}

/* Existing styles, cleaned up and retained where relevant */

:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    /* Keep existing heading styles if any, or add defaults */
}

.widget_polylang ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    grid-gap: 8px;
}

.widget_polylang ul li a {
    width: 25px;
    height: auto;
}

.widget_polylang ul li a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.single-post .content article img {
    width: auto;
    height: auto;
}

.section.section-page.page-pricelist ._lists ._item .flex-info .cell-right ._table_price ._box .price_table {
    margin-top: 0;
    left: unset;
    transform: unset;
}

.section.section-page.page-pricelist ._lists ._item .flex-info .cell-right ._table_price ._box ._button {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    grid-gap: 15px;
}

.section.section-page.page-pricelist ._lists ._item .flex-info .cell-right ._table_price ._box ._button-link {
    padding: 13px 25px 10px;
    font-weight: 600;
    border-radius: 100px;
    color: #fb8317;
    font-size: 14px;
    line-height: 20px;
    border: 1px solid #fb8317;
    text-transform: uppercase;
}

.section.section-page.page-pricelist ._lists ._item .flex-info .cell-right ._table_price ._box .price_table:hover,
.section.section-page.page-pricelist ._lists ._item .flex-info .cell-right ._table_price ._box ._button-link:hover {
    transform: translateY(-5px);
}

.hb_news_home .flex-info .cell-right .swiper-container .news-list .w-swiper .swiper-wrapper .swiper-slide .item .content ._title {
    margin-bottom: 0 !important;
}

.hb_news_home .flex-info .cell-right .swiper-container .news-list .w-swiper .swiper-wrapper .swiper-slide .item .content .excerpt {
    display: none !important;
}

/* Responsive adjustments */
@media only screen and (max-width: 47.9988rem) {
    /* Adjustments for smaller screens, if any relevant */
}

/* Đảm bảo header luôn nằm ngang đẹp */
.site-header .header-main {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    /* không cho xuống dòng */
}

.site-header .hb_header_button {
    display: flex;
    align-items: center;
    gap: 25px;
    /* khoảng cách giữa email và sđt */
    white-space: nowrap;
}

.site-header .hb_header_button a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

/* Tăng nhẹ kích thước chữ menu cho dễ nhìn */
.main-navigation .menu>li>a {
    font-size: 16px;
    font-weight: 500;
    padding: 0 18px;
}

/* Responsive: Ẩn menu desktop khi màn hình ≤1024px */
@media screen and (max-width: 1024px) {
    .show-for-large {
        display: none !important;
    }
}

/* Main Navigation Styles */
.main-navigation {
    margin: 0 auto;
    /* Căn giữa menu */
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-navigation a:hover {
    background-color: #f0f0f0;
    color: #0056b3;
}

/* Header layout adjustments */
.site-header>.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* News Page Styles */
.section-news {
    padding: 40px 0;
}

.page-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    /* Make the card square */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.news-card-image-link {
    display: block;
    text-align: center;
    /* Center the image */
    flex: 4;
    /* Image takes 4/5 height */
    position: relative;
    /* For object-fit to work reliably with flex */
}

.news-card-image-link img {
    width: 100%;
    height: 100%;
    /* Fill the parent container */
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 15px;
    /* Adjust padding for 1/5 space */
    background-color: #FFA500;
    /* Orange background */
    text-align: left;
    /* Align text to the left */
    flex: 1;
    /* Content takes 1/5 height */
    display: flex;
    /* Use flex to center title vertically */
    align-items: center;
    justify-content: flex-start;
    /* Align content to the start (left) */
}

.news-card-title {
    font-size: 1.2em;
    /* Tăng cỡ chữ lên 1 đơn vị */
    margin: 0;
    /* Remove margin */
    line-height: 1.3;
    /* Adjust line height for better fit */
}

.news-card-title a {
    text-decoration: none;
    color: #FFFFFF;
    /* White text */
    font-weight: bold;
    /* In đậm chữ */
}

.news-card-title a:hover {
    color: #f2f2f2;
    /* Lighter white on hover */
}

/* Responsive adjustments for news page */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Guide Page Styles */
.section-guide {
    padding: 40px 0;
}

.section-guide .page-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.guide-content {
    display: flex;
    gap: 30px;
}

.table-of-contents {
    flex: 0 0 250px;
    /* Fixed width for TOC */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: fit-content;
    /* Make it stick to its content height */
    position: sticky;
    top: 20px;
    /* Adjust as needed */
}

.table-of-contents h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents ul li {
    margin-bottom: 10px;
}

.table-of-contents ul li a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.table-of-contents ul li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.guide-articles {
    flex-grow: 1;
}

.guide-article {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.guide-article h2 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.guide-article .article-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.guide-article .article-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.guide-article .article-content ul li {
    margin-bottom: 5px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 25px;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive for Guide Page */
@media (max-width: 768px) {
    .guide-content {
        flex-direction: column;
    }

    .table-of-contents {
        flex: none;
        width: 100%;
        position: static;
        /* Remove sticky on mobile */
        margin-bottom: 30px;
    }

    .table-of-contents h2 {
        text-align: center;
    }

    .table-of-contents ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .table-of-contents ul li {
        margin-bottom: 0;
    }

    .table-of-contents ul li a {
        padding: 5px 10px;
        background-color: #e9e9e9;
        border-radius: 5px;
    }

    .guide-article {
        padding: 20px;
    }

    .guide-article h2 {
        font-size: 1.8em;
    }
}

/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed position */
    bottom: 30px;
    /* Place the button at the bottom of the page */
    right: 30px;
    /* Place the button at the right */
    z-index: 99;
    /* Make sure it does not overlap */
    border: none;
    /* Remove borders */
    outline: none;
    /* Remove outline */
    background-color: #FFA500;
    /* Set a background color */
    color: white;
    /* Text color */
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 15px;
    /* Some padding */
    border-radius: 50%;
    /* Rounded corners */
    font-size: 18px;
    /* Increase font size */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #e09400;
    /* Darker orange on hover */
}

/* Scroll to Top Button */
#scrollTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 30px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button at the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #FFA500; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 50%; /* Rounded corners */
    font-size: 18px; /* Increase font size */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #e09400; /* Darker orange on hover */
    transform: translateY(-2px);
}

/* style_artical.css content (merged) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f9fc;
    color: #1f2937;
}
.guide-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}
.guide-article {
    padding: 0; /* Removed top/bottom padding here */
    border-bottom: 1px solid #e5e7eb;
}
.guide-article:last-child {
    border-bottom: none;
}
.guide-article h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981; /* Màu xanh lá cây nổi bật */
    margin-bottom: 1rem;
    margin-top: 2rem;
    text-align: center; 
}
.guide-article h2:first-of-type {
    margin-top: 0;
}
.guide-article h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.guide-article h4 {
    font-size: 1.125rem; /* 18px – nhỏ hơn h3 */
    font-weight: 500; 
    color: #4b5563; /* xám trung bình, nhẹ hơn h3 một chút */
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.guide-article .article-content {
    padding: 0 1.5rem; /* Added horizontal padding here */
}
.guide-article .article-content p, .guide-article .article-content li {
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.guide-article .article-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    padding-left: 0.5rem;
}
.guide-article .article-content strong {
    font-weight: 700;
    color: #3b82f6; /* Màu xanh dương cho điểm nhấn */
}
.guide-article .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Tỉ lệ 16:9 */
    height: 0;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}
.guide-article .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.guide-article .law-quote {
    background-color: #ecfdf5; /* Màu nền nhẹ cho trích dẫn luật */
    border-left: 4px solid #10b981;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 4px;
}
/* Swiper Navigation Buttons for Cột mốc */
.hb_landmarks .swiper-container .swiper-button-prev,
.hb_landmarks .swiper-container .swiper-button-next {
    width: 50px !important;
    /* Adjust size as needed */
    height: 50px !important;
    background-color: #FFA500 !important;
    /* Orange background */
    color: white !important;
    /* White arrow */
    border-radius: 50% !important;
    /* Make them round */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
}

.hb_landmarks .swiper-container .swiper-button-prev:hover,
.hb_landmarks .swiper-container .swiper-button-next:hover {
    background-color: #e09400 !important;
    /* Darker orange on hover */
    transform: translateY(-50%) scale(1.05) !important;
}

.hb_landmarks .swiper-container .swiper-button-prev {
    left: -25px !important;
    /* Position to the left of the container */
}

.hb_landmarks .swiper-container .swiper-button-next {
    right: -25px !important;
    /* Position to the right of the container */
}

/* Adjustments for the arrow icons inside the buttons */
.hb_landmarks .swiper-container .swiper-button-prev::after,
.hb_landmarks .swiper-container .swiper-button-next::after {
    font-family: 'Font Awesome 6 Free' !important;
    /* Use Font Awesome for icons */
    font-weight: 900 !important;
    font-size: 20px !important;
    color: white !important;
    /* Ensure icons are white */
    line-height: 1 !important;
    /* Ensure vertical centering of icon */
}

.hb_landmarks .swiper-container .swiper-button-prev::after {
    content: '\f104' !important;
    /* Unicode for angle-left icon */
}

.hb_landmarks .swiper-container .swiper-button-next::after {
    content: '\f105' !important;
    /* Unicode for angle-right icon */
}

/* Responsive adjustments for navigation buttons */
@media (max-width: 768px) {

    .hb_landmarks .swiper-container .swiper-button-prev,
    .hb_landmarks .swiper-container .swiper-button-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        left: 5px !important;
        /* Adjust position on smaller screens */
        right: 5px !important;
    }
}




.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 20px 30px 30px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.popup-close {
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.popup-content h2 {
    margin: 0;
}

.popup-content p {
    margin-bottom: 20px;
}

.popup-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.popup-content button[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.popup-content button[type="submit"]:hover {
    background-color: #0056b3;
}

.popup-status {
    margin-top: 15px;
    font-weight: bold;
}

/* Header Button Styling */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.hb_header_button {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hb_header_button ._header-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    /* Chữ trắng */
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 20px;
    /* Bo tròn góc */
    transition: background-color 0.3s ease;
    background-color: #FFA500;
    /* Màu cam */
}

.hb_header_button ._header-button:hover {
    opacity: 0.8;
}

.hb_header_button .shop ._svg {
    margin-right: 8px;
}

.hb_header_button .shop ._svg i {
    color: white;
}

.hb_header_button .phone ._images img {
    width: 24px;
    height: auto;
    margin-right: 8px;
}

/* Styling for hb_form_design for better balance */
.hb_form_design .flex-info {
    display: flex;
    flex-wrap: wrap;
    /* Cho phép các cột xuống dòng trên màn hình nhỏ */
    gap: 30px;
    /* Khoảng cách giữa ảnh và form */
    align-items: center;
    /* Căn giữa theo chiều dọc */
}

.hb_form_design .flex-info .cell-left {
    flex: 1 1 60%;
    /* Hình ảnh chiếm khoảng 60% */
    padding: 20px;
    /* Thêm padding cho ảnh */
    text-align: center;
}

.hb_form_design .flex-info .cell-right {
    flex: 1 1 40%;
    /* Form chiếm khoảng 40% */
    padding: 20px;
    /* Thêm padding cho form */
    background-color: #f9f9f9;
    /* Nền nhẹ cho form để nổi bật */
    border-radius: 8px;
}

.hb_form_design .flex-info ._images img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Căn giữa ảnh */
}

/* Tối ưu hóa khoảng trống trong form */
.hb_form_design .wpcf7 {
    padding: 0;
}

.hb_form_design .form-title {
    margin-top: 0;
}

@media (max-width: 768px) {

    .hb_form_design .flex-info .cell-left,
    .hb_form_design .flex-info .cell-right {
        flex-basis: 100%;
        /* Trên mobile, mỗi phần chiếm 100% chiều rộng */
    }
}

.law-quote {
    background-color: #ecfdf5; /* Màu nền nhẹ cho trích dẫn luật */
    border-left: 4px solid #10b981;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 4px;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981; /* Màu xanh lá cây nổi bật */
    margin-bottom: 1rem;
}
h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    margin-left: 10px;
}
.article-content p, .article-content li {
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.article-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    padding-left: 0.5rem;
}
.article-content strong {
    font-weight: 700;
    color: #3b82f6; /* Màu xanh dương cho điểm nhấn */
}
.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.process-step-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
}
.process-step-content {
    flex-grow: 1;
    padding-top: 2px;
}
/* 6. Law Quote/Highlight Boxes */
.law-quote {
    background-color: #ecfdf5; /* emerald-50 */
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 4px;
}
.notice-box {
    background-color: #fffbeb; /* yellow-50 */
    border-left: 4px solid #f59e0b; /* yellow-400 */
    color: #b45309; /* yellow-800 */
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}
.important-box {
    background-color: #eef2ff; /* indigo-50 */
    border-left: 4px solid #818cf8; /* indigo-400 */
    color: #3730a3; /* indigo-700 */
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.italic { font-style: italic; }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }