/* ==========================================================================
   Voldor custom overrides
   ========================================================================== */

/* Service detail sub-sections – tighter, consistent vertical rhythm */
.service-details__subsection {
  margin-top: 35px;
}

.service-details__subsection .service-details__sub-title {
  margin-bottom: 14px;
}

.service-details__subsection .service-details__text {
  margin-bottom: 16px;
}

.service-details__subsection .service-details__list {
  margin-bottom: 16px;
}

/* Sub-section gallery – uniform square thumbnails, no heading */
.subsection-gallery {
  margin-top: 18px;
}

.subsection-gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  background-color: #f2f2f2;
}

.subsection-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.subsection-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.35s ease;
}

.subsection-gallery__item:hover img {
  transform: scale(1.06);
}

.subsection-gallery__item:hover::after {
  background-color: rgba(0, 0, 0, 0.18);
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .subsection-gallery__item {
    height: 0;
    padding-bottom: 100%;
  }
}

/* Certificate gallery – uniform openable thumbnails (Home + Quality pages) */
.certificate-gallery {
  width: 100%;
}

.certificate-gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 3 / 4;
  background-color: #f2f2f2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.certificate-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.certificate-gallery__item:hover img {
  transform: scale(1.05);
}

.certificate-gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: background-color 0.35s ease, opacity 0.35s ease;
}

.certificate-gallery__item:hover .certificate-gallery__zoom {
  background-color: rgba(0, 0, 0, 0.35);
  opacity: 1;
}

@supports not (aspect-ratio: 3 / 4) {
  .certificate-gallery__item {
    height: 0;
    padding-bottom: 133%;
  }
}

/* HSE commitment cards – keep icon circles perfectly round + equal-height cards */
#hse-policy .why-choose-one__feature__item {
  align-items: flex-start;
  height: 100%;
}

#hse-policy .why-choose-one__feature__item__icon {
  flex: 0 0 60px;
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  height: 60px;
  aspect-ratio: 1 / 1;
}

@media (max-width: 575px) {
  #hse-policy .why-choose-one__feature__item__icon {
    align-self: flex-start;
  }
}

/* Home introduction – keep uploaded images contained within the column */
#introduction .about-one__thumb {
  max-width: 100%;
}

#introduction .about-one__thumb__item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Secondary image: smaller, layered over the main image (not overflowing) */
#introduction .about-one__thumb__item--two {
  width: 55%;
  margin-top: -22%;
  margin-left: 10%;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  #introduction .about-one__thumb__item--two {
    width: 60%;
    margin-top: -18%;
    margin-left: 8%;
  }
  #introduction .about-one__thumb__item--two img {
    width: 100%;
  }
}

/* Contact bottom – fix overlap, oval icons, and multi-item grid */
.contact-bottom__inner {
  align-items: stretch;
}

.contact-bottom__inner__left {
  flex: 0 0 226px;
  width: 226px;
  max-width: 226px;
}

.contact-bottom__inner__right {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.contact-bottom__thumb {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  padding: 24px;
}

.contact-bottom__thumb img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
}

.contact-bottom__list {
  align-items: flex-start;
}

.contact-bottom__list__item {
  flex: 0 0 calc(33.333% - 14px);
  width: calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  align-items: flex-start;
}

.contact-bottom__list__item__icon {
  flex: 0 0 50px;
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
}

.contact-bottom__list__item__content {
  min-width: 0;
  flex: 1 1 auto;
}

.contact-bottom__list__item__text {
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
}

@media (max-width: 1199px) {
  .contact-bottom__list__item {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 991px) {
  .contact-bottom__inner__left {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .contact-bottom__thumb {
    min-height: 180px;
  }
}

@media (max-width: 575px) {
  .contact-bottom__list__item {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .contact-bottom__inner__right__bottom {
    padding: 36px 20px;
  }
}

/* Hero slider – video backgrounds */
.hero-one__item__bg--video {
  background-image: none;
  overflow: hidden;
}

.hero-one__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-one__item__bg--video::before {
  z-index: 1;
}
