.team-section {
    padding: 70px 0;
}

.quote-block {
    background-color: #028a48;
    color: white;
    padding: 40px;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.quote-block .fa-quote-left {
    font-size: 4rem;
    opacity: 0.5;
    position: absolute;
    top: 20px;
    left: 30px;
}

.quote-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    padding-top: 50px;
    text-align: justify;
}

/* NOTE: Bắt đầu phần CSS được sửa đổi hoàn toàn */

/* Wrapper chính cho mỗi thành viên, làm gốc định vị */
.team-member-card {
    position: relative;
    padding-top: 100px;
    /* Tạo không gian cho phần trên của ảnh */
    margin-bottom: 30px;
    text-align: center;
}

/* Container cho ảnh, định vị tuyệt đối để nổi lên trên */
.photo-container {
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    z-index: 2;
    transition: transform 0.3s ease;
}

.team-member-card:hover .photo-container {
    transform: translateY(-5px);
}

.photo-container img {
    width: 80%;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Container cho các khối màu (xám và trắng) */
.card-shape {
    /* Sử dụng drop-shadow để tạo bóng theo hình dạng thật, bỏ qua phần trong suốt */
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.08));
    transition: filter 0.3s ease;
    position: relative;
    z-index: 1;
}

.team-member-card:hover .card-shape {
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.12));
}

/* Khối nền xám */
.grey-bg {
    height: 165px;
    /* Chiều cao của nền xám */
    background-color: #eaeaea;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Khối nền trắng chứa text */
.card-body-content {
    background-color: #fff;
    padding: 5px;
    padding-top: 10px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* NOTE: Kết thúc phần CSS được sửa đổi */

.name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
}

.title {
    font-size: 0.9rem;
    color: #666;
}

.service-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #f8f9fa;
}

.section-title {
    font-weight: 900;
    color: #028a48;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* --- Tab Navigation Styling --- */
.nav-pills .nav-link {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #028a48;
    background-color: transparent;
    border: 2px solid #028a48;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: rgba(2, 138, 72, 0.1);
}

.nav-pills .nav-link.active {
    background-color: #028a48;
    color: #ffffff;
    border-color: #028a48;
}

/* --- Service Card Styling with Animated Border --- */
.service-card {
    border-radius: 15px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #028a48;
    border-radius: 15px;
    z-index: -1;
}

.service-card::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: conic-gradient(from 180deg at 50% 50%,
            #ffffff 0deg,
            #a7ffce 120deg,
            #ffffff 240deg,
            #a7ffce 360deg);
    z-index: -2;
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(2, 138, 72, 0.3);
}

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

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Text and Element Colors inside the Card --- */
.service-card .card-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 30px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.card-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    min-height: 45px;
}

.price-section {
    /* margin-top: 1.5rem; */
    margin-bottom: 0.5rem;
    /* padding-top: 1rem; */
    /* border-top: 1px solid rgba(255, 255, 255, 0.2); */
}

.price-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 5px;
}

.card-price {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 5px;
}

.price-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin-top: 14px;
    flex-grow: 1;
}

.service-features li {
    margin-bottom: 0.75rem;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    text-align: left;
}

.service-features li .bi {
    color: #ffffff;
    margin-right: 10px;
    font-size: 1.2rem;
}

.service-details {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.service-details li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    display: flex;
    align-items: baseline;
}

.service-details li .bi {
    margin-right: 10px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
}

.service-details li strong {
    color: #ffffff;
    margin-right: 5px;
}

/* --- Button Styling --- */
.btn-primary-custom {
    background: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    color: #028a48;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-primary-custom:hover {
    transform: scale(1.05);
    background: #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* === NEW: Highlight block for specific card === */
.card-header-highlight {
    background: #f39c12;
    /* Màu cam nổi bật */
    margin: -2.5rem -2rem 1.5rem -2rem;
    /* Căn lề để phủ ra ngoài padding của card */
    padding: 2rem 0 2rem 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.card-header-highlight .card-title,
.card-header-highlight .card-tagline {
    color: #ffffff;
}

.card-light {
    background: #ffffff;
    height: 9px;
    padding: 0;
    margin-top: -1.5rem;
    /* Để nó nằm ngay dưới tiêu đề */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    margin: -2rem -2rem 1.5rem -2rem;
}

.brand-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.single-brand-logo img {
    height: 80px;
}

@media(max-width: 768px) {
    .single-brand-logo img {
        height: 60px !important;
    }

    .slider-btn a {
        padding: 15px 30px;
        font-size: 14px !important;
    }

    #id-slider-1 {
        padding-left: 35px !important;
    }
}

/* kick thuoc tablet */
@media (max-width: 1024px) {
    .slider-btn a {
        padding: 15px 30px;
        font-size: 20px !important;
    }

    #id-slider-1 {
        padding-left: 35px !important;
    }
}