/* LMS Mastery Section - Modern Design */

.lms-mastery-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0a15 50%, #0a0a0f 100%);
    padding: 80px var(--spacing-lg) !important;
    position: relative;
    overflow: hidden;
}

.lms-mastery-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.lms-mastery-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    z-index: 0;
}

.lms-mastery-section h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3rem);
}

.lms-mastery-section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 2px;
}

.lms-mastery-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

/* LMS Slider Wrapper */
.lms-slider-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto var(--spacing-2xl);
    overflow: hidden;
}

/* LMS Slider - Auto-scrolling carousel */
.lms-slider {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    animation: autoScroll 30s linear infinite;
    width: fit-content;
}

/* Auto-scroll animation */
@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate items for seamless loop */
.lms-slider::after {
    content: '';
    display: none;
}

/* LMS Badge */
.lms-badge {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: all var(--transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
    animation: slideUp 0.8s ease-out both;
    min-width: 160px;
    flex-shrink: 0;
}

.lms-badge:nth-child(1) { animation-delay: 0.05s; }
.lms-badge:nth-child(2) { animation-delay: 0.1s; }
.lms-badge:nth-child(3) { animation-delay: 0.15s; }
.lms-badge:nth-child(4) { animation-delay: 0.2s; }
.lms-badge:nth-child(5) { animation-delay: 0.25s; }
.lms-badge:nth-child(6) { animation-delay: 0.3s; }
.lms-badge:nth-child(7) { animation-delay: 0.35s; }
.lms-badge:nth-child(8) { animation-delay: 0.4s; }

.lms-badge:hover {
    transform: translateY(-8px);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.2);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.1));
}

.lms-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.lms-badge:hover .lms-image {
    transform: scale(1.1);
}

.lms-name {
    color: #a855f7;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition-base);
    line-height: 1.4;
}

.lms-badge:hover .lms-name {
    color: #ec4899;
}

/* LMS Text */
.lms-mastery-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.lms-mastery-text strong {
    color: #ffffff;
    font-weight: 700;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .lms-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .lms-mastery-section {
        padding: 60px var(--spacing-md) !important;
    }

    .lms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    .lms-badge {
        padding: var(--spacing-md);
    }

    .lms-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lms-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .lms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
