* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --lighter-bg: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-5: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-6: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Custom Bootstrap Overrides */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-dark { background-color: var(--dark-bg) !important; }
.bg-light { background-color: var(--light-bg) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-lighter { color: var(--text-lighter) !important; }

.btn-primary {
    background: var(--gradient-1) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}
.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
}
.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}
.btn-secondary:hover {
    background-color: #d13a84 !important; /* A darker shade of --secondary-color */
    border-color: #d13a84 !important;
    transform: translateY(-2px) !important;
}
.btn-success {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}
.btn-success:hover {
    background-color: #0d996e !important; /* A darker shade of --success-color */
    border-color: #0d996e !important;
    transform: translateY(-2px) !important;
}
.btn-dark {
    background-color: var(--dark-bg) !important;
    border-color: var(--dark-bg) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}
.btn-dark:hover {
    background-color: #0c1424 !important; /* A darker shade of --dark-bg */
    border-color: #0c1424 !important;
    transform: translateY(-2px) !important;
}
.btn-light {
    background-color: var(--light-bg) !important;
    border-color: var(--light-bg) !important;
    color: var(--text-dark) !important;
    transition: all 0.3s ease !important;
}
.btn-light:hover {
    background-color: #e2e8f0 !important; /* A darker shade of --light-bg */
    border-color: #e2e8f0 !important;
    transform: translateY(-2px) !important;
}

.btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}
.btn-outline-secondary {
    border-color: var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}
.btn-outline-secondary:hover {
    background-color: var(--secondary-color) !important;
    color: white !important;
}
.btn-outline-success {
    border-color: var(--success-color) !important;
    color: var(--success-color) !important;
}
.btn-outline-success:hover {
    background-color: var(--success-color) !important;
    color: white !important;
}
.btn-outline-dark {
    border-color: var(--dark-bg) !important;
    color: var(--dark-bg) !important;
}
.btn-outline-dark:hover {
    background-color: var(--dark-bg) !important;
    color: white !important;
}
.btn-outline-light {
    border-color: var(--light-bg) !important;
    color: var(--light-bg) !important;
}
.btn-outline-light:hover {
    background-color: var(--light-bg) !important;
    color: var(--text-dark) !important;
}

.form-control,
.form-select {
    direction: rtl !important;
    border: 2px solid var(--text-lighter) !important;
    color: var(--text-dark) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease-in-out !important;
}
.form-control[type="tel"]{
    direction: ltr !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important; /* using primary color with 0.25 opacity */
}

.form-control::placeholder {
    color: var(--text-lighter) !important;
    opacity: 1;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #fff;
    line-height: 1.6;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {

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

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

    60% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {

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

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.fade-in {
    animation: fadeIn 1.2s ease-in;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

.bounce {
    animation: bounce 2s infinite;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0 0.8rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    overflow: hidden;
}

.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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.8;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-hero {
    background: white;
    color: var(--primary-color);
    padding: 1.2rem 3.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.btn-hero:active {
    transform: translateY(-2px) scale(1.02);
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 4.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 2.2rem;
    color: white;
    background: var(--gradient-1);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--gradient-2);
}

.feature-card:nth-child(3) .feature-icon {
    background: var(--gradient-3);
}

.feature-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
}

/* Courses Section */
.courses-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.course-card {
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.course-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--gradient-1);
    position: relative;
    transition: transform 0.4s ease;
}

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

.course-body {
    padding: 2rem;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1.8rem;
    line-height: 1.7;
    font-size: 1rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.course-meta-item i {
    color: var(--primary-color);
}

.btn-course {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-course::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-course:hover::before {
    left: 100%;
}

.btn-course:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Teachers Section */
.teachers-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.teacher-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.teacher-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.teacher-card:hover::after {
    transform: scaleX(1);
}

.teacher-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.teacher-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    object-fit: cover;
    border: 5px solid transparent;
    background: var(--gradient-1);
    padding: 5px;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
}

.teacher-card:hover .teacher-image {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.teacher-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.teacher-bio {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.testimonial-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
    margin: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 120px;
    color: rgba(99, 102, 241, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.9;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.testimonial-rating {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 0.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 30s ease-in-out infinite;
}

.contact-section .section-title {
    -webkit-text-fill-color: white;
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-section .form-control,
.contact-section .form-select {
    padding: 1.2rem 1.5rem !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
    backdrop-filter: blur(10px) !important;
}

.contact-section .form-control:focus,
.contact-section .form-select:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
    outline: none !important;
}

.contact-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: var(--gradient-1);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}


/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

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

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }

    section {
        padding: 4rem 0;
    }

    .course-card,
    .teacher-card,
    .feature-card {
        margin-bottom: 2rem;
    }

    .btn-hero {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation for images */
.course-image,
.teacher-image {
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--gradient-1) 0%, var(--gradient-2) 50%, var(--gradient-1) 100%);
}

/* Teacher Benefit Cards */
.teacher-benefit-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.teacher-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.teacher-benefit-card:hover::before {
    opacity: 0.05;
}

.teacher-benefit-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.teacher-benefit-card>* {
    position: relative;
    z-index: 1;
}

.benefit-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-1);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}

.teacher-benefit-card:hover .benefit-icon-wrapper {
    transform: scale(1.15) rotate(10deg);
    box-shadow: var(--shadow-xl);
}

.benefit-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.teacher-benefit-card:nth-child(2) .benefit-icon-wrapper {
    background: var(--gradient-2);
}

.teacher-benefit-card:nth-child(3) .benefit-icon-wrapper {
    background: var(--gradient-3);
}

.teacher-benefit-card:nth-child(4) .benefit-icon-wrapper {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.teacher-benefit-card:nth-child(5) .benefit-icon-wrapper {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.teacher-benefit-card:nth-child(6) .benefit-icon-wrapper {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.benefit-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.benefit-description {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
}


/* Newsletter Section Styles */
#newsletter-section {
    background: var(--darker-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

#newsletter-section h4 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
}

#newsletter-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    background: white;
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.newsletter-form .form-control::placeholder {
    color: var(--text-light);
}

.newsletter-form .btn {
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 700;
    background: var(--accent-color);
    
    border: none;
    position: absolute;
    left: 0;
    border-radius: 7px;
    top: 0;
    bottom: 0;
}

.newsletter-form .btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
    #newsletter-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    #newsletter-section h4 {
        font-size: 1.5rem;
    }
    
    #newsletter-section p {
        font-size: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        margin-bottom: 1rem;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}


/* Error list  */
/* Styling for the error/success list */
ul.errorList {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    direction: rtl;
    /* Ensure correct text direction */
}

/* Base styles for list items */
ul.errorList li {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition:
        opacity 0.3s ease-out,
        transform 0.3s ease-out,
        max-height 0.3s ease-out;
    overflow: hidden;
    max-height: 100px;
    /* Initial height for animation */
    display: flex;
    align-items: center;
}

/* Animation for showing an item */
ul.errorList li.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    /* Final height */
}

/* Animation for hiding an item */
ul.errorList li.hiding {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Specific style for error messages */
ul.errorList li.error-message {
    background-color: #fee2e2;
    /* Light red background */
    color: #dc2626;
    /* Red text */
    border: 1px solid #fecaca;
    /* Red border */
}

/* Specific style for success messages */
ul.errorList li.success-message {
    background-color: #d1fae5;
    /* Light green background */
    color: #059669;
    /* Green text */
    border: 1px solid #a7f3d0;
    /* Green border */
}

/* Optional: Add an icon */
ul.errorList li.error-message::before {
    content: "❌ ";
    /* Or use an icon font like Font Awesome: \f00d */
    margin-left: 8px;
}

ul.errorList li.success-message::before {
    content: "✅ ";
    /* Or use an icon font like Font Awesome: \f00c */
    margin-left: 8px;
}

/* Feature Cards */
.feature-card-large {
    grid-column: span 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.feature-card-large:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
}

.feature-card-large .shape-one {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.feature-card-large .content-wrapper {
    position: relative;
    z-index: 2;
}

.feature-card-large .icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.feature-card-large .icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.feature-card-large .feature-title-large {
    color: white;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card-large .feature-description-large {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-card-large .feature-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature-card-large .feature-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card-large .feature-meta-item i {
    color: rgba(255, 255, 255, 0.8);
}

.feature-card-large .feature-meta-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Feature 2: Live Sessions */
.feature-card-small {
    background: white;
    border-radius: 30px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card-small:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.feature-card-small .icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.3);
}

.feature-card-small .icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.feature-card-small .feature-title-small {
    color: #1a202c;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card-small .feature-description-small {
    color: #718096;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-card-small .feature-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-card-small .feature-tag {
    background: rgba(240, 147, 251, 0.1);
    color: #f5576c;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Specific styles for Feature 3: Student Management */
.feature-card-small.student-management .icon-wrapper {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.feature-card-small.student-management .feature-tag {
    background: rgba(79, 172, 254, 0.1);
    color: var(--bs-teal);
}

/* Specific styles for Feature 4: Payment (Large Card) */
.feature-card-large.payment {
    background: linear-gradient(135deg, #1a2a6c 0%, #007bff 100%);
    box-shadow: 0 20px 60px rgba(26, 42, 108, 0.3);
}

.feature-card-large.payment:hover {
    box-shadow: 0 30px 80px rgba(250, 112, 154, 0.4);
}

.feature-card-large.payment .shape-one {
    bottom: -80px;
    left: -80px;
    top: auto;
    right: auto;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
}

.feature-card-large.payment .icon-wrapper {
    background: rgba(255, 255, 255, 0.25);
}

.feature-card-large.payment .feature-description-large {
    color: rgba(255, 255, 255, 0.95);
}

.feature-card-large.payment .feature-meta-item i,
.feature-card-large.payment .feature-meta-item span {
    color: white;
}

/* Specific styles for Feature 5: Recording */
.feature-card-small.recording .icon-wrapper {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    box-shadow: 0 8px 20px rgba(48, 207, 208, 0.3);
}

.feature-card-small.recording .feature-tag {
    background: rgba(48, 207, 208, 0.1);
    color: #30cfd0;
}

/* Specific styles for Feature 6: Attendance Tracking */
.feature-card-small.attendance .icon-wrapper {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow: 0 8px 20px rgba(168, 237, 234, 0.3);
}

.feature-card-small.attendance .icon-wrapper i,
.feature-card-small.attendance .feature-tag {
    color: #1a202c;
    background: rgba(168, 237, 234, 0.2);
}

/* Specific styles for Feature 7: Notifications */
.feature-card-small.notifications .icon-wrapper {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    box-shadow: 0 8px 20px rgba(255, 154, 158, 0.3);
}

.feature-card-small.notifications .feature-tag {
    background: rgba(255, 154, 158, 0.1);
    color: #a35255;
}

/* Specific styles for Feature 8: Dashboard */
.feature-card-small.dashboard .icon-wrapper {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    box-shadow: 0 8px 20px rgba(255, 236, 210, 0.3);
}

.feature-card-small.dashboard .icon-wrapper i,
.feature-card-small.dashboard .feature-tag {
    color: #1a202c;
    background: rgba(255, 236, 210, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card-large {
        grid-column: span 1 !important; /* On small screens, large cards take full width */
        padding: 2rem !important;
        min-height: 280px;
    }

    .feature-card-large .icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }

    .feature-card-large .icon-wrapper i {
        font-size: 2rem;
    }

    .feature-card-large .feature-title-large {
        font-size: 1.6rem;
    }

    .feature-card-large .feature-description-large {
        font-size: 1rem;
    }

    .feature-card-large .feature-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
}