/* =====================================================
   FEATURED VIDEOS PAGE — MedPrepOnline
   Light Theme · Teal (#4fb3d9 / #5dbea3 / #6cdbce)
   Matches site font (Poppins) and spacing patterns
   ===================================================== */

/* ── Page Hero — light teal wash ── */
.fv-hero {
    background: linear-gradient(135deg, #f8fffe 0%, rgba(79, 179, 217, 0.06) 100%);
    padding: 70px 0 55px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(79, 179, 217, 0.1);
}

.fv-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(79, 179, 217, 0.07);
    pointer-events: none;
}

.fv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 179, 217, 0.1);
    border: 1px solid rgba(79, 179, 217, 0.25);
    color: #4fb3d9;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    font-family: 'Poppins-semibold', 'Poppins', sans-serif;
}

.fv-hero-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    margin-bottom: 12px;
    font-family: 'Poppins-extra', 'Poppins', sans-serif;
}

.fv-hero-title span {
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fv-hero-desc {
    color: #6c757d;
    font-size: 1rem;
    max-width: 520px;
    margin: 0;
    font-family: 'Poppins-light', 'Poppins', sans-serif;
    line-height: 1.7;
}

.fv-hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.fv-hero-stat strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 3px;
    font-family: 'Poppins-extra', 'Poppins', sans-serif;
}

.fv-hero-stat small {
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: 'Poppins-regular', 'Poppins', sans-serif;
}

/* ── Featured Player ── */
.fv-featured-section {
    background: #fff;
    padding: 56px 0;
    border-bottom: 1px solid rgba(79, 179, 217, 0.1);
}

.fv-featured-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .fv-featured-grid {
        grid-template-columns: 1fr;
    }
}

.fv-featured-player {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 40px rgba(79, 179, 217, 0.18), 0 0 0 1px rgba(79, 179, 217, 0.1);
}

.fv-featured-iframe {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.fv-featured-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.fv-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(93, 190, 163, 0.12);
    color: #5dbea3;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
    font-family: 'Poppins-semibold', 'Poppins', sans-serif;
}

.fv-featured-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #111;
    line-height: 1.25;
    margin-bottom: 14px;
    font-family: 'Poppins-bold', 'Poppins', sans-serif;
}

.fv-featured-course {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(79, 179, 217, 0.06);
    border: 1px solid rgba(79, 179, 217, 0.18);
    border-radius: 10px;
    margin-bottom: 14px;
    text-decoration: none;
    transition: all 0.25s;
}

.fv-featured-course:hover {
    background: rgba(79, 179, 217, 0.12);
    border-color: rgba(79, 179, 217, 0.35);
}

.fv-featured-course i {
    color: #4fb3d9;
}

.fv-featured-course span {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    font-family: 'Poppins-medium', 'Poppins', sans-serif;
}

.fv-featured-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-family: 'Poppins-light', 'Poppins', sans-serif;
}

/* ── Filter Bar ── */
.fv-filter-section {
    background: #fff;
    padding: 18px 0;
    border-bottom: 1px solid rgba(79, 179, 217, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.fv-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fv-search-wrap {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.fv-search-wrap i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.82rem;
    pointer-events: none;
}

.fv-search-input {
    width: 100%;
    background: #f8fffe;
    border: 1px solid rgba(79, 179, 217, 0.2);
    color: #333;
    border-radius: 50px;
    padding: 8px 16px 8px 36px;
    font-size: 0.87rem;
    transition: all 0.25s;
    font-family: 'Poppins-regular', 'Poppins', sans-serif;
}

.fv-search-input:focus {
    outline: none;
    background: #fff;
    border-color: #4fb3d9;
    box-shadow: 0 0 0 3px rgba(79, 179, 217, 0.1);
}

.fv-search-input::placeholder {
    color: #adb5bd;
}

.fv-filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fv-chip {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(79, 179, 217, 0.2);
    background: transparent;
    color: #6c757d;
    transition: all 0.25s;
    text-decoration: none;
    font-family: 'Poppins-medium', 'Poppins', sans-serif;
}

.fv-chip:hover {
    background: rgba(79, 179, 217, 0.08);
    border-color: rgba(79, 179, 217, 0.35);
    color: #4fb3d9;
}

.fv-chip.active {
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(79, 179, 217, 0.3);
}

.fv-result-count {
    margin-left: auto;
    color: #adb5bd;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ── Videos Grid ── */
.fv-grid-section {
    background: #f8fffe;
    padding: 48px 0 72px;
    min-height: 400px;
}

.fv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

/* ── Video Card ── */
.fv-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(79, 179, 217, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.fv-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 179, 217, 0.25);
    box-shadow: 0 14px 44px rgba(79, 179, 217, 0.15);
}

.fv-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #e8f7fc;
    overflow: hidden;
}

.fv-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fv-card:hover .fv-card-thumb img {
    transform: scale(1.05);
}

.fv-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.fv-card:hover .fv-card-overlay {
    opacity: 1;
}

.fv-card-play {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(79, 179, 217, 0.5);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fv-card:hover .fv-card-play {
    transform: scale(1);
}

.fv-card-featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
}

.fv-card-body {
    padding: 16px 18px 15px;
}

.fv-card-course {
    font-size: 0.67rem;
    color: #5dbea3;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Poppins-semibold', 'Poppins', sans-serif;
}

.fv-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Poppins-bold', 'Poppins', sans-serif;
}

.fv-card-desc {
    font-size: 0.79rem;
    color: #6c757d;
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Poppins-light', 'Poppins', sans-serif;
}

.fv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(79, 179, 217, 0.08);
}

.fv-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4fb3d9;
    text-decoration: none;
    font-family: 'Poppins-semibold', 'Poppins', sans-serif;
    transition: color 0.2s;
}

.fv-card-btn:hover {
    color: #5dbea3;
}

.fv-card-difficulty {
    font-size: 0.68rem;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 500;
    background: rgba(79, 179, 217, 0.08);
    color: #6c757d;
}

/* ── Video Modal ── */
.fv-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fv-modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.fv-modal-container {
    width: 100%;
    max-width: 860px;
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fv-modal-backdrop.open .fv-modal-container {
    transform: scale(1);
}

.fv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
}

.fv-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: 'Poppins-bold', 'Poppins', sans-serif;
}

.fv-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.fv-modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.fv-modal-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fv-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.fv-modal-info {
    padding: 14px 0 0;
}

.fv-modal-course {
    font-size: 0.72rem;
    color: #4fb3d9;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.fv-modal-desc {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin: 0;
}

/* ── Empty State ── */
.fv-empty-state {
    text-align: center;
    padding: 72px 20px;
    color: #6c757d;
}

.fv-empty-state i {
    font-size: 3.5rem;
    margin-bottom: 18px;
    display: block;
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    -webkit-background-clip: text;

    background-clip: text;
}

.fv-empty-state h4 {
    color: #333;
    margin-bottom: 8px;
}

/* ── Pagination ── */
.fv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 46px;
    flex-wrap: wrap;
}

.fv-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(79, 179, 217, 0.2);
    background: #fff;
    color: #6c757d;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fv-page-btn:hover {
    background: rgba(79, 179, 217, 0.08);
    border-color: rgba(79, 179, 217, 0.35);
    color: #4fb3d9;
}

.fv-page-btn.active {
    background: linear-gradient(135deg, #4fb3d9, #5dbea3);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(79, 179, 217, 0.35);
}

.fv-page-btn.wide {
    width: auto;
    padding: 0 16px;
}