/* ===================================
   Compact Hero Section Styles - Enhanced
   =================================== */

.compact-hero {
    padding: 2.5rem 0 2rem;
    background: linear-gradient(135deg, rgba(87, 179, 103, 0.04) 0%, rgba(255, 255, 255, 0) 50%, rgba(87, 179, 103, 0.02) 100%);
    position: relative;
    overflow: hidden;
    direction: rtl;
}

/* Decorative Elements */
.compact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(87, 179, 103, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.compact-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(87, 179, 103, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Hero Content Wrapper */
.compact-hero .row {
    position: relative;
    z-index: 1;
}

/* Hero Badge - Enhanced */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border: 2px solid rgba(87, 179, 103, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(87, 179, 103, 0.15);
}

.hero-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(87, 179, 103, 0.25);
    border-color: rgba(87, 179, 103, 0.4);
}

.hero-badge i {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Hero Title - Enhanced */
.hero-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-dark) 60%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Hero Subtitle - Enhanced */
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 500px;
}

/* Hero Stats - Enhanced Horizontal Layout */
.hero-stats-compact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats-compact .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafdfb 100%);
    border-radius: 16px;
    border: 2px solid rgba(87, 179, 103, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 140px;
}

.hero-stats-compact .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.hero-stats-compact .stat-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.hero-stats-compact .stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(87, 179, 103, 0.3);
    box-shadow: 0 12px 35px rgba(87, 179, 103, 0.15);
}

.hero-stats-compact .stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(87, 179, 103, 0.1) 0%, rgba(87, 179, 103, 0.2) 100%);
    border-radius: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hero-stats-compact .stat-item:hover .stat-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scale(1.1);
}

.hero-stats-compact .stat-item:hover .stat-icon i {
    color: white;
}

.hero-stats-compact .stat-icon i {
    font-size: 1.4rem;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.hero-stats-compact .stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-stats-compact .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.hero-stats-compact .stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Page-specific colors */
.compact-hero.courses-hero .hero-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

.compact-hero.courses-hero .hero-badge i {
    color: #3b82f6;
}

.compact-hero.store-hero .hero-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.3);
    color: #d97706;
}

.compact-hero.store-hero .hero-badge i {
    color: #f59e0b;
}

.compact-hero.blog-hero .hero-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.3);
    color: #7c3aed;
}

.compact-hero.blog-hero .hero-badge i {
    color: #8b5cf6;
}

/* Responsive Design */
@media (max-width: 991px) {
    .compact-hero {
        padding: 2rem 0 1.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-stats-compact {
        margin-top: 1.5rem;
        justify-content: center;
    }

    .hero-stats-compact .stat-item {
        flex: 0 1 auto;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .compact-hero {
        padding: 1.5rem 0 1.2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-title::after {
        width: 60px;
        height: 3px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats-compact {
        gap: 0.8rem;
    }

    .hero-stats-compact .stat-item {
        padding: 0.8rem 1rem;
        min-width: 100px;
    }

    .hero-stats-compact .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .hero-stats-compact .stat-icon i {
        font-size: 1.2rem;
    }

    .hero-stats-compact .stat-number {
        font-size: 1.4rem;
    }

    .hero-stats-compact .stat-label {
        font-size: 0.75rem;
    }
}