.container-section {
  width: 100%;
  height: auto;
  padding: 24px 16px 56px 16px;
}

.title {
  color: var(--gray-text-stong, #2c3059);

  /* Mobile/Display-2 */
  font-family: "Bellefair";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 36px */
  text-transform: uppercase;
}

.earnContent {
  font-family: "Inter";
  font-size: 16px;
  font-weight: 400;
  line-height: 25.6px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: var(--gray-text, #6a6d87);
}

.cms-card-container {
  width: 100%;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}
.redirection-button {
  color: #684b9b;
  display: flex;
  gap: 10px;
  align-items: center;
}

.redirection-button:hover {
  color: #684b9b;
}

.cms-card-container .card {
  border: none !important;
  box-shadow: 0px 8px 16px 0px #1018281a;
  aspect-ratio: 16 / 9;
}

.cms-card-container .card .card-headtitle,
.cms-card-container .card .card-overlay-title {
  color: var(--gray-text-invert, #fff);

  font-family: "Bellefair";
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 33px;
  text-transform: uppercase;
}

.cms-card-container .card .img-gradient {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.6) 70%
  );
}

.cms-card-container .card .img-gradient::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.6) 100%
  ) !important;
}

/* Medium devices (tablets, 768px and up) */

@media (min-width: 768px) {
  .container-section {
    width: 100%;
    height: auto;
    padding: 55px 150px 80px 150px;
  }

  .link {
    margin-top: 20px;
    padding-top: 20px;
  }

  .title {
    color: var(--gray-text-stong, #2c3059);

    /* Desktop/Display-1 */
    font-family: "Bellefair";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 54px;
    text-transform: uppercase;
  }

  .cms-card-container {
    padding-top: 32px;
    gap: 24px;
  }

  .cms-card-container {
    width: 100%;
    padding-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .cms-card-container .card {
    aspect-ratio: 1 / 1;
  }

  .cms-card-container .card .card-headtitle,
  .cms-card-container .card .card-overlay-title {
    color: var(--gray-text-invert, #fff);

    font-family: "Bellefair";
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 33px;
    text-transform: uppercase;
  }

  .img-gradient {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.6) 70%
    );
  }
}

/* Card */
.cms-card-container .card {
  width: 100%;
  position: relative;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: end;
  text-align: left;
}

.cms-card-container .card .cardimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.3s ease-in-out;
  border-radius: 0px;
  /*filter: brightness(0.5);*/
}

/* .card:hover .card-img {
    transform: scale(1.1);
  } */

.cms-card-container .card .card-img-overlay {
  background: radial-gradient(
    213.1% 213.1% at 54.75% 39.29%,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  backdrop-filter: blur(41.61px);
  box-shadow: 3.328px 3.328px 12.482px 0px rgba(0, 0, 0, 0.05);
  margin-top: auto;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 0px;
}

.cms-card-container .card:hover .card-img-overlay {
  opacity: 1;
  border-radius: 0px;
}

.cms-card-container .card .card-headtitle {
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 12px 16px;
}

.cms-card-container .card:hover .card-headtitle {
  display: none;
}

.cms-card-container .card .card-overlay-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cms-card-container .card .card-overlay-text {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  align-self: stretch;
  opacity: 1;
  /* text-overflow: ellipsis;
      white-space: nowrap; */
  /* overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; */

  color: var(--gray-text-invert, #fff);

  /* Body/Body — Regular */
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}

.arrowImg {
  width: 24px;
  height: 24px;
}

.cms-card-container .card:hover .card-headtitle.not-overlay {
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 12px 16px;
}

.root {
  padding-left: unset !important;
  padding-right: unset !important;
}

.container {
  padding-left: 0 !important;
}

.cardWidth {
  width: 364px !important;
}

/* Ground Services Slider */
.moreService__carousel-container.cms-card-container {
  grid-template-columns: unset;
}

.moreService__carousel-container.cms-card-container .carousel-track {
  display: grid;
  grid-template-columns: unset;
  grid-auto-flow: column;
  grid-auto-columns: 33%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem;
}

.moreService__carousel-container.cms-card-container .carousel-track .card {
  scroll-snap-align: start;
}

.moreService__carousel-container.cms-card-container
  .carousel-track::-webkit-scrollbar {
  display: none;
}

.moreService__carousel-container .carousel-btn.prev {
  width: 24px;
  height: 24px;
  border: none;
  background-color: unset;
  background-image: url("../../../../content/dam/thaiairways/images/icons/prev-arrow.png") !important;
}

.moreService__carousel-container .carousel-btn.next {
  width: 24px;
  height: 24px;
  border: none;
  background-color: unset;
  background-image: url("../../../../content/dam/thaiairways/images/icons/next-arrow.png") !important;
}

.moreService__carousel-container .carousel-btn.prev:disabled,
.moreService__carousel-container .carousel-btn.next:disabled {
  opacity: 0.5;
  /*cursor: not-allowed;*/
}

@media (max-width: 767px) {
  .moreService__carousel-container.cms-card-container .carousel-track {
    display: grid;
    grid-template-columns: unset;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .moreService__carousel-container .carousel-track {
    grid-auto-columns: 100%; /* 1 per slide mobile */
  }
}

.moreService__carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.card-headtitle,
.card-overlay-title {
  text-align: start;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / 3); /* 3 per slide desktop */
  gap: 1rem;
  scroll-behavior: smooth;
}

.card {
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

/* Indicators */
.moreService__carousel-controls-and-indicators {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  border: none;
}

.moreService__carousel-indicators {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.moreService__carousel-indicators button {
  width: 6px;
  height: 6px;
  border-radius: 5.2px;
  opacity: 50%;
  padding: 0;
  border: none;
  background: #dfe0eb;
  cursor: pointer;
}

.moreService__carousel-indicators button.active {
  background: #684b9b;
  width: 20px;
  height: 6px;
  opacity: 100%;
  border-top: none;
  border-bottom: none;
  border-radius: 5.2px;
}

/* card alignment */
.groundServices__container-section {
  padding: 24px 16px;
}

.groundServices__link {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 16px;
}

.groundServices__link .title {
  margin: 0;
}

.groundServices__link button {
  padding: 0;
}

@media (min-width: 768px) {
  .groundServices__container-section {
    padding: 40px 0px;
  }

  .groundServices__link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
}

.card.image-only-card div,
.card.image-only-card .cardimg {
  width: auto;
  height: 100%;
  padding: 10px;
  text-align: center;
}

/* Gallery */

.gallery .moreService__carousel-container.cms-card-container .carousel-track {
	grid-auto-columns: 25%;
}

.gallery .card div {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.gallery .moreService__carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;

  .gallery .carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% / 4); /* 4 per slides desktop */
    gap: 1rem;
    scroll-behavior: smooth;
  }

  @media (max-width: 768px) {
    .gallery .carousel-track {
      grid-auto-columns: 100%; /* 1 per slide mobile */
    }
  }

  .gallery .card {
    border: none;
    border-radius: 0px;
  }

  .gallery .card .cardimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: transform 0.3s ease-in-out;
    border-radius: 8px;
    /*filter: brightness(0.5);*/
  }
}

.gallery .gallery-img {
  cursor: pointer;
  max-width: 200px;
}

.gallery .card img {
  min-height: 235px;
  /*
      min-height: auto;
      */
}

.gallery .more-container {
  padding: 24px 0px 40px 0px;

  display: flex;
  justify-content: center;
}

.gallery .more-button {
  border: none;
  width: auto;
  height: 48px;

  display: flex;
  flex-direction: row;
  padding: 8px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;

  color: var(--primary-text, #684b9b);
  text-align: center;

  /* Body1/Body 1 — Bold */
  font-family: "InterBold";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 160%; /* 25.6px */

  border-radius: 30px;
  background: var(--primary-surface-weak, #f5efff);

  /* Shadow/xs */
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.carousel-modal-image {
  width: 100%;
  height: auto;
}
