@font-face {
    font-family: "Roboto-Bold";
    src: url("../css/font/Roboto/Roboto-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Hanzel";
    src: url("../css/font/Roboto/utm-hanzel.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("../css/font/Roboto/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto' !important;
    font-weight: 400;
    margin: 0;
}


/*Nav*/

.container-nav {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* hoặc dùng margin-left: auto cho hotline */
    align-items: center;
    max-width: 1520px;
    padding-right: 0;
    /* đảm bảo không dư */
    height: 250px;
}

.navbar-expand-md .navbar-nav .dropdown-menu {
    top: 60px;
    left: 0;
}

.navbar-expand-md .navbar-nav .nav-link {
    color: #444;
	white-space:nowrap;
}

#navbarCentered .navbar-nav .nav-item.sub:hover .nav-link {
    color: #fff;
}

#navbarCentered .navbar-nav .nav-item.sub:hover {
    background-color: #f46c31;
}

.navbar-brand.logo-center {
    margin: 0;
    width: 25%;
}

.navbar-brand.logo-center img {
    height: auto !important;
    width: 190px;
    object-fit: cover;
}

.navbar-expand-md .navbar-collapse {
    width: 100%;
}

#navbarCentered .navbar-nav {
    justify-content: center;
    height: 100%;
    gap: 2px;
}

#navbarCentered .navbar-nav .nav-item.sub {
    align-self: center;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#navbarCentered .navbar-nav .nav-item.sub.active{
    background-color: #f46c31;
}
#navbarCentered .navbar-nav .nav-item.sub.active .nav-link{
    color: #fff;
}

#navbarCentered .navbar-nav .nav-item:hover .dropdown-menu {
    display: block;
}

.title-hot {
    font-size: 15px;
}

.navbar-expand-md .menu-pc {
    padding: 0;
    height: 100%;
}

p.hotline {
    background-color: #f46c31;
    color: white;
    font-size: 20px;
    padding: 8px 20px 8px 30px;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    margin-left: auto;
    /* đẩy sát phải */
    width: 100%;
    text-align: left;
    border-radius: 2px;
	font-family:'Hanzel';
}
p.hotline span {
	font-family:'Roboto';
	font-weight:bold;
}

nav.navbar {
    background-color: white !important;
    box-shadow: none;
    border: none;
    height: 120px;
    padding: 0;
    flex-direction: row;
    margin-top: -60px;
    border-bottom: 1px solid #f3f3f3;
}

.navbar-nav .nav-link,
.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
}

.navbar-nav .nav-link:focus,
.dropdown-item:hover,
.dropdown-item:active {
    background-color: #f46c31 !important;
    color: white !important;
}

.dropdown-item {
    display: flex;
    justify-content: left;
    align-items: left;
}

.navbar-brand {
    margin: 0 auto;
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: -5px;
    width: 100px;
}

.phone {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-top: -3px;
    width: 25%;
}

.phone img {
    height: 40px;
    width: 40px;
    margin-right: -19px;
    /* sát hơn nữa */
    z-index: 2;
}

.navbar-toggler {
    order: -1;
    margin-right: auto;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;
    display: none;
}

.menu-mobile {
    display: none;
}

#btn-hide-box {
    display: none;
}

/* .header-menu{
    width: 25%;
} */
@media (max-width: 996px) {
    #navbarCentered .navbar-nav .nav-item:hover .dropdown-menu {
        display: none;
    }
    .navbar-expand-md .navbar-nav .dropdown-menu{
        border: none;
    }
    #btn-hide-box {
        display: flex;
    }

    .menu-mobile {
        display: flex;
        padding: 5px 20px;
        justify-content: space-between;
    }

    #navbarCentered .navbar-nav .nav-item.sub {
        flex-direction: column;
    }

    #navbarCentered .navbar-nav .nav-item.sub:hover {
        background-color: transparent;
    }

    #navbarCentered .navbar-nav .nav-item.sub:hover .nav-link {
        color: #222;
    }

    .menu-mobile .navbar-brand.logo-center img {
        width: 150px;
    }

    .navbar-nav .dropdown .dropdown-toggle {
        pointer-events: none;
    }

    .menu-mobile .icon-bart {
        background-color: transparent;
        border: none;
        border-radius: 2px;
        width: 50px;
        background-color: #f46c31;
    }

    nav.navbar {
        height: 120%;
        width: 320px;
        border: 1px solid #b1b0b0;
        padding: 20px;
        transition: all 0.4s ease;
        transform: translateX(-100%);
    }

    nav.navbar.active {
        transform: translateX(0);
    }

    .header-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .navbar-expand-md .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    #navbarCentered .navbar-nav {
        flex-direction: column;
        margin-top: 15px;
    }

    #navbarCentered .navbar-nav .nav-item.sub {
        width: 100%;
        text-align: left;
        height: fit-content;
    }

    #navbarCentered .navbar-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .phone {
        width: 100%;
        display: none;
    }

    .navbar-brand.logo-center {
        width: fit-content;
    }
}



@media (min-width: 768px) and (max-width: 1023px) {
    .navbar-toggler {
        display: block;
        /* Hiển thị navbar-toggler */
    }
}


/* Ẩn navbar-toggler khi màn hình có chiều rộng từ 1024px trở lên */

@media (min-width: 1024px) {
    .navbar-toggler {
        display: none;
        /* Ẩn navbar-toggler */
    }
}


/*Caroseul*/

.carousel {
    position: relative;
    width: 100%;
}

.carousel::before {
    content: "";
    display: block;
    padding-top: 39.4%;
}

.carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*section 3*/

.section3 {
    background: url('../images/service-bg.png') center center no-repeat;
	background-size:100% auto;
    max-width: 1300px;
    text-align: center;
    padding: 50px 0;
    margin: 0 auto;
    /* Canh giữa phần tử theo chiều ngang */
}

.title_sc {
    font-family: 'Hanzel';
    display: inline-block;
    /* Để canh giữa nội dung nếu cần */
    text-align: center;
    color: #f46c31;
    font-size: 30px;
}

#img_camtax {
    width: 45%;
    max-width: 200px;
    display: block;
    margin: -20px auto 0;
}

.service-box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    /* border: 1px solid #ddd; */
}

.service-grid .service-box:nth-child(even) {
    flex-direction: row-reverse;
}

.service-box img {
    width: 50%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.service-box-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    /* Thêm dòng này để chữ không căn giữa */
}

.service-box-info h3 {
    margin-bottom: 10px;
    font-family: 'Hanzel';
    color: #f46c31;
}

.service-box-info ul {
    list-style: none;
    /* Bỏ dấu chấm */
    padding-left: 20px;
    margin-bottom: 15px;
    font-weight: normal;
}

.service-box-info li i {
    margin-right: 10px;
    color: red;
    font-size: 1.2em;
    /* Làm to icon */
    font-weight: bold;
    /* Tăng độ đậm (dù FA đã đậm sẵn) */
    vertical-align: middle;
    /* Căn giữa icon với chữ */
}

.service-box-info .button-more {
    align-self: flex-start;
    padding: 8px 16px;
    background-color: #f46c31;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid #f46c31;
}

.service-box-info .button-more:hover {
    color: #f46c31;
    background-color: #fff;
    border: 1px solid #f46c31;
}

.service-box-info .button-more:hover svg {
    fill: #f46c31;
}

.service-box-info ul li a {
    text-decoration: none;
    color: #222;
    transition: all 0.4s ease;
}

.service-box-info ul li a:hover {
    color: #f46c31;
}

#tick {
    width: 25px;
    height: auto;
}


/* Responsive layout for mobile devices */

@media (max-width: 768px) {
    .service-box {
        flex-direction: column;
        padding: 10px;
    }

    .collapse:not(.show) {
        display: block;
    }

    .navbar-collapse {
        flex-basis: unset;
    }

    .service-box img,
    .service-box-info {
        width: 100%;
    }

    .service-box-info h3 {
        font-size: 1.2em;
        /* Có thể giảm kích thước tiêu đề cho nhỏ hơn */
    }

    .service-box-info ul {
        padding-left: 15px;
        /* Thu hẹp khoảng cách cho danh sách */
    }

    .service-box-info button {
        align-self: center;
        margin-top: 10px;
    }
}


/*Form*/

.contact-form-section {
    background-color: #f46a2c;
    /* màu cam */
    padding: 10px 10px;
    text-align: center;
    color: white;
    font-family: sans-serif;
}

.contact-form-section h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    font-family: 'Hanzel';
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.dropdown-menu {
    display: none;
    padding-left: 20px;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1 1 250px;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-style: italic;
}

.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    resize: none;
    min-height: 100px;
    margin-bottom: 20px;
    overflow: hidden;
    font-style: italic;
}

.contact-form button {
    background-color: #ffec00;
    color: #f46c31;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #ffec00;
}


/*Cap Nhat Nhanh*/

.news-update {
    max-width: 1300px;
    text-align: center;
    padding: 50px 0;
    margin: 0 auto;
}

.news-update h2 {
    color: #f46a2c;
    font-size: 26px;
    margin-bottom: 30px;
    font-family: 'Hanzel';
}

.news-update .news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
}

.news-grid a {
    text-decoration: none;
    color: #222;
}

.news-item {
    text-align: left;

}

.news-item .box-img {

    overflow: hidden;
    position: relative;
}

.news-item img {
    width: 100%;
    height: auto;
    max-height: 186px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-item .box-img:hover img {
    transform: scale(1.1);
}

.news-item h4 {
    font-size: 16px;
    margin-top: 10px;
    font-weight: bold;
    transition: all 0.4s;
}

.news-item h4:hover {
    color: #f46a2c;
}

.news-item p {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
}


/*Footer*/

.footer {
    background-color: #2172b6;
    color: white;
    font-family: 'Roboto';
    padding-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    /* 4 cột */
    gap: 20px;
    max-width: 1200px;
    /* Giới hạn chiều rộng */
    margin: 0 auto;
    /* Căn giữa container */
}

.footer-col {
    padding: 10px;
    text-align: left;
}

.logo-col img {
    width: 180px;
    height: auto;
}

.company-info h3 {
    font-family: 'Hanzel';
    font-size: 20px;
    margin-bottom: 20px;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.company-info p {
    margin: 0;
    width: 100%;
}

.map iframe {
    width: 100%;
    height: 200px;
}

.footer-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 30px;
    /* Căn giữa phần footer-services */
}

.footer-col.service {
    flex: 1;
    min-width: 220px;
    text-align: left;
}

.footer-col.service h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
    font-family: 'Roboto-Bold';
    text-align: left;
}

.footer-col.service ul {
    list-style: none;
    padding: 0;
}

.footer-col.service ul li {
    margin-bottom: 6px;
    font-size: 14px;
    color: #f1f1f1;
    text-align: left;
}

.footer-col.service ul li a {
    margin-bottom: 6px;
    font-size: 14px;
    color: #f1f1f1;
    text-align: left;
    text-decoration: none;
    transition: all 0.4s ease;
}

.footer-col.service ul li a:hover {
    color: #f8b497;
}

.logo-col {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    font-size: 13px;
    color: #ddd;
    background-color: #12486d;
    padding-bottom: 3px;
}


/* Media Queries */

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr;
        /* 3 cột */
    }

    .footer-services {
        flex-direction: column;
        /* Xếp dọc các dịch vụ */
    }

    .footer-col.service {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .service-grid .service-box:nth-child(even) {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        /* 2 cột */
    }

    .footer-col.logo-col {
        display: none;
        /* Ẩn logo cột riêng */
    }

    .footer-bottom {
        font-size: 12px;
        /* Thu nhỏ font cho phần dưới */
    }
}

@media (max-width: 480px) {
    .messenger-container {
        right: 2px;
    }

    .zs-container {
        right: 2px;
    }
}

@media (min-width: 996px) {
    .header-menu {
        width: 21%;
    }
    .navbar-expand-md .navbar-nav .dropdown-menu {
        padding-left: 0;
    }
}

@media (min-width:1200px){
	.navbar-expand-md .navbar-collapse { justify-content:space-between!important; }
	p.hotline { position:relative; }
	p.hotline:after { content:""; position:absolute; top:0; left:0; width:1000%; height:100%; }
}

@media (min-width:1400px){
	#navbarCentered .navbar-nav .nav-item.sub { padding:0 15px; }
}

@media (min-width: 1920px) {
    .footer-container {
        max-width: 1550px;
    }

    .footer-services {
        max-width: 1550px;
    }

    .footer-bottom .item-footer {
        max-width: 1550px;
    }
    #navbarCentered .navbar-nav{
        gap: 20px;
    }
}