:root {
  --primary-color: #f97316;
  --secondary-color: #fb923c;
  --dark-color: #1e293b;
  --light-bg: #fff7ed;
  --white-color: #ffffff;
  --shadow: 0 10px 30px rgba(234, 88, 12, 0.15);
  --shadow-hover: 0 15px 40px rgba(234, 88, 12, 0.25);
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.8;
  background: linear-gradient(
    170deg,
    var(--white-color) 0%,
    var(--light-bg) 100%
  );
  color: #475569;
  direction: rtl;
  font-size: 16px;
}

.main-container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1.5rem;
  overflow: hidden;
}

h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: var(--dark-color);
}

h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

p.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
  font-size: 1.1rem;
}

.content-card {
  background: var(--white-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 95vh;
  gap: 2rem;
}

.hero-text {
  padding: 2rem;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark-color);
}

.hero-text h1 span {
  color: var(--primary-color);
  text-shadow: 0 2px 15px rgba(249, 115, 22, 0.2);
}

.hero-text p {
  font-size: 1.3rem;
  margin: 1.5rem 0 2.5rem 0;
  max-width: 500px;
}

.hero-image {
  height: 500px;
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
  transition: var(--transition);
}

.cta-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-hover);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: linear-gradient(145deg, var(--light-bg), var(--white-color));
  padding: 2rem;
  text-align: center;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid #fff;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-color);
}

.feature-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.book-card {
  background: var(--white-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--secondary-color);
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.book-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.dual-tone-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 3rem;
}
.dual-tone-card:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
}
.info-side {
  padding: 3rem;
}
.exams-side {
  background: #f8fafc;
}
.classes-side {
  background: var(--dark-color);
}
.classes-side h3,
.classes-side p,
.classes-side .info-item {
  color: var(--white-color);
}
.classes-side .info-item {
  background: rgba(255, 255, 255, 0.1);
}
.classes-side .info-item i {
  color: var(--secondary-color);
}
.info-list {
  list-style: none;
  margin-top: 1.5rem;
}
.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  font-weight: 600;
}
.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-left: 1rem;
}

.faq-item {
  background: transparent;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
  transition: var(--transition);
}

.faq-question {
  padding: 1.5rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark-color);
}
.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary-color);
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-answer p {
  padding: 0 0.5rem;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.contact-grid-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 0;
  margin-bottom: 3rem;
}
.contact-details {
  padding: 3rem;
}
.contact-details ul {
  list-style: none;
  margin: 2rem 0 2.5rem 0;
  padding: 0;
  text-align: right;
}
.contact-details li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}
.contact-details i {
  margin-left: 10px;
  color: var(--primary-color);
}
.contact-info p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.contact-info strong {
  color: var(--dark-color);
}
.contact-info a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
}
.map-wrapper {
  height: 100%;
  min-height: 500px;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-details .final-cta {
  margin-top: 2.5rem;
  font-weight: 600;
  font-size: 1.2rem;
}

@media (max-width: 992px) {
  .hero-section,
  .dual-tone-card,
  .contact-grid-section {
    grid-template-columns: 1fr;
  }
  .hero-text {
    order: 2;
    text-align: center;
  }
  .hero-image {
    order: 1;
    height: 400px;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .map-wrapper {
    min-height: 350px;
    order: -1;
  }
}
@media (max-width: 768px) {
  h2 {
    font-size: 2.2rem;
  }
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .books-grid {
    grid-template-columns: 1fr;
  }
}
