/* Section title — accent under a single highlighted word.
   When the title carries an accent, suppress the default centered underline
   from .sec-title::after so the accent reads cleanly on its own. */
.sec-title__accent {
  text-decoration: underline;
  text-decoration-color: #009485;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
}

.sec-title:has(.sec-title__accent)::after {
  display: none;
}

.img-sec {
  padding-block: clamp(24px, 5vw, 48px);
}

.img-sec .img {
  width: 100%;
  height: clamp(280px, 48vw, 560px);
  object-fit: cover;
  display: block;
}

/* Media-only card on the intro split (the picture beside the founding text) */
.intro-box__item--media {
  padding: 0;
  overflow: hidden;
  background: #fff;
  display: block;
  position: relative;
  min-height: 280px;
  align-self: stretch;
}

.intro-box__item--media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Equal-height in the row: stretch both cards so the image fills its panel */
.intro-sec .intro-box {
  align-items: flex-start;
}

/* intro-sec */
.intro-sec {
  padding-bottom: 0;
}

.intro-box {
  max-width: 1120px;
  display: flex;
  margin: auto;
  gap: 48px;
}

.intro-box__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-box__desc {
  color: #009892;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0px;
}

/* func-grid */
.func-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  overflow: hidden;
}

.func-grid .box {
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  flex: 0 0 calc(33.333% - 24px);
  padding: 32px;
  background: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.func-grid .box:hover {
  transform: translateY(-10px) scale(1.02);
}

.func-grid .head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.func-grid .head h3 {
  color: #009892 !important;
  font-weight: 800;
  font-size: clamp(16px, 1.2vw + 0.8rem, 18px);
  line-height: clamp(24px, 1.5vw + 1rem, 26px);
  text-align: start;
}

.func-grid .head img {
  max-width: 80px;
}

.func-grid .content p {
  font-weight: 400;
  font-size: clamp(16px, 0.8vw + 0.7rem, 16px);
  line-height: clamp(20px, 1.2vw + 0.8rem, 24px);
  text-align: center;
  color: #73848c !important;
}

/* حركة الأيقونات - اختيارية ومميزة */
.func-grid .box img {
  transition: transform 0.5s ease;
}

.func-grid .box:hover img {
  transform: scale(1.1) rotate(5deg);
}

@media (max-width: 992px) {
  .func-grid .box {
    flex: 0 0 calc(50% - 12px);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .func-grid .head img {
    max-width: 60px;
  }

  .func-grid .box {
    flex: 0 0 100%;
    padding: 24px;
  }

  .func-grid {
    gap: 12px;
  }
}

/* --- Responsive Adjustments --- */

@media (max-width: 1024px) {
  .intro-box {
    /* max-width: 90%; */
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* Hero Adjustments */
  .hero-sec {
    height: 350px;
  }

  /* Intro Adjustments */
  .intro-box {
    flex-direction: column;
    /* تحويل الصناديق لتصبح تحت بعضها */
    gap: 0;
  }

  .intro-box__item {
    padding: 16px 0;
    justify-content: flex-start;
  }

  /* Typography Adjustments */
  .intro-box__desc {
    font-size: 16px;
    /* line-height: 24px; */
  }

  .intro-box__title {
    font-size: 18px;
  }

  .intro-box__exp {
    font-size: 14px;
    line-height: 24px;
  }
}

@media (max-width: 480px) {
  .hero-sec {
    height: 280px;
  }

  .num-box {
    height: 40px;
    width: 40px;
    min-width: 40px;
    /* الحفاظ على شكل الدائرة */
    font-size: 12px;
  }

  .intro-box__item {
    gap: 12px;
  }
}
