@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

:root{
    --primary-color: #0aad69;
}

body{
    font-size: 15px;
    font-family: "Roboto Flex", sans-serif;
}
.cut-text{
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
}

/* pagination */
/* Container pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px; /* khoảng cách giữa các item */
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

/* Li item */
.pagination .page-item {
    /* Không cần gì thêm, dùng riêng cho active/disabled */
}

/* Link / span trong pagination */
.pagination .page-link {
    display: block;
    padding: 0.25rem 0.75rem; /* px-3 py-1 */
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    color: #374151; /* gray-700 */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

/* Hover link (không disabled, không active) */
.pagination .page-item:not(.disabled):not(.active) .page-link:hover {
    background-color: #f3f4f6; /* gray-100 */
    color: #111827; /* gray-900 */
}

/* Active page */
.pagination .page-item.active .page-link {
    background-color: #0aad69; /* blue-600 */
    color: white;
    border-color: #0aad69; /* blue-600 */
}

/* Disabled page */
.pagination .page-item.disabled .page-link {
    background-color: #e5e7eb; /* gray-200 */
    color: #9ca3af; /* gray-400 */
    cursor: not-allowed;
}

/* Dấu "..." */
.pagination .page-item.disabled .page-link {
    background-color: transparent;
    color: #6b7280; /* gray-500 */
    cursor: default;
}

/* pagination */


.content-content h1,
.content-content h2,
.content-content h3,
.content-content h4,
.content-content h5,
.content-content h6 {
    font-weight: 600;
    line-height: 1.3;
    /* margin: 1em 0 0.5em; */
}


/* Responsive table: thêm scroll ngang */

.content-content table {
    /* display: block; */
    /* overflow-x: auto; */
    /* white-space: nowrap; */
}


/* Responsive video iframe */

.content-content iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    /* Giữ tỷ lệ */
    display: inline-block;
}


/* Khi ảnh nằm trong đoạn text được căn trái */

.content-content p[style*="text-align:left"] img {
    display: inline-block;
    margin: 0 auto 1em 0;
}

.content-content img {
    display: inline-block;
    height: auto!important;
    max-width: 100%;
}


/* Khi ảnh nằm trong đoạn text được căn giữa */

.content-content p[style*="text-align:center"] img {
    display: inline-block;
    margin: 0 auto 1em auto;
}


/* Khi ảnh nằm trong đoạn text được căn phải */

.content-content p[style*="text-align:right"] img {
    display: inline-block;
    margin: 0 0 1em auto;
}

@media (max-width: 768px) {
    .content-content img {
        max-width: 100%;
        height: auto!important;
    }
    .header-address {
        display: none;
    }
    .content-content {
        overflow-x: scroll;
    }
    .title-company{
        font-size: 13px;
    }
    .pagination {
        display: block;
    }

    .pagination > li {
        display: inline-block;
        margin-bottom: 10px;
    }
    .contact-btottom > div {
        display: block;
    }

    .contact-btottom > div > div {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .home-block2:not(.gioi-thieu) a img {
        height: 145px;
    }
    .section-latest .item-left .box-thumb img {
        height: 275px!important;
    }
    .section-latest .item-right .list .box-thumb {
        height: 95px;
    }
}

@media (max-width: 1024px) {
    #menu-mobile{
        display: none;
    }
    #menu-mobile.mm-menu--opened{
        display: block;
        z-index: 999;
    }
}

.content-content table {
    width: 100%;
    border-collapse: collapse;
    /* gộp border thay vì tách */
    margin: 1em 0;
    /* font-size: 15px; */
}

.content-content table[border="1"] th,
.content-content table[border="1"] td {
    border: 1px solid #808080;
    /* giống border="1" */
    padding: 8px;
    /* thay cho cellpadding */
    text-align: left;
    vertical-align: middle;
}

.content-content th {
    background: #f5f5f5;
    font-weight: 600;
}


/* Nếu muốn giữ cellspacing (khoảng cách giữa ô) */

.content-content table.separate {
    border-collapse: separate;
    border-spacing: 5px;
    /* giống cellspacing="5" */
}


/* Responsive: cho phép scroll ngang trên màn hình nhỏ */

.content-content table {
    /* display: block; */
    /* overflow-x: auto; */
    /* white-space: nowrap; */
}

.content-content p, .content-content li {
    margin-bottom: 15px;
}



.text-color_primary {
    color: var(--primary-color);
}

.hover\:border-color_primary:hover{
    --tw-border-opacity: 1;
    border-color: rgb(17 78 184 / var(--primary-color));
}

.bg-color_primary, .hover\:bg-color_primary:hover {
    background: var(--primary-color);
}
.content-content ul, .content-content ol {
    padding-left: 20px;
    list-style-type: inherit;
}
.content-content blockquote {
    margin: 20px 0;
    padding: 12px 20px;
    border-left: 4px solid #3b82f6;
    background: #f5f7fa;
    font-style: italic;
    color: #555;
}

/* ===== HEADING BASE ===== */
.content-content h1,
.content-content h2,
.content-content h3,
.content-content h4,
.content-content h5,
.content-content h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
    /* margin-top: 32px; */
    margin-bottom: 16px;
}

/* ===== SIZE TỪNG HEADING ===== */
.content-content h1 {
    font-size: 32px;
}

.content-content h2 {
    font-size: 22px;
    padding-bottom: 8px;
    /* border-bottom: 2px solid #e5e7eb; */
}

.content-content h3 {
    font-size: 20px;
}

.content-content h4 {
    font-size: 18px;
}

.content-content h5 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-content h6 {
    font-size: 14px;
    color: #6b7280;
}

/* ===== TRÁNH LỖI KHOẢNG CÁCH ĐẦU / CUỐI ===== */
.content-content h1:first-child,
.content-content h2:first-child,
.content-content h3:first-child,
.content-content h4:first-child,
.content-content h5:first-child,
.content-content h6:first-child {
    margin-top: 0;
}

.content-content h1:last-child,
.content-content h2:last-child,
.content-content h3:last-child,
.content-content h4:last-child,
.content-content h5:last-child,
.content-content h6:last-child {
    margin-bottom: 0;
}

/* ===== HEADING CÓ ID (ANCHOR LINK) ===== */
.content-content h1[id],
.content-content h2[id],
.content-content h3[id],
.content-content h4[id] {
    scroll-margin-top: 100px; /* dùng khi header fixed */
}

/* ===== HEADING TRONG BLOCKQUOTE ===== */
.content-content blockquote h2,
.content-content blockquote h3,
.content-content blockquote h4 {
    margin-top: 16px;
    color: #1f2937;
}

/* ===== HEADING TRONG TABLE ===== */
.content-content table h3,
.content-content table h4,
.content-content table h5 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}


.content-content image{
    height: auto!important;
}

.content-content a *, .content-content a {
    color: blue ! Important;
}

.section-latest .item-right .list .box-thumb {
    width: 170px;
    height: 125px;
    object-fit: cover;
}

.section-latest .item-right .list .box-text {
    width: calc(100% - 170px);
}

.section-latest .item-right .list .box-text .box-desc {
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
}

.section-latest .item-right .list .box-text a h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
}

.section-latest .item-right .list .box-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section-latest .item-left .box-thumb img {
    height: 550px;
}

.section-latest .item-left .box-desc {
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
}

.section-latest .item-left h3 {
    font-size: 18px;
}
.main-menu .sub-menu a {
    text-transform: none;
}