/* ==========================================================================
   Eduvalt-Style Theme for eLearning Platform
   Modern, clean design inspired by Eduvalt NextJS template
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Primary Colors */
    --ev-primary: #5B5EA6;
    --ev-primary-hover: #4a4d8c;
    --ev-primary-light: #7c7fbd;
    --ev-primary-rgb: 91, 94, 166;

    /* Secondary Colors */
    --ev-secondary: #FF6B6B;
    --ev-secondary-hover: #ff5252;

    /* Accent Colors */
    --ev-accent: #4ECDC4;
    --ev-accent-hover: #3dbdb5;

    /* Neutral Colors */
    --ev-dark: #1a1a2e;
    --ev-gray-900: #16213e;
    --ev-gray-800: #2d3748;
    --ev-gray-700: #4a5568;
    --ev-gray-600: #718096;
    --ev-gray-500: #a0aec0;
    --ev-gray-400: #cbd5e0;
    --ev-gray-300: #e2e8f0;
    --ev-gray-200: #edf2f7;
    --ev-gray-100: #f7fafc;
    --ev-white: #ffffff;

    /* Gradients */
    --ev-gradient-primary: linear-gradient(135deg, #5B5EA6 0%, #7c7fbd 100%);
    --ev-gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #5B5EA6 100%);
    --ev-gradient-card: linear-gradient(180deg, rgba(91,94,166,0.1) 0%, rgba(255,255,255,0) 100%);

    /* Typography */
    --ev-font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ev-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --ev-section-padding: 80px;
    --ev-card-padding: 24px;
    --ev-border-radius: 12px;
    --ev-border-radius-lg: 20px;
    --ev-border-radius-sm: 8px;

    /* Shadows */
    --ev-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --ev-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --ev-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --ev-shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --ev-shadow-card: 0 4px 20px rgba(91, 94, 166, 0.1);
    --ev-shadow-card-hover: 0 8px 30px rgba(91, 94, 166, 0.2);

    /* Transitions */
    --ev-transition: all 0.3s ease;
    --ev-transition-fast: all 0.15s ease;
}

/* --------------------------------------------------------------------------
   Base Styles & Reset
   -------------------------------------------------------------------------- */
body.eduvalt-theme {
    font-family: var(--ev-font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ev-gray-700);
    background-color: var(--ev-gray-100);
    overflow-x: hidden;
}

body.eduvalt-theme h1,
body.eduvalt-theme h2,
body.eduvalt-theme h3,
body.eduvalt-theme h4,
body.eduvalt-theme h5,
body.eduvalt-theme h6 {
    font-family: var(--ev-font-heading);
    font-weight: 700;
    color: var(--ev-dark);
    line-height: 1.3;
}

body.eduvalt-theme a {
    color: var(--ev-primary);
    text-decoration: none;
    transition: var(--ev-transition-fast);
}

body.eduvalt-theme a:hover {
    color: var(--ev-primary-hover);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.ev-header {
    background: var(--ev-white);
    box-shadow: var(--ev-shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--ev-transition);
}

.ev-header.scrolled {
    box-shadow: var(--ev-shadow-md);
}

.ev-navbar {
    padding: 16px 0;
}

.ev-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--ev-primary);
}

.ev-logo img {
    max-height: 45px;
}

.ev-nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ev-nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--ev-gray-700);
    padding: 8px 0;
    position: relative;
    transition: var(--ev-transition-fast);
}

.ev-nav-link:hover,
.ev-nav-link.active {
    color: var(--ev-primary);
}

.ev-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ev-primary);
    transition: var(--ev-transition);
}

.ev-nav-link:hover::after,
.ev-nav-link.active::after {
    width: 100%;
}

.ev-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--ev-font-primary);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--ev-border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--ev-transition);
    text-decoration: none;
}

.ev-btn-primary {
    background: var(--ev-primary);
    color: var(--ev-white);
}

.ev-btn-primary:hover {
    background: var(--ev-primary-hover);
    color: var(--ev-white);
    transform: translateY(-2px);
    box-shadow: var(--ev-shadow-md);
}

.ev-btn-secondary {
    background: var(--ev-secondary);
    color: var(--ev-white);
}

.ev-btn-secondary:hover {
    background: var(--ev-secondary-hover);
    color: var(--ev-white);
    transform: translateY(-2px);
}

.ev-btn-outline {
    background: transparent;
    color: var(--ev-primary);
    border: 2px solid var(--ev-primary);
}

.ev-btn-outline:hover {
    background: var(--ev-primary);
    color: var(--ev-white);
}

.ev-btn-white {
    background: var(--ev-white);
    color: var(--ev-primary);
}

.ev-btn-white:hover {
    background: var(--ev-gray-100);
    color: var(--ev-primary-hover);
    transform: translateY(-2px);
}

.ev-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.ev-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.ev-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.ev-hero {
    background: var(--ev-gradient-hero);
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.ev-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.ev-hero-content {
    position: relative;
    z-index: 1;
}

.ev-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--ev-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.ev-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--ev-white);
    margin-bottom: 24px;
    line-height: 1.2;
}

.ev-hero-title span {
    color: var(--ev-accent);
}

.ev-hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 500px;
}

.ev-hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
}

.ev-hero-stat {
    text-align: left;
}

.ev-hero-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--ev-white);
}

.ev-hero-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.ev-hero-image {
    position: relative;
    z-index: 1;
}

.ev-hero-image img {
    max-width: 100%;
    border-radius: var(--ev-border-radius-lg);
    box-shadow: var(--ev-shadow-xl);
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.ev-section {
    padding: var(--ev-section-padding) 0;
}

.ev-section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--ev-dark);
    margin-bottom: 16px;
}

.ev-section-subtitle {
    font-size: 18px;
    color: var(--ev-gray-600);
    max-width: 600px;
}

.ev-section-header {
    margin-bottom: 48px;
}

.ev-section-header.text-center .ev-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   Course Cards
   -------------------------------------------------------------------------- */
.ev-course-card {
    background: var(--ev-white);
    border-radius: var(--ev-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--ev-shadow-card);
    transition: var(--ev-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ev-course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ev-shadow-card-hover);
}

.ev-course-card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.ev-course-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ev-transition);
}

.ev-course-card:hover .ev-course-card-image img {
    transform: scale(1.05);
}

.ev-course-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ev-primary);
    color: var(--ev-white);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ev-course-card-badge.featured {
    background: var(--ev-secondary);
}

.ev-course-card-badge.new {
    background: var(--ev-accent);
}

.ev-course-card-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--ev-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--ev-transition);
    box-shadow: var(--ev-shadow-sm);
}

.ev-course-card-favorite:hover {
    background: var(--ev-secondary);
    color: var(--ev-white);
}

.ev-course-card-body {
    padding: var(--ev-card-padding);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ev-course-card-category {
    font-size: 13px;
    font-weight: 600;
    color: var(--ev-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ev-course-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ev-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-course-card-title a {
    color: inherit;
}

.ev-course-card-title a:hover {
    color: var(--ev-primary);
}

.ev-course-card-description {
    font-size: 14px;
    color: var(--ev-gray-600);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 42px;
}

.ev-course-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--ev-gray-500);
    margin-bottom: 16px;
}

.ev-course-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ev-course-card-meta-item i {
    font-size: 16px;
}

.ev-course-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ev-course-card-stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
}

.ev-course-card-rating-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ev-gray-700);
}

.ev-course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--ev-gray-200);
    margin-top: auto;
    gap: 12px;
    flex-wrap: wrap;
}

.ev-course-card-footer .ev-btn {
    flex-shrink: 0;
}

.ev-course-card-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    max-width: calc(100% - 120px);
}

.ev-course-card-instructor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.ev-course-card-instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ev-course-card-instructor-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ev-gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-course-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ev-primary);
}

.ev-course-card-price .original {
    font-size: 14px;
    color: var(--ev-gray-500);
    text-decoration: line-through;
    margin-right: 8px;
}

/* --------------------------------------------------------------------------
   Featured Banner / Carousel
   -------------------------------------------------------------------------- */
.ev-featured-banner {
    background: var(--ev-gradient-primary);
    border-radius: var(--ev-border-radius-lg);
    padding: 48px;
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
}

.ev-featured-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(15deg);
}

.ev-featured-banner-content {
    position: relative;
    z-index: 1;
}

.ev-featured-banner-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--ev-white);
    margin-bottom: 16px;
}

.ev-featured-banner-text {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
    max-width: 500px;
}

/* --------------------------------------------------------------------------
   Category Cards
   -------------------------------------------------------------------------- */
.ev-category-card {
    background: var(--ev-white);
    border-radius: var(--ev-border-radius);
    padding: 32px;
    text-align: center;
    transition: var(--ev-transition);
    cursor: pointer;
}

.ev-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ev-shadow-lg);
}

.ev-category-icon {
    width: 64px;
    height: 64px;
    background: var(--ev-gradient-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--ev-primary);
}

.ev-category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ev-dark);
    margin-bottom: 8px;
}

.ev-category-count {
    font-size: 14px;
    color: var(--ev-gray-500);
}

/* --------------------------------------------------------------------------
   Instructor Cards
   -------------------------------------------------------------------------- */
.ev-instructor-card {
    background: var(--ev-white);
    border-radius: var(--ev-border-radius);
    padding: 24px;
    text-align: center;
    transition: var(--ev-transition);
}

.ev-instructor-card:hover {
    box-shadow: var(--ev-shadow-lg);
}

.ev-instructor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 4px solid var(--ev-gray-200);
}

.ev-instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ev-instructor-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ev-dark);
    margin-bottom: 4px;
}

.ev-instructor-title {
    font-size: 14px;
    color: var(--ev-gray-500);
    margin-bottom: 16px;
}

.ev-instructor-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.ev-instructor-social a {
    width: 36px;
    height: 36px;
    background: var(--ev-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ev-gray-600);
    transition: var(--ev-transition);
}

.ev-instructor-social a:hover {
    background: var(--ev-primary);
    color: var(--ev-white);
}

/* --------------------------------------------------------------------------
   Stats Section
   -------------------------------------------------------------------------- */
.ev-stats {
    background: var(--ev-primary);
    padding: 60px 0;
}

.ev-stat-item {
    text-align: center;
}

.ev-stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--ev-white);
    margin-bottom: 8px;
}

.ev-stat-label {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.ev-testimonial-card {
    background: var(--ev-white);
    border-radius: var(--ev-border-radius);
    padding: 32px;
    position: relative;
}

.ev-testimonial-quote {
    font-size: 48px;
    color: var(--ev-primary);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 24px;
    font-family: Georgia, serif;
}

.ev-testimonial-text {
    font-size: 16px;
    color: var(--ev-gray-700);
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
}

.ev-testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ev-testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
}

.ev-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ev-testimonial-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ev-dark);
}

.ev-testimonial-role {
    font-size: 14px;
    color: var(--ev-gray-500);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ev-footer {
    background: var(--ev-dark);
    color: var(--ev-gray-400);
    padding: 80px 0 0;
}

.ev-footer-top {
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ev-footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--ev-white);
    margin-bottom: 16px;
}

.ev-footer-logo img {
    max-height: 50px;
}

.ev-footer-description {
    font-size: 15px;
    color: var(--ev-gray-400);
    margin-bottom: 24px;
    max-width: 300px;
}

.ev-footer-social {
    display: flex;
    gap: 12px;
}

.ev-footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ev-white);
    transition: var(--ev-transition);
}

.ev-footer-social a:hover {
    background: var(--ev-primary);
}

.ev-footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ev-white);
    margin-bottom: 24px;
}

.ev-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ev-footer-links li {
    margin-bottom: 12px;
}

.ev-footer-links a {
    color: var(--ev-gray-400);
    font-size: 15px;
    transition: var(--ev-transition-fast);
}

.ev-footer-links a:hover {
    color: var(--ev-white);
    padding-left: 8px;
}

.ev-footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.ev-footer-copyright {
    font-size: 14px;
    color: var(--ev-gray-500);
}

/* --------------------------------------------------------------------------
   Course Detail Page
   -------------------------------------------------------------------------- */
.ev-course-hero {
    background: var(--ev-gradient-hero);
    padding: 120px 0 60px;
}

.ev-course-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.ev-course-hero-breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.ev-course-hero-breadcrumb a:hover {
    color: var(--ev-white);
}

.ev-course-hero-breadcrumb .separator {
    color: rgba(255,255,255,0.4);
}

.ev-course-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--ev-white);
    margin-bottom: 16px;
}

.ev-course-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

.ev-course-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ev-course-sidebar {
    background: var(--ev-white);
    border-radius: var(--ev-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--ev-shadow-lg);
    position: sticky;
    top: 100px;
}

.ev-course-sidebar-image {
    position: relative;
}

.ev-course-sidebar-image img {
    width: 100%;
    height: auto;
}

.ev-course-sidebar-body {
    padding: 24px;
}

.ev-course-price-box {
    margin-bottom: 24px;
}

.ev-course-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--ev-dark);
}

.ev-course-original-price {
    font-size: 18px;
    color: var(--ev-gray-500);
    text-decoration: line-through;
    margin-left: 12px;
}

.ev-course-discount-badge {
    background: var(--ev-secondary);
    color: var(--ev-white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 12px;
}

.ev-course-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.ev-course-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ev-gray-200);
    font-size: 15px;
    color: var(--ev-gray-700);
}

.ev-course-features li:last-child {
    border-bottom: none;
}

.ev-course-features li i {
    color: var(--ev-primary);
    font-size: 18px;
    width: 24px;
}

.ev-course-content {
    background: var(--ev-white);
    border-radius: var(--ev-border-radius);
    padding: 32px;
    margin-bottom: 24px;
}

.ev-course-content-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ev-dark);
    margin-bottom: 24px;
}

/* Course Tabs */
.ev-tabs {
    border-bottom: 2px solid var(--ev-gray-200);
    margin-bottom: 24px;
}

.ev-tabs .nav-link {
    border: none;
    background: none;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ev-gray-600);
    position: relative;
}

.ev-tabs .nav-link:hover {
    color: var(--ev-primary);
}

.ev-tabs .nav-link.active {
    color: var(--ev-primary);
}

.ev-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ev-primary);
}

/* Course Modules Accordion */
.ev-accordion {
    border-radius: var(--ev-border-radius);
    overflow: hidden;
}

.ev-accordion-item {
    border: 1px solid var(--ev-gray-200);
    margin-bottom: -1px;
}

.ev-accordion-item:first-child {
    border-radius: var(--ev-border-radius) var(--ev-border-radius) 0 0;
}

.ev-accordion-item:last-child {
    border-radius: 0 0 var(--ev-border-radius) var(--ev-border-radius);
}

.ev-accordion-header {
    background: var(--ev-gray-100);
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--ev-transition-fast);
}

.ev-accordion-header:hover {
    background: var(--ev-gray-200);
}

.ev-accordion-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ev-dark);
    margin: 0;
}

.ev-accordion-body {
    padding: 20px;
    background: var(--ev-white);
}

/* --------------------------------------------------------------------------
   Mobile Navigation
   -------------------------------------------------------------------------- */
.ev-mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.ev-mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ev-dark);
    margin: 5px auto;
    transition: var(--ev-transition);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.ev-mb-0 { margin-bottom: 0 !important; }
.ev-mb-1 { margin-bottom: 8px !important; }
.ev-mb-2 { margin-bottom: 16px !important; }
.ev-mb-3 { margin-bottom: 24px !important; }
.ev-mb-4 { margin-bottom: 32px !important; }
.ev-mb-5 { margin-bottom: 48px !important; }

.ev-mt-0 { margin-top: 0 !important; }
.ev-mt-1 { margin-top: 8px !important; }
.ev-mt-2 { margin-top: 16px !important; }
.ev-mt-3 { margin-top: 24px !important; }
.ev-mt-4 { margin-top: 32px !important; }
.ev-mt-5 { margin-top: 48px !important; }

.ev-text-primary { color: var(--ev-primary) !important; }
.ev-text-secondary { color: var(--ev-secondary) !important; }
.ev-text-dark { color: var(--ev-dark) !important; }
.ev-text-muted { color: var(--ev-gray-500) !important; }
.ev-text-white { color: var(--ev-white) !important; }

.ev-bg-primary { background-color: var(--ev-primary) !important; }
.ev-bg-light { background-color: var(--ev-gray-100) !important; }
.ev-bg-white { background-color: var(--ev-white) !important; }

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

@keyframes ev-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ev-animate-fadeInUp {
    animation: ev-fadeInUp 0.6s ease forwards;
}

.ev-animate-fadeIn {
    animation: ev-fadeIn 0.6s ease forwards;
}

/* Stagger animation delays */
.ev-delay-1 { animation-delay: 0.1s; }
.ev-delay-2 { animation-delay: 0.2s; }
.ev-delay-3 { animation-delay: 0.3s; }
.ev-delay-4 { animation-delay: 0.4s; }
.ev-delay-5 { animation-delay: 0.5s; }

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .ev-nav-menu {
        display: none;
    }

    .ev-mobile-menu-toggle {
        display: block;
    }

    .ev-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .ev-hero-title {
        font-size: 36px;
    }

    .ev-hero-stats {
        gap: 24px;
    }

    .ev-hero-stat-number {
        font-size: 28px;
    }

    .ev-section {
        padding: 60px 0;
    }

    .ev-section-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .ev-hero-title {
        font-size: 28px;
    }

    .ev-hero-subtitle {
        font-size: 16px;
    }

    .ev-hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .ev-course-card-body {
        padding: 16px;
    }

    .ev-course-hero-title {
        font-size: 28px;
    }

    .ev-course-sidebar {
        position: static;
        margin-top: 24px;
    }
}

/* --------------------------------------------------------------------------
   Page Wrapper (Override existing styles)
   -------------------------------------------------------------------------- */
body.eduvalt-theme #main-wrapper {
    width: 100%;
    margin: 0;
}

body.eduvalt-theme .page-wrapper {
    margin-left: 0;
    padding-top: 80px;
    background: var(--ev-gray-100);
}

body.eduvalt-theme .topbar,
body.eduvalt-theme .left-sidebar,
body.eduvalt-theme .footer:not(.ev-footer) {
    display: none;
}

/* Container */
.ev-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ev-container-fluid {
    padding: 0 24px;
}

/* Search Box */
.ev-search-box {
    position: relative;
    max-width: 400px;
}

.ev-search-input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    border: 2px solid var(--ev-gray-300);
    border-radius: 50px;
    font-size: 15px;
    transition: var(--ev-transition);
}

.ev-search-input:focus {
    outline: none;
    border-color: var(--ev-primary);
    box-shadow: 0 0 0 4px rgba(var(--ev-primary-rgb), 0.1);
}

.ev-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--ev-primary);
    border: none;
    border-radius: 50%;
    color: var(--ev-white);
    cursor: pointer;
    transition: var(--ev-transition);
}

.ev-search-btn:hover {
    background: var(--ev-primary-hover);
}

/* Loading Spinner */
.ev-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ev-gray-200);
    border-top-color: var(--ev-primary);
    border-radius: 50%;
    animation: ev-spin 0.8s linear infinite;
}

@keyframes ev-spin {
    to { transform: rotate(360deg); }
}

/* Preloader */
.ev-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ev-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ev-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
