:root {
  --title-color: #008a85;
  --text-color: #5c7070;
  --main-teal-gradient: linear-gradient(109.83deg, #1d7c79 0%, #30a69e 100%);
  --overlay-gradient: linear-gradient(
    45deg,
    rgba(14, 78, 78, 0.6) 0%,
    rgba(29, 124, 121, 0.2) 50%,
    rgba(29, 124, 121, 0) 100%
  );
}

.sc-title {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sc-title .title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-box {
  background: #008a85;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.sc-title .title-box .icon-box {
  background: #008a85;
}

.bg-main .title-box .icon-box {
  background: #fff;
}

.sc-title__title {
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 36px);
  line-height: 1.4;
  letter-spacing: 0px;
  color: var(--title-color);
}

.icon-box svg {
  width: 100%;
}

.sc-title__dec {
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.44;
  letter-spacing: 0px;
  color: #009892;
  max-width: 900px;
}

.sc-title__dec span {
  color: var(--title-color);
}

.sc-title-center {
  justify-content: center;
  align-items: center;
}

.sc-title-center .sc-title__dec {
  text-align: center;
}

/* --- Responsive Optimization --- */

@media (max-width: 768px) {
  .sc-title {
    /* text-align: center; */
    align-items: center;
  }

  .sc-title__dec {
    line-height: 1.5;
  }
}

/* intro-sec */
.intro-sec {
  overflow-x: hidden;
}

.intro-boxes,
.tech-boxes {
  display: flex;
  gap: 1.5rem;
  margin-top: 4rem;
}

.intro-boxes > div,
.tech-boxes > div {
  flex: 1;
  gap: 1.25rem;
  flex: 1;
}

/* intro-boxes */
.intro-box {
  box-shadow: 0px 8px 24px -8px rgba(15, 52, 61, 0.1);
  background: linear-gradient(126.64deg, #ffffff 0%, #f3fbfc 100%);
}

.intro-box .top {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: #84c6c4;
}

.intro-box .top .title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.intro-box .top h3 {
  font-weight: 500;
  font-size: 13px;
  color: rgba(15, 38, 46, 0.75) !important;
}

.intro-box .year {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: #167c83;
}

.intro-box .content {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.intro-box .num {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  font-family: "Cairo", sans-serif;
}

/* Figma: 100 — weight 800, line-height 60px, #008A85 */
.intro-box .num data {
  font-weight: 800;
  font-size: 64px;
  line-height: 60px;
  letter-spacing: -1.5px;
  color: #008a85;
  display: flex;
  align-items: center;
  text-align: right;
  flex: none;
}

/* Figma: % — weight 700, line-height 32px, #167C83, offset top +14px */
.intro-box .num span {
  font-weight: 700;
  font-size: 64px;
  line-height: 32px;
  color: #167c83;
  display: flex;
  align-items: center;
  text-align: right;
  flex: none;
  margin-top: 14px;
}

.intro-box p {
  color: rgba(15, 38, 46, 0.75);
  font-weight: 500;
  font-size: 14px;
  line-height: 22.75px;
  letter-spacing: 0px;
}

.intro-box img {
  max-width: 20px;
  height: auto;
}

/* channel and tech sec */
.channel-tech-sec {
  overflow: hidden;
}

.tech-boxes {
  position: relative;
}

/* .tech-boxes::after {
    content: "";
    position: absolute;
    background: linear-gradient(270deg, #BAE5E8 0%, #167C83 50%, #BAE5E8 100%);
    height: 1px;
    display: block;
    width: 100%;
    top: 60px;
} */

.tech-box {
  position: relative;
  z-index: 999;
  position: relative;
}

.tech-box .top {
  position: relative;
  z-index: 999;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin-top: -14px;
  margin-bottom: 24px;
  min-height: 56px;
  overflow: visible;
}

.tech-box .top::before {
  color: rgba(223, 244, 246, 0.6);
  font-weight: 900;
  font-size: 141px;
  line-height: 1;
  position: absolute;
  inset-inline-start: 26px;
  top: auto;
  bottom: -10px;
  font-family: "Cairo", sans-serif;
}

[dir="ltr"] .tech-box .top::before {
  inset-inline-start: 12px;
}

.tech-box:first-child .top::before {
  content: "1";
}

.tech-box:nth-child(2) .top::before {
  content: "2";
}

.tech-box:nth-child(3) .top::before {
  content: "3";
}

.tech-box .top h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0px;
  color: #008a85;
  max-width: 140px;
  position: relative;
  z-index: 1;
  padding-inline-start: clamp(18px, 2.5vw, 32px);
}

[dir="ltr"] .tech-box .top h3 {
  max-width: 220px;
}

@media (min-width: 1025px) {
  .tech-boxes {
    align-items: flex-start;
  }

  .tech-box .top {
    height: 56px;
    min-height: 56px;
    margin-top: 0;
  }

  .tech-box .top h3 {
    min-height: auto;
    display: block;
  }
}

.tech-box .icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  box-shadow: 0px 8px 24px -8px rgba(15, 52, 61, 0.1);
  background: #fff;
  position: relative;
}

.tech-box .icon-box::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  display: block;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #ffffff;
}

.tech-box .stack {
  padding-inline-start: 23px;
}

.tech-box .check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0px;
  color: #fff;
}

[dir="ltr"] .tech-box .check-item {
  font-size: 13px;
}

.tech-box .check-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3fbfc;
  height: 10px;
  width: 10px;
}

.tech-box .check-item:not(:last-child) .check-box::after {
  position: absolute;
  content: "";
  display: block;
  bottom: -25px;
  width: 2px;
  height: 25px;
  background: #f3fbfc;
  left: 50%;
  transform: translateX(-50%);
}

.gov-sec {
  padding: 4rem 2rem;
}

.gov-sec .sc-title__title {
  margin-bottom: 3rem;
}

.gov-sec h2 {
  text-align: center;
}

.gov-sec .image {
  max-width: 1100px;
  margin: auto;
  border: 1px solid rgba(226, 233, 233, 1);
  background: #fff;
  box-shadow: 0px 2px 12px -4px rgba(31, 71, 71, 0.08);
}

.gov-sec .image img {
  width: 100%;
}

/* --- Digital Transformation Responsive Optimization --- */

.lap {
  display: none !important;
}

@media (min-width: 981px) {
  .lap {
    display: flex !important;
  }

  .mob {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  /* تحويل الصناديق لتصبح فوق بعضها في التابلت والموبايل */
  .intro-boxes,
  .tech-boxes {
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }

  .tech-boxes {
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
  }

  .intro-boxes > div,
  .tech-boxes > div {
    width: 100%;
  }

  /* إخفاء الخط الجمالي الخلفي في التابلت لأنه لن يمر عبر الصناديق بشكل عرضي */
  .tech-boxes::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .intro-box .content {
    height: 120px;
  }

  .channel-tech-sec {
    padding-bottom: 1rem;
  }

  .channel-tech-sec + .section.bg-main {
    padding-top: clamp(24px, 5vw, 36px);
  }

  .tech-boxes {
    gap: 2.5rem;
    margin-top: 2rem;
  }

  .tech-box {
    isolation: isolate;
  }

  .tech-box .top {
    gap: 1rem;
    margin-top: -8px;
    margin-bottom: 1.25rem;
  }

  .tech-box .top::before {
    font-size: clamp(72px, 20vw, 110px);
    inset-inline-start: calc(40px + 1rem);
    bottom: -8px;
    z-index: 0;
  }

  .tech-box .icon-box {
    z-index: 2;
  }

  .tech-box .top h3 {
    max-width: none;
    flex: 1;
    min-width: 0;
    font-size: 18px;
    line-height: 1.35;
    padding-inline-start: clamp(36px, 7vw, 52px);
    padding-inline-end: 12px;
  }

  .tech-box .stack {
    padding-inline-start: 0;
  }

  /* ضبط الأرقام الكبيرة في صناديق الإحصائيات */
  .intro-box .num data {
    font-size: 48px;
    line-height: 45px;
    letter-spacing: -1.125px;
  }

  .intro-box .num span {
    font-size: 48px;
    line-height: 24px;
    margin-top: 10px;
  }

  /* ضبط الـ Banner الخاص بالقسم */
  .banner-sec {
    padding: 3rem 1.5rem;
  }

  /* .banner-sec h2 {
        font-size: 30px;
        line-height: 1.2;
    } */

  .banner-sec p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* ضبط قسم الصورة (Gov Sec) */
  .gov-sec {
    padding: 2.5rem 1rem;
  }

  .gov-sec .image {
    border: none;
    box-shadow: none;
    /* تخفيف الظلال في الموبايل لسرعة التصفح */
  }
}

@media (max-width: 480px) {
  .tech-box {
    padding: 0 0 1.25rem;
  }

  .tech-box .top {
    gap: 0.75rem;
  }

  .tech-box .top::before {
    font-size: clamp(64px, 18vw, 96px);
    inset-inline-start: calc(40px + 0.75rem);
    bottom: -6px;
  }

  .tech-box .top h3 {
    font-size: 17px;
    padding-inline-start: clamp(32px, 6vw, 48px);
  }

  .tech-box .check-item {
    font-size: 13px;
    line-height: 1.45;
  }

  .intro-box .num data {
    font-size: 40px;
    line-height: 38px;
    letter-spacing: -0.94px;
  }

  .intro-box .num span {
    font-size: 40px;
    line-height: 20px;
    margin-top: 9px;
  }
}

/* --- اصلاح التوزيع في التابلت والأحجام المتوسطة --- */

@media (min-width: 768px) and (max-width: 1024px) {
  .intro-boxes,
  .tech-boxes {
    flex-direction: row !important;
    /* إجبارهم على العودة للصف */
    flex-wrap: wrap;
    /* السماح بلف العناصر */
    gap: 2rem;
  }

  .intro-boxes > div {
    flex: 0 0 calc(50% - 1rem) !important;
    /* كل صندوق يأخذ نصف العرض */
  }

  .tech-boxes {
    gap: 5rem;
  }

  .tech-boxes > div {
    flex: 0 0 calc(50% - 2.5rem) !important;
  }
}

.banner-sec .sc-title__dec {
  line-height: 1.7;
}
