.factory-page {
  direction: rtl;
  text-align: right;
  position: relative;
  overflow: visible;
}
.contact-title-outside {
  color: #009ddc;
  font-size: 2.5rem;
  margin-top: 10px;
}
.factory-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-left: -25px;
  margin-left: calc(-80vw / 12 * 1);
  z-index: 50;
}

.factory-main-logo {
  width: 250px;
  height: 250px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 100;
  margin-top: -225px;
  margin-bottom: 150px;
  border: 1px solid #eee;
  overflow: hidden;
}

.factory-main-logo img {
  max-width: 75%;
  height: auto;
  object-fit: contain;
  padding: 0.7rem;
}

.contact-card-blue {
  background: #009ddc;
  color: white;
  border-radius: 0 40px 40px 0;
  padding: 5vh 3vw;
  width: 100%;
  box-shadow: 0px 4px 22px rgb(0 0 0 / 21%);
  position: relative;
  z-index: 10;
  border: 9px solid #ffffff;
  border-left: none;
  font-size: calc(0.5vw + 16px);
  left: -30px;
}

.contact-card-blue h3 {
  font-size: 28px;
  font-weight: 700;
  text-align: right;
  margin-bottom: 25px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
}

.factory-contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.factory-contact-details li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  direction: rtl;
}

.factory-contact-details li i {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.factory-contact-details li a,
.factory-contact-details li span {
  color: white;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-all;
}
.rich-content {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

.rich-content h2 {
  color: #009ddc;
  font-weight: 700;
  margin-bottom: 20px;
}

.factory-meta-info {
  padding-top: 20px;
  font-size: 16px;
}

.map-section-wrapper {
  position: relative;
  margin-top: 100px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 50%,
    #eef9ff 50%,
    #eef9ff 100%
  );
  padding-bottom: 50px;
}

#factory-map {
  height: 600px;
  width: 100%;
  border-radius: 60px;
  border: 12px solid #fff;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(255, 255, 255, 1);
  z-index: 5;
  position: relative;
  overflow: hidden;
  margin-top: 100px;
}

.btn-back-pill {
  background-color: #bcecfd;
  color: #009ddc;
  border: none;
  padding: 10px 60px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 19px;
  font-family: "Segoe UI Bold", "Heebo", sans-serif;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(188, 236, 253, 0.4);
  cursor: pointer;
}

.btn-back-pill:hover {
  background-color: #009ddc;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 157, 220, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
}
.map-section-wrapper {
  position: relative;
  margin-top: 100px;
  padding-bottom: 80px;
  z-index: 1;
  border-top: 2px solid #e8e8e8;
}

.map-section-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-color: #eef9ff;
  z-index: -1;
}

@media (max-width: 991px) {
  .factory-sidebar {
    margin-left: 0;
    margin-top: 60px;
  }

  .contact-card-blue {
    border-radius: 40px;
    border-left: 6px solid #fff;
    max-width: 100%;
    left: auto;
  }

  .factory-main-logo {
    margin-top: -100px;
    width: 160px;
    height: 160px;
  }
}
