.con-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 4.375rem);
}

.con-box {
  background-color: rgba(111, 196, 192, 1);
  padding: clamp(24px, 5vw, 50px);
  font-weight: 400;
  font-size: clamp(1.125rem, 5vw + 0.5rem, 1.875rem);
  line-height: 1.5;
  border-radius: 16px;
  color: #fff !important;
}

[dir="rtl"] .con-box {
  text-align: justify;
}

.con-box .icon {
  display: block;
}

[dir="ltr"] .con-box .icon svg {
  transform: scaleX(-1);
}

.con-box__content {
  padding: 0 clamp(0.5rem, 3vw, 2rem);
}

.con-content {
  font-weight: 400;
  font-size: clamp(1.125rem, 5vw + 0.5rem, 1.875rem);
  line-height: 1.5;
}

[dir="rtl"] .con-content.colored-content,
[dir="rtl"] .con-outlook__panel {
  text-align: justify;
  text-justify: inter-word;
  text-align-last: right;
}

/* Outlook: image + headline + teal panel (Figma refactor) */
.con-outlook {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
}

.con-outlook__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  direction: ltr;
}

.con-outlook__media {
  margin: 0;
  min-width: 0;
}

.con-outlook__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(624px, 65vh);
  object-fit: cover;
  object-position: center top;
}

.con-outlook__title {
  margin: 0;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 57px);
  line-height: 1.28;
  color: #ffffff;
  text-align: start;
  direction: rtl;
}

[dir="ltr"] .con-outlook__title {
  direction: ltr;
  text-align: start;
}

.con-outlook__panel {
  padding: clamp(24px, 4vw, 40px) !important;
  font-size: clamp(18px, 2.2vw, 30px) !important;
  line-height: clamp(28px, 3vw, 40px) !important;
}

.con-outlook__panel p {
  margin: 0;
}

.con-outlook__panel p + p {
  margin-top: 1em;
}

@media (min-width: 901px) {
  .con-sec .con-wrapper,
  .con-outlook,
  .con-outlook__hero,
  .con-outlook__media {
    overflow: visible;
  }

  .con-outlook {
    margin-top: calc(-1 * clamp(2rem, 5vw, 4.375rem) - 8px);
  }

  .con-outlook__hero {
    align-items: center;
  }

  .con-outlook__media {
    position: relative;
    z-index: 3;
    margin-top: -44px;
    align-self: end;
  }

  .con-outlook__title {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .con-outlook__media img {
    max-height: min(450px, 44vh);
  }
}

@media (max-width: 900px) {
  .con-outlook__hero {
    grid-template-columns: 1fr;
    direction: unset;
  }

  .con-outlook__title {
    text-align: center;
  }

  .con-outlook__media img {
    max-height: min(420px, 50vh);
  }
}

@media (max-width: 768px) {
  .con-outlook__panel {
    font-size: 16px !important;
    line-height: 24px !important;
  }
}

.mid-content {
  margin-top: 30px;
  display: flex;
  position: relative;
  justify-content: flex-end;
}

.mid-content p {
  width: 50%;
}

.con-img {
  position: absolute;
  max-width: 50%;
  inset-block-end: 0;
  inset-inline-start: 0;
}

.content-box {
  display: flex;
  align-items: center;
}

.content-img {
  padding: 0 clamp(10px, 2vw, 24px);
  flex-shrink: 0;
  width: 267px;
}

.content-img img {
  display: block;
  width: 100%;
  height: auto;
}

[dir="ltr"] .con-img img {
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  .con-content,
  .con-box {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
  }

  .con-img {
    margin-top: 24px;
    /* max-width: 100%; */
  }

  .content-box {
    flex-direction: column;
  }

  .content-img {
    padding: 20px 0 0;
    width: auto;
    max-width: 140px;
    margin-inline: auto;
  }
}

.actions-sec-box {
  padding: clamp(24px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  overflow-x: hidden;
}

.actions-sec-box h2 {
  font-weight: 800;
  font-size: clamp(28px, 4vw + 1rem, 45px);
  /* line-height: clamp(36px, 5vw + 1rem, 57px); */
  line-height: 1.4;
  text-align: center;
}

.actions-sec-box p {
  font-weight: 400;
  font-size: clamp(16px, 1vw + 0.8rem, 18px);
  line-height: clamp(24px, 2vw + 1rem, 36px);
  text-align: center;
  max-width: 700px;
}

.act-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 500;
  font-size: clamp(14px, 1vw + 0.7rem, 16px);
  line-height: 24px;
  letter-spacing: 0px;
}

.action-link:first-child {
  color: #008a85 !important;
  background-color: #fff;
}

.action-link:last-child {
  color: #fff !important;
  background-color: #8dcfc5;
}

@media (max-width: 768px) {
  .actions-sec-box h2 {
    font-size: 24px;
    /* line-height: 30px; */
  }

  .actions-sec-box {
    gap: 20px;
    /* تقليل المسافة في الموبايل */
  }

  .act-links {
    flex-direction: column;
    /* الأزرار فوق بعضها في الموبايل */
    width: 100%;
  }

  .action-link {
    width: 100%;
    max-width: 300px;
  }
}

.con-boxes {
  width: 100%;
  max-width: 900px;
  margin: auto;
}

.con-boxes .title {
  font-weight: 800;

  font-size: clamp(1.5rem, 3vw + 1rem, 2.25rem);
  line-height: 1.1;

  letter-spacing: 0px;
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw + 0.5rem, 3rem);
}

.con-boxes .boxes-wrapper {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.con-boxes .box {
  background: rgba(246, 252, 249, 1);
  display: flex;
  background: rgba(246, 252, 249, 1);
  gap: 8px;
  flex-direction: column;
  padding: clamp(1rem, 3vw, 1.5rem);
  flex: 1;
}

.con-boxes .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.con-boxes .box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.con-boxes .top .icon {
  height: 56px;
  width: 56px;
  background: rgba(35, 139, 139, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.con-boxes .top .num {
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw + 1rem, 3rem);
  line-height: 1;
  letter-spacing: 0px;
  color: rgba(35, 139, 139, 0.1);
}

.con-boxes .box-title {
  font-weight: 800;
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.25rem);
  /* 18px to 20px */
  line-height: 1.4;
  letter-spacing: 0px;
  color: rgba(0, 90, 94, 1) !important;
}

.con-boxes .box-desc {
  font-family: Cairo;
  font-weight: 400;
  font-style: Regular;
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
  /* 14px to 16px */
  line-height: 1.6;
  letter-spacing: 0px;
  color: rgba(79, 105, 106, 1) !important;
}

@media (max-width: 460px) {
  .con-boxes .boxes-wrapper {
    flex-direction: column;
  }

  .mid-content {
    display: flex;
    flex-direction: column-reverse;
    padding: 0;
    margin-top: 0;
  }

  .mid-content p {
    padding: clamp(1rem, 3vw, 2rem);
    width: 100%;
  }

  .con-img {
    max-width: 100%;
    position: static;
  }
}
