/* ═══════════════════════════════════════════════════════════════════
   ELMYFY COMPONENTS - Course Cards, Stats, and Premium Elements
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   COURSE CARDS
   ───────────────────────────────────────────────────────────────── */
.course-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    border-color: #1f3a93;
    box-shadow: 0 12px 32px rgba(31, 58, 147, 0.15);
    transform: translateY(-8px);
}

.course-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.course-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-card-instructor {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-card-instructor-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.course-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.course-card-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.course-card-stat i {
    color: #7c3aed;
    font-size: 0.95rem;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.course-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f3a93;
}

.course-card-price-free {
    color: #10b981;
}

.course-card-button {
    background: linear-gradient(135deg, #1f3a93, #7c3aed);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.course-card-button:hover {
    box-shadow: 0 6px 16px rgba(31, 58, 147, 0.2);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────────
   STAT CARDS
   ───────────────────────────────────────────────────────────────── */
.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.stat-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
    transform: translateY(-4px);
}

.stat-card-icon {
    font-size: 2.5rem;
    color: #1f3a93;
    margin-bottom: 1rem;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────
   BADGES & TAGS
   ───────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, rgba(31, 58, 147, 0.15), rgba(124, 58, 237, 0.1));
    color: #1f3a93;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.1));
    color: #10b981;
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.1));
    color: #d97706;
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
    color: #ef4444;
}

/* ─────────────────────────────────────────────────────────────────
   PROGRESS BARS
   ───────────────────────────────────────────────────────────────── */
.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #1f3a93, #7c3aed);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f3a93;
    margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────
   TESTIMONIAL CARDS
   ───────────────────────────────────────────────────────────────── */
.testimonial-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(31, 58, 147, 0.12);
    transform: translateY(-4px);
}

.testimonial-rating {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1f3a93;
}

.testimonial-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: #64748b;
}

/* ─────────────────────────────────────────────────────────────────
   FEATURE BOXES
   ───────────────────────────────────────────────────────────────── */
.feature-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: #1f3a93;
    box-shadow: 0 12px 32px rgba(31, 58, 147, 0.12);
    transform: translateY(-8px);
}

.feature-box-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e8f1fd, #f3e8ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #7c3aed;
}

.feature-box-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.feature-box-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   PRICING CARDS
   ───────────────────────────────────────────────────────────────── */
.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: #1f3a93;
    box-shadow: 0 12px 32px rgba(31, 58, 147, 0.15);
    transform: scale(1.05);
}

.pricing-card:hover:not(.featured) {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #1f3a93, #7c3aed);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f3a93;
    margin-bottom: 0.5rem;
}

.pricing-duration {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    text-align: left;
}

.pricing-feature {
    padding: 0.75rem 0;
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-feature i {
    color: #10b981;
    font-weight: 700;
    width: 20px;
    text-align: center;
}

.pricing-cta {
    background: linear-gradient(135deg, #1f3a93, #7c3aed);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.pricing-cta:hover {
    box-shadow: 0 8px 20px rgba(31, 58, 147, 0.2);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .course-card-body {
        padding: 1rem;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    .feature-box {
        padding: 1.5rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .stat-card-icon {
        font-size: 2rem;
    }
}
