:root {
  --primary: #0e7f57;
  --primary-hover: #0a6142;
  --secondary: #1c3f78;
  --secondary-hover: #15305c;
  --accent: #c2a45d;
  --accent-hover: #b0904a;
  --accent2: #194e5a;
  --accent2-hover: #133c46;
  --neutral: #ffffff;
  --background-light: #ffffff;
  --background-off-white: #f9fafb;
  --text-heading: #111827;
  --text-body: #4b5563;
}

body {
  font-family: "Cairo", sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background-color: var(--background-light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-heading);
}
/* Hero Section - Split Screen with Canvas */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #15305c 50%,
    #11274a 100%
  );
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 3;
  margin-top: 3rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
  pointer-events: none;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-image-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 63, 120, 0.1) 0%,
    transparent 100%
  );
  border-radius: 20px;
  z-index: 2;
}

/* Instructors Section */
.instructors-section {
  padding: 5rem 0;
  background-color: var(--background-off-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-heading);
}

.director-section {
  text-align: center;
  margin-bottom: 4rem;
}

.director-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  max-width: 600px;
  margin: 0 auto;
  border: 3px solid var(--accent);
  position: relative;
}

.director-card::before {
  content: "👑";
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 2.5rem;
  background: white;
  padding: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.director-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 24px rgba(194, 164, 93, 0.3);
}

.director-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.director-role {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.director-desc {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.7;
}

.instructor-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instructor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.instructor-card.featured {
  border: 3px solid var(--secondary);
  background: linear-gradient(135deg, rgba(14, 127, 87, 0.05) 0%, white 100%);
}

.instructor-card.featured::before {
  content: "⭐";
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 2rem;
  background: white;
  padding: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.instructor-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 4px solid var(--secondary);
  box-shadow: 0 8px 24px rgba(14, 127, 87, 0.2);
  position: relative;
}

.instructor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.instructor-role {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Swiper Customization */
.swiper {
  padding: 2rem 0 3rem;
}

.swiper-pagination-bullet {
  background-color: var(--primary);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.5rem;
}

/* Vision & Mission Section */
.vision-mission-section {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    rgba(28, 63, 120, 0.05) 0%,
    rgba(28, 63, 120, 0.02) 100%
  );
  position: relative;
  overflow: hidden;
}

.vision-mission-container {
  position: relative;
  z-index: 1;
}

.vision-mission-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
  line-height: 1.3;
}

.vision-mission-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.vision-mission-image {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-mission-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.vision-mission-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 63, 120, 0.1) 0%,
    transparent 100%
  );
  border-radius: 20px;
  z-index: 2;
}

.vision-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.vision-feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.vision-feature-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.vision-feature-text p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text-body);
}

/* Subjects Section */
.subjects-section {
  padding: 5rem 0;
  background-color: var(--background-off-white);
}

.subject-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.subject-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.subject-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.subject-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.subject-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.subject-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.subject-card-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: auto;
  cursor: pointer;
}

.subject-card-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 63, 120, 0.3);
}

.subject-card-link:hover .subject-card {
  border-top: 4px solid var(--primary);
}

/* Why Us Section - Modern Grid */
.why-us-section {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    rgba(28, 63, 120, 0.05) 0%,
    rgba(28, 63, 120, 0.02) 100%
  );
}

.feature-card-modern {
  background: white;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  border: 1px solid rgba(28, 63, 120, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.feature-card-modern:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(28, 63, 120, 0.15);
}

.feature-card-modern:hover::before {
  transform: scaleX(1);
}

.feature-icon-modern {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(28, 63, 120, 0.3);
}

.feature-card-modern:hover .feature-icon-modern {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 12px 30px rgba(28, 63, 120, 0.4);
}

.feature-title-modern {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.feature-text-modern {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* Free Reviews Section */
.free-reviews-section {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    rgba(194, 164, 93, 0.1) 0%,
    rgba(194, 164, 93, 0.05) 100%
  );
  position: relative;
  overflow: hidden;
}

.free-reviews-container {
  position: relative;
  z-index: 1;
}

.free-reviews-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.free-reviews-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-body);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.surprise-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-hover) 100%
  );
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 8px 25px rgba(194, 164, 93, 0.4);
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(194, 164, 93, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(194, 164, 93, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(194, 164, 93, 0.4);
  }
}

.review-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(194, 164, 93, 0.2);
}

.review-card:hover::before {
  opacity: 1;
}

.review-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-hover) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 20px rgba(194, 164, 93, 0.3);
  transition: all 0.3s ease;
}

.review-card:hover .review-icon {
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 12px 25px rgba(194, 164, 93, 0.4);
}

.review-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.review-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.review-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-hover) 100%
  );
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(194, 164, 93, 0.3);
}

.free-reviews-cta {
  text-align: center;
  margin-top: 2rem;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

.floating-element:nth-child(4) {
  bottom: 15%;
  right: 10%;
  animation-delay: 3s;
}

.floating-element:nth-child(5) {
  top: 40%;
  left: 5%;
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Subscription Plans Section */
.plans-section {
  padding: 5rem 0;
  background-color: var(--background-off-white);
}

.plan-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card.popular {
  border-color: var(--accent);
  transform: scale(1.05);
  z-index: 1;
}

.plan-card.popular::before {
  content: "الأكثر شعبية";
  position: absolute;
  top: 15px;
  left: -30px;
  background: var(--accent);
  color: white;
  padding: 5px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: rotate(-45deg);
  width: 120px;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.popular:hover {
  transform: translateY(-10px) scale(1.05);
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.plan-period {
  font-size: 1rem;
  color: var(--text-body);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: right;
  flex: 1;
}

.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li i {
  color: var(--secondary);
  margin-left: 0.5rem;
}

.plan-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
}

.plan-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 63, 120, 0.3);
}

.plan-card.popular .plan-btn {
  background-color: var(--accent);
}

.plan-card.popular .plan-btn:hover {
  background-color: var(--accent-hover);
}

/* Styles for no image circle */
.no-image-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7f57, #1c3f78);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Instructor bio style */
.instructor-bio {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #666;
}

/* تأكد من أن الأزرار والعناصر القابلة للنقر تكون فوق العناصر العائمة */
.review-badge-link,
.review-badge,
.btn,
.plan-btn,
.subject-card-btn {
  position: relative;
  z-index: 10;
}

/* أو يمكنك تعديل الـ z-index للعناصر العائمة */
.floating-elements {
  z-index: 1; /* بدلاً من 0 */
}

/* تأكد من أن الكروت والعناصر التفاعلية لها z-index أعلى */
.review-card,
.plan-card,
.subject-card,
.instructor-card {
  position: relative;
  z-index: 2;
}
