/* Contact bar styles */
.daily-contact-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.daily-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.daily-contact-item img {
    flex-shrink: 0;
}

.daily-contact-item span {
    white-space: nowrap;
}

/* Main container */
.doitac-container {
    margin-top: -20px;
    width: 1440px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

/* Hero section */
.hero-section {
    background: #F5F5F5;
    width: 1441px;
    height: 688px;
    flex-shrink: 0;
    margin-top: 200px;
    margin-left: -0.5px;
    position: relative;
}

.hero-content {
    width: 748px;
    height: 255px;
    margin-top: 18px;
    margin-bottom: 0;
    margin-left: 346px;
    margin-right: 347px;
    border-radius: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    color: #000;
    text-align: center;
    font-family: Inter;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    height: 47px;
    align-self: stretch;
    margin-bottom: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-subtitle {
    color: #000;
    text-align: justify;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px;
    align-self: stretch;
    margin-top: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 297px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.hero-description {
    width: 1003px;
    height: 181px;
    margin: 15px auto 0 auto;
    background: #FFF;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.hero-description-text {
    width: 889px;
    height: 125px;
    flex-shrink: 0;
    color: #000;
    text-align: justify;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
}

.hero-description-text .highlight {
    color: #D72323;
    font-weight: 700;
}

.hero-background {
    width: 1440px;
    height: 321px;
    /* background: url(/images/doitac-im2.png) center center / cover no-repeat; */
    flex-shrink: 0;
    border-radius: 20px;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-button {
    width: 233px;
    height: 50px;
    margin-top: 218px;
    margin-bottom: 53px;
    margin-left: 603px;
    margin-right: 605px;
    background: #D72323;
    border-radius: 60px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(.4, 2, .6, 1), background 0.2s;
}

.hero-button:hover {
    transform: scale(1.20);
}

.hero-button-text {
    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    display: block;
    transition: color 0.2s;
}

.hero-button:hover .hero-button-text {
    color: #000;
}

.hero-button,
.hero-button:hover,
.hero-button:focus,
.hero-button-text {
    text-decoration: none !important;
}

/* Logo slider section */
.logo-slider-container {
    width: 1340px;
    height: 389.13px;
    border-radius: 20px;
    border: 1px solid #D5D5D5;
    background: #FFF;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.20);
    display: flex;
    padding: 78.764px 38.921px 78.705px 38.299px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 48.452px;
    flex-shrink: 0;
    margin: 60px auto 86.87px auto;
    box-sizing: border-box;
}

.slider-track {
    width: 1262.78px;
    height: 92.36px;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
    margin: 0 auto 48.45px auto;
    display: flex;
    align-items: center;
}

.slider-track:last-child {
    margin-bottom: 0;
}

.slider-content {
    display: flex;
    gap: 60.56px;
    animation: slide 12s linear infinite;
}

.slider-content-reverse {
    display: flex;
    gap: 60.56px;
    animation: slideReverse 12s linear infinite;
}

.slider-logo-container {
    width: 125.93px;
    height: 69.857px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Services grid section */
.services-container {
    width: 1360px;
    /* height: 1192px; */ /* Bỏ height cố định để tự động theo nội dung */
    background: #fff;
    border-radius: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 0 0 0; /* Thêm padding trên, bỏ padding dưới nếu cần */
}

.services-row {
    display: flex;
    flex-direction: row;
    gap: 80px; /* Đảm bảo khoảng cách giữa các box là 80px */
    margin-bottom: 80px; /* Giảm margin giữa các hàng */
    justify-content: center; /* Căn giữa các box trong hàng */
}

.services-row:last-child {
    margin-bottom: 0;
}

.service-box {
    width: 400px;
    height: 556px;
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0px 2px 8px 0px rgba(54, 47, 47, 0.50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
}

.service-box:hover {
    background: #362F2F;
}

.service-image {
    width: 400px;
    height: 276px;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #D9D9D9;
    border-radius: 10px 10px 0 0;
    margin: 0;
}

.service-content {
    min-height: 180px; /* Đảm bảo chiều cao đều cho các box */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-title {
    width: 389px;
    min-height: 60px; /* Đảm bảo tiêu đề các box đều nhau, mô tả sẽ ngang hàng */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-align: center;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    margin-top: 24px;
    transition: color 0.2s;
}

.service-box:hover .service-title {
    color: #fff;
}

.service-description {
    width: 379px;
    color: #000;
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 30px;
    margin-top: 24px;
    transition: color 0.2s;
    min-height: 60px; /* Đảm bảo chiều cao đều cho mô tả */
}

.service-box:hover .service-description {
    color: #fff;
}

.service-button {
    border-radius: 60px;
    background: #D72323;
    width: 243px;
    height: 55px;
    margin-top: 24px; /* Đẩy nút lên gần mô tả */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.service-button-text {
    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    transition: color 0.2s;
}

.service-button:hover .service-button-text {
    color: #000;
}

.service-button,
.service-button:visited,
.service-button:active,
.service-button:hover {
    text-decoration: none;
}

/* View all button */
.view-all-button {
    width: 158px;
    height: 50px;
    border-radius: 10px;
    margin: 90px auto 80px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.view-all-text {
    color: #000;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    transition: color 0.2s;
}

.view-all-button:hover .view-all-text {
    color: #969696;
}

/* Animations */
@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.hidden-service {
    display: none;
}