/* ================================================
   COURSES PAGE STYLES
   ================================================ */

/* Import variables for consistency */
:root {
    --primary-green: #2e8b57;
    --secondary-green: #22c55e;
    --accent-green: #16a34a;
    --text-darks: #1a5c3a;
    --text-dark: #1f2937;
    --text-gray: #4a6741;
    --light-green-bg: #f0fdf4;
    --light-green-border: #dcfce7;
    --green-gradient: linear-gradient(135deg, #2e8b57, #22c55e);
}

/* ===== HERO SECTION ===== */
.courses-hero-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.courses-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="5" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="10" r="0.3" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="15" r="0.4" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="3" r="0.6" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="8" r="0.2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="12" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="18" r="0.3" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="6" r="0.4" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="14" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb-nav {
    background: rgba(254, 255, 253, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-nav a {
    color: rgba(17, 24, 39, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}
.breadcrumb-nav .mx-2 {
    color: #000;
}
.breadcrumb-nav a:hover {
    color: rgba(17, 24, 39, 0.9);
    font-weight: 600;
}

.breadcrumb-nav .current {
    color: rgba(17, 24, 39, 0.9);
    font-weight: 600;
}

/* ===== COURSE CARDS ===== */
.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(46, 139, 87, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.15);
}

.course-header {
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    position: relative;
}

.course-level {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.level-beginner {
    background: linear-gradient(135deg, #2e8b57, #22c55e);
    color: white;
}

.level-intermediate {
    background: linear-gradient(135deg, #dc7633, #e67e22);
    color: white;
}

.level-advanced {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
}

.level-kids {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
}

.level-adults {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
}

.course-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.icon-ap1 {
    background: linear-gradient(135deg, #2e8b57, #22c55e);
}

.icon-ap2 {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.icon-kd1 {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.icon-ad {
    background: linear-gradient(135deg, #dc7633, #e67e22);
}

.icon-adab {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a5c3a;
}

.course-subtitle {
    color: #4a6741;
    font-size: 1rem;
    margin-bottom: 0;
}

.course-body {
    padding: 2rem;
}

.course-description {
    color: #4a6741;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.course-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #4a6741;
}

.course-features li i {
    color: #22c55e;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.course-details {
    background: #f0fdf4;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #dcfce7;
}

.detail-item {
    margin-bottom: 0.75rem;
    color: #4a6741;
    font-size: 0.9rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: #1a5c3a;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f0fdf4;
    border-top: 1px solid #bbf7d0;
}

.course-duration {
    display: flex;
    align-items: center;
    color: #4a6741;
    font-size: 0.9rem;
}

.course-duration i {
    margin-right: 0.5rem;
    color: #2e8b57;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e8b57;
}

.btn-enroll {
    background: linear-gradient(135deg, #2e8b57, #22c55e);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.4);
    color: white;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #bbf7d0;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #bbf7d0;
    background: white;
    color: #4a6741;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2e8b57;
    border-color: #2e8b57;
    color: white;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 4rem 0;
    margin: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(46, 139, 87, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.stat-icon.students {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.stat-icon.success {
    background: linear-gradient(135deg, #2e8b57, #22c55e);
}

.stat-icon.courses {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.stat-icon.years {
    background: linear-gradient(135deg, #dc7633, #e67e22);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #1a5c3a;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4a6741;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--primary-green);
    padding: 4rem 0;
    text-align: center;
    color: white;
    
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    background: white;
    color: #2e8b57;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: #2e8b57;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        justify-content: stretch;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .course-header,
    .course-body {
        padding: 1.5rem;
    }
    
    .course-meta {
        padding: 1.5rem;
    }
}


/* ===== UTILITY CLASSES ===== */
.text-gradient {
    color: var(--primary-green);
}

.bg-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-radius-custom {
    border-radius: var(--radius-lg);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktops (1200px+) */
@media (min-width: 1200px) {
    .footer-section {
        padding: 80px 0 0;
    }
    
    .footer-widget {
        margin-bottom: 2.5rem;
    }
}
