﻿/* Line ngăn cách */
.line-green {
    height: 3px;
    background: linear-gradient(to right, #ff7a00, #ffb347);
    margin: 40px auto;
    width: 80%;
    border-radius: 2px;
}

/* Section 1: Intro */
.about-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 40px 10%;
}

.about-col {
    flex: 1 1 50%;
}

    .about-col.image {
        max-width: 700px; 
        margin: 0 auto;
        text-align: center;
    }

        .about-col.image img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

    .about-col.text {
        font-size: 1.1rem;
        line-height: 1.6;
    }

@media (max-width: 992px) {
    .about-col {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

    .about-col.text h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        color: #333;
    }

/* Section 2: Features */

.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 10%;
    text-align: center;
}
.feature-item {
    position: relative;
    padding: 25px 20px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    /* Border gradient */
    .feature-item::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 3px; /* độ dày viền */
        border-radius: 16px;
        background: linear-gradient(135deg, #ff7a00, #ffb347, #ff7a00);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        z-index: -1;
        transition: opacity 0.4s ease;
        opacity: 0.6;
    }

    .feature-item:hover::before {
        opacity: 1;
    }

    /* Hiệu ứng nổi card khi hover */
    .feature-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    /* Icon/ảnh bên trong */
    .feature-item img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        margin-bottom: 15px;
        transition: transform 0.3s ease;
    }

    .feature-item:hover img {
        transform: scale(1.1) rotate(2deg);
    }


    .feature-item h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
        font-weight: 700;
        background: linear-gradient(135deg, #ff7a00, #4caf50);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        transition: background 0.5s ease;
    }

    /* Hover đổi gradient để chữ sống động */
    .feature-item:hover h2 {
        background: linear-gradient(135deg, #ff9500, #2e7d32);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .feature-item p {
        text-align: justify;
    }



/* Section 3: Detail */
.about-detail {
    padding: 40px 10%;
}
    .about-detail h2 {
        font-size: 1.75rem;
        margin-bottom: 20px;
        text-align: center;
        font-weight: 700;
        background: #2a6e3f; /*linear-gradient(270deg, #0d47a1, #1976d2, #42a5f5)*/
        background-size: 600% 600%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradientMove 6s ease infinite;
    }

        .about-detail h2::after {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background: #2a6e3f;
            margin: 10px auto 0;
            border-radius: 2px;
        }

/* Hiệu ứng gradient động */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


    .about-detail p {
        margin-bottom: 15px;
        line-height: 1.7;
        color: darkblue;
        text-align:justify;
    }

/*Section 4: Don vi thanh vien ◆*/

.members-section {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
}

    .members-section .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
        font-weight: bold;
        color: #2a6e3f;
        position: relative;
        display: inline-block;
    }

        .members-section .section-title::after {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background: #2a6e3f;
            margin: 10px auto 0;
            border-radius: 2px;
        }

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 2fr); /* mặc định desktop 3 cột */
    gap: 30px;
    justify-items: center;
    align-items: stretch;
}

.member {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width:100%;
    max-width: 800px;
}

    .member:hover {
        transform: translateY(-8px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }

    .member img {
        width: 100%;
        border-radius: 12px;
        margin-bottom: 15px;
        transition: transform 0.3s ease;
    }

    .member:hover img {
        transform: scale(1.05);
    }

    .member h3.dv {
        font-size: 1.1rem;
        font-weight: bold;
        color: darkblue;
        margin: 10px 0;
        text-transform: uppercase;
    }

    .member p {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.6;
        text-align: justify;
    }

/* Responsive */
@media (max-width: 992px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet */
    }
}

@media (max-width: 600px) {
    .members-grid {
        grid-template-columns: 1fr; /* Mobile */
    }
}


/* Section 5: Carousel */
.swiper-slide img {
    transition: all 0.5s ease-in-out;
    will-change: transform;
}
.awards-section h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    background: #2a6e3f; /*linear-gradient(270deg, #0d47a1, #1976d2, #42a5f5)*/
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 6s ease infinite;
}

    .awards-section h2::after {
        content: "";
        display: block;
        width: 60px;
        height: 4px;
        background: #2a6e3f;
        margin: 10px auto 0;
        border-radius: 2px;
    }
