/* Learning Grid - Minimalist Design */

/* Learning grid container */
.learning-minimal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

/* Video card */
.learning-minimal-card {
    position: relative;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #333333;
}

.learning-minimal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Video link wrapper */
.learning-minimal-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail container */
.learning-minimal-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learning-minimal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

.learning-minimal-card:hover .learning-minimal-thumbnail img {
    transform: scale(1.05);
}

/* Dark overlay on thumbnail */
.learning-minimal-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.learning-minimal-card:hover .learning-minimal-thumbnail::before {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Play button overlay */
.learning-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.learning-minimal-card:hover .learning-play-button {
    background-color: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.15);
}

.learning-play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 24px solid #FFFFFF;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}

/* Video caption */
.learning-minimal-caption {
    padding: 20px;
    background-color: #1a1a1a;
}

.learning-minimal-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.learning-minimal-category {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #999999;
    margin: 0;
}

/* Pagination */
.learning-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding: 20px 0;
}

.learning-pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #999999;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 24px;
}

.learning-pagination-number.active {
    color: #FFFFFF;
    font-weight: 700;
    pointer-events: none;
}

.learning-pagination-number:hover {
    color: #FFFFFF;
}

/* No videos message */
.no-videos {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
    grid-column: 1 / -1;
}

.no-videos h3 {
    color: white;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .learning-minimal-grid {
        gap: 15px;
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .learning-minimal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }

    .learning-play-button {
        width: 60px;
        height: 60px;
    }

    .learning-play-button::after {
        border-left-width: 18px;
        border-top-width: 11px;
        border-bottom-width: 11px;
        margin-left: 4px;
    }
}

@media (max-width: 768px) {
    .learning-minimal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .learning-minimal-caption {
        padding: 15px;
    }

    .learning-minimal-title {
        font-size: 14px;
    }

    .learning-play-button {
        width: 50px;
        height: 50px;
    }

    .learning-play-button::after {
        border-left-width: 15px;
        border-top-width: 9px;
        border-bottom-width: 9px;
        margin-left: 3px;
    }
}

/* Animation on load */
.learning-minimal-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for cards */
.learning-minimal-card:nth-child(1) { animation-delay: 0.1s; }
.learning-minimal-card:nth-child(2) { animation-delay: 0.2s; }
.learning-minimal-card:nth-child(3) { animation-delay: 0.3s; }
.learning-minimal-card:nth-child(4) { animation-delay: 0.4s; }
.learning-minimal-card:nth-child(5) { animation-delay: 0.5s; }
.learning-minimal-card:nth-child(6) { animation-delay: 0.6s; }
.learning-minimal-card:nth-child(7) { animation-delay: 0.7s; }
.learning-minimal-card:nth-child(8) { animation-delay: 0.8s; }
.learning-minimal-card:nth-child(9) { animation-delay: 0.9s; }
