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

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

.bg-success-gradient {
    background: linear-gradient(135deg, #f0fdf4aa 0%, #dcfce7c5 100%);
}

.bg-success-gradient-2 {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.class-hero-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
}

.course-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;
    align-items: center;
}

/* ===== 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-body {
    padding: 2rem;
}

.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-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;
}

/* ================================
   FILTER SECTION STYLES
   ================================ */

.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 STYLES
   ================================ */

.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;
}
.btn-reg-error {
    transition: all 0.3s ease !important;
}
.btn-reg-error:hover {
    background-color: #dc3545 !important;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.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;
}

/* ================================
   CALL TO ACTION SECTION STYLES
   ================================ */

.cta-section {
    background: var(--primary-green);
    padding: 4rem 0;
    text-align: center;
    color: white;
    margin-top: -65px;
}

.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;
    background: #f0fdf4;
}
.badge-text {
    font-size: 15px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .teacher-avatar {
        margin-top: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    .teacher-quote-text {
        font-size: 0.9rem;
    }
    .badge-text {
        font-size: 13px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .cta-subtitle {
        font-size: 0.9rem;
    }
    .btn-cta {
        font-size: 1rem;
    }
    .stat-label {
        font-size: 1rem;
    }
    .filter-btn {
        font-size: 0.85rem;
        width: fit-content;
        padding: 0.5rem 1rem;
        text-wrap: nowrap;
    }

    .filter-buttons {
        justify-content: center;
        display: flex;
    }

    .filter-btn {
        text-align: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .course-header,
    .course-body {
        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);
}

/* ===== TEACHERS SECTION ===== */
.teachers-section {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: -65px;
}

.teachers-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary-green--);
    border-radius: 50%;
    pointer-events: none;
}

.teachers-section::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(34, 197, 94, 0.05) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.teacher-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 30px rgba(46, 139, 87, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(46, 139, 87, 0.15);
    border-color: rgba(46, 139, 87, 0.2);
}

.teacher-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
}

.teacher-card:hover .teacher-quote-icon {
    color: rgba(46, 139, 87, 0.2);
    transform: scale(1.1);
}

.teacher-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2e8b57 0%, #22c55e 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.avatar-circle img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-circle::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #2e8b57 0%, #22c55e 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.teacher-card:hover .avatar-circle {
    transform: scale(1.1);
}

.teacher-card:hover .avatar-circle::before {
    opacity: 0.3;
    animation: pulse 2s ease infinite;
}

.teacher-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid #2e8b57;
    flex-grow: 1;
}

.teacher-info {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f3f4f6;
}

.teacher-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.teacher-role {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.teacher-speciality {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.speciality-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #2e8b57;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(46, 139, 87, 0.2);
    transition: all 0.3s ease;
}

.teacher-card:hover .speciality-badge {
    background: linear-gradient(135deg, #2e8b57);
    color: white;
    transform: translateY(-2px);
}

/* Pulse animation for avatar */
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* Responsive adjustments for Teachers Section */
@media (max-width: 991px) {
    .teacher-card {
        padding: 2rem 1.5rem;
    }

    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .teacher-quote-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .teachers-section {
        padding: 3rem 0 !important;
    }

    .teacher-card {
        padding: 1.5rem;
    }

    .avatar-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .teacher-quote {
        margin-top: 0.5rem;
        font-size: 0.9rem;
        padding-left: 0.75rem;
    }

    .teacher-name {
        font-size: 1.1rem;
    }

    .teacher-role {
        font-size: 0.9rem;
    }
}

.section-title {
    margin-bottom: 1rem !important;
}

.class-hero-section .overlay {
    background: linear-gradient(135deg, #f0fdf4a6 0%, #dcfce783 100%);
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#courses-container .course-meta .border-secondary {
    height: 40px;
    margin: 0 15px;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}
