﻿
.sugarcane-container {
    padding: 50px 20px; /* tăng padding để các cụm có khoảng thở */
    background: #f1f3f2;
    text-align: center;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important; /* bỏ màu xám */
}

.sugarcane-title {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    padding: 0 15px;
    color: #006633;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

    /* Tiêu đề chính */
    .sugarcane-title h2 {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 10px;
        letter-spacing: 1px;
        line-height: 1.4;
        transition: transform 0.4s ease, color 0.4s ease;
    }

/* Dòng mô tả phụ (sub title) */
.sugarcane-sub {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 400;
    color: #006633;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.6;
    opacity: 0.9;
    transition: all 0.4s ease;
}

/* Hiệu ứng hover nhẹ toàn khối */
.sugarcane-title:hover h2 {
    transform: scale(1.03);
    color: #00994d;
}

.sugarcane-title:hover .sugarcane-sub {
    opacity: 1;
    color: #228B22;
}

/* Responsive bổ sung cho màn nhỏ */
@media (max-width: 600px) {
    .sugarcane-title {
        margin-bottom: 30px;
    }

    .sugarcane-sub {
        font-size: 1rem;
    }
}

/* Mobile tối ưu */
@media (max-width: 768px) {
    .sugarcane-title {
        font-size: 1.2rem; /* nhỏ gọn hơn */
        line-height: 1.3;
        max-width: 95%; /* mở rộng để bớt xuống dòng */
    }
}

@media (max-width: 480px) {
    .sugarcane-title {
        font-size: 1rem;
        line-height: 1.3;
        max-width: 100%;
    }
}

    .sugarcane-title:hover {
        color: #00994d; /* xanh sáng hơn khi hover */
        transform: scale(1.03);
    }

/* --- Tăng kích thước tổng thể hơn nữa --- */
.circle-wrapper {
    position: relative;
    width: 460px; /* ↑ từ 380px lên 460px */
    height: 460px;
    margin: 60px auto;
    transition: transform 0.4s ease;
}

/* --- Vòng tròn chính lớn hơn --- */
.main-circle {
    width: clamp(190px, 25vw, 300px); /* Tự co giãn theo màn hình */
    height: clamp(190px, 25vw, 300px);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    position: absolute;
    text-align: center; /* Căn giữa chữ */
    padding: clamp(10px, 3vw, 25px);
    box-sizing: border-box; /* Tính cả padding vào kích thước */
    overflow: hidden; /* Ẩn phần chữ tràn */
    word-wrap: break-word; /* Tự xuống dòng nếu quá dài */
    text-overflow: ellipsis; /* Có thể thêm dấu “…” nếu muốn */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    border: 5px solid #00cc66;
    box-shadow: 0 0 35px rgba(0, 204, 102, 0.7), 0 0 55px rgba(0, 204, 102, 0.4);
    transition: box-shadow 0.4s ease-in-out, transform 0.4s ease;
}

    /* Hiệu ứng khi hover vào vòng tròn chính */
    .main-circle:hover {
        box-shadow: 0 0 25px rgba(0, 204, 102, 0.8), 0 0 50px rgba(0, 204, 102, 0.6), 0 0 70px rgba(0, 204, 102, 0.4);
    }

    .main-circle h4 {
        font-size: clamp(1rem, 2vw, 1.4rem);
        margin-bottom: 5px;
        line-height: 1.2;
        font-weight: 600;
    }

    .main-circle p {
        font-size: clamp(0.85rem, 1.5vw, 1.1rem);
        line-height: 1.3;
        margin: 0;
    }

    @media (max-width: 992px) {
        .main-circle {
            width: 240px;
            height: 240px;
            padding: 15px;
        }

            .main-circle h4 {
                font-size: 1.1rem;
            }

            .main-circle p {
                font-size: 0.8rem;
                line-height: 1.3;
            }
    }

    /* 📱 Mobile (màn hình < 600px) */
    @media (max-width: 600px) {
        .main-circle {
            width: 160px;
            height: 160px;
            padding: 10px;
        }

            .main-circle h4 {
                font-size: 0.95rem;
                line-height: 1.2;
            }

            .main-circle p {
                font-size: 0.62rem;
                line-height: 1.3;
            }
    }
/* --- Vòng tròn nhỏ lớn hơn --- */
.small-circle {
    width: 150px; /* ↑ từ 100px lên 120px */
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #fff;
    cursor: pointer;
    z-index: 3;
}
    /* Thêm lớp inner để hiệu ứng */
    .small-circle .inner {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        overflow: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 0 0 rgba(0, 128, 0, 0); /* shadow ban đầu trong suốt */
    }

    /* Hình ảnh trong vòng tròn */
    .small-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .small-circle::after {
        content: attr(data-hint);
        position: absolute;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: clamp(12px, 2.8vw, 16px);
        font-weight: 600;
        color: #fff;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        display: flex;
        background: rgba(255, 255, 255, 0.25);
        transform: skewX(-25deg);
        pointer-events: none;
        animation: lightSweep 15s linear infinite;
    }
/* Animation ánh sáng lướt */
@keyframes lightSweep {
    0% {
        left: -75%;
    }

    50% {
        left: 125%;
    }

    100% {
        left: -75%;
    }
}
/* Hover hiện đại */
.small-circle:hover .inner {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 8px 20px rgba(0, 128, 0, 0.4);
}

.small-circle:hover img {
    transform: scale(1.2) rotate(-8deg);
}

/* --- Bán kính vòng ngoài tăng tương ứng --- */
.pos1 {
    transform: translate(-50%, -50%) rotate(0deg) translate(230px) rotate(-0deg);
}

.pos2 {
    transform: translate(-50%, -50%) rotate(60deg) translate(230px) rotate(-60deg);
}

.pos3 {
    transform: translate(-50%, -50%) rotate(120deg) translate(230px) rotate(-120deg);
}

.pos4 {
    transform: translate(-50%, -50%) rotate(180deg) translate(230px) rotate(-180deg);
}

.pos5 {
    transform: translate(-50%, -50%) rotate(240deg) translate(230px) rotate(-240deg);
}

.pos6 {
    transform: translate(-50%, -50%) rotate(300deg) translate(230px) rotate(-300deg);
}



@media (max-width: 992px) {
    .circle-wrapper {
        width: 380px;
        height: 380px;
        overflow: visible;
    }

    .main-circle {
        width: 240px;
        height: 240px;
    }

    .small-circle {
        width: 120px;
        height: 120px;
        opacity: 1;
        transform: scale(1);
        z-index: 3;
    }

    .pos1 {
        transform: translate(-50%, -50%) rotate(0deg) translate(190px) rotate(-0deg);
    }

    .pos2 {
        transform: translate(-50%, -50%) rotate(60deg) translate(190px) rotate(-60deg);
    }

    .pos3 {
        transform: translate(-50%, -50%) rotate(120deg) translate(190px) rotate(-120deg);
    }

    .pos4 {
        transform: translate(-50%, -50%) rotate(180deg) translate(190px) rotate(-180deg);
    }

    .pos5 {
        transform: translate(-50%, -50%) rotate(240deg) translate(190px) rotate(-240deg);
    }

    .pos6 {
        transform: translate(-50%, -50%) rotate(300deg) translate(190px) rotate(-300deg);
    }
}


/* --- Mobile --- */
@media (max-width: 600px) {
    .circle-wrapper {
        width: 280px;
        height: 280px;
    }

    .main-circle {
        width: 170px;
        height: 170px;
    }

    .small-circle {
        width: 75px;
        height: 75px;
    }

    .pos1 {
        transform: translate(-50%, -50%) rotate(0deg) translate(130px) rotate(-0deg);
    }

    .pos2 {
        transform: translate(-50%, -50%) rotate(60deg) translate(130px) rotate(-60deg);
    }

    .pos3 {
        transform: translate(-50%, -50%) rotate(120deg) translate(130px) rotate(-120deg);
    }

    .pos4 {
        transform: translate(-50%, -50%) rotate(180deg) translate(130px) rotate(-180deg);
    }

    .pos5 {
        transform: translate(-50%, -50%) rotate(240deg) translate(130px) rotate(-240deg);
    }

    .pos6 {
        transform: translate(-50%, -50%) rotate(300deg) translate(130px) rotate(-300deg);
    }
}

.circle-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px; /* khoảng cách giữa hàng */
    margin-top: 40px;
}

/* Hàng 1: cụm ở giữa */
.row-1 {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Hàng 2: 2 cụm ngang hàng, chia đều */
.row-2 {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    width: 100%;
}

/* Tùy chỉnh responsive */
@media (max-width: 992px) {
    .row-2 {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .row-1, .row-2 {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}




/*Section*/
.farm-connection-section {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/images/Cane/canhdongmia.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
    width: 99.6vw; /* full width màn hình */
    margin-left: calc(-50vw + 50%); /* loại bỏ giới hạn container cha */
    text-align: center;
}

    .farm-connection-section .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45); /* mờ nền để chữ nổi bật */
        z-index: 1;
    }

    .farm-connection-section .container {
        position: relative;
        z-index: 2;
        max-width: 800px;
        margin: 0 auto;
    }

    .farm-connection-section .section-title-m {
        font-family: 'Poppins', sans-serif;
        font-size: clamp(1.2rem, 2.5vw, 2rem);
        font-weight: 700;
        margin-bottom: 25px;
        text-transform: uppercase !important;
        text-shadow: 0 4px 12px rgba(0,0,0,0.5);
        position: relative;
        display: inline-block;
        overflow: hidden;
    }

        /* Ánh sáng lướt trên chữ */
        .farm-connection-section .section-title-m .light-sweep {
            position: absolute;
            top: 0;
            left: -75%;
            width: 50%;
            height: 100%;
            background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
            transform: skewX(-25deg);
            animation: sweep 2s infinite;
        }

@keyframes sweep {
    0% {
        left: -75%;
    }

    50% {
        left: 125%;
    }

    100% {
        left: -75%;
    }
}

.farm-connection-section .section-desc {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 35px;
    line-height: 1.6;
}

.farm-connection-section .btn-learn-more {
    display: inline-block;
    padding: 14px 35px;
    background: #00cc66;
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .farm-connection-section .btn-learn-more:hover {
        background: #00994d;
        transform: scale(1.05);
    }

/* Responsive Tablet */
@media (max-width: 992px) {
    .farm-connection-section {
        padding: 80px 15px;
    }
}

/* Responsive Mobile */
@media (max-width: 600px) {
    .farm-connection-section {
        padding: 50px 10px;
    }

        .farm-connection-section .section-title {
            font-size: 1.8rem;
        }

        .farm-connection-section .section-desc {
            font-size: 1rem;
        }
}

/*Đường kẻ*/
.line-green {
    width: 100%;
    height: 4px;
    background: rgba(0, 204, 102, 0.8);
    margin: 0;
    border-radius: 2px; /* bo tròn mép cho đẹp */
}

/*Tai lieu*/
.training-docs-section {
    width: 99.6vw; /* full width màn hình */
    margin-left: calc(-50vw + 50%); /* loại bỏ giới hạn container cha */
    background: #e2f8ed;
    padding: 80px 20px;
    text-align: center;
}

    .training-docs-section .section-title {
        font-family: 'Poppins', sans-serif;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        font-weight: 700;
        color: #006633;
        margin-bottom: 15px;
        text-transform: uppercase;
        position: relative;
    }

    .training-docs-section .section-desc {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        color: #444;
        margin-bottom: 40px;
    }

.docs-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

    .doc-item:hover {
        transform: translateY(-4px);
    }

.doc-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    color: #00994d;
}

.doc-title {
    flex: 1;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.btn-download {
    background: #00cc66;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    animation: pulse 1.5s infinite;
    transition: background 0.3s ease;
}

    .btn-download:hover {
        background: #00994d;
    }

/* Hiệu ứng nhấp nháy nút */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 204, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 204, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 204, 102, 0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .doc-title {
        text-align: left;
    }

    .btn-download {
        align-self: flex-start;
    }
}

/*Bao ve moi truong*/

.pest-control-section {
    background: #f9fefc;
    padding: 60px 20px;
    width: 99.6vw; /* full width màn hình */
    margin-left: calc(-50vw + 50%); /* loại bỏ giới hạn container cha */
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #006644;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: fadeInDown 1.2s ease-in-out;
}

/* Hình ảnh minh họa */
.image-wrapper {
    max-width: 1000px;
    margin: auto;
}

    .image-wrapper img {
        transition: transform 0.6s ease, box-shadow 0.6s ease;
        border: 4px solid #fff;
    }

        /* Hiệu ứng hover hiện đại */
        .image-wrapper img:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }

/* Hiệu ứng xuất hiện */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-img {
    animation: zoomIn 1.2s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .image-wrapper img {
        width: 100%;
    }
}

/*hinh cuoi trang*/
.full-image-section {
    width: 99.6vw;
    height: 60vh;
    margin-left: calc(-50vw + 50%);
    background: url('/images/Cane/dongmiadep.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center; 
    align-items: center; 
    position: relative;
    text-align: center;
}

.ending-text {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    /* Màu chữ + VIỀN tối để luôn rõ trên nền sáng */
    color: #ffffff; /* màu fill */
    -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.95); /* viền cho WebKit (Chrome, Edge, Safari) */
    text-stroke: 1.2px rgba(0, 0, 0, 0.75); /* spec mới – vài trình duyệt khác dần hỗ trợ */
    /* Bóng chữ tạo chiều sâu */
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 18px rgba(34, 197, 94, 0.45);
    /* Hiệu ứng xuất hiện */
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    animation: endingReveal 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

    /* Gạch sáng ở dưới chữ */
    .ending-text::after {
        content: "";
        display: block;
        width: 0;
        height: 3px;
        margin: 14px auto 0;
        border-radius: 999px;
        background: linear-gradient(90deg, #22c55e, #0ea5e9);
        box-shadow: 0 0 18px rgba(34, 197, 94, 0.7);
        animation: endingUnderline 1s ease-out 0.4s forwards;
    }

/* Keyframes cho hiệu ứng – có thể dùng trực tiếp */
@keyframes endingReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
        letter-spacing: 0.06em;
    }

    60% {
        opacity: 1;
        transform: translateY(0) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 0.03em;
    }
}

@keyframes endingUnderline {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 120px;
        opacity: 1;
    }
}

.agrlgallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.2s;
    margin: 0px;
}

    .agrlgallery img:hover {
        transform: scale(1.05);
    }

.modal-content {
    background-color: #f9f9f9;
}

@media (max-width: 576px) {
    #prevBtn, #nextBtn {
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 6px;
    }
}

#imageGallery .col-md-4:nth-child(n+10) {
    display: none;
}

/* --- Section tổng --- */
.training-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.training-block {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 40px 25px;
    margin: 40px auto;
    max-width: 1400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

    /* Hiệu ứng hover nổi nhẹ */
    .training-block:hover {
        transform: translateY(-5px);
        border-color: #a5d6a7;
        box-shadow: 0 8px 25px rgba(0, 128, 0, 0.15);
    }

/* --- Tiêu đề phụ bên trong --- */
.sugarcane-sub-t {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #2b4b15;
    max-width: 1400px;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
}

.sugarcane-sub-t2 {
    text-align: justify;
    text-justify: inter-word;
    max-width: 1400px;
    line-height: 1.5;
    letter-spacing: 0;
    word-spacing: normal;
    font-weight: 400;
}

/* Khi xem trên điện thoại */
@media (max-width: 576px) {
    .sugarcane-sub-t2 {
        text-align: left; /* đổi sang căn trái để tránh chữ bị kéo giãn */
        line-height: 1.6;
    }
}

/* --- Grid ảnh --- */
.training-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    justify-items: center;
    align-items: center;
}

/* --- Ảnh từng item --- */
.training-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    
}

    /* --- Hiệu ứng hover ảnh --- */
    .training-item img:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    }
#imageDesc {
    text-align: justify; /* canh đều 2 bên */
    line-height: 1.7; /* giãn dòng cho dễ đọc */
    font-size: 16px; /* kích thước chữ dễ nhìn */
    color: #333; /* màu chữ dịu mắt */
    padding: 0 10px; /* chừa khoảng cách 2 bên trong modal */
}
/* --- Responsive --- */
@media (max-width: 600px) {
    .training-section {
        padding: 40px 10px;
    }

    .training-item img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .training-block {
        padding: 25px 15px;
        margin: 30px 10px;
    }

    .training-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .sugarcane-sub {
        font-size: 1.1rem;
    }
}


/* --- Section tổng --- */
.agri-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(120deg, #d9f7e5, #b9ebcd, #9fdcb7);
    padding: 70px 60px;
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
}

    /* Viền sáng nhẹ bao quanh toàn banner */
    .agri-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        border: 3px solid rgba(255, 255, 255, 0.6);
        border-radius: 0;
        pointer-events: none;
        opacity: 0.8;
    }

    /* Hover tổng thể */
    .agri-banner:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 128, 64, 0.25);
    }

/* --- Khối nội dung bên trái --- */
.agri-banner-content {
    background: #ffffffb3;
    backdrop-filter: blur(8px);
    border-radius: 26px;
    padding: 50px 40px;
    text-align: center;
    flex: 1 1 350px;
    max-width: 420px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

    .agri-banner-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 128, 64, 0.2);
    }

    /* --- Tiêu đề và mô tả --- */
    .agri-banner-content h3 {
        font-size: clamp(1.6rem, 2.6vw, 2.2rem);
        font-weight: 700;
        color: #216c3c;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .agri-banner-content p {
        font-size: clamp(1rem, 1.4vw, 1.2rem);
        color: #3e6a41;
        margin-bottom: 25px;
        line-height: 1.7;
    }

/* --- Nút CTA --- */
.agri-btn {
    background: linear-gradient(135deg, #56c97b, #46a965);
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

    .agri-btn:hover {
        background: linear-gradient(135deg, #4ab36f, #3a9458);
        box-shadow: 0 6px 16px rgba(0, 128, 0, 0.3);
        transform: translateY(-2px);
    }

/* --- Dãy ảnh bên phải --- */
.agri-banner-gallery {
    display: flex;
    flex: 2 1 700px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    transition: all 0.5s ease;
}

    /* Hình ảnh lớn hơn + viền sáng sang trọng */
    .agri-banner-gallery img {
        width: 220px;
        height: 150px;
        border-radius: 22px;
        object-fit: cover;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.7);
        transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
    }

        .agri-banner-gallery img:hover {
            transform: scale(1.12) rotate(1deg);
            box-shadow: 0 12px 28px rgba(0, 128, 64, 0.35);
            filter: brightness(1.08);
        }

/* --- Responsive --- */
@media (max-width: 992px) {
    .agri-banner {
        flex-direction: column;
        padding: 50px 30px;
    }

    .agri-banner-content {
        max-width: 100%;
    }

    .agri-banner-gallery img {
        width: 45%;
        height: 130px;
    }
}

@media (max-width: 600px) {
    .agri-banner {
        padding: 40px 20px;
    }

    .agri-banner-gallery img {
        width: 100%;
        height: 160px;
    }

    .agri-banner-content {
        padding: 30px 20px;
    }
}


/*/*/
/* ULTRA BACKGROUND – Organic Glow + Fluid Light */
.agri-ultra {
    padding: 90px 20px;
    background: linear-gradient(180deg, #eefbf0 0%, #ffffff 50%, #e8f9ed 100%);
    position: relative;
    overflow: hidden;
}

    /* floating green shapes */
    .agri-ultra::before,
    .agri-ultra::after {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(50,170,90,0.25), transparent 70%);
        filter: blur(65px);
        border-radius: 50%;
        animation: floatShape 14s ease-in-out infinite;
        z-index: 0;
    }

    .agri-ultra::before {
        top: -120px;
        left: -80px;
    }

    .agri-ultra::after {
        bottom: -120px;
        right: -60px;
    }

@keyframes floatShape {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(25px, 35px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* HEADER */
.agri-header {
    text-align: center;
    z-index: 5;
    position: relative;
    margin-top:0px;
}

    .agri-header h2 {
        font-size: clamp(2.2rem, 4vw, 3rem);
        font-weight: 900;
        background: linear-gradient(95deg, #126d34, #45d17f);
        -webkit-background-clip: text;
        color: transparent;
        letter-spacing: -1px;
    }

    .agri-header p {
        font-size: 1.15rem;
        color: #2b6c3a;
        opacity: .8;
        margin-top: 10px;
    }

/* CARD LIST */
.agri-ultra-list {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* ULTRA CARD */
/* CINEMATIC GREEN THEME */
.cane-cine {
    width: 99.6vw; /* full screen width */
    margin-left: calc(50% - 50vw); /* escape container */
    margin-right: calc(50% - 50vw);
    padding: 80px 20px;
    margin-top: -1px; /* ép dính tuyệt đối */
    background: radial-gradient(circle at 20% 20%, #e6fae9, #e9f7e6 40%, #f8fff7 100%);
    position: relative;
    overflow: hidden;
}

    /* LIGHT BEAMS CINEMATIC */
    .cane-cine::before {
        content: "";
        position: absolute;
        top: -50px;
        left: -50px;
        width: 350px;
        height: 350px;
        background: rgba(103, 187, 92, 0.25);
        filter: blur(120px);
        animation: cineGlow 6s infinite alternate ease-in-out;
    }

@keyframes cineGlow {
    from {
        transform: translate(0,0) scale(1);
    }

    to {
        transform: translate(50px,40px) scale(1.2);
    }
}

/* HEADER */
.cine-header {
    text-align: center;
    margin-bottom: 70px;
}

    .cine-header h2 {
        font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        font-size: clamp(2.2rem, 3vw, 2.8rem);
        color: #1f5c20;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-shadow: 0 6px 18px rgba(0,0,0,0.15);
        animation: cineTitle 2s ease forwards;
        opacity: 0;
    }

@keyframes cineTitle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cine-header p {
    font-size: 1.2rem;
    color: #375d37;
    opacity: 0.85;
}

/* BLOCK CINEMATIC */
.cine-block {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 50px;
    align-items: center;
    margin-bottom: 90px;
    position: relative;
}

    /* REVERSE */
    .cine-block.reverse {
        direction: rtl;
    }

        .cine-block.reverse .cine-text {
            direction: ltr;
        }

/* IMAGE CINEMATIC */
.cine-img {
    position: relative;
    transform-style: preserve-3d;
}

    .cine-img img {
        width: 80%;
        border-radius: 24px;
        border: 3px solid white;
        box-shadow: 0 15px 35px rgba(0,0,0,0.25), 0 0 25px rgba(60, 180, 75, 0.35);
        transform: rotate(-3deg) translateZ(20px);
        transition: 0.5s ease;
    }

        /* Hover 3D tilt + floating effect */
        .cine-img img:hover {
            transform: rotate(0deg) scale(1.06) translateZ(35px);
            box-shadow: 0 20px 45px rgba(0,0,0,0.3), 0 0 30px rgba(60, 180, 75, 0.5);
        }

    /* Floating cinematic animation */
    .cine-img img {
        animation: cineFloat 6s ease-in-out infinite;
    }

@keyframes cineFloat {
    0% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-8px) rotate(-2deg);
    }

    100% {
        transform: translateY(0) rotate(-3deg);
    }
}

/* TEXT */
.cine-text h3 {
    font-size: clamp(1.1rem, 2.4vw, 1.7rem);
    line-height: 1.35;
    letter-spacing: 0.2px;
    color: #225b22;
    margin-bottom: 12px;
    font-weight: 400;
    text-align: justify;
}

.cine-text p {
    font-size: 1.15rem;
    color: #3a5935;
    line-height: 1.6;
    opacity: 0.9;
}

/* MOBILE */
@media (max-width: 768px) {
    .cine-block,
    .cine-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr !important;
    }

    .cine-img img {
        transform: none;
        animation: none;
    }
    .cine-header h2{
        font-size:1.5rem;
    }
}
/* ========= HIỆU ỨNG CUỘN CHO cane-cine ========= */

/* Trạng thái ban đầu: mờ, blur, lệch vị trí */
.cane-cine .cine-anim {
    opacity: 0;
    filter: blur(18px);
    transform: translate3d(0, 40px, 0) scale(0.96);
    transform-origin: center center;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.9s ease;
    will-change: opacity, transform, filter;
}

/* Hướng xuất phát */
.cane-cine .cine-anim--up {
    transform: translate3d(0, 60px, 0) scale(0.96);
}

.cane-cine .cine-anim--left {
    transform: translate3d(-80px, 40px, 0) scale(0.96);
}

.cane-cine .cine-anim--right {
    transform: translate3d(80px, 40px, 0) scale(0.96);
}

/* Khi đã vào viewport */
.cane-cine .cine-anim.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

/* Stagger delay – xuất hiện lần lượt */
.cane-cine .cine-delay-1 {
    transition-delay: 0.00s;
}

.cane-cine .cine-delay-2 {
    transition-delay: 0.10s;
}

.cane-cine .cine-delay-3 {
    transition-delay: 0.20s;
}

.cane-cine .cine-delay-4 {
    transition-delay: 0.30s;
}

.cane-cine .cine-delay-5 {
    transition-delay: 0.40s;
}

.cane-cine .cine-delay-6 {
    transition-delay: 0.50s;
}

.cane-cine .cine-delay-7 {
    transition-delay: 0.60s;
}

/* Nếu user chọn reduce motion thì tắt hiệu ứng mạnh */
@media (prefers-reduced-motion: reduce) {
    .cane-cine .cine-anim {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/*GIONG MOI*/
:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f8faf7;
    color: #1f360b;
}

.new-seed-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px 140px;
    background: #fff;
    isolation: isolate;
    width: 99.6vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

    .new-seed-section::before,
    .new-seed-section::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        background: radial-gradient(circle at 30% 30%, rgba(0, 184, 96, 0.25), transparent 60%);
        filter: drop-shadow(0 30px 40px rgba(7, 67, 25, 0.25));
        z-index: 0;
    }

    .new-seed-section::before {
        top: -60px;
        left: -120px;
        transform: rotate(-12deg);
    }

    .new-seed-section::after {
        bottom: -80px;
        right: -90px;
        transform: rotate(18deg);
    }

.new-seed-container {

    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.new-seed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    background: rgba(13, 92, 11, 0.08);
    color: #0d5c0b;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.new-seed-title {
    margin: 1rem 0 0.5rem;
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2c6b16;
}

.new-seed-text {
    margin: 0 auto;
    max-width: 1500px;
    font-size: 1.3rem;
    text-align:justify;
    line-height: 1.8;
    color: #425137;
}

.seed-band {
    /*position: absolute;
    top: 56%;
    left: -5%;
    width: 110%;
    height: 170px;
    background: linear-gradient(90deg, #0d5c0b 0%, #1b7e2a 50%, #0d5c0b 100%);
    border-radius: 999px;
    box-shadow: inset 0 25px 60px rgba(3, 31, 8, 0.35);
    z-index: 1;*/
}

.seed-grid {
    position: relative;
    z-index: 2;
    margin-top: 3.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.seed-card {
    background: #fff;
    padding: 1.75rem 1.25rem 1.5rem;
    border-radius: 32px;
    box-shadow: 0 25px 50px rgba(10, 48, 21, 0.15), 0 12px 20px rgba(9, 68, 32, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    animation: floatUp 0.9s ease both;
}

    .seed-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .seed-card:nth-child(3) {
        animation-delay: 0.2s;
    }

    .seed-card:hover {
        transform: translateY(-14px) scale(1.02);
        box-shadow: 0 35px 60px rgba(8, 38, 16, 0.25), 0 18px 40px rgba(10, 83, 32, 0.15);
    }

.seed-photo {
    width: 100%;
    aspect-ratio: 4 / 4.2;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: #e2f3dd;
}

    .seed-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease;
    }

.seed-card:hover .seed-photo img {
    transform: scale(1.05);
}

.seed-chip {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.75rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #ff7a00, #ff5300);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.seed-card:hover .seed-chip {
    box-shadow: 0 15px 30px rgba(255, 115, 0, 0.45);
    transform: translateY(-4px);
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .new-seed-section {
        padding: 60px 16px 100px;
    }

    .seed-band {
        top: 64%;
        height: 140px;
        left: -20%;
        width: 140%;
    }

    .seed-card {
        padding: 1.5rem 1rem;
    }
    .new-seed-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .new-seed-text {
        font-size: 0.98rem;
    }

    .seed-card {
        border-radius: 24px;
    }
}

/* BĂNG CHUYỀN ẢNH CHẠY NGANG */
.seed-marquee {
    position: relative;
    z-index: 2;
    margin-top: 3.5rem; /* khoảng cách so với phần trên */
    overflow: hidden;
}

.seed-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content; /* track rộng bằng tổng các item */
    animation: seedMarquee 40s linear infinite; /* tăng thời gian cho mượt hơn */
    will-change: transform; /* tối ưu hiệu năng */
}

/* CARD TRẮNG */
.seed-marquee-item {
    flex: 0 0 220px; /* độ rộng mỗi card */
    border-radius: 24px;
    background: #fff; /* giữ lại nền trắng */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ẢNH */
.seed-marquee-photo {
    border-radius: 24px 24px 0 0; /* bo tròn phần trên card */
    overflow: hidden;
}

    .seed-marquee-photo img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

/* Zoom nhẹ khi hover card */
.seed-marquee-item:hover .seed-marquee-photo img {
    transform: scale(1.05);
}

/* LABEL MÀU CAM BÊN DƯỚI ẢNH */
.seed-info-btn {
    margin: 0.6rem auto 0.2rem;
    padding: 0.55rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #ff7a00, #ff5300);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    font-size: 0.8rem;
    cursor: default; /* chỉ là nhãn, không phải nút bấm */
}

/* NỘI DUNG MÔ TẢ – LUÔN HIỂN THỊ */
.seed-info {
    display: block;
    padding: 0 0.9rem 0.9rem;
    font-size: 0.9rem;
    color: #425137;
    text-align: left;
}

/* NẾU KHÔNG MUỐN DỪNG KHI HOVER, HÃY XÓA HOẶC COMMENT ĐOẠN NÀY */

.seed-marquee:hover .seed-marquee-track {
    animation-play-state: paused;
}


/* KEYFRAMES CHẠY TỪ PHẢI SANG TRÁI VÔ HẠN */
.seed-marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: seedMarquee 60s linear infinite;
    will-change: transform;
}

@keyframes seedMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Responsive cho màn nhỏ */
@media (max-width: 768px) {
    .seed-marquee-item {
        flex: 0 0 180px;
    }

    .seed-marquee-photo img {
        height: 180px;
    }
}

/* === SECTION THAM QUAN MÔ HÌNH === */
.model-tour {
    padding: 80px 20px;
    background: #ffffff;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2933;
}

.model-tour-inner {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 3rem 4rem;
    align-items: flex-start;
}

/* ===== CỘT TRÁI ===== */

.model-tour-col--left {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.model-tour-title {
    margin: 0;
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    color: #0d5c0b;
}

.model-main-image {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

    .model-main-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

/* ===== CỘT PHẢI ===== */

.model-tour-col--right {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.model-tour-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 1.8rem;
    align-items: center;
}

/* TEXT BLOCK */

.model-text-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.model-text-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #00994d;
}

.model-text-body {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.7;
    text-align:justify;
    font-weight: 600;
    color: #00994d;
}

/* ẢNH PHỤ */

.model-sub-image {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

    .model-sub-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

/* Hover nhẹ cho ảnh trên desktop */
@media (hover:hover) {
    .model-main-image img,
    .model-sub-image img {
        transition: transform 0.6s ease;
    }

    .model-main-image:hover img,
    .model-sub-image:hover img {
        transform: scale(1.03);
    }
}

/* ===== HIỆU ỨNG KHI CUỘN XUỐNG ===== */
/* Trạng thái ban đầu (chưa cuộn tới) */
.model-anim {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(0, 28px, 0) scale(0.96);
    transform-origin: center center;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.9s ease;
    will-change: transform, opacity, filter;
}

/* Hướng xuất phát riêng cho từng phần tử
   (để khi vào sẽ “bay” từ các phía khác nhau) */

/* 1. Tiêu đề: trượt nhẹ từ trái sang, phóng to lên */
.model-anim--1 {
    transform: translate3d(-40px, 0, 0) scale(0.94);
}

/* 2. Ảnh lớn bên trái: trượt từ dưới lên, phóng to */
.model-anim--2 {
    transform: translate3d(0, 50px, 0) scale(0.94);
}

/* 3. Text hàng 1 (bên trái): trượt từ trái sang */
.model-anim--3 {
    transform: translate3d(-40px, 20px, 0) scale(0.95);
}

/* 4. Ảnh hàng 1 (bên phải): trượt từ phải sang */
.model-anim--4 {
    transform: translate3d(40px, 30px, 0) scale(0.95);
}

/* 5. Ảnh hàng 2 (bên trái): trượt từ trái + dưới */
.model-anim--5 {
    transform: translate3d(-40px, 40px, 0) scale(0.95);
}

/* 6. Text hàng 2 (bên phải): trượt từ phải + dưới */
.model-anim--6 {
    transform: translate3d(40px, 40px, 0) scale(0.95);
}

/* Khi section đi vào viewport -> về trạng thái bình thường */
.model-tour.in-view .model-anim {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

/* Đặt delay để xuất hiện lần lượt (stagger) */
.model-anim--1 {
    transition-delay: 0.00s;
}

.model-anim--2 {
    transition-delay: 0.10s;
}

.model-anim--3 {
    transition-delay: 0.20s;
}

.model-anim--4 {
    transition-delay: 0.30s;
}

.model-anim--5 {
    transition-delay: 0.40s;
}

.model-anim--6 {
    transition-delay: 0.50s;
}

/* Nếu người dùng chọn giảm chuyển động trong hệ điều hành,
   tôn trọng cài đặt đó (accessibility) */
@media (prefers-reduced-motion: reduce) {
    .model-anim {
        transition: none;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
/* ===== RESPONSIVE ===== */

@media (max-width: 960px) {
    .model-tour-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .model-tour-col--left {
        max-width: 640px;
        margin: 0 auto;
        text-align: left;
    }

    .model-tour-col--right {
        max-width: 720px;
        margin: 0 auto;
    }

    .model-tour-row {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

        /* Ở mobile, cho ảnh lên trên nội dung cho dễ nhìn */
        .model-tour-row:nth-child(1) .model-sub-image {
            order: -1;
        }

        .model-tour-row:nth-child(2) .model-sub-image {
            order: -1;
        }
}

@media (max-width: 600px) {
    .model-tour {
        padding: 60px 16px;
    }

    .model-tour-title {
        font-size: 1.5rem;
    }
    .model-text-title {
        font-size: 0.95rem;
    }
    .model-text-body {
        font-size: 0.95rem;
    }
}
/*Card trồng mía và canh tác*/
/* SECTION NỀN MÀU NHẸ */

.feature-cards-section {
    padding: 80px 20px;
    background: #eafff3; /* màu nền xám xanh rất nhạt giống hình */
    /* FULL WIDTH */
    width: 99.6vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.feature-cards-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* GRID 2 CARD */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* CARD CHUNG (KHUNG TRẮNG + BÓNG) */
.feature-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    }


/* VÙNG ẢNH BÊN TRONG CARD */
.feature-card-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
}

    /* Ảnh nền */
    .feature-card-media img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        display: block;
        transition: transform 0.8s ease, filter 0.5s ease;
    }

    /* Gradient nhẹ để chữ phía dưới luôn rõ */
    .feature-card-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 70%);
        opacity: 0.9;
        pointer-events: none;
    }

/* Tiêu đề mặc định (như hình demo) */
.feature-card-label {
    position: absolute;
    left: 26px;
    bottom: 22px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 2;
}

    .feature-card-label span {
        text-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
    }

    /* Gạch dưới màu xanh */
    .feature-card-label::after {
        content: "";
        width: 80px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, #0ecf6a, #0ea4ff);
    }
/* HIỆU ỨNG KHI CUỘN TỚI – CARD BAY TỪ TRÁI / PHẢI VÀO */
.feature-anim {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 40px, 0) scale(0.96);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.8s ease;
    will-change: opacity, transform, filter;
}

/* Hướng xuất phát */
.feature-anim--left {
    transform: translate3d(-80px, 20px, 0) scale(0.96);
}

.feature-anim--right {
    transform: translate3d(80px, 20px, 0) scale(0.96);
}

/* Khi đã nhìn thấy trong viewport */
.feature-anim.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

/* Nếu người dùng chọn giảm chuyển động, tắt animation mạnh */
@media (prefers-reduced-motion: reduce) {
    .feature-anim {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}
/* OVERLAY HIỆN KHI HOVER */
.feature-card-overlay {
    position: absolute;
    inset: 0;
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    z-index: 3;
}

    .feature-card-overlay h3 {
        margin: 0 0 8px;
        font-size: 1.35rem;
        font-weight: 600;
    }

    .feature-card-overlay p {
        margin: 0 0 16px;
        font-size: 0.98rem;
        line-height: 1.6;
        text-align:left;
    }

/* Nút xem chi tiết */
.feature-card-btn {
    align-self: flex-start;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #0ecf6a, #0ea4ff);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(3, 169, 106, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .feature-card-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(3, 169, 106, 0.55);
    }

/* HIỆU ỨNG HOVER: ẢNH MỜ + OVERLAY XUẤT HIỆN */
.feature-card:hover .feature-card-media img {
    filter: brightness(0.55) blur(1px) saturate(1.1);
    transform: scale(1.05);
}

.feature-card:hover .feature-card-label {
    opacity: 0;
    transform: translateY(10px);
}

.feature-card:hover .feature-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .feature-card-media img {
        height: 220px;
    }
    .feature-card-label{
        font-size: 1rem !important;
    }

    .feature-card-overlay h3 {
        font-size: 0.98rem;
    }

    .feature-card-overlay p {
        font-size: 0.5rem;
    }
    .feature-card-btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .feature-cards-section {
        padding: 60px 16px;
    }

    .feature-card-media img {
        height: 200px;
    }
    .feature-card-label{
        font-size: 0.8rem !important;
    }
    .feature-card-overlay h3 {
        font-size: 0.9rem;
    }

    .feature-card-overlay p {
        font-size: 0.6rem;
    }
    .feature-card-btn {
        font-size: 0.5rem;
    }
}
