/**
 * Highlights + Featured Courses - Aiero Complete Styling
 * Date: October 2, 2025
 */

/* ============================================
   HIGHLIGHTS/CATEGORIES SECTION - AIERO
   ============================================ */

.mm-highlights {
    background: var(--mm-surface-1);
}

.mm-card-grid--highlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

/* Highlight Cards - 80px Icons */
.mm-card--highlight {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(91, 81, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mm-card--highlight:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(91, 81, 255, 0.15);
    border-color: rgba(91, 81, 255, 0.3);
}

/* Medical Icon Container - 80px */
.mm-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(91, 81, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 16px;
    margin-bottom: 8px;
}

.mm-card__icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(91, 81, 255, 0.2));
}

.mm-card--highlight h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--mm-text);
    margin: 0;
}

.mm-card--highlight p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--mm-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive - Highlights */
@media (max-width: 768px) {
    .mm-card-grid--highlight {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============================================
   FEATURED COURSES SECTION - AIERO
   ============================================ */

.mm-featured-courses {
    background: var(--mm-surface-2);
}

.mm-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

/* Course Cards - Aiero Style */
.mm-course-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(91, 81, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.mm-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(91, 81, 255, 0.15);
    border-color: rgba(91, 81, 255, 0.3);
}

/* Course Image with Zoom Effect */
.mm-course-card__image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(91, 81, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
}

.mm-course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mm-course-card:hover .mm-course-card__image img {
    transform: scale(1.1);
}

/* Category Badge - Gradient Aiero */
.mm-course-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #5B51FF 0%, #00D4FF 100%);
    color: white;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(91, 81, 255, 0.3);
    z-index: 1;
}

/* Course Content */
.mm-course-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.mm-course-card h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--mm-text);
    margin: 0;
    line-height: 1.4;
}

/* Duration/Level Pills */
.mm-course-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mm-course-meta li {
    padding: 6px 12px;
    background: rgba(91, 81, 255, 0.1);
    color: #5B51FF;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
}

/* Course Footer */
.mm-course-card__footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(91, 81, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mm-course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mm-course-rating::before {
    content: '★★★★★';
    color: #FFB800;
    font-size: 14px;
    letter-spacing: 2px;
}

.mm-course-rating span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--mm-text);
}

/* Responsive - Featured Courses */
@media (max-width: 960px) {
    .mm-course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .mm-course-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SCROLL ANIMATIONS - AOS ALTERNATIVE (CSS-ONLY)
   ============================================ */

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply to sections on scroll (requires JS intersection observer or use animation-delay) */
.mm-section {
    animation: fadeInUp 0.8s ease both;
}

.mm-section:nth-child(1) { animation-delay: 0s; }
.mm-section:nth-child(2) { animation-delay: 0.1s; }
.mm-section:nth-child(3) { animation-delay: 0.2s; }
.mm-section:nth-child(4) { animation-delay: 0.3s; }
.mm-section:nth-child(5) { animation-delay: 0.4s; }

/* Card Stagger Animation */
.mm-card-grid > * {
    animation: fadeInUp 0.6s ease both;
}

.mm-card-grid > *:nth-child(1) { animation-delay: 0.1s; }
.mm-card-grid > *:nth-child(2) { animation-delay: 0.2s; }
.mm-card-grid > *:nth-child(3) { animation-delay: 0.3s; }
.mm-card-grid > *:nth-child(4) { animation-delay: 0.4s; }
.mm-card-grid > *:nth-child(5) { animation-delay: 0.5s; }
.mm-card-grid > *:nth-child(6) { animation-delay: 0.6s; }

/* Disable animations on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .mm-section,
    .mm-card-grid > * {
        animation: none;
    }
}






