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

html, body {
    font-family: 'Cairo', 'Tajawal', 'Poppins', sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
    scroll-behavior: smooth;
}

/* RTL/LTR Direction Classes */
.rtl {
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.ltr {
    direction: ltr;
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}



/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-top {
    background: linear-gradient(135deg, #2c376c 0%, #a257d6 100%);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 2rem;
}

.social-links-top {
    display: flex;
    gap: 1rem;
}

.social-links-top a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-links-top a:hover {
    opacity: 0.8;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
}

.nav-items {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-items a {
    text-decoration: none;
    color: #2c376c;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-items a:hover {
    color: #a257d6;
    background: rgba(162, 87, 214, 0.1);
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 1rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(162, 87, 214, 0.1);
    color: #a257d6;
}

.dropdown-category {
    font-weight: 600;
    color: #2c376c;
    padding: 0.75rem 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-category:hover {
    background: rgba(162, 87, 214, 0.1);
    color: #a257d6;
}

.dropdown-subcategory {
    padding-left: 2.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.dropdown-course {
    padding-left: 3rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.dropdown-header {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    color: #a257d6;
    background: #f8f9fa;
    border-bottom: 2px solid #a257d6;
}

.dropdown-icon {
    margin-right: 0.5rem;
    width: 16px;
    display: inline-block;
}

/* Multi-level dropdown styles */
.dropdown-item.has-submenu {
    position: relative;
}

.dropdown-item.has-submenu::after {
    content: '▶';
    position: absolute;
    right: 1rem;
    font-size: 0.7em;
    color: #9ca3af;
}

.dropdown-category.has-submenu::after {
    content: '▶';
    position: absolute;
    right: 1rem;
    font-size: 0.8em;
    color: #a257d6;
}

.submenu {
    position: absolute;
    top: -0.5rem;
    left: 100%;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid #e5e7eb;
    margin-left: 5px;
}

.dropdown-item.has-submenu:hover .submenu,
.dropdown-category.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-content {
    padding: 0.5rem 0;
    max-height: 300px;
    overflow-y: auto;
}

.submenu-header {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #a257d6;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.submenu-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    border-bottom: 1px solid #f9fafb;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item:hover {
    background: rgba(162, 87, 214, 0.1);
    color: #a257d6;
}

.submenu-icon {
    margin-right: 0.5rem;
    width: 14px;
    display: inline-block;
    font-size: 0.8em;
}

/* RTL Support for submenus */
[dir="rtl"] .submenu {
    left: auto;
    right: 100%;
    top: -0.5rem;
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .dropdown-item.has-submenu::after,
[dir="rtl"] .dropdown-category.has-submenu::after {
    content: '◀';
    right: auto;
    left: 1rem;
}

[dir="rtl"] .dropdown-item.has-submenu:hover .submenu,
[dir="rtl"] .dropdown-category.has-submenu:hover .submenu {
    transform: translateX(0);
}

[dir="rtl"] .submenu {
    transform: translateX(10px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    padding-right: 1.8rem;
    min-width: 70px;
    backdrop-filter: blur(10px);
}

.language-selector select:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-selector select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.language-selector::after {
    content: '▼';
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.6rem;
    pointer-events: none;
    opacity: 0.8;
}

.language-selector select option {
    background: #2c376c;
    color: white;
    padding: 0.5rem;
}

.primary-btn {
    background: linear-gradient(135deg, #a257d6 0%, #7b42c4 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(162, 87, 214, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 87, 214, 0.4);
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #2c376c;
    font-size: 1.5rem;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #a257d6;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-weight: 800;
    color: #2c376c;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Hero Background Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite;
    transition: transform 0.3s ease;
}

/* Fallback background if image fails to load */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a257d6 0%, #7b42c4 50%, #2c376c 100%);
    z-index: -1;
}

@keyframes heroZoom {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Purple Overlay */
.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(162 87 214 / 97%) 0%, rgb(123 66 196 / 50%) 30%, rgb(44 55 108 / 77%) 70%, rgb(162 87 214 / 76%) 100%);
    z-index: 2;
}
.hero-overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(117 8 192 / 97%) 0%, rgb(123 66 196 / 97%) 30%, rgb(44 55 108 / 77%) 70%, rgb(162 87 214 / 94%) 100%);
    z-index: 2;
}

/* Floating Elements */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 30px rgba(162, 87, 214, 0.3);
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    box-shadow: 0 0 40px rgba(123, 66, 196, 0.4);
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    box-shadow: 0 0 25px rgba(44, 55, 108, 0.5);
}

.element-4 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 25%;
    animation-delay: 1s;
    box-shadow: 0 0 35px rgba(162, 87, 214, 0.6);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
        opacity: 1;
    }
    66% {
        transform: translateY(20px) rotate(240deg);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    color: white;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e8d5f0;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #f0e8f5;
    line-height: 1.6;
}

.hero-btn {
    background: white;
    color: #a257d6;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    position: relative;
}

.instructor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a257d6 0%, #7b42c4 100%);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 1rem 0;
}

.star {
    color: #ffd700;
    font-size: 1.25rem;
}

.students-count {
    background: #a257d6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: #fafafa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c376c;
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(162, 87, 214, 0.2);
    border-color: #a257d6;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #a257d6 0%, #7b42c4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c376c;
    margin-bottom: 1rem;
}

.category-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Statistics Section */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2c376c 0%, #a257d6 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #e8d5f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-title {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Instructors Section */
.instructors-section {
    padding: 5rem 0;
    background: white;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.instructor-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(162, 87, 214, 0.2);
    border-color: #a257d6;
}

.instructor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a257d6 0%, #7b42c4 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
}

.instructor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c376c;
    margin-bottom: 0.5rem;
}

.instructor-course {
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Featured Courses Section */
.featured-courses-section {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 1rem auto 2rem;
    max-width: 600px;
    line-height: 1.6;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #a257d6 0%, #7b42c4 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(162, 87, 214, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 87, 214, 0.4);
}

.featured-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.featured-course-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.featured-course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(162, 87, 214, 0.15);
    border-color: #a257d6;
}

.course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #a257d6 0%, #7b42c4 100%);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: white;
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(162, 87, 214, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-course-card:hover .course-overlay {
    opacity: 1;
}

.course-btn {
    background: white;
    color: #a257d6;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.featured-course-card:hover .course-btn {
    transform: translateY(0);
}

.course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.course-badge.free {
    background: #10b981;
}

.course-badge.discount {
    background: #f59e0b;
}

.course-content {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-category {
    background: rgba(162, 87, 214, 0.1);
    color: #a257d6;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.course-title {
    margin-bottom: 0.75rem;
}

.course-title a {
    color: #2c376c;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: #a257d6;
}

.course-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.course-info {
    margin-bottom: 1.5rem;
}

.course-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.stat i {
    color: #a257d6;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.instructor-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-name {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price.current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #a257d6;
}

.price.original {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.enroll-btn {
    background: linear-gradient(135deg, #a257d6 0%, #7b42c4 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(162, 87, 214, 0.4);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f2ff 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(162, 87, 214, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(162, 87, 214, 0.15);
    border-color: rgba(162, 87, 214, 0.3);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.quote-icon {
    color: #a257d6;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: rgba(162, 87, 214, 0.2);
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    font-family: serif;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating .star {
    font-size: 1.2rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.testimonial-rating .star.active {
    opacity: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #a257d6;
    position: relative;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a257d6 0%, #7b42c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2c376c;
    margin-bottom: 0.25rem;
}

.author-role {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(162, 87, 214, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #a257d6;
    transform: scale(1.2);
}

.dot:hover {
    background: #a257d6;
    transform: scale(1.1);
}

/* Background Shapes */
.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(162, 87, 214, 0.1) 0%, rgba(44, 55, 108, 0.05) 100%);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: -3%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background: #fafafa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(162, 87, 214, 0.15);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, #a257d6 0%, #7b42c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c376c;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Footer */
.footer {
    background: #2c376c;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #a257d6;
}

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

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

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #a257d6;
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav-items {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .nav-items.active {
        display: flex;
    }

    .nav-items.active .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-left: 1rem;
    }

    .nav-item:hover .dropdown {
        opacity: 0;
        visibility: hidden;
    }

    .nav-items.active .nav-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile submenu styles */
    .nav-items.active .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-left: 1.5rem;
        margin-top: 0.5rem;
        background: #f9fafb;
        border-left: 3px solid #a257d6;
    }

    .nav-items.active .dropdown-category.has-submenu::after {
        display: none;
    }

    .nav-items.active .submenu-header {
        background: transparent;
        border-bottom: 1px solid #e5e7eb;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .instructors-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Featured Courses Mobile */
    .featured-courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-course-card {
        margin-bottom: 1rem;
    }

    .course-image {
        height: 180px;
    }

    .course-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .avatar-placeholder {
        font-size: 1rem;
    }

    /* Language Selector Mobile */
    .language-selector {
        margin-left: 0.5rem;
    }

    .language-selector select {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        padding-right: 1.5rem;
        min-width: 65px;
    }

    .language-selector::after {
        right: 0.5rem;
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    /* Mobile Hero Background */
    .floating-element {
        display: none;
    }

    .element-1, .element-2 {
        display: block;
        width: 60px;
        height: 60px;
    }

    .hero-bg-image {
        animation: none;
        transform: scale(1.05);
    }

    .categories-grid {
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Language Selector Extra Small Mobile */
    .header-top-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .contact-info {
        gap: 1rem;
        font-size: 0.75rem;
    }

    .social-links-top {
        gap: 0.5rem;
    }

    .language-selector {
        margin-left: 0.3rem;
    }

    .language-selector select {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        padding-right: 1.3rem;
        min-width: 55px;
    }

    .language-selector::after {
        right: 0.4rem;
        font-size: 0.5rem;
    }

}
.social-links-top li {
    list-style: none;
    font-size: 20px;
    margin: 0 7px;
}

/* Hidden class for language switching */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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