/* ============================================
   فیلم‌های آموزشی - استایل اختصاصی
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --gold: #f59e0b;
    --gold-light: #facc15;
    --bg: #f8fafc;
    --white: #ffffff;
    --text: #1e1e2e;
    --text-soft: #64748b;
    --border: #e2e8f0;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================
   Hero Section
   ====================== */
.videos-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

.videos-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 8px;
}

.videos-hero__highlight {
    color: #facc15;
}



/* ======================
   Container
   ====================== */
.videos-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 50px;
}

/* ======================
   Videos Grid
   ====================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* ======================
   Video Card
   ====================== */
.video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid #1e1b4b;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1e1b4b;
    overflow: hidden;
}

.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    direction: ltr;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1e1b4b;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-card__play {
    opacity: 1;
}

.video-card__body {
    padding: 16px;
}

.video-card__title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
    line-height: 1.6;
}

.video-card__desc {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: 10px;
    line-height: 1.7;
}

.video-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-soft);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* ======================
   CTA Section
   ====================== */
.videos-cta {
    background: linear-gradient(135deg, #1e1b4b, #4338ca);
    color: var(--white);
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius);
}

.videos-cta__title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.videos-cta__desc {
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 20px;
    font-size: 0.9rem;
    line-height: 1.8;
    color:whitesmoke;
}

.videos-cta__btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1e1b4b;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
}

.videos-cta__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.6);
}

/* ======================
   Responsive
   ====================== */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .videos-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .videos-tabs__btn {
        flex: none;
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

@media (max-width: 500px) {
    .videos-hero {
        padding: 30px 16px;
    }

    .videos-hero__title {
        font-size: 1.3rem;
    }

    .videos-container {
        padding: 16px 12px 40px;
    }

    .video-card__title {
        font-size: 0.85rem;
    }

    .videos-cta {
        padding: 28px 18px;
    }

    .videos-cta__btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}