/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.18.0
Requires at least:    5.9
Requires PHP:         5.6
WC requires at least: 4.7
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/
  /* ===== DU HOC GRID ===== */
    .dh-grid-wrapper {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 16px;
        box-sizing: border-box;
    }
 
    .dh-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
 
    /* Card */
    .dh-card {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        cursor: pointer;
        text-decoration: none;
        display: block;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        background: #111;
    }
 
    /* Tỉ lệ khung hình */
    .dh-card--wide {
        /* Card chiếm 2/3 chiều rộng (cột đầu hàng 1) */
    }
 
    .dh-card__img-wrap {
        width: 100%;
        padding-top: 65%;   /* tỉ lệ 3:2 */
        position: relative;
        overflow: hidden;
    }
 
    .dh-card__img-wrap img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    filter 0.55s ease;
        will-change: transform;
    }
 
    /* Hover zoom */
    .dh-card:hover .dh-card__img-wrap img {
        transform: scale(1.08);
    }
 
    /* Gradient overlay */
    .dh-card__overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.18) 50%,
            transparent 100%
        );
        pointer-events: none;
        transition: background 0.4s ease;
    }
 
    .dh-card:hover .dh-card__overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.35) 55%,
            transparent 100%
        );
    }
 
    /* Tên quốc gia */
    .dh-card__title {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px 22px;
        color: #fff;
        font-size: clamp(15px, 1.8vw, 20px);
        font-weight: 700;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: 0.02em;
        line-height: 1.3;
        text-shadow: 0 1px 6px rgba(0,0,0,0.6);
        transition: padding 0.35s ease, transform 0.35s ease;
    }
 
    /* Nút "Xem thêm" xuất hiện khi hover */
    .dh-card__btn {
        position: absolute;
        bottom: 22px;
        right: 22px;
        background: rgba(255,255,255,0.18);
        border: 1.5px solid rgba(255,255,255,0.55);
        color: #fff;
        padding: 6px 16px;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        backdrop-filter: blur(6px);
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
        pointer-events: none;
        white-space: nowrap;
    }
 
    .dh-card:hover .dh-card__btn {
        opacity: 1;
        transform: translateY(0);
    }
 
    /* Placeholder nếu không có ảnh */
    .dh-card__placeholder {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
 
    .dh-card__placeholder svg {
        width: 48px;
        height: 48px;
        opacity: 0.3;
        fill: #fff;
    }
 
    /* ===== RESPONSIVE ===== */
    @media (max-width: 1024px) {
        .dh-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 18px;
        }
    }
 
    @media (max-width: 640px) {
        .dh-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }
 
        .dh-card__title {
            font-size: 17px;
        }
    }


/* ===== FEEDBACK SLIDER ===== */
    .fb-slider-section {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 56px;
        box-sizing: border-box;
        position: relative;
    }

    .fb-slider-track-wrap {
        overflow: hidden;
        width: 100%;
    }

    .fb-slider-track {
        display: flex;
        gap: 24px;
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        align-items: flex-start;
    }

    /* ===== CARD ===== */
    .fb-card {
        flex: 0 0 calc((100% - 72px) / 4);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 8px 24px;
        box-sizing: border-box;
        background: transparent;
    }

    /* Vùng ảnh tròn + badge */
    .fb-card__avatar-wrap {
        position: relative;
        width: 110px;
        height: 110px;
        margin-bottom: 16px;
        flex-shrink: 0;
    }

    .fb-card__avatar {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        display: block;
    }

    .fb-card__avatar-placeholder {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: linear-gradient(135deg, #dce8f5 0%, #b8d0ea 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 4px solid #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }

    .fb-card__avatar-placeholder svg {
        width: 48px;
        height: 48px;
        fill: #7aaac8;
    }

    /* Badge dấu nháy đỏ góc trên phải */
    .fb-card__quote-badge {
        position: absolute;
        top: 3px;
        right: -4px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #e53935;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(229,57,53,0.35);
    }

    .fb-card__quote-badge svg {
        width: 16px;
        height: 16px;
        fill: #fff;
    }

    /* Tên học viên — xanh đậm */
    .fb-card__name {
        color: #1565c0;
        font-size: 15px;
        font-weight: 700;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    /* Nội dung feedback */
    .fb-card__content {
        color: #444;
        font-size: 14px;
        line-height: 1.75;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }

    /* ===== NÚT PREV / NEXT — 2 bên ===== */
    .fb-btn {
        position: absolute;
        top: 55px; /* căn giữa vùng ảnh tròn */
        width: 45px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #1565c0;
        background: #fff;
        color: #1565c0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        box-shadow: 0 2px 10px rgba(21,101,192,0.15);
        transition: background 0.25s, color 0.25s, opacity 0.25s;
        z-index: 10;
        padding: 0;
        line-height: 1;
        transform: translateY(-50%);
    }

    .fb-btn:hover {
        background: #1565c0;
        color: #fff;
    }

    .fb-btn:disabled {
        opacity: 0.25;
        cursor: not-allowed;
    }

    .fb-prev { left: 4px; }
    .fb-next { right: 4px; }

    /* Dots */
    .fb-dots {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 24px;
        justify-content: center;
    }

    .fb-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #d1d5db;
        transition: background 0.3s, transform 0.3s;
        cursor: pointer;
    }

    .fb-dot.active {
        background: #1565c0;
        transform: scale(1.4);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 1024px) {
        .fb-card { flex: 0 0 calc((100% - 48px) / 3); }
    }

    @media (max-width: 768px) {
        .fb-card { flex: 0 0 calc((100% - 24px) / 2); }
        .fb-slider-section { padding: 0 48px; }
    }

    @media (max-width: 480px) {
        .fb-card { flex: 0 0 100%; }
        .fb-slider-track { gap: 0; }
        .fb-slider-section { padding: 0 44px; }
    }