/* ملف الأنماط الموحد باستخدام الألوان المحددة */
:root {
    --primary-color: #031360;
    --secondary-color: #0b56e2;
    --accent-color: #469ffc;
    --light-color: #f6fbfc;
    --dark-color: #090979;
    --text-color: #333333;
    --text-light: #f6f7f8;
    --white: #ffffff;
    --header-bg: #ffffff;
    --header-text: #031360;
    --border-light: #e8e8e8;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* إعادة تعيين عام */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    direction: rtl;
    text-align: right;
}

/* تنسيقات النصوص */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.training-categories {
  padding: 70px 0;
  background: var(--light-color);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 650px;
  margin: 0 auto;
}

.categories-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.category-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  padding: 25px 20px;
  text-align: center;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

/* صورة دائرية */
.category-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent-color);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-color);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-image i {
  font-size: 50px;
  color: var(--secondary-color);
}

/* النصوص */
.category-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.category-text {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* زر مودرن */
.btn-modern {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-modern span {
  position: relative;
  z-index: 2;
}

.btn-modern::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.2);
  transition: var(--transition);
}

.btn-modern:hover::after {
  left: 0;
}

.btn-modern:hover {
  transform: translateY(-3px);
}

/* التنسيقات العامة */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--light-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* الشريط العلوي */
.site-header {
    background: var(--header-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--header-text);
}

.desktop-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--header-text);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}
/* تنسيقات الشريط العلوي المعدلة */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

/* منع تغيير لون الهيدر عند التمرير */
.site-header {
    background: var(--header-bg) !important;
    box-shadow: var(--shadow) !important;
}

.site-header .nav-menu a {
    color: var(--header-text) !important;
}

.site-header .contact-info a {
    color: var(--header-text) !important;
}

.site-header .social-links a {
    color: var(--header-text) !important;
    background: transparent !important;
}

.site-header .social-links a:hover {
    background: var(--light-color) !important;
    color: var(--primary-color) !important;
}
.contact-info a {
    color: var(--header-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.social-links a {
    color: var(--header-text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--light-color);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--header-text);
}




/* القائمة المتنقلة */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1001;
    transition: var(--transition);
    box-shadow: var(--shadow-heavy);
    padding: 25px 20px;
    overflow-y: auto;
    border-left: 3px solid var(--accent-color);
}

.mobile-navigation.active {
    right: 0;
}

/* الهيدر */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo img {
    height: 38px;
}

.mobile-logo span {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.close-mobile-menu:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* القائمة */
.mobile-nav-menu {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.mobile-nav-menu li {
    margin-bottom: 1rem;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1rem;
    font-weight: 600;
    color: var(--text-color);
    border-radius: 12px;
    transition: var(--transition);
    background: rgba(0,0,0,0.02);
}

.mobile-nav-menu a i {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
}

.mobile-nav-menu a:hover i,
.mobile-nav-menu a.active i {
    color: var(--white);
}
.mobile-contact-info {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.mobile-contact-info h4 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* الروابط داخل قسم الاتصال */
.mobile-contact-info a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.mobile-contact-info a i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mobile-contact-info a:hover {
    background: var(--light-color);
    transform: translateX(6px);
    color: var(--primary-color);
}

.mobile-contact-info a:hover i {
    transform: rotate(10deg) scale(1.05);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.mobile-social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.mobile-social-links a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* منع سكرول عند فتح القائمة */
body.mobile-nav-open {
    overflow: hidden;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.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 100"><defs><radialGradient id="g" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23469ffc" stop-opacity="0.1"/><stop offset="100%" stop-color="%23469ffc" stop-opacity="0"/></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23g)"/><circle cx="80" cy="40" r="1.5" fill="url(%23g)"/><circle cx="40" cy="80" r="1" fill="url(%23g)"/><circle cx="90" cy="90" r="0.5" fill="url(%23g)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(70, 159, 252, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--white);
    position: relative;
}

.highlight {
    color: var(--accent-color);
    position: relative;
    font-weight: 900;
}


@keyframes expand {
    from { width: 0; }
    to { width: 100%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.hero-buttons .btn::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.6s;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    box-shadow: 0 10px 30px rgba(11, 86, 226, 0.3);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(11, 86, 226, 0.4);
}

.hero-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(70, 159, 252, 0.2);
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--accent-color);
    border-radius: 20px;
    opacity: 0.1;
    filter: blur(20px);
    animation: pulse 3s ease-in-out infinite;
}

.image-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: var( --primary-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatUpDown 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.05); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
/* قسم الفئات */
.categories {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-desc {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* قسم عنا */
.about-section {
    padding: 80px 0;
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.about-text {
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(3, 19, 96, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* الدورات المميزة */
.featured-courses {
    padding: 80px 0;
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-info {
    padding: 1.5rem;
}

.course-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    flex-wrap: wrap;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* قسم لماذا تختارنا */
.why-choose-us {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(3, 19, 96, 0.05), rgba(11, 86, 226, 0.05));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* التذييل */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.footer-logo h3 {
    color: var(--white);
    margin: 0;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--accent-color) ;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    margin-top: 1rem;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--white);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-group button {
    padding: 12px 16px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.input-group button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* الرسوم المتحركة */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate__fadeIn {
    animation-name: fadeIn;
}

/* وسائط الاستجابة */
@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .header-contacts {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .categories-grid,
    .courses-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* شاشات متوسطة */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* شاشات كبيرة */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}
/* منع تغيير لون الهيدر عند التمرير */
.site-header.scroll-changed {
    background: var(--header-bg) !important;
    box-shadow: var(--shadow) !important;
}

.site-header.scroll-changed .nav-menu a {
    color: var(--header-text) !important;
}

.site-header.scroll-changed .contact-info a {
    color: var(--header-text) !important;
}

.site-header.scroll-changed .social-links a {
    color: var(--header-text) !important;
    background: var(--primary-color) !important;
}
.view-more-btn {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 10px 0;
}

.view-more-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.course-description {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    line-height: 1.6;
}

.course-description.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.course-short-desc {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.6;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.course-header h3 {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.start-date {
    background: #ff9800; /* لون برتقالي */
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 2px solid #ff9800;
}
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    /* إضافة الخصائص التالية للتحكم في الحجم */
    max-width: 120px; /* تحديد أقصى عرض */
    white-space: nowrap; /* منع التفاف النص */
    overflow: hidden; /* إخفاء النص الزائد */
    text-overflow: ellipsis; /* إضافة ... للنص الطويل */
}
.course-card img {
    border-radius: 8px 8px 0 0; /* حواف مستديرة للأعلى فقط */
    transition: border-radius 0.3s ease; /* تأثير سلس عند التغيير */
}

.course-image-placeholder {
    border-radius: 8px 8px 0 0; /* نفس الحواف للعنصر النائب */
    background: #f5f5f5; /* لون خلفية متناسق */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px; /* ارتفاع ثابت */
    font-size: 3rem;
    color: var(--primary-color);
}

/* تأثير عند المرور للصورة */
.course-card:hover img {
    border-radius: 12px 12px 0 0; /* زيادة الاستدارة قليلاً عند hover */
}

/* للحفاظ على تناسق البطاقة */
.course-card {
    overflow: hidden; /* لإخفاء أي محتوى يخرج عن الحدود */
    border-radius: 12px; /* حواف مستديرة للبطاقة كاملة */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* ظل خفيف */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
/* التأكد من أن الصورة لا تتأثر بالبادج */
.course-card img,
.course-image-placeholder {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1; /* تأكد أن الصورة تحت البادج */
}

/* التأكد من أن البطاقة تحتوي على الوضع النسبي للبادج المطلق */
.course-card {
    position: relative; /* ضروري للبادج المطلق */
    overflow: visible; /* التأكد من ظهور البادج بالكامل */
}

.course-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.course-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.no-courses {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
    background: var(--white);
    border-radius: 15px;
    margin: 2rem 0;
}

.no-courses i {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.no-courses h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-courses a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.no-courses a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .course-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .course-actions .btn {
        width: 100%;
    }
    
    .view-more-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}
.1{
    color: var(--accent-color);
}