/* الهيدر الرئيسي */
.main-header {
  background: var(--gradient-primary);
  color: white;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.main-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<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,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,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: center bottom;
}

.header-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  background: var(--brand-accent);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* قسم الإحصائيات */
.stats-section {
  background: var(--gradient-primary);
  color: white;
  padding: 2rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* قسم الدورات المميزة */
.featured-courses {
  padding: 5rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.section-title {
  color: var(--brand-primary);
  border-bottom: 3px solid var(--brand-accent);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 50%;
  height: 2px;
  background: var(--brand-accent);
}

/* بطاقات الدورات */
.course-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  margin-bottom: 2rem;
  border: 1px solid #f0f0f0;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.course-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-image {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3.5rem;
}

.course-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--brand-accent);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.course-level {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-content {
  padding: 1.5rem;
}

.course-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.course-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.course-duration,
.course-students {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.course-price {
  text-align: left;
}

.price-old {
  color: var(--text-light);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.price-new {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.course-actions {
  display: flex;
  gap: 0.8rem;
}

.btn-accent {
  background: var(--brand-accent);
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-accent:hover {
  background: #a88a67;
  transform: translateY(-2px);
}

/* قسم المميزات */
.features-section {
  padding: 5rem 0;
  background: white;
}

.feature-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  background: var(--gradient-primary);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* قسم الطلاب والمتدربين */
.community-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.community-card {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  height: 100%;
}

.community-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.community-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  background: var(--gradient-primary);
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.community-stat {
  text-align: center;
}

.community-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  display: block;
}

.community-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* قسم التدريب */
.internship-section {
  padding: 5rem 0;
  background: var(--gradient-primary);
  color: white;
}

.internship-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.internship-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.internship-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

/* قسم الشهادات */
.testimonials-section {
  padding: 5rem 0;
  background: white;
}

.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  margin-bottom: 2rem;
  border: 1px solid #f0f0f0;
}

.testimonial-content {
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: var(--brand-accent);
  position: absolute;
  top: -1rem;
  right: 0;
  line-height: 1;
  opacity: 0.3;
}

.testimonial-text {
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.author-info h5 {
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.author-info p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* النشرة البريدية */
.newsletter-section {
  padding: 4rem 0;
  background: var(--gradient-secondary);
  color: white;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form .form-control {
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0.8rem 1rem;
  font-size: 1rem;
}

.newsletter-form .btn {
  border-radius: 8px 0 0 8px;
  border: none;
  background: var(--brand-primary);
  color: white;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
}
