.details-main {
  padding: 12rem 1rem;
  font-family: "Tajawal", sans-serif;
}
.details-main .main-image-section {
  position: relative;
  height: 620px;
  display: flex;
  justify-content: start;
}

[dir="rtl"] .details-main .main-image-section {
  justify-content: end;
}
.details-main .main-image {
  width: 100%;
  height: 620px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}
.details-main .main-title {
  font-size: 60px;
  line-height: 50px;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #222;
  text-align: start;
  position: absolute;
  bottom: 240px;
  left: -160px;
  width: 100%;
  transform: rotate(-90deg);
}

[dir="rtl"] .details-main .main-title {
  text-align: end;
  left: auto;
  right: -160px;
}
.secondary-section {
  position: relative;
  min-height: 150px;
}
.secondary-section .top-black-box {
  height: 60px;
  width: 60px;
  background-color: #000;
  position: absolute;
  top: 0;
  left: 135px;
  top: -30px;
}

[dir="rtl"] .secondary-section .top-black-box {
  left: auto;
  right: 135px;
}
.secondary-section .bottom-black-box {
  height: 50px;
  width: 50px;
  background-color: #000;
  position: absolute;
  /* top: 0; */
  left: 135px;
  bottom: 20px;
}

[dir="rtl"] .secondary-section .bottom-black-box {
  left: auto;
  right: 135px;
}
#secondary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 0;
  height: 100%;
  justify-content: center;
  align-items: center;
}

[dir="rtl"] #secondary-list {
  justify-content: center;
}

.secondary-item {
  text-align: right;
  width: 100%;
  max-width: 380px;
  margin-bottom: 0.7rem;
  padding: 0rem 1rem;
  transition: box-shadow 0.2s;
  align-self: flex-end;
  height: 300px;
}

[dir="rtl"] .secondary-item {
  text-align: left;
}
.secondary-item:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
.secondary-item img {
  max-width: 100%;
  margin-bottom: 0.7rem;
  height: 200px;
}
.secondary-item .secondary-title {
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 500;
  color: #444;
}
@media (max-width: 900px) {
  .details-main .main-title {
    text-align: center;
  }
  .secondary-item {
    align-self: center;
  }
}

@media (max-width: 900px) {
  [dir="rtl"] .details-main .main-title {
    text-align: center;
  }
  [dir="rtl"] .secondary-item {
    align-self: center;
  }
}
@media (max-width: 600px) {
  .details-main .main-image {
    max-width: 90vw;
  }
  .secondary-item {
    width: 90vw;
    max-width: 100%;
  }
  .details-main .main-title {
    font-size: 1.3rem;
  }
}
