.tabs-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 60px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #029143;
    padding: 40px 0;
}

.tab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tab-item.active {
    background-color: #51e89553;
    border-color: var(--mainColor);
    box-shadow: 0 10px 30px rgba(45, 179, 4, 0.2);
}

.tab-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.tab-item span {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 10px;
}

.tab-arrow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #51e89553;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-item.active .tab-arrow {
    opacity: 1;
}

.tabs-content {
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    align-items: center;
    gap: 60px;
}

.tab-content.active {
    display: flex;
}

.content-left {
    flex: 0 0 580px;
}

.content-image {
    width: 580px;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
}

.content-right {
    flex: 1;
    max-width: 520px;
}

.content-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
}

.content-text {
    margin-bottom: 40px;
}

.content-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-detail {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--mainColor);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--mainColor);
}

.btn-detail:hover {
    background-color: transparent;
    color: var(--mainColor);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 179, 4, 0.2);
}

@media screen and (max-width: 1024px) {
    .tabs-nav {
        gap: 20px;
    }

    .tab-item {
        width: 200px;
        height: 160px;
    }

    .tab-content {
        gap: 40px;
    }

    .content-left {
        flex: 0 0 480px;
    }

    .content-image {
        width: 480px;
        height: 330px;
    }
}

@media screen and (max-width: 768px) {
    .tabs-section {
        padding: 60px 0;
    }

    .tabs-nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .tab-item {
        width: 280px;
        height: 120px;
        flex-direction: row;
        padding: 0 20px;
        text-align: left;
    }

    .tab-item img {
        width: 40px;
        height: 40px;
        margin-right: 15px;
        margin-bottom: 0;
    }

    .tab-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .content-left {
        flex: none;
        order: 1;
    }

    .content-right {
        flex: none;
        max-width: 100%;
        order: 2;
    }

    .content-image {
        width: 100%;
        max-width: 500px;
        height: 300px;
    }

    .content-title {
        font-size: 28px;
    }

    .content-text {
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .tab-item {
        width: 100%;
        max-width: 300px;
    }

    .content-title {
        font-size: 24px;
    }

    .content-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .btn-detail {
        padding: 12px 30px;
        font-size: 14px;
    }

    .content-image {
        height: 250px;
    }
}