/* ============================================================
   ACADEMY PAGE — PREMIUM STYLES
   ============================================================ */

.page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
    padding-top: 100px !important;
}

/* ── Tabs ─────────────────────────────────────── */
.nav-pills .nav-link {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 5px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-pills .nav-link:hover {
    background-color: var(--bg-main);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--accent-gold), #b87a00);
    color: #000 !important;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(236, 156, 4, 0.35);
}

/* ── Video Card ── vc-card ─────────────────────── */
.vc-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.vc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(236, 156, 4, 0.22);
    border-color: rgba(236, 156, 4, 0.4);
}

/* ── Thumbnail ─────────────────────────────────── */
.vc-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    flex-shrink: 0;
}

.vc-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vc-card:hover .vc-thumb img {
    transform: scale(1.06);
}

/* gradient overlay */
.vc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 20, 0.85) 0%,
        rgba(10, 10, 20, 0.1) 55%,
        transparent 100%
    );
    pointer-events: none;
}

/* ── Play button ───────────────────────────────── */
.vc-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 58px;
    height: 58px;
    background: rgba(236, 156, 4, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(236, 156, 4, 0.5);
}

.vc-card:hover .vc-play {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 0 10px rgba(236, 156, 4, 0.15),
                0 0 30px rgba(236, 156, 4, 0.4);
}

/* ── Number chip — top-right ────────────────── */
.vc-num {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(236, 156, 4, 0.4);
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

/* ── Type badge — top-left ────────────────── */
.vc-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(236, 156, 4, 0.9);
    color: #000;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* ── Duration badge — bottom-left ───────────── */
.vc-dur {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── Card body ────────────────────────────────── */
.vc-body {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vc-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vc-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Footer row ───────────────────────────────── */
.vc-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12px;
}

.vc-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.vc-btn {
    background: linear-gradient(135deg, var(--accent-gold), #c98c00);
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.vc-btn:hover {
    box-shadow: 0 4px 16px rgba(236, 156, 4, 0.45);
    transform: scale(1.05);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 991.98px) {
    .page-header { padding-top: 80px !important; }
    .nav-pills .nav-link { padding: 10px 20px; font-size: 0.9rem; margin: 3px; }
    .vc-play { width: 50px; height: 50px; font-size: 1.1rem; }
}

@media (max-width: 767.98px) {
    .page-header { padding-top: 70px !important; text-align: center; }
    .nav-pills { flex-wrap: wrap; justify-content: center; }
    .nav-pills .nav-link { padding: 8px 16px; font-size: 0.85rem; margin: 2px; }
    .vc-play { width: 46px; height: 46px; font-size: 1rem; }
}

@media (max-width: 575.98px) {
    .page-header { padding-top: 60px !important; }
    .nav-pills .nav-link { padding: 6px 12px; font-size: 0.8rem; }
    .vc-play { width: 40px; height: 40px; font-size: 0.9rem; }
}
