/* TRỌN BỘ CSS CHO KHỐI GIA CÔNG MỸ PHẨM (.lua-chon) */
.lua-chon {
    width: 100%;
    box-sizing: border-box;
}

/* 1. Gạch ngang nhỏ màu xanh phía trên tiêu đề */
.lua-chon .tieu-de::before {
    content: "";
    display: block;
    width: 45px;
    height: 4px;
    background-color: var(--color-accent-light);
    border-radius: 2px;
    margin-bottom: 16px;
}

/* 2. Tiêu đề H2 */
.lua-chon .tieu-de h2 {
    color: var(--color-main);
    font-size: clamp(20px, 2.8vw, 24px);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Đoạn văn mô tả */
.lua-chon .mo-ta p:first-child {
    color: #4b5563;
    font-size: 15.5px;
    line-height: 1.65;
    margin: 0 0 25px 0;
}

/* 4. Thẻ P bọc ảnh: chừa khoảng trống đệm để viền không bị tràn lề */
.lua-chon .mo-ta p:last-child {
    margin: 0;
    padding-right: 15px;
    padding-bottom: 15px;
    box-sizing: border-box;
    display: block;
}

/* 5. Thẻ A ôm khít ảnh làm mốc toạ độ (Cốt lõi tránh lỗi lệch viền) */
.lua-chon .mo-ta p:last-child a {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
}

/* 6. Bức ảnh bo góc */
.lua-chon .mo-ta img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 26px;
    position: relative;
    z-index: 2;
}

/* 7. Góc viền xanh ôm sát góc dưới bên phải ảnh */
.lua-chon .mo-ta p:last-child a::after {
    content: "";
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 85px;
    height: 85px;
    border-right: 10px solid var(--color-accent-light);
    border-bottom: 10px solid var(--color-accent-light);
    border-bottom-right-radius: 36px;
    z-index: 1;
    pointer-events: none;
}

/* TỐI ƯU GIAO DIỆN MÀN HÌNH NHỎ (MOBILE < 576px) */
@media (max-width: 576px) {
    .lua-chon .mo-ta p:last-child {
        padding-right: 10px;
        padding-bottom: 10px;
    }

    .lua-chon .mo-ta img {
        border-radius: 18px;
    }

    .lua-chon .mo-ta p:last-child a::after {
        right: -8px;
        bottom: -8px;
        width: 60px;
        height: 60px;
        border-right-width: 7px;
        border-bottom-width: 7px;
        border-bottom-right-radius: 24px;
    }
}

/* CARD TƯ VẤN (.icon-lc) */
.icon-box.icon-lc {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 20px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
}

/* Hiệu ứng khi rê chuột vào Card */
.icon-box.icon-lc:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(20, 102, 93, 0.08);
    border-color: rgba(20, 102, 93, 0.15);
}

/* Khung bọc Icon màu xanh nhạt có bo góc */
.icon-box.icon-lc .icon-box-img {
    width: 55px !important;
    height: 55px !important;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px !important;
    margin-top: 0 !important;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.1);
    flex-shrink: 0;
}

/* Ảnh Icon bên trong */
.icon-box.icon-lc .icon-box-img .icon-inner,
.icon-box.icon-lc .icon-box-img .icon-inner img {
    width: 35px !important;
    height: 35px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Phần nội dung text */
.icon-box.icon-lc .icon-box-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0;
}

/* Tiêu đề H3 */
.icon-box.icon-lc h3 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

/* Đoạn mô tả */
.icon-box.icon-lc .icon-box-text p:not(.tu-van) {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Nút / Dòng chữ Tư vấn */
.icon-box.icon-lc .tu-van {
    color: var(--color-main);
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: auto;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Tự động thêm mũi tên -> phía sau chữ Tư vấn */
.icon-box.icon-lc .tu-van::after {
    content: "→";
    font-size: 1.15em;
    line-height: 1;
    transition: transform 0.25s ease;
}

/* Hiệu ứng mũi tên bay nhẹ qua phải khi hover */
.icon-box.icon-lc:hover .tu-van::after {
    transform: translateX(4px);
}

.icon-box.icon-lc:hover .tu-van {
    color: var(--color-brand-green);
}

/* RESPONSIVE CHO MÀN HÌNH DI ĐỘNG (< 768px) */
@media (max-width: 767px) {
    .icon-box.icon-lc {
        padding: 22px 18px;
        border-radius: 20px;
    }
    
    .icon-box.icon-lc .icon-box-img {
        width: 56px !important;
        height: 56px !important;
        border-radius: 14px;
        margin-bottom: 18px !important;
    }

    .icon-box.icon-lc .icon-box-img .icon-inner,
    .icon-box.icon-lc .icon-box-img .icon-inner img {
        width: 30px !important;
        height: 30px !important;
    }

    .icon-box.icon-lc h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .icon-box.icon-lc .icon-box-text p:not(.tu-van) {
        font-size: 0.875rem;
        margin-bottom: 18px;
    }
}

/* Mô hình */
.mo-hinh {
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Thanh gạch ngang màu xanh ở trên cùng */
.mo-hinh::before {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background-color: var(--color-accent-light);
    border-radius: 2px;
    margin-bottom: 22px;
}

/* Tiêu đề chính */
.mo-hinh .text1 h2 {
    color: var(--color-black);
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

/* Đoạn mô tả phụ bên dưới */
.mo-hinh .text2 p {
    color: #4b5563;
    font-size: clamp(0.88rem, 1.4vw, 1.02rem);
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

/* Tinh chỉnh riêng cho màn hình nhỏ (Mobile < 480px) */
@media (max-width: 480px) {
    .mo-hinh::before {
        width: 40px;
        margin-bottom: 16px;
    }
	
    .mo-hinh .text1 h2 {
        letter-spacing: 0.3px;
    }
}

/* Bài viết */
/* ===================================================
   TÙY CHỈNH GIAO DIỆN SLIDER DỊCH VỤ (FLATSOME)
=================================================== */

/* 1. Thiết lập thẻ Card bo tròn và viền như ảnh */
.dich-vu .col-inner {
    height: 100%;
}

.dich-vu .box {
    background: var(--color-white);
    border: 1.5px solid #e8ede9; /* Viền xám sáng nhẹ */
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.dich-vu .box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* 2. Tỉ lệ ảnh (Tùy chỉnh ảnh vuông hoặc cao hơn như mẫu) */
.dich-vu .box-image {
    width: 100%;
}
.dich-vu .box-image .image-cover {
    padding-top: 95% !important;
}

/* 3. Phần nội dung text */
.dich-vu .box-text {
    padding: 20px 15px 10px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dich-vu .box-text-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 4. Tiêu đề dịch vụ */
.dich-vu .post-title {
    margin-bottom: 12px;
}

.dich-vu .post-title a {
    color: var(--color-main) !important;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.dich-vu .post-title a:hover {
    color: var(--color-accent-light) !important;
}

/* Ẩn thanh gạch ngang mặc định của Flatsome */
.dich-vu .is-divider {
    display: none !important;
}

/* 5. Đoạn mô tả (Excerpt) */
.dich-vu .from_the_blog_excerpt {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 6. Nút "Xem chi tiết" bo viền + mũi tên */
.dich-vu a.button {
    margin-top: auto !important; /* Đẩy nút luôn dính đáy kể cả khi mô tả ngắn dài khác nhau */
    width: 100%;
    background-color: rgba(20, 102, 93, 0.05) !important; /* Màu nền xanh pastel rất nhạt */
    color: var(--color-main) !important;
    border: 1px solid rgba(20, 102, 93, 0.3) !important;
    border-radius: 10px;
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Tự động thêm icon mũi tên vào sau chữ */
.dich-vu a.button::after {
    content: "→";
    margin-left: 8px;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

/* Hiệu ứng khi rê chuột vào nút */
.dich-vu a.button:hover {
    background-color: var(--color-main) !important;
    color: var(--color-white) !important;
    border-color: var(--color-main) !important;
}

.dich-vu a.button:hover::after {
    transform: translateX(4px);
}

/* 7. Đồng bộ chiều cao Slider Flickity */
.dich-vu .flickity-viewport {
    transition: height 0.3s;
}
.dich-vu .col.post-item {
    padding-bottom: 15px; /* Giữ khoảng cách bóng đổ */
}

/* 8. Tối ưu cho Mobile (Màn hình dưới 550px) */
@media (max-width: 549px) {
    .dich-vu .box-text {
        padding: 18px 15px 15px !important;
    }
    .dich-vu .post-title a {
        font-size: 1.05rem;
    }
    .dich-vu .from_the_blog_excerpt {
        font-size: 0.88rem;
    }
}