.header-section {
  min-height: 660px;
  background-size: cover;
}

.box-design {
  border: 1.2px solid #d9c0ff;
  box-shadow: 2px 8px 20px rgba(210, 206, 221, 0.3);
  border-radius: 12px;
  flex-direction: column;
  background: white;
  height: 120px;
  width: 120px;
}

#customInput {
  border: 1.2px solid #d9c0ff;
  box-shadow: 2px 8px 20px rgba(210, 206, 221, 0.3);
  border-radius: 8px;
  background: white;
}

@media (min-width: 768px) {
  .box-design,
  #customInput {
    border: 0.8px solid #d9c0ff;
  }
}

@media (max-width: 1240px) {
  #main-header-section {
    max-width: none !important;
  }

  #main_container_section {
    padding-right: 0;
    padding-left: 0;
    max-width: none;
  }

  #main_container_section > .row {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  #sub-header-section {
    padding-top: 8.75rem !important;
  }
}

@media (max-width: 600px) {
  #sub-header-section {
    padding-top: 6.25rem !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.header-section {
  min-height: 660px;
  background-size: cover;
  background-position: right bottom;
}

@media (max-width: 1240px) {
  #main-header-section {
    max-width: none !important;
  }
}

@media (min-width: 1240px) {
  #display_for_mobile {
    display: none;
  }

  .header-section img {
    border-radius: 10px;
  }

  #main_container_section.picture_img,
  #main_container_section.picture_img img {
    min-width: 468px;
  }

  #main_header {
    border-radius: 12px;
  }
}

picture#main_container_section source,
picture#main_container_section img {
  max-height: 660px;
  object-fit: cover;
}

.searchheight {
  height: 56px;
}

.spacing_classes {
  left: 20px;
  top: 16px;
}

[dir="rtl"] .spacing_classes {
  right: 20px;
  left: unset;
}

.spacing_classes_right {
  right: 20px;
  top: 16px;
}

[dir="rtl"] .spacing_classes_right {
  left: 20px;
  right: auto;
}

.custom_gap {
  gap: 96px;
}

.font_awesome_styling {
  font-size: 18px;
}

.padding_start {
  padding-left: 54px;
}

[dir="rtl"] .padding_start {
  padding-right: 54px;
  padding-left: 20px;
}

#dropdown {
  top: 56px;
  max-height: 288px;
  overflow-y: auto;
  border-radius: 8px;
  padding: 24px 48px 12px 32px;
}

#dropdown .li_styling {
  /* padding: 0px 16px; */
  /* height: 34px; */
  font-weight: normal !important;
  cursor: pointer;
}

.device_section {
  gap: 20px;
  column-count: 4;
  flex-wrap: wrap;
}

@media (max-width: 904px) {
  #main_container_section.picture_img {
    order: 1;
  }

  #device_container {
    order: 2;
    text-align: center;
  }
}

@media (max-width: 1239px) {
  picture#main_container_section {
    width: 100%;
  }

  picture#main_container_section source,
  picture#main_container_section img {
    object-fit: cover;
    width: 100%;
  }

  .custom_gap {
    gap: 40px;
  }

  .device_section {
    column-count: 2;
    flex-wrap: wrap;
    padding-top: 24px !important;
    gap: 16px;
  }

  .box-design {
    width: calc(50% - 8px);
  }

  #main_header {
    padding: 32px 20px 48px !important;
  }

  #main_header_class {
    text-align: center;
    padding-bottom: 24px !important;
  }

  .choose_device_text {
    padding-bottom: 24px !important;
    padding-top: 32px !important;
    text-align: center;
  }
}

@media (min-width: 905px) and (max-width: 1024px) {
  #main_container_section.picture_img,
  #main_container_section.picture_img img {
    min-width: 385px;
  }
}

@media (min-width: 1025px) and (max-width: 1239px) {
  #main_container_section.picture_img,
  #main_container_section.picture_img img {
    min-width: 420px;
  }
}

@media (min-width: 1240px) and (max-width: 1439px) {
  .main-container {
    max-width: 1200px;
  }
}

.custom-max-height-img {
  max-height: 48px;
}

.font-weight-medium {
  font-weight: 500 !important;
}

/* Carousel Styles */
.carousel-swiper {
  width: 100%;
  height: 100%;
}

.carousel-swiper .swiper-slide {
  position: relative;
}

.carousel-overlay {
  z-index: 10;
  pointer-events: none;
}

.carousel-overlay > * {
  pointer-events: auto;
}

.carousel-swiper .swiper-pagination {
  bottom: -300px;
  z-index: 15;
  position: absolute;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-bullet.swiper-pagination-bullet-active {
  background-color: var(--bs-primary) !important;
  width: 28px;
  border-radius: 6px;
}

.carousel-swiper .swiper-button-next,
.carousel-swiper .swiper-button-prev {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  transition: all 0.3s ease;
  z-index: 20;
}

.carousel-swiper .swiper-button-next:after,
.carousel-swiper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: 900;
}

.carousel-swiper .swiper-button-next:hover,
.carousel-swiper .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

.carousel-swiper .swiper-button-prev {
  left: 20px;
}

.carousel-swiper .swiper-button-next {
  right: 20px;
}

@media (max-width: 768px) {
  .carousel-swiper .swiper-button-next,
  .carousel-swiper .swiper-button-prev {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .carousel-swiper .swiper-button-next:after,
  .carousel-swiper .swiper-button-prev:after {
    font-size: 14px;
  }

  .carousel-swiper .swiper-button-prev {
    left: 10px;
  }

  .carousel-swiper .swiper-button-next {
    right: 10px;
  }

  .carousel-bullet {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
}

/* Focus state for buttons */
#sub-header-section .btn:focus {
  outline: 1px solid white !important;
  border-radius: 2px !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 2px var(--bs-primary) !important;
  transition: outline-offset 0.2s ease, box-shadow 0.2s ease;
}
