    html {
  scroll-behavior: smooth;
}
    html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
    * {

      margin: 0;
      padding: 0;
      font-family: 'Cairo', sans-serif;

    }
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


.spasm-header {
  margin-top: 100px;

  overflow-x: hidden;
  width: 100vw;       /* force exactly viewport width */
  position: relative; /* anchor any children */
  padding-left: 15px;
  box-sizing: border-box;
      font-family: 'Cairo', sans-serif;

}

.container {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  flex-wrap: wrap;
}

.text-section {
  flex: 1;
  min-width: 300px;
}

.tag {
  background-color: #e1f4ea;
  color: #1f7a4c;
  padding: 5px 12px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 15px;
  border-radius: 4px;
}

.text-section h1 {
  color: #104473;
  font-size: 40px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.label-style {
  margin-top: 40px;
  display: inline-block;
  background: #2F7F4F;
  color: white;
  padding: 4px 10px 4px 10px; /* top right bottom left */
  font-weight: bold;
  font-size: 1.3rem;
  border-radius: 2px;
  text-align: center;
  white-space: nowrap;
}


.label-style1 {
  margin-top: 40px;
  display: inline-block;
  background: #2F7F4F;
  color: white;
  padding: 4px 10px 4px 10px; /* top right bottom left */
  font-weight: bold;
  font-size: 1.3rem;
  border-radius: 2px;
  text-align: center;
  white-space: nowrap;
  margin-bottom: 20px;
}
.text-section p {
  font-size: 26px;
  color: #5E5E5E;
  margin-bottom: 25px;
  line-height: 1.6;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 1px;
  font-weight: bold;
  font-size: 15px;
  transition: background 0.3s ease;
  height: fit-content;
  margin-top: 20px;
}

.btn.primary {
  background-color: #104473;
  color: white;

}

.btn.primary:hover {
  background-color: #165FA1;
  height: fit-content;
}

    .video-icon-wrapper {
  display: inline-flex;
  align-items: center;
  margin-left: 8px; /* Space between icon and text */
}

.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* المسافة بين النص والأيقونة */
  color: #104473;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease;
  vertical-align: middle; /* ضمان محاذاة عمودية صحيحة داخل inline */
  cursor: pointer;
}

.video-icon {
  width: 60px;   /* حجم مناسب للأيقونة، يمكن تغييره حسب الحاجة */
  height: 60px;
  object-fit: contain;
  vertical-align: middle;
}


.image-section {
  flex: 1;
  min-width: 300px;
}

.image-section img {
  width: 100%;

  object-fit: cover;
  height: auto;
}

/* Optional: Apply large size only on wide screens */
@media (min-width: 1025px) {
  .image-section img {
    width: 602px;
    height: 490px;
  }
}


/* Tablet and smaller screens */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .text-section h1 {
    font-size: 28px;
  }

  .text-section p {
    font-size: 20px;
  }

  .image-section img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .with-icon {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .video-icon {
    width: 50px;
    height: 50px;
  }
}

/* Mobile screens */
@media (max-width: 480px) {
.spasm-header * {
  margin-right: 0 !important;
}

.spasm-header {
  margin-top: 48px;
  padding: 60px 20px;
      font-family: 'Cairo', sans-serif;

}
  .text-section p {
    font-size: 18px;
  }

  .with-icon {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .video-icon {
    width: 40px;
    height: 40px;
  }

  .btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .label-style,
  .label-style1 {
    font-size: 1rem;
    padding: 3px 8px;
  }
}


/* sec 2 */

.spasm-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  text-align: center;
}

.spasm-container {
  max-width: 1200px;
  margin: 0 auto;
}

.spasm-title {
  font-size: 46px !important;

  color: #104473;
  margin-bottom: 10px;
}

.spasm-subtitle {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 50px;
}

/* Desktop styles (default): horizontal scroll */
.spasm-card-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
}

/* Mobile styles: stacked cards */
@media (max-width: 768px) {
  .spasm-card-grid {
    flex-wrap: wrap;             /* ✅ Allow wrapping */
    overflow-x: visible;         /* ✅ Remove horizontal scroll */
    flex-direction: column;      /* ✅ Stack vertically */
    align-items: center;
  }

  .spasm-card {
    max-width: 90%;
    width: 100%;
  }
}


.spasm-card {
  position: relative;
  background-color: white;
  box-shadow: 0 9px 6px -4px rgba(0, 0, 0, 0.25);
  padding: 30px 20px 20px;
  width: 100%;
  max-width: 400px;
  height: 359px;
  text-align: right;
  overflow: hidden;
}

.spasm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  width: 100%;
  background-color: #2f7f4f;
}

.spasm-card-icon {
  font-size: 40px;
  color: #2f7f4f;
  height: 70px;
  width: auto;
  margin-bottom: 15px;
}

.spasm-card-title {
  font-size: 1.3rem;
  color: #0a2d55;
  font-weight: bold;
  margin-bottom: 15px;
}

.spasm-card-list {
  list-style: none;
  padding: 0;
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Tablet screens (≤768px) */
@media (max-width: 768px) {
  .spasm-title {
    font-size: 2rem;
  }

  .spasm-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .spasm-card {
    max-width: 90%;
    padding: 1.5rem 1rem;
  }

  .spasm-card-title {
    font-size: 1.1rem;
  }

  .spasm-card-list {
    font-size: 0.95rem;
  }

  .spasm-card-icon {
    font-size: 2rem;
  }
}

/* Mobile screens (≤480px) */
@media (max-width: 480px) {
  .spasm-title {
    font-size: 1.6rem;
  }
.spasm-title{
  font-size: 28px;
}
  .spasm-subtitle {
    font-size: 0.95rem;
  }

  .spasm-card-title {
    font-size: 1rem;
  }

  .spasm-card-list {
    font-size: 0.9rem;
  }

  .spasm-card-icon {
    font-size: 1.8rem;
  }
  .spasm-card {
  position: relative;
  background-color: white;
  box-shadow: 0 9px 6px -4px rgba(0, 0, 0, 0.25);
  padding: 30px 20px 20px;
  width: 100%;
  max-width: 400px;
  height: fit-content;
  text-align: right;
  overflow: hidden;
}
}






/*  */

.academic-section-spasm {
  position: relative;
  background: white;
  overflow: visible;
  padding-bottom: 100px;
}

/* SECTION HEADER */
.section-header-spasm {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.section-label-spasm {
  background: #2F7F4F;
  color: white;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title-spasm {
  font-size: 28px;
  color: #003a70;
  margin: 10px 0 5px;
}

.section-subtitle-spasm {
  font-size: 16px;
  color: #555;
}

.book-feature-wrapper-spasm {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 30px;
}

/* GREEN BACKGROUND BLOCK */
.green-background-spasm {
  background-color: #2F7F4F;
  position: relative;
  z-index: 1;
  margin-top: -200px;
  padding-top: 240px;
  padding-bottom: 110px;
}

/* BOOK CARDS OVERLAP */
.books-overlap-spasm {
  position: relative;
  z-index: 5;
  margin-bottom: -200px;
}
.books-inner-spasm {
  position: relative;
  width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* BOOKS SECTION */
.books-section-spasm {
  display: flex;
  align-items: flex-start;
  position: relative;
}

/* VIEWPORT */
.book-cards-viewport-spasm {
  overflow: visible;
  width: 100%;
  padding: 0 80px;
  position: relative;
}

/* WRAPPER */
.book-cards-wrapper-spasm {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  width: 100%;
  transition: transform 0.3s ease;
  
}

/* CARD SIZING */
.book-card1-spasm,
.book-card2-spasm {
  position: relative;
  background-color: white;
  box-shadow: 0 9px 6px -4px rgba(0, 0, 0, 0.25);
  padding: 30px 20px;
  width: 100%;
  height: auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-height: 233px;
  max-width: 473px;
  flex-shrink: 0;
  align-items: center ;
}

.book-card1-spasm::before,
.book-card2-spasm::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background-color: #2f7f4f;
}

.book-image-spasm {
  margin-top: 10px;
  min-width: 100px;
  height: 100px;
  object-fit: cover;
}

.book-info-spasm {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.book-title-spasm {
  font-size: 24px;
  color: #5E5E5E;
}

.book-author-spasm {
  font-size: 18px;
  color: #666;
}

 .nav-arrow-spasm {
  position: absolute;       /* ensure this is set */
  /* remove the old `top: 50%` */
  /* top: 50%; */

  /* new position: 12% down from the top */
  top: -40px important;

  /* remove translateY (it was shifting them back up/down) */
  transform: none;

  /* keep the rest of your styles */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.books-inner-spasm .nav-arrow-spasm {
  top: 120px !important;
}

.left-arrow-spasm {
  left: 10px;
}

.right-arrow-spasm {
  right: 10px;
}

.features-columns-spasm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;

}
ul.numbered-list {
  list-style: none; /* remove bullets */

  counter-reset: item; /* reset counter */
  padding: 0;
  direction: rtl; /* ensure text flows RTL */
}

ul.numbered-list li {
  counter-increment: item;
  margin-bottom: 5px;
  position: relative;
  padding-right: 25px; /* space for numbers on the right */
}

ul.numbered-list li::before {
  content: counter(item) ".";
  position: absolute;
  right: 0; /* move numbers to right */
  color: #ffffff;
  font-weight: bold;
}

.feature-column-spasm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
  color: white;
  font-size: 1.1rem;

  /* NEW LINE for perfect alignment with card content */
  margin-left: 120px;
}



.feature-column-spasm ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: bold;
  font-size: 21px !important;
  color: white;
}

.feature-column-spasm li {
  margin-bottom: 12px;
}

.vertical-line-spasm {
  width: 1px;
  background-color: white;
  opacity: 0.8;
}

/* ================== MEDIA QUERIES ================== */

/* --- Medium Screens (Tablets) --- */
@media (max-width: 1024px) {
  .book-card1-spasm,
  .book-card2-spasm {
    max-width: 350px;
    padding: 20px 15px;
  }

  .book-title-spasm {
    font-size: 20px;
  }

  .book-author-spasm {
    font-size: 16px;
  }

  .feature-column-spasm ul {
    font-size: 1rem;
  }

  .section-title-spasm {
    font-size: 24px;
  }

  .section-subtitle-spasm {
    font-size: 14px;
  }

  .nav-arrow-spasm {
    width: 30px;
    height: 30px;
  }

  .book-image-spasm {
    width: 80px;
    height: 80px;
  }
}


/* --- Small Screens (Phones & Phablets) --- */
@media (max-width: 768px) {
  .books-inner-spasm,
  .book-cards-wrapper-spasm {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .book-card1-spasm,
  .book-card2-spasm {
    max-width: 90%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
ul.numbered-list {
  position: relative;
  top: 30px;
  text-align: right;
}
  .book-image-spasm {
    width: 80px;
    height: 80px;
  }

  .book-title-spasm {
    font-size: 18px;
  }

  .book-author-spasm {
    font-size: 14px;
  }

  .feature-column-spasm {
    align-items: center;
    margin-left: 0;
    text-align: center;
  }

  .features-columns-spasm {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .feature-column-spasm ul {
    font-size: 1rem;
  }

  .section-title-spasm {
    font-size: 22px;
  }

  .section-subtitle-spasm {
    font-size: 13px;
  }

 .nav-arrow-spasm {
  position: absolute;       /* ensure this is set */


  /* keep the rest of your styles */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.books-inner-spasm .nav-arrow-spasm {
  top: 120px !important;
}


  .left-arrow-spasm {
    left: 5px;
  }

  .right-arrow-spasm {
    right: 5px;
  }
}


/* --- Extra Small Screens (Mobile Portrait) --- */
@media (max-width: 480px) {
  .book-title-spasm {
    font-size: 16px;
  }

.nav-arrow-spasm {
  width: 40px !important;
  height: 40px !important;
}


  .nav-arrow-spasm img,
  .nav-arrow-spasm svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .book-author-spasm {
    font-size: 13px;
  }

  .book-image-spasm {
    width: 70px;
    height: 70px;
  }

  .section-title-spasm {
    font-size: 20px;
  }

  .section-subtitle-spasm {
    font-size: 12px;
  }

  .left-arrow-spasm {
    left: 0;
  }

  .right-arrow-spasm {
    right: 0;
  }

  .feature-column-spasm ul {
    font-size: 0.9rem;
  }
}



/* sec  3 */



/* SECTION WRAPPER */
/* CLEANED CSS: Academic Book Section (Image-Only Cards) */

.academic-section2 {
  position: relative;
  background: white;
  overflow: visible;
  padding-bottom: 100px;
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}
.section-title2{
  font-size: 28px;
  color: #003a70;
  margin: 10px 0 5px;
}

.section-subtitle2 {
  font-size: 16px;
  color: #555;
}
.section-header2 {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}
.section-label {
  background: #2F7F4F;
  color: white;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 50px;
  color: #003a70;
  margin: 10px 0 5px;
}

.section-subtitle {
  font-size: 16px;
  color: #555;
}

/* GREEN BACKGROUND BLOCK */

.green-background {
  position: relative;
  width: 100%;
  height: auto; /* ✅ CONTROL GREEN HEIGHT */
  background-color: #2F7F4F;
  z-index: 1;
  margin-top: 40px; /* ✅ CONTROL DISTANCE FROM HEADER */
}

/* BOOK CARDS OVERLAP */
.books-overlap {
  position: relative;
  z-index: 5;
  margin-bottom: -120px; /* ✅ ADJUST OVERLAP INTO GREEN AREA */
}
.books-inner {
  position: relative;
  width: 80%;
  margin: 0 auto; /* Center the whole group */
  display: flex;
  align-items: center;
  justify-content: space-between; /* arrow - cards - arrow */
}

/* BOOKS SECTION */
.books-section {
  display: flex;
  align-items: flex-start;
  position: relative;
  
}

/* VIEWPORT (holds visible cards) */
.book-cards-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0 80px;
  
}
.vertical-line {
  direction: rtl;
  width: 1px;
  height: 100%;
  background-color: white;
  opacity: 0.8;
}

/* WRAPPER (use translateX() here to move cards left/right) */
.book-cards-wrapper {
  display: flex;
  justify-content: space-between;   /* ✅ Pushes one card left, one right */
  align-items: flex-start;
  position: relative;       /* Make it the anchor for absolutely placed cards */
  width: 100%;        /* or 80% if you're limiting width */
  padding: 0 80px;    /* Optional: controls space from screen edges */
  transition: transform 0.3s ease;
  gap: 300px;
}


/* keep each card from stretching */
.book-card {
  flex: 0 0 300px;    /* 300 px wide, no grow, no shrink  */
  /* …existing card styles… */
}


/* CARD STYLING */
.book-card1,
.book-card2 {
  position: relative;
  background-color: white;
  box-shadow: 0 9px 6px -4px rgba(0, 0, 0, 0.25);
  padding: 30px 20px;

  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex: 0 0 500px;
  max-width: 500px;
    background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
      width: 473px;
  height: 320px;
}





 .nav-arrow-spasm1 {
  position: absolute;       /* ensure this is set */
  width: 15px;
  height: 15px;

  /* remove the old `top: 50%` */
  /* top: 50%; */

  /* new position: 12% down from the top */
  

  /* remove translateY (it was shifting them back up/down) */
  transform: none;

  /* keep the rest of your styles */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}


.left-arrow-spasm1 {
  left: 10px;
}

.right-arrow-spasm1 {
  right: 10px;
}


.green-background {
  background-color: #2f7f4f;
  padding: 60px 40px;
  color: white;
  width: 100%;
  box-sizing: border-box;
  

}

.features-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.feature-column {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-top: 10px;
  width: 100%;
  max-width: 500px;
  margin-top: 60px;
  box-sizing: border-box;
  margin-left: 100px; /* NEW LINE for perfect alignment with card content */
}

.vertical-line {
  width: 3px;
  background-color: white;
  opacity: 0.8;
}

.feature-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
}

.feature-column li {
  margin-bottom: 12px;
}


/* ✅ COMBINED MEDIA QUERIES */
@media (max-width: 1760px) {
  .academic-section {
  overflow-x: hidden;
}
  .book-card1,
  .book-card2,
  .book-cards-wrapper,
  .books-inner,
  .books-section {
    margin: 0;
  }
  .books-inner {
    width: 100%;
  }
  .right-arrow {
    right: 20px;
  }
  .nav-arrow {
    width: 30px;
    height: 30px;
  }
  .book-cards-wrapper {
    gap: 150px;
    padding: 0 40px;
  }
}

@media (max-width: 1200px) {
  .book-cards-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .book-card1,
  .book-card2 {
   
    flex: 1 1 auto;
    
  }
    .book-cards-wrapper {
    flex-direction: column;
    align-items: flex-end; /* Align cards to the right */
    gap: 40px;
  }

  .book-card1,
  .book-card2 {
    flex: 1 1 auto;
    align-self: flex-end; /* Ensures each card aligns to right */
  }

  .features-columns {
    justify-content: flex-end; /* Push features to the right */
  }

  .feature-column {
    align-items: flex-end;
    text-align: right; /* Ensure text aligns to the right too */
  }
}

@media (max-width: 768px) {
  .book-card1,
  .book-card2 {
    width: 320px;
    height: 297px;
  }

  .books-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

.nav-arrow-spasm1 {
  width: 40px !important;
  height: 40px !important;
  top: 60px !important;
    display: block !important;
}


  .nav-arrow-spasm1 img,
  .nav-arrow-spasm1 svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .green-background {
    padding: 60px 20px 140px;
  }
}



@media (max-width: 600px) {

 .book-cards-wrapper{
    gap: 40px;
  } 
}

@media (max-width: 600px) {
  .book-card1,
.book-card2 {
  min-width: 300px;
  max-width: 320px;
  height: 297px; /* Keep fixed height */
  margin: 0 auto;
}

  .green-background {
    padding: 40px 20px 80px;
  }
  .cards-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
.book-feature-wrapper-spasm{
  min-width: 300px;
}
      .book-card1,
  .book-card2 {
    
    width:250px;
    height: 172px;
  }

  .feature-column {
    flex-direction: column;
    align-items: flex-start;
  }
  .vertical-line {
    width: 3px;
  }
.book-cards-viewport { 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
  padding: 0;
  overflow: hidden;
  padding-right: 0;
}

}





/* sec 4 */



.diagnostic-section {
    margin-top: 20px;
  background-color: #f9f9f9;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

.diagnostic-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Right image */
.diagnostic-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  margin-bottom: 40px;
}

.diagnostic-image img {
  width: 100%;
  border-radius: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Left content */
.diagnostic-container {
  flex: 1;
  min-width: 300px;
}


.techniques-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.technique-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  direction: rtl;
}

/* Icon box */
.technique-icon-box img {
  width: 102px;
  height: 79px;
  object-fit: contain;
}

/* Content box: title + description */
.technique-content-box {
  display: flex;
  flex-direction: column;
}

.technique-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 720px;
  color: #3c434b;
}

.technique-description {
  margin-top: 4px;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}


/* Icon style */

.diagnostic-header {
  text-align: center;
  
}



.diagnostic-title {
  font-size: 2.7rem;
  color: #104473;
  
  margin-bottom: 40px;
}

/* Tablets: Stack image and content vertically */
@media (max-width: 991px) {
  .diagnostic-content {
    flex-direction: column-reverse; /* ✅ Move image below content */
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .diagnostic-container,
  .diagnostic-image {
    max-width: 100%;
  }

  .technique-card {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }


  .technique-title {
    font-size: 1.1rem;
  }

  .technique-description {
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 4px;
  }
}


/* Mobile phones */
/* --- Small Screens (Phones & Phablets) --- */
@media (max-width: 768px) {
  .books-inner-spasm,
  .book-cards-wrapper-spasm {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .nav-arrow-spasm {
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
  }

  .left-arrow-spasm {
    left: -10px;
  }

  .right-arrow-spasm {
    right: -10px;
  }

  .book-card1-spasm,
  .book-card2-spasm {
    max-width: 90%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-image-spasm {
    width: 80px;
    height: 80px;
  }

  .book-title-spasm {
    font-size: 18px;
  }

  .book-author-spasm {
    font-size: 14px;
  }

  .feature-column-spasm {
    align-items: center;
    margin-left: 0;
    text-align: center;
  }

  .features-columns-spasm {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .feature-column-spasm ul {
    font-size: 1rem;
  }

  .section-title-spasm {
    font-size: 22px;
  }

  .section-subtitle-spasm {
    font-size: 13px;
  }
}


/* Extra small phones */
/* --- Extra Small Screens (Mobile Portrait) --- */
@media (max-width: 480px) {
  .book-title-spasm {
    font-size: 16px;
  }
.spasm-header * {
  margin-right: 0 !important;
 max-width: 320px;
}
.technique-text-block{
   max-width: 300px ;
}
  .book-author-spasm {
    font-size: 13px;
  }

  .book-image-spasm {
    width: 70px;
    height: 70px;
  }

  .section-title-spasm {
    font-size: 20px;
  }

  .section-subtitle-spasm {
    font-size: 12px;
  }

  .nav-arrow-spasm {
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
  }

  .left-arrow-spasm {
    left: -10px;
  }

  .right-arrow-spasm {
    right: -10px;
  }

  .feature-column-spasm ul {
    font-size: 0.9rem;
  }
}




/* sec5 */


.milestones-section {
  
  padding: 120px 20px;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  position: relative;
  overflow: hidden;
}

.milestones-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.header_s5 {
  text-align: center;
  margin-top: 60px;
}
.header_s5 h1{
    font-size: 2.7rem;
  color: #104473;
  
}

/* ✅ The HTML element holding the background image */
.milestones-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 350px;
  background-image: url('img/sec5_bg.png'); /* 👈 your background here */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0; /* force to top */
}

/* ✅ Cards on top of the bg image */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  position: relative;
  z-index: 1; /* Makes them show above the bg */

}

/* Individual card */
.milestone-card {
   position: relative; /* ✅ this is required */
  padding: 20px;
  border-radius: 2px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35); /* ✅ dark bottom shadow */  
  transition: transform 0.3s;
    background-color: white;
    min-height: 91px; /* Ensures cards have a minimum height */
    min-width: 280px;
  
}
.milestone-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;                /* Thickness of the green bar */
  width: 100%;
  background-color: #2f7f4f;   /* Your green color */

}

.milestone-card:hover {
  transform: translateY(-5px);
}

.milestone-number {
  background-color: #2F7F4F;
  color: white;
  font-size: 1rem;
  width: 30px;              /* fixed width */
  height: 30px;             /* same as width → makes square */
  border-radius: 2px;
  display: flex;            /* center content */
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  margin-bottom: 10px;
}


.milestone-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #363232;
  margin: 0;
}

.milestone-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.milestones-spacer {
  height: 180px; /* adjust depending on image size */
  position: relative;
  z-index: 0; /* so the image shows here */
}

.milestone-header-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 1399px) {
  .milestones-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 40px;
  }
}
/* Tablets */
@media (max-width: 991px) {
  .header_s5 h1 {
    font-size: 2.2rem;
  }

  .milestones-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 30px;
  }

  .milestone-title {
    font-size: 1rem;
  }

  .milestone-text {
    font-size: 0.9rem;
  }

  .milestone-number {
    font-size: 0.9rem;
    padding: 3px 8px;
  }

  .milestones-bg {
    width: 90vw;
    height: 300px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .header_s5 h1 {
    font-size: 1.8rem;
  }

  .milestones-grid {
    grid-template-columns: 1fr; /* 1 card per row */
    gap: 20px;
  }

  .milestone-title {
    font-size: 1rem;
  }

  .milestone-text {
    font-size: 0.85rem;
  }

  .milestone-number {
    font-size: 0.85rem;
    padding: 3px 6px;
  }

  .milestones-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .book-image-spasm{
    height: fit-content;
  }

  .milestones-spacer {
display: none;
}
  

  .milestones-spacer {
    height: 250px; /* match image height */
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .header_s5 h1 {
    font-size: 1.5rem;
  }

  .milestone-title {
    font-size: 0.95rem;
  }

  .milestone-text {
    font-size: 0.8rem;
  }

  .milestone-number {
    font-size: 0.75rem;
  }

  .milestones-bg {
    display: none; /* Hide background image on very small screens */
  }
  .milestones-spacer {
display: none;
}

  .milestones-spacer {
    height: 200px;
  }
}


/* sec6 */


.testimonial-section {
  background: #eaf6f8;
  padding: 80px 20px;
  font-family: 'Cairo', sans-serif;
  text-align: center;
  direction: rtl;
}

.testimonial-title {
  font-size: 2.4rem;
  color: #104473;
  margin-bottom: 10px;
}

.quote-icon {
  margin-bottom: 40px;
}

.quote-img {
  width: 40px;
  height: auto;
}

.testimonial-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.arrow {
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
}

.arrow img {
  width: 30px;
  height: auto;
}

.testimonial-content {
  max-width: 600px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonial-text {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 20px;
}

.testimonial-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.testimonial-user-img {
  margin-top: 20px;
width: 98px;
  height: 98px;
  border-radius: 15%;
  object-fit: cover;
}

.testimonial-user-name {
  font-size: 1rem;
  
  color: #666;
}

.avatar-strip {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
 
  object-fit: cover;
  filter: blur(1px);
  opacity: 0.6;
  transition: all 0.3s;
  cursor: pointer;
}

.avatar.active {
  opacity: 1;
  filter: none;
  transform: scale(1.1);
  border: 2px solid #2f7f4f;
}

.pagination-dots {
  margin-top: 20px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #2f7f4f;
}

@media (max-width: 768px) {
  .testimonial-title {
    font-size: 1.8rem;
  }



  .quote-img {
    width: 30px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .arrow img {
    width: 25px;
  }

  .testimonial-content {
    padding: 20px;
  }

  .avatar-strip {
    gap: 15px;
  }
}


/* sec7 */










/* there's a responsiveness problem here */


.faq-carousel {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  padding: 60px 20px;

  margin-right: 100px;
}

.faq-slider-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  overflow: hidden;
}

.faq-header-card {
  flex-shrink: 0;
  width: 355px;
  padding: 30px 20px;
  border-radius: 15px;
}

.faq-header-card h2 {
width: 355px;  
font-size: 50px;
  color: #104473;
  margin-bottom: 15px;
}

.faq-header-card p {
  font-size: 20px;
  color: #444;
  margin-bottom: 20px;
  width: 355px;  
  
}

.main-button {
  background: #003c66;
  color: white;
  padding: 10px 16px;
  border-radius: 1px;
  text-decoration: none;
  display: inline-block;
}

/* Arrows */
.arrow {
  width: 64px;
  height: 64px;
  cursor: pointer;
}

.arrow.prev {
  visibility: hidden; /* will show dynamically */
}

/* Slider with visible 2 cards */
.faq-slider-wrapper {
  overflow: hidden;
  width: calc((344px + 20px) * 2);
 width: 728px;
 
  display: flex;
  gap: 20px;               /* ← space between cards */
  transition: transform 0.5s ease-in-out;
  width: max-content;

}

.faq-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: max-content; /* ✅ Add this */
}

.faq-card {
  position: relative;
  background: white;
  /* heavier, lower shadow */
/* small, sharp shadow directly below */
  box-shadow: 0 12px 16px -10px rgba(0, 0, 0, 0.25);
/* offset-x:0, offset-y:2px, blur:4px, spread:0, color: semi-transparent black */
  padding: 30px 20px 20px;
  width: 100%;
  max-width: 400px;
  height: 359px;
  text-align: right;
 overflow: visible !important;
  margin-right: 40px;
  
}
.faq-slider-container,
.faq-slider-wrapper {
  overflow: visible !important;
}



.faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
width: 100%;
  background-color: #2F7F4F;
  /* if you have rounded corners on the card: */

}

.faq-card h3 {
  font-size: 20px;
  color: #0f3557;
  margin-bottom: 10px;
}

.faq-card p {
  font-size: 20px;
  color: #444;
  margin-bottom: 10px;
  max-width: 290px;
}

.faq-card a {
  color: #003c66;
  font-weight: bold;
  text-decoration: none;
}

/* Dots */
.faq-dots {
  text-align: center;
  margin-top: 25px;
}
#hidden-dot{
  display: none; /* Hide the hidden dot */
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
}

.dot.active {
  background-color: #0f5c7e;
}



/* Responsive for small screens */
@media (max-width: 768px) {
  .faq-carousel{
    margin-right: 0;
  }
  .faq-slider-container {
    flex-direction: column;
    align-items: center;
  }

  .faq-header-card {
    width: 100%;
    max-width: 90%;
  }

  .faq-slider-wrapper {
    width: 90%;
  }

  .faq-card {
    min-width: 100%;
    max-height: fit-content;
  }
}

@media (max-width: 1200px) {
  .faq-header-card h2 {
    font-size: 40px;
  }

  .faq-header-card p,
  .faq-card p {
    font-size: 18px;
  }

  .faq-card h3 {
    font-size: 18px;
  }
}

@media (max-width: 992px) {
  .faq-header-card h2 {
    font-size: 36px;
  }

  .faq-header-card p,
  .faq-card p {
    font-size: 17px;
  }

  .faq-card h3 {
    font-size: 17px;
  }

  .main-button {
    font-size: 15px;
    padding: 8px 14px;
  }
}

@media (max-width: 768px) {
  .faq-header-card h2 {
    font-size: 30px;
  }

  .faq-header-card p,
  .faq-card p {
    font-size: 16px;
  }

  .faq-card h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .faq-header-card h2 {
    font-size: 26px;
  }

  .faq-header-card p,
  .faq-card p {
    font-size: 15px;
  }
  #hidden-dot{
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
}

  .faq-card h3 {
    font-size: 15px;
    max-width: auto; /* Allow text to wrap */
  }

  .main-button {
    font-size: 14px;
    padding: 7px 12px;
  }
}

@media (max-width: 420px) {
  .faq-slider-container {
    flex-direction: column; /* Stack vertically */
    align-items: center;     /* Center cards */
    gap: 20px;
  }

  .faq-slider-wrapper {
    width: 100%;             /* Full width on small screens */
    overflow: hidden;
  }

  .faq-card {
    min-width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .faq-header-card {
    width: 100%;
    max-width: 90%;
    box-sizing: border-box;
  }

  .arrow {
    width: 40px;
    height: 40px;
  }

  .faq-card h3 {
    font-size: 18px;
  }

  .faq-card p {
    font-size: 15px;
  }
}


@media (max-width: 400px) {
  .faq-header-card h2,
  .faq-card h3 {
    font-size: 22px;        /* shrink font size */
    line-height: 1.3;
    word-break: break-word; /* break long words */
    max-width: 250px;
  }

  .faq-header-card p,
  .faq-card p {
    font-size: 14px;         /* smaller font */
    line-height: 1.6;
    max-width: 250px;
  }

  .main-button {
    font-size: 13px;
    padding: 8px 12px;
  }
}




/* sec 5 */


.strengths-section {
  margin-top: 80px;
  position: relative;
  background-image: url('img/Group\ 1543\ \(1\).png');
  background-size: cover;
  background-position: center;
  color: white;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  overflow: hidden;
  min-height:795px;
 
  margin-bottom: 80px;
}




.strengths-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
text-align: center;
}



.strengths-title {
  font-size: 2.8rem;
  margin-bottom: 40px;
  margin-top: 40px;
}
.strengths-description {
  
  margin: 0 auto 60px;
  font-size: 20px;
  line-height: 2;
}


.strengths-cards {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  ;
  gap: 10px;
}

.strengths-card {
  flex: 1 1 calc(20% - 10px); /* 5 cards in one row with spacing */
  text-align: center;
}

.strengths-icon {
  width: 200px;
  height: 150px;
  margin-bottom: 16px;

}

.strengths-card-title {
  font-size: 20px;
  margin-bottom: 10px;
}



/* Responsive: stack cards below 900px */
@media (max-width: 1450px) {
  .strengths-section {
 min-height:795px;
  }}
@media (max-width: 900px) {
  .strengths-cards {
    flex-wrap: wrap;
    justify-content: center;
  }

  .strengths-card {
    flex: 1 1 45%;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .strengths-card {
    flex: 1 1 100%;
  }
}

.mobile-bg {
  display: none;
}

@media (max-width: 600px) {
  .strengths-section {
    background: none;
  }
  .mobile-bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
  }
  .strengths-container {
    position: relative;
    z-index: 1;
  }
  .strengths-card {
    color: rgb(55, 55, 59) ;


    
}
.strengths-title {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #0f3557;

}
.strengths-card-title{
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #0f3557; 
}
.strengths-description {
  color: #0f3557;
  margin: 0 auto 60px;
  font-size: 20px;
  line-height: 2;
}
}


.contact-section {
  padding: 60px 20px;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

.contact-top-text{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 30px;
  
}
.contact-top-text h1{
  font-size: 2.7rem;
  font-weight: bold;
  color: #104473;
}
.contact-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  color: #496179;
  font-weight: 700px;
  font-size: 16px;
  background: white;
   box-shadow: 0 9px 6px -4px rgba(0, 0, 0, 0.25);
}

.contact-form-box {
  flex: 1 1 50%;
  padding: 40px;
  /* color: #104473; */
  display: flex;
  flex-direction: column;
  background-color: #F4F8FB;

}

.contact-form-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  
}

.contact-form-box input,
.contact-form-box textarea {
  padding: 10px !important;
  border: 1px solid #c3d0db !important; /* set border color */
  border-radius: 1px !important;
  font-family: 'Cairo', sans-serif !important;
  outline: none !important; /* remove default focus outline */
}

.contact-form-box textarea{
  min-height: 150px;
}

.contact-form-box button {
  background-color: #104473;  
  color: white;
  border: 1px solid white;
  padding: 10px;
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.3s;
}

.contact-form-box button:hover {
   background-color: #165FA1;
  color: #e9e9e9;
}



.contact-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-logo {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  margin-right: 30px;
}

.contact-note {
  color: #104473;
 
  padding: 10px;
  font-size: 17px;
  max-width: 350px;
  flex: 1;
  text-align: center;
}


.contact-map-box {
  flex: 1 1 50%;
  min-height: 500px;
}

.contact-map-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-form-box,
  .contact-map-box {
    flex: 1 1 100%;
    padding: 20px;
  }

  .contact-top-text h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-form-box {
    order: -1; /* ⬅️ Make the form appear first */
    padding: 20px;
  }

  .contact-map-box {
    order: 0;
    padding: 20px;
  }
}


  #thank-you-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #e7fff0;
    padding: 30px 40px;
    color: #2f7f4f;
    border: 2px solid #2f7f4f;
    border-radius: 10px;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  #thank-you-popup.show {
    opacity: 1;
    visibility: visible;
  }

  @media (max-width: 600px) {
  #thank-you-popup {
    width: 90%;
    padding: 20px;
    font-size: 1rem;
  }
}
