/* Shared homepage/service-page service section styles. */

.service {
  padding: 120px 0 60px;
  background: rgba(245, 245, 245, 1);
}

.service > .inner {
  width: 88%;
  margin: 0 auto;
}

.service > .inner > .section1 {
  display: flex;
  align-items: start;
  gap: 64px;
  justify-content: space-between;
}

.service > .inner > .section1 > .section1-left {
  width: 30%;
  min-width: 0;
}

.service > .inner > .section1 > .section1-right {
  width: 60%;
  min-width: 0;
}

.service > .inner > .section1 .section1-left p {
  color: rgba(0, 0, 0, 1);
  font-family: "Urbanist", "OPPOSans", sans-serif;
  font-weight: 700;
  font-size: 2.125rem;
  line-height: 2.5625rem;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

.service > .inner > .section1 .section1-right p {
  color: rgba(0, 0, 0, 1);
  font-family: "Urbanist", "OPPOSans", sans-serif;
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.9375rem;
  text-align: right;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

.service > .inner > .section2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-top: 70px;
}

.service > .inner > .section2 > .item {
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 1440 / 1464;
  overflow: hidden;
}

.service > .inner > .section2 > .item:nth-child(2) {
  aspect-ratio: 1506 / 1278;
  border-radius: 6px;
}

.service > .inner > .section2 > .item > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service > .inner > .section2 > .item:hover > img {
  transform: scale(1.05);
}

.service > .inner > .section2 > .item .content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  box-sizing: border-box;
  min-width: 0;
  max-height: 100%;
  padding: 30px 28px;
  overflow: hidden;
}
.service > .inner > .section2 > .item:nth-child(1) .content,
.service > .inner > .section2 > .item:nth-child(3) .content {
  gap: 0;
}
.service > .inner > .section2 > .item .content .title p {
  margin: 0;
  color: rgba(255, 255, 255, 1);
  font-family: "Urbanist", "OPPOSans", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 2.375rem;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

.service > .inner > .section2 > .item:nth-child(3) .content .title p {
  text-align: right;
}

.service > .inner > .section2 > .item .content .list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  margin-top: 1rem;
}

.service > .inner > .section2 > .item:nth-child(1) .content .list,
.service > .inner > .section2 > .item:nth-child(3) .content .list {
  margin-top: 10rem;
}

.service > .inner > .section2 > .item:nth-child(2) .content .list {
  margin-top: 5.625rem;
}

@media (min-width: 1280px) {
  .service > .inner > .section2 > .item:nth-child(1),
  .service > .inner > .section2 > .item:nth-child(2),
  .service > .inner > .section2 > .item:nth-child(3) {
    aspect-ratio: auto;
  }

  .service > .inner > .section2 > .item:nth-child(1),
  .service > .inner > .section2 > .item:nth-child(3) {
    min-height: 32rem;
  }

  .service > .inner > .section2 > .item:nth-child(2) {
    min-height: 28rem;
  }
}

.service > .inner > .section2 > .item .content .list .one {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.service > .inner > .section2 > .item .content .list .one svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}

.service > .inner > .section2 > .item .content .list .one .text {
  flex: 1 1 auto;
  min-width: 0;
}

.service > .inner > .section2 > .item .content .list .one .text p {
  color: rgba(255, 255, 255, 1);
  font-family: "Urbanist", "OPPOSans", sans-serif;
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.625rem;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

/* Service cards move from three columns to a spacious tablet layout. */
@media (max-width: 1279.98px) {
  .service {
    padding: 6rem 0 4rem;
  }

  .service > .inner > .section1 {
    gap: clamp(2rem, 5vw, 4rem);
  }

  .service > .inner > .section1 .section1-left p {
    font-size: 2rem;
    line-height: 2.375rem;
  }

  .service > .inner > .section1 .section1-right p {
    font-size: 1.375rem;
    line-height: 1.6875rem;
  }

  .service > .inner > .section2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1rem;
    margin-top: 3.5rem;
  }

  .service > .inner > .section2 > .item,
  .service > .inner > .section2 > .item:nth-child(2) {
    display: flex;
    min-height: clamp(22rem, 45vw, 30rem);
    aspect-ratio: auto;
  }

  .service > .inner > .section2 > .item:nth-child(3) {
    grid-column: 1 / -1;
    min-height: clamp(20rem, 32vw, 24rem);
    aspect-ratio: auto;
  }

  .service > .inner > .section2 > .item .content,
  .service > .inner > .section2 > .item:nth-child(1) .content,
  .service > .inner > .section2 > .item:nth-child(3) .content {
    position: relative;
    inset: auto;
    width: 100%;
    justify-content: flex-end;
    gap: 0;
    max-height: none;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    overflow: visible;
  }

  .service > .inner > .section2 > .item .content .list {
    gap: 0.75rem;
    margin-top: 1.5rem;
    overflow: visible;
  }

  .service > .inner > .section2 > .item:nth-child(1) .content .list,
  .service > .inner > .section2 > .item:nth-child(3) .content .list {
    margin-top: 6rem;
  }

  .service > .inner > .section2 > .item:nth-child(2) .content .list {
    margin-top: 3.75rem;
  }

  .service > .inner > .section2 > .item .content .title p {
    font-size: 1.625rem;
    line-height: 2rem;
  }

  .service > .inner > .section2 > .item .content .list .one .text p {
    font-size: 1.125rem;
    line-height: 1.375rem;
  }
}

@media (max-width: 768px) {
  .service {
    padding: 5rem 0 3.5rem;
  }

  .service > .inner {
    width: 90%;
  }

  .service > .inner > .section1 {
    flex-direction: column;
    gap: 1.25rem;
  }

  .service > .inner > .section1 > .section1-left,
  .service > .inner > .section1 > .section1-right {
    width: 100%;
  }

  .service > .inner > .section1 .section1-left p {
    font-size: 1.75rem;
    line-height: 2.125rem;
  }

  .service > .inner > .section1 .section1-right p {
    font-size: 1.25rem;
    line-height: 1.5625rem;
    text-align: left;
  }

  .service > .inner > .section2 {
    margin-top: 2.5rem;
  }

  .service > .inner > .section2 > .item:nth-child(3) {
    min-height: 20rem;
  }

  .service > .inner > .section2 > .item,
  .service > .inner > .section2 > .item:nth-child(2) {
    min-height: 28rem;
  }

  .service > .inner > .section2 > .item .content .title p {
    font-size: 1.5rem;
    line-height: 1.875rem;
  }

  .service > .inner > .section2 > .item .content .list .one svg {
    flex-basis: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
  }

  .service > .inner > .section2 > .item .content .list .one .text p {
    font-size: 1rem;
    line-height: 1.25rem;
  }

  .service > .inner > .section2 > .item:nth-child(1) .content .list,
  .service > .inner > .section2 > .item:nth-child(3) .content .list {
    margin-top: 4rem;
  }

  .service > .inner > .section2 > .item:nth-child(2) .content .list {
    margin-top: 2.5rem;
  }
}

@media (max-width: 600px) {
  .service {
    padding: 4rem 0 3rem;
  }

  .service > .inner > .section2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .service > .inner > .section2 > .item,
  .service > .inner > .section2 > .item:nth-child(2),
  .service > .inner > .section2 > .item:nth-child(3) {
    grid-column: auto;
    min-height: 28rem;
    aspect-ratio: auto;
  }

  .service > .inner > .section2 > .item .content {
    padding: 1.25rem;
  }

  .service > .inner > .section2 > .item:nth-child(1) .content .list,
  .service > .inner > .section2 > .item:nth-child(3) .content .list {
    margin-top: 2rem;
  }

  .service > .inner > .section2 > .item:nth-child(2) .content .list {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .service {
    padding: 3.5rem 0 2.5rem;
  }

  .service > .inner > .section1 .section1-left p {
    font-size: 1.5rem;
    line-height: 1.875rem;
  }

  .service > .inner > .section1 .section1-right p {
    font-size: 1.125rem;
    line-height: 1.4375rem;
  }

  .service > .inner > .section2 > .item .content {
    gap: 0;
    padding: 1rem;
  }

  .service > .inner > .section2 > .item,
  .service > .inner > .section2 > .item:nth-child(2),
  .service > .inner > .section2 > .item:nth-child(3) {
    min-height: 26rem;
  }

  .service > .inner > .section2 > .item .content .title p {
    font-size: 1.375rem;
    line-height: 1.6875rem;
  }

  .service > .inner > .section2 > .item .content .list {
    gap: 0.625rem;
    margin-top: 1.25rem;
  }

  .service > .inner > .section2 > .item:nth-child(1) .content .list,
  .service > .inner > .section2 > .item:nth-child(3) .content .list,
  .service > .inner > .section2 > .item:nth-child(2) .content .list {
    margin-top: 1.25rem;
  }

  .service > .inner > .section2 > .item .content .list .one {
    gap: 0.5rem;
  }

  .service > .inner > .section2 > .item .content .list .one .text p {
    font-size: 0.9375rem;
    line-height: 1.1875rem;
  }
}
