/* ================================
   عام
================================= */

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0F1626;
  color: white;
}

/* ================================
   الكونتينر الرئيسي
================================= */

.main-wrapper {
  width: 1294px;
  height: 854px;
  /* padding-bottom: 80px; */
  gap: 40px;
  padding-left: 109px;
  padding-top: 244px;
}

/* ================================
   عنوان Why Phantom
================================= */

.why-title-container {
  margin-bottom: 64px;
  padding-left: 482.5px;
  padding-right: 482.5px;
}

.main-title {
  width: 329px;
  height: 58px;
  font-size: 48px;
  font-weight: 700;
  color: #EDEDED;
  height: 58px;
  vertical-align: middle;
}


/* ================================
   محتوى العمودين الأساسيين
================================= */

.content-row {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

/* ================================
   الجزء النصي (الشمال)
================================= */

.desktop-text {
  width: 630px;
  height: 401px;
  gap: 40px;
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}

.desktop-text .sub-title-container h3 {
  width: 630px;
  height: 78px;
  font-size: 32px;
  font-weight: 700;
  line-height: 100%;
  color: #FFFFFF;
  margin-bottom: -48px;
  margin-top: 110px;
}

.desktop-text .paragraph-container p {
  width: 611px;
  height: 203px;
  font-size: 24px;
  font-weight: 400;
  color: #EAEAEACC;
  line-height: 100%;
  margin-top: 58px;
  margin-bottom: 0;
}

.desktop-text .button-container {
  margin-top: -56px;
}

.desktop-text .button-container .contact-btn {
  display: inline-block;
  background-color: #19A79B;
  text-decoration: none;
  padding: 10px;
  border-radius: 16px;
  color: white;
  font-size: 24px;
  font-weight: 600;
}

/* ================================
   الجزء الخاص بالصور
================================= */

.right-image-group {
  display: flex;
  gap: 10px;
  padding-right: -120px;
}

/* كل عمود صور */
.img-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* كل صورة داخل كونتينر */
.img-wrapper {
  background-color: #D9D9D9;
  border-radius: 16px;
  overflow: hidden;
}

/* أحجام الصور بناءً على بياناتك السابقة */
.img-col:nth-child(1) .img-wrapper {
  width: 344px;
  height: 652px;
}

.img-col:nth-child(2) .img-wrapper:nth-child(1) {
  width: 300px;
  height: 296px;
  border-radius: 16px 0 0 16px;
}

.img-col:nth-child(2) .img-wrapper:nth-child(2) {
  width: 300px;
  height: 280px;
  border-radius: 0 16px 16px 0;
}

.img-col:nth-child(3) .img-wrapper {
  width: 161px;
  height: 280px;
  /* border-top-right-radius: 16px;
    border-bottom-right-radius: 16px; */
}

/* الصور نفسها */
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* إخفاء نسخة الموبايل بشكل افتراضي */
.mobile-text {
  display: none;
}

@media (max-width: 600px) {
  /* ================================
     عام - موبايل
  ================================= */
  /* باقي تنسيقات الموبايل */
  .main-wrapper {
    width: 100%;
    height: auto;
    padding: 120px 16px 40px 16px;
    gap: 32px;
  }

  /* ================================
     العنوان الرئيسي - موبايل
  ================================= */
  .why-title-container {
    padding: 0;
    margin-bottom: 55px;
    text-align: center;
  }

  .main-title {
    width: auto;
    height: auto;
    font-size: 16px;
    text-align: center;
  }

  /* ================================
     محتوى العمودين - موبايل
  ================================= */
  .content-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
  }

  /* إخفاء نسخة الديسكتوب على الموبايل */
  .desktop-text {
    display: none;
  }

  /* إظهار وتنسيق نسخة الموبايل */
  .mobile-text {
    display: flex;
    flex-direction: column;
    width: 185px;
    flex-shrink: 0;
    height: auto;
    align-items: flex-start;
    padding-top: 30px;
    padding-left: 16px !important;
  }

  .mobile-text .sub-title-container {
    margin-bottom: -12px;
  }

  .mobile-text .paragraph-container {
    margin-bottom: 5px;
  }

  .mobile-text .sub-title-container h3 {
    width: 100%;
    height: auto;
    font-size: 10px;
    line-height: 100%;
    color: #FFFFFF;
  }

  .mobile-text .paragraph-container p {
    width: 100%;
    height: auto;
    font-size: 10px;
    line-height: 100%;
    color: #EAEAEACC;
  }

  .mobile-text .button-container .contact-btn {
    width: 80px;
    height: 24px;
    padding: 0;
    display: grid;
    place-content: center;
    border-radius: 4px;
    font-size: 9px;
    box-sizing: border-box;
    background-color: #19A79B;
    color: white;
    text-decoration: none;
  }

  /* ================================
     جزء الصور - موبايل
  ================================= */
  .right-image-group {
    flex: 1;
    overflow: hidden;
    padding-right: 0;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    display: flex;
  }

  /* إظهار العمود الثالث من الصور */
  .img-col:nth-child(3) {
    display: flex;
  }

  /* العمود الأول من الصور (صورة طويلة يسار) */
  .img-col:nth-child(1) .img-wrapper {
    width: 100px;
    height: 216px;
    border-radius: 16px 0 0 16px;
  }

  /* العمود الثاني من الصور (صورتان فوق بعض يمين) */
  .img-col:nth-child(2) {
    gap: 8px;
  }

  .img-col:nth-child(2) .img-wrapper:nth-child(1) {
    width: 80px;
    height: 99px;
    border-radius: 0 16px 0 0;
  }

  .img-col:nth-child(2) .img-wrapper:nth-child(2) {
    width: 80px;
    height: 104px;
    border-radius: 0 0 16px 0;
  }

  .img-col:nth-child(3) .img-wrapper {
    width: 80px;
    height: 104px;
    border-radius: 16px;
  }

  .services-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important; /* أو أي قيمة تناسبك */
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
  .service-box {
    width: auto !important;
    min-width: 140px;   /* أو حسب حجم البطاقة الذي تريده */
    max-width: 180px;   /* أو حسب حجم البطاقة الذي تريده */
    margin: 0 !important;
    flex: 0 1 auto !important;
  }
}

