.kh-fg-section {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.kh-fg-section *,
.kh-fg-modal * {
    box-sizing: border-box;
}

/* Heading */
.kh-fg-header {
    text-align: center;
    margin-bottom: 36px;
}

.kh-fg-title {
    margin: 0 0 12px 0;
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-main);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.kh-fg-title span {
    color: var(--color-accent-light);
}

.kh-fg-divider {
    width: 56px;
    height: 3px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--color-accent-light);
}

/* Grids */
.kh-fg-top-grid {
    display: grid;
    grid-template-columns: 1fr 1.85fr 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 24px;
}

.kh-fg-bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card */
.kh-fg-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(20, 102, 93, 0.08);
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    text-align: left;
    padding: 0;
    width: 100%;
    outline: none;
}

.kh-fg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(20, 102, 93, 0.14);
    border-color: rgba(34, 197, 94, 0.45);
}

.kh-fg-card--video {
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 12px 32px rgba(20, 102, 93, 0.1);
}

/* Media */
.kh-fg-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-chu);
}

.kh-fg-top-grid .kh-fg-card--side .kh-fg-media {
    aspect-ratio: 4 / 3.6;
}

.kh-fg-card--video .kh-fg-media {
    aspect-ratio: 16 / 10.5;
}

.kh-fg-bottom-grid .kh-fg-media {
    aspect-ratio: 16 / 10.2;
}

.kh-fg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.kh-fg-card:hover .kh-fg-media img {
    transform: scale(1.05);
}

/* Play Button (Font Awesome) */
.kh-fg-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.kh-fg-play-inner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.kh-fg-play-inner i {
    font-size: 20px;
    color: var(--color-main);
    margin-left: 3px;
    transition: color 0.3s ease;
}

.kh-fg-card--video:hover .kh-fg-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.kh-fg-card--video:hover .kh-fg-play-inner {
    background: var(--color-brand-green);
}

.kh-fg-card--video:hover .kh-fg-play-inner i {
    color: var(--color-white);
}

/* Card Footer */
.kh-fg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    background: var(--color-white);
}

.kh-fg-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kh-fg-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-light);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18);
}

.kh-fg-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-main);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mũi tên chéo bằng Font Awesome */
.kh-fg-arrow {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--color-accent-light);
    transform: rotate(-45deg);
    transition: transform 0.25s ease, color 0.25s ease;
}

.kh-fg-card:hover .kh-fg-arrow {
    transform: translate(2px, -2px) rotate(-45deg);
    color: var(--color-brand-green);
}

/* Popup Modal */
.kh-fg-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.kh-fg-modal.is-open {
    display: flex;
    opacity: 1;
}

.kh-fg-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kh-fg-modal-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.55);
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.kh-fg-modal-close:hover {
    background: var(--color-main);
    transform: rotate(90deg);
}

.kh-fg-modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kh-fg-modal-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-black);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.kh-fg-modal-video-wrap iframe,
.kh-fg-modal-video-wrap video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.kh-fg-modal-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.kh-fg-modal-img-wrap img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.kh-fg-modal-caption {
    margin-top: 14px;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.kh-fg-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.55);
    color: var(--color-white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.kh-fg-nav-btn:hover {
    background: var(--color-accent-light);
    color: var(--color-black);
}

.kh-fg-nav-prev { 
	left: 18px; 
}

.kh-fg-nav-next { 
	right: 18px; 
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .kh-fg-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .kh-fg-card--video {
        grid-column: 1 / -1;
        order: -1;
    }

    .kh-fg-top-grid .kh-fg-card--side .kh-fg-media {
        aspect-ratio: 16 / 10.5;
    }

    .kh-fg-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Responsive: Mobile */
@media (max-width: 576px) {
    .kh-fg-section {
        padding: 28px 12px;
    }

    .kh-fg-header {
        margin-bottom: 24px;
    }

    .kh-fg-top-grid,
    .kh-fg-bottom-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .kh-fg-play-btn {
        width: 56px;
        height: 56px;
    }

    .kh-fg-play-inner {
        width: 42px;
        height: 42px;
    }

    .kh-fg-play-inner i {
        font-size: 16px;
    }

    .kh-fg-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .kh-fg-nav-prev { 
		left: 8px; 
	}
	
    .kh-fg-nav-next { 
		right: 8px; 
	}
}