/*Tổng quan*/
.overview-section {
    padding: 40px 0;
}

.overview-left {
    flex: 1;
    position: relative;
}

.image-area {
    position: relative;

}

.image-wrapper{
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;

}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.floating-icon {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid #ffffff;
}
.floating-icon img {
    width: 60%;
    height: 60%;
}

.experience-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 300px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 20px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.experience-number {
    display: block;
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}
.experience-text {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
}
.rating-box {
    position: absolute;
    top: -15px;
    right: 20%;
    background-color: #ffffff;
    color: #000000;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}
.rating-box .star {
    color: var(--tertiary-color);
    margin-left: 3px;
}
.chart-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}


.overview-right {
    flex: 1;
}

.right-main-title {
    color: var(--primary-color);
    margin-top: 10px;
    margin-bottom: 20px;
}

.right-description {
    color: black;
    margin-bottom: 40px;
}

.service-list {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.service-item {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.service-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(247, 44, 59, 0.1);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #2c2c2c;
    margin: 0 0 5px 0;
}

.service-text {
    font-size: 14px;
    color: #777;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.delivery-guarantee {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 500;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.delivery-guarantee:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.delivery-guarantee .checkmark {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    stroke: var(--primary-color);
    stroke-width: 2.5;
    animation: checkmarkDraw 0.8s ease forwards;
}

.delivery-guarantee img{
    width: 22px;
    height: 22px;
    margin-right: 10px;
}

@keyframes checkmarkDraw {
    from {
        stroke-dasharray: 0 50;
        stroke-dashoffset: 0;
        opacity: 0.5;
    }
    to {
        stroke-dasharray: 50 0;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.card-main {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.card-item {
    flex: 1;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.card-item h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.card-item p {
    font-size: 15px;
    color: #555;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .card-main {
        gap: 15px;
    }
}


@media (max-width: 1024px) {
    .overview-section {
        flex-direction: column;
    }
    .overview-left, .overview-right {
        max-width: 100%;
        margin-top: 30px;
    }
    .image-area {
        min-height: 450px;
        margin-bottom: 60px;
    }
    .experience-box {
        bottom: -70px;
        left: 50%;
        transform: translateX(-50%);
    }
    .service-list {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .floating-icon{
        top: -15px;
        left: -10px;
    }
}

/* =========================
    PC Layout (Default)
=========================*/
.history-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.history-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.history-desc {
    color:black;
    margin-bottom: 50px;
}

.timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #ddd;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    float: left;
    clear: both;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    float: right;
    clear: both;
    text-align: left;
    /*padding-left: 60px;*/
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
    top: 5px;
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-date {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.event-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c2c2c;
    margin-top: 0;
}
.event-description {
    font-size: 16px;
    color: #666;
}

.timeline::after {
    content: '';
    display: table;
    clear: both;
}

/* =========================
    Shared Image Styling
=========================*/
.event-image {
    position: absolute;
    width: 500px;
    transform: translateY(-50%);
    z-index: 5;
    background-color: #ffffff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.timeline-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-item:nth-child(odd) .event-image {
    right: -550px;
}

.timeline-item:nth-child(even) .event-image {
    left: -550px;
}


/* =========================
    992px (Tablet)
=========================*/
@media (max-width: 992px) {

    /* ITEM chung cho mobile */
    .timeline-item {
        width: 100%;
        float: none;
        padding: 0 20px;
        text-align: center; /* căn giữa toàn bộ */
    }

    /* Ẩn đường line cũ */
    .timeline-item::after {
        display: none;
    }

    /* Ảnh nằm trên – căn giữa */
    .event-image {
        width: 100%;
        height: 100%;
        position: relative;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-bottom: 20px;
        z-index: 10;
    }

    /* CONTENT căn giữa */
    .timeline-item .timeline-content {
        text-align: center;
        margin: 0 auto;
        margin-top: 15px;
        max-width: 90%;
    }

    /* Năm – căn giữa */
    .timeline-date {
        text-align: center;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 10px;
        display: block;
    }

    .timeline::before{
        display: none;
    }


    .timeline-item:nth-child(odd) {
         padding-right: 0;
    }

    .history-section {
        padding: 20px 0;
    }

    .history-desc
    {
         margin-bottom: 0;
    }

    .timeline{
        margin-top: 0;
    }

    .timeline-item{
        margin-bottom: 20px;
        padding: 0 20px;
    }


}





/*Tầm nhìn và sứ mệnh*/

.vision-mission-section {
    padding: 40px 0;
    background-color: #fff;
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}
.main-section-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.main-section-subtitle {
    color: black;
    margin: 0 auto;
}

.vm-row-flex {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.vm-block {
    flex: 1;
    padding: 40px;
    border-radius: 12px;
    background-color: #ffffff;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 1;
}

.vm-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.vm-background-shape {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(217, 28, 44, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.vm-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.vm-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-right: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(59, 100, 204, 0.3);
    flex-shrink: 0;
}

.vm-icon {
    width: 36px;
    height: 36px;
    color: #ffffff;
    stroke: #ffffff;
    fill: none;
}

.vm-title {
    font-size: 25px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0;
    flex-grow: 1;
}

.vm-description {
    font-size: 16px;
    color: black;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-basis: 100%;
    margin-top: 25px;
}

.vm-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-basis: 100%;
}
.vm-features li {
    font-size: 16px;
    color: black;
    line-height: 1.8;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}
.vm-features li::before {
    content: '\2713';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
}

@media (max-width: 992px) {
    .vm-row-flex {
        flex-direction: column;
        gap: 40px;
    }
    .vm-block {
        padding: 35px 25px;
        text-align: center;
    }
    .vm-icon-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
    .main-section-title {
        font-size: 36px;
    }
    .main-section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .main-section-title {
        font-size: 30px;
    }
    .vm-title {
        font-size: 26px;
    }
}

.shape {
    position: absolute;
    border-color: var(--primary-color);
    border-style: solid;
    border-radius: 50%;
    z-index: 0;
}

.shape-1 {
    width: 200px;
    height: 200px;
    border-width: 2px;
    top: -80px;
    right: -80px;
    opacity: 0.1;
}

.shape-2 {
    width: 100px;
    height: 100px;
    border-width: 2px;
    top: -30px;
    right: -30px;
    opacity: 0.25;
}

.shape-3 {
    width: 120px;
    height: 120px;
    border-width: 0;
    border-left-width: 2px;
    border-bottom-width: 2px;
    border-radius: 0 0 0 120px;
    bottom: 0;
    left: 0;
    opacity: 0.5;
    transform: translateY(10px) translateX(-10px);
}

.shape-3.shape-mirrored {
    border-left-width: 0;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-top-width: 0;
    border-radius: 0 0 120px 0;
    bottom: 0;
    left: auto;
    right: 0;
    transform: translateY(10px) translateX(10px);
}

@media (max-width: 992px) {
    .vm-shapes {
        display: none;
    }
}

/*Giá trị cốt lõi*/

.core-values-section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.section-header {
    margin-bottom: 50px;
}

.core-values-title {
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.core-values-desc {
    margin: 0 auto;
    color: #fff;
}


.value-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
    margin: 12px 0;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.value-icon-wrapper {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 32px;
    margin: 0 auto 20px auto;
    transition: all 0.4s ease;
}

.value-card:hover .value-icon-wrapper {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

.value-content .value-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.value-content .value-description {
    font-size: 15px;
    color: black;
    line-height: 1.6;
    height: 100px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.value-bg-gradient {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(120deg, transparent 0%, transparent 40%, rgba(0, 102, 255, 0.2) 50%, transparent 60%, transparent 100%);
    background-size: 200% 100%;
    z-index: -1;
    transition: background-position 0.6s ease;
}

.value-card:hover .value-bg-gradient {
    background-position: 100% 0;
}

@media (max-width: 768px) {
    .core-values-section {
        padding: 60px 0;
    }
    .value-card {
        padding: 25px 20px;
    }
    .value-content .value-title {
        font-size: 1.8rem;
    }
}

/*Lĩnh vực hoạt động*/
.about-fields {
    background: #fff;
    padding: 40px 0;
}

.about-fields-title{
    color: var(--primary-color);
    text-align: center;
}

.about-fields-desc {
    color: black;
    text-align: center;
}

.field-title {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    color: #fff;
}

.col{
    height: 100%;
}

.transport {
    background: var(--primary-color);
    padding: 35px;
    height: 100%;
}

.logistics {
    background: var(--tertiary-color);
    padding: 35px;
    height: 100%;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20px;
}

.card i {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: 0.3s;
}

.logistics .card i {
    color: var(--tertiary-color);
}

.card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.field-card-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.card:hover i {
    transform: scale(1.15);
}

.field-cards .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

@media (max-width: 991px) {
    .field {
        margin-bottom: 25px;
    }
}

.about-fields .field-wrap {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
}

.about-fields .field-col {
    flex: 1 1 50%;
    display: flex;
}

.about-fields .field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-fields .field-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .about-fields .field-wrap{
        flex-direction: column;
    }
}

/*Đọi ngũ nhân sự*/
.team-section {
    padding: 40px 0;
    background: #fff;
}

.team-title {
    text-align: center;
    color: var(--primary-color);
}

.team-desc {
    color: black;
    text-align: center;
}

.team-card {
    text-align: center;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.team-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 5px;
}

.team-img img {
    width: 100%;
    /*height: 320px;*/
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.social-toggle {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 14px;
    border-top-right-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.team-social {
    position: absolute;
    left: 39px;
    bottom: 0;
    background: var(--primary-color);
    border-top-right-radius: 12px;
    padding: 3px 16px;
    display: flex;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.team-social a {
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}

.team-social a:hover {
    color: var(--tertiary-color);
}

.team-card:hover .team-social {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.team-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 18px 0 5px;
    color: var(--primary-color);
}

.team-card p {
    color: var(--tertiary-color);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 20px;
}
/* Mobile: luôn hiện social */
@media (max-width: 576px) {
    .team-social {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
        left: 0 !important;
    }

    /* Không cần hover mới hiện */
    .team-card:hover .team-social {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Nút toggle hiện luôn hoặc ẩn tùy bạn */
    .social-toggle {
        display: none; /* nếu muốn ẩn toggle ở mobile */
    }
}


/*Cam kết dịch vụ*/
.s-commitment {
    padding: 40px 0;
}

.comitment-title{
    color: var(--primary-color);
    text-align: center;
}

.comitment-desc{
    color: black;
    text-align: center;
    text-transform: none;
}

[class*="s_thumb-"] {
    border-radius: 12px;
}
.s-commitment .s_thumb-1 {
    margin-top: 60px;
}
.s-commitment .s_content {
    padding: 10px 26px;
    background: var(--primary-color);
    color: #fff;
    position: absolute;
    border-radius: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.s-commitment .s_content .b_number {
    padding: 20px 0;
    text-align: center;
}
.s-commitment .s_content .b_number:first-child {
    border-bottom: 1px solid #fff;
}
.s-commitment .s_content .b_number .number {
    font-size: 48px;
    font-weight: bold;
}
.s-commitment ul {
    padding-left: 10px;
}

/* Card cam kết */
.b-card-3 {
    display: block;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}
.b-card-3::after {
    content: '';
    display: table;
    clear: both;
}
.b-card-3 .b_icon {
    float: left;
    width: 65px;
    margin-right: 25px;
    text-align: center;
}
.b-card-3 .b_icon img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}
.b-card-3 .b_content {
    float: left;
    width: calc(100% - 90px);
}
.b-card-3 .b_title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.25em;
    margin-bottom: 7px;
    color: var(--primary-color);
}
.b-card-3 .b_desc {
    color: #686868;
    line-height: 1.6;
}
.b-card-3:hover {
    transform: translateY(-4px);
}
.b-card-3:hover .b_icon img {
    transform: scale(1.1);
}

@media screen and (max-width: 992px) {
    .headline-1 {
        font-size: 28px;
    }
    .headline-desc {
        font-size: 15px;
    }
    .s-commitment .s_content {
        padding: 10px 15px;
    }
    .s-commitment .s_content .b_number .number {
        font-size: 30px;
    }
    .s-commitment ul {
        margin-top: 20px;
    }
}
