.section-services {
    background-color: var(--bg-secondary);
}

/* --- Dịch vụ nổi bật (May đo tận nơi) --- */
.service-featured {
    display: grid;
    grid-template-columns: 1fr;
    /* SỬA LỖI QUAN TRỌNG: Dùng đúng biến --bg-contrast cho nền tối */
    background-color: var(--bg-contrast);
    color: var(--text-contrast);
    /* Chữ màu sáng */
    border: 1px solid var(--border-primary);
    /* Thêm viền nhẹ để tách biệt khỏi nền */
}

@media (min-width: 992px) {
    .service-featured {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
        /* Căn giữa nội dung theo chiều dọc */
    }
}

.service-featured__image {
    min-height: 450px;
}

.service-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-featured__content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .service-featured__content {
        padding: 60px;
    }

    .main-menu-desktop li a {
        font-size: 18px;
    }
}

.service-featured__tag {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.service-featured__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.service-featured__description {
    color: #b0b0b0;
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-outline {
    align-self: flex-start;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 12px 24px;
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--bg-contrast);
}

.btn-outline i {
    margin-left: 10px;
}

/* --- Các dịch vụ khác --- */
.other-services {
    padding-top: 80px;
}

.other-services .section-header {
    margin-bottom: 60px;
}

.other-services .section-title {
    color: var(--text-primary);
}

.other-services .section-subtitle {
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-card__image {
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: var(--color-white);
    transform: translateY(30%);
    transition: transform 0.4s ease;
}

.service-card:hover .service-card__content {
    transform: translateY(0);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.2;
}

.service-card__title a {
    color: var(--color-white);
}

.service-card__link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
    display: inline-block;
    margin-top: 10px;
}

.service-card:hover .service-card__link {
    opacity: 1;
}

/* ===== Factory ===== */
.factory-section .factory-wrapper {
    padding: 28px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: var(--background-color);
}

.factory-section .factory-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--border-radius) - 2px);
    margin-bottom: 18px;
}

/* Number strip */
.factory-section .factory-number {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    /* dùng gap thay vì padding + border */
    flex-wrap: wrap;
    /* mobile tự xuống hàng */
}

.factory-section .factory-number_item {
    flex: 1 1 200px;
    /* tự giãn, min ~200px */
    text-align: center;
    padding: 16px 12px;
    background: var(--background-alt);
    border-radius: 10px;
    color: #15de2e;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.factory-section .factory-number_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

/* Typography */
.factory-section .number_item-top {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--secondary-color);
    /* đồng bộ màu hệ thống */
    letter-spacing: .3px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}

.factory-section .number_item-bottom {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    opacity: .85;
}

/* Desktop: hiển thị vạch ngăn mảnh, chỉ khi không wrap */
@media (min-width: 992px) {
    .factory-section .factory-number {
        flex-wrap: nowrap;
    }

    .factory-section .factory-number_item {
        position: relative;
        background: transparent;
        padding: 10px 28px;
        /* color: #15de2e; */
    }

    .factory-section .factory-number_item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: -12px;
        top: 12%;
        bottom: 12%;
        width: 1px;
        background: linear-gradient(to bottom, transparent, #ccc, transparent);
    }
}

/* Tablet & mobile: phóng chữ nhỏ lại, 2 cột đẹp */
@media (max-width: 991.98px) {
    .factory-section .number_item-top {
        font-size: 26px;
    }

    .factory-section .factory-number_item {
        flex: 1 1 calc(50% - 12px);
    }

    .hero-text {
        margin-top: 6rem;
    }
}

/* Mobile nhỏ: 1 cột, thoáng hơn */
@media (max-width: 575.98px) {
    .factory-section .factory-wrapper {
        padding: 18px;
    }

    .factory-section .factory-number {
        gap: 12px;
    }

    .factory-section .factory-number_item {
        flex: 1 1 calc(50% - 12px);
    }

    .feature-item-text {
        font-size: 24px
    }
}

section.section-booking {
    background-image: url("../images/setting/bg-contact.png");
    background-size: cover;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    /* width: calc(100% - 50px); */
}

section.section.section-booking h2.section-title {
    font-weight: 700;
    color: #ffffff;
}

section.section.section-booking p.section-subtitle {
    font-weight: 500;
    color: #ffffff;
}

section.section.section-booking button {
    /* Sử dụng biến màu nhấn chính của anh */
    background-color: var(--theme-accent);

    /* Sử dụng biến màu trắng cho chữ */
    color: var(--color-white);

    /* Sử dụng biến font phụ của anh */
    font-family: var(--font-second);

    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 40px;
    border: 2px solid var(--theme-accent);
    transition: all 0.3s ease;
}

section.section.section-booking button:hover {
    background-color: transparent;
    color: var(--theme-accent);
}


.category-block {
    margin-bottom: 80px;
}

.nav-pills {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px !important;
}

.nav-item {
    list-style: none;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 10px 25px;
    border: 2px solid var(--border-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.section-categories .category-block .nav-link:hover,
.section-categories .category-block .nav-link.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
}

.tab-pane.fade {
    display: none;
}

.tab-pane.fade.show.active {
    display: block;
}

.category-image img {
    width: 100%;
    object-fit: cover;
}


.lookbook-gallery {
    column-count: 2;
    column-gap: 15px;
}

@media (min-width: 768px) {
    .lookbook-gallery {
        column-count: 4;
    }
}

.lookbook-gallery img {
    margin-bottom: 15px;
}


.section-testimonials {
    background-color: var(--bg-secondary);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: auto;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.testimonial-card {
    position: relative;
    background-color: var(--bg-primary);
    padding: 40px;
    text-align: center;
}

.testimonial-card__text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-card__author {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.testimonial-card__role {
    color: var(--accent-gold);
}


.contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .contact-form {
        flex-direction: row;
    }
}

.contact-form input {
    flex-grow: 1;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 15px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.contact-form button {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    padding: 15px 30px;
    border: 2px solid var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: transparent;
    color: var(--text-primary);
}


.post-slider-container {
    position: relative;
    padding: 0 40px;
}

.swiper-wrapper {
    padding-bottom: 40px;
}

.post-item {
    text-align: left;
}

.post-item__image {
    display: block;
    margin-bottom: 15px;
}

.post-item__image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.post-item__date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.post-item__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.post-item__title:hover {
    color: var(--accent-gold);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--accent-gold);
}

.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-gold) !important;
}


.why-img {
    border-radius: 15% 0px 15% 0px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.why-item_image {
    border-radius: 15% 0px 15% 0px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding: 15px;
}

p.why-item_headText {
    margin-top: 13px;
    background-color: #f9fff8;
}

.why-des {
    background-color: #f9fff8;
    padding: 10px;
}

.sumenh {
    border-left: 1px dashed #000000;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item-icon {
    margin-right: 10px;
}

.feature-item-icon i {
    color: #209e2e;
    padding: 15px;
    border-radius: 50%;
    border: 1px dashed #209e2e;
    background-color: #eafef1;
}


.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* ===== HOMEPAGE HERO SLIDER ===== */
.hero-section {
    width: 100%;
    position: relative;
}

.hero-slider {
    width: 100%;
    height: 500px;
    position: relative;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 300px;
    }
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 50, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Swiper controls */
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}

.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.hero-slider .swiper-pagination-bullet-active {
    background: #28a745;
    opacity: 1;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    height: 100px;
    transition: all 0.3s ease;
}

.partner-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.partner-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-section {
    padding: 60px 0;
}

.cert-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cert-image {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cert-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cert-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* ===== NEWS SECTION ===== */
.news-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    display: block;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 15px;
}

.news-date {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
}

.news-title a:hover {
    color: #28a745;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}