.about-us {
    background-color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.company {
    padding: 100px 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    width: 100%;
    max-width: 1124px;
}

.company-text {
    width: 40%;
    text-align: justify;
}

.section-head {
    background-color: rgb(255, 217, 0);
    padding: 2px 8px;
    white-space: nowrap;
    color: white;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
}

.company-picture {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 56%;
  position: relative;
  height: 400px;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
}

.company-picture > div {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.small-image-slider {
  width: 15%;
  height: 80%;
  position: relative;
  overflow: hidden;
  z-index: 1;
  flex-grow: 0;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
  /* Optional: use for debugging only */
  /* border: 2px solid red; */
  border-right: none;
}

.image-slider {
  width: 85%;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 2;
  flex-grow: 0;
}

/* Base style for small slider images */
.small-slider-img {
  display: block;
  position: absolute;
  top: 0;
  left: 0; /* Default: aligned inside parent */
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 1s ease-in-out;
  opacity: 0;
  z-index: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Main visible image */
.small-slider-img.main {
  left: 0;
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

/* Preview image sliding in */
.small-slider-img.preview {
  left: 100%;
  opacity: 0.6;
  z-index: 2;
  transform: scale(0.9);
}

/* Main image styles */
.slider-img {
  display: block;
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 1s ease-in-out;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.slider-img.main {
  left: 0;
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

.slider-img.preview {
  left: -100%;
  opacity: 0.6;
  z-index: 1;
  transform: scale(0.85);
}


.section-text {
    margin-top: 20px;
}

.company-title {
    font-size: 20px;
    color: blue;
    font-weight: 600;
}

.company-description {
    max-width: 88%;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 400;
    text-align: justify;
    line-height: 1.6em;
}

#contact-cta{
    margin-top: 32px;
    padding: 12px;
    border: none;
    border-radius: 2px;
    color: white;
    background-color: blue;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.15s;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

#contact-cta:hover {
    background-color: rgba(0, 0, 255, 0.8);
}

@media screen and (max-width: 600px) {
    .company{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 10px;
    }
    .company-picture, .company-text{
      width: 90vw;
    }
    .company-picture{
      padding-top: 20px;
    }
    .company-description{
      max-width: 90vw;
    }
}