.tien-ich-wrapper {
    color: #444;
    padding: 25px 0;
}

.tien-ich-wrapper * {
    box-sizing: border-box;
}

/* Ensure container handles centering and max-width */
.tien-ich-wrapper .ctnr {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.tien-ich-wrapper .tien-ich-item {
    display: flex;
    background-color: #f7f6f2;
    /* Light off-white background matching image */
    margin: 0 !important;
    padding: 0 !important;
}

.tien-ich-wrapper .tien-ich-item.reverse {
    flex-direction: row-reverse;
}

.tien-ich-wrapper .tien-ich-img,
.tien-ich-wrapper .tien-ich-content {
    flex: 1;
    width: 50%;
    position: relative;
}

.tien-ich-wrapper .tien-ich-img {
    position: relative;
}

.tien-ich-wrapper .tien-ich-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tien-ich-wrapper .tien-ich-item {
    min-height: 400px;
}

.tien-ich-wrapper .tien-ich-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tien-ich-wrapper .tien-ich-subtitle {
    font-size: var(--text-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
    font-weight: 700;
}

.tien-ich-wrapper .tien-ich-title {
    font-size: var(--heading-2);
    color: #163b36;
    margin: 0 0 25px 0;
    font-weight: 500;
}

.tien-ich-wrapper .tien-ich-desc {
    font-size: var(--text-base);
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

.tien-ich-wrapper .tien-ich-desc p {
    margin: 0 0 10px 0;
}

.tien-ich-wrapper .tien-ich-desc strong {
    color: #163b36;
    font-weight: 700;
}

.tien-ich-wrapper .tien-ich-desc ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0 0 15px 0;
}

.tien-ich-wrapper .tien-ich-desc li {
    margin-bottom: 5px;
}

.tien-ich-wrapper .tien-ich-btn {
    display: inline-block;
    background-color: #173633;
    color: #fff;
    text-transform: uppercase;
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    padding: 12px 30px;
    align-self: flex-start;
    transition: background-color 0.3s;
    border: none;
}

.tien-ich-wrapper .tien-ich-btn:hover {
    background-color: #ec7954;
}

.tab-content-noidung {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    top: 50%;
}

.desc-tienich .description {
    font-size: var(--text-lg);
    font-weight: 300;
    padding-top: 25px;
    padding-bottom: 20px;
}

.tien-ich-wrapper .ctnr .tien-ich-item:nth-child(2n) .tien-ich-img {
    order: 2;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .tien-ich-wrapper .ctnr .tien-ich-item:nth-child(2n) .tien-ich-img {
        order: 0;
    }

    .tab-content-noidung {
        position: unset;
        transform: unset;
        width: 100%;
    }

    .tien-ich-wrapper .tien-ich-title {
        font-size: var(--heading-4);
    }

    .tien-ich-wrapper .tien-ich-content {
        padding: 20px;
    }

    .tien-ich-wrapper .tien-ich-img img {
        min-height: 300px;
    }
}

@media (max-width: 767px) {

    .tien-ich-wrapper .tien-ich-item,
    .tien-ich-wrapper .tien-ich-item.reverse {
        flex-direction: column;
    }

    .tien-ich-wrapper .tien-ich-img {
        width: 100%;
        flex: none;
        height: 250px;
        /* Give container height on mobile */
    }

    .tien-ich-wrapper .tien-ich-content {
        width: 100%;
        flex: none;
    }

    .tien-ich-wrapper .tien-ich-img img {
        height: 100%;
        min-height: auto;
    }

}