.header-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.header-text {
  color: var(--gray-text-strong, #2c3059);
  font-family: Bellefair;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  text-transform: uppercase;
}

.header-desc {
  color: var(--gray-text, #6a6d87);
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  max-width: 50%;
}


@media (max-width: 768px) {
  .header-desc {
    max-width: 100%;
  }

  .header-text {
    font-size: 24px;
  }
  .img-carousel-bottom-btn .butn{
    width:358px;
    height:50px;
    padding-top: 12px;
    padding-right: 6px;
    padding-bottom: 12px;
    padding-left: 6px;
  }
}

.aircraft-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  margin: 10px 0px;
  width: 100%;
  /*max-width: 1140px;*/
}

.aircraft-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  align-self: stretch;
}

.aircraft-container .carousel-control-prev-icon {
background-image: url("../../../../content/dam/thaiairways/images/icons/prev-arrow.png") !important;
}

.aircraft-container .carousel-control-next-icon {
background-image: url("../../../../content/dam/thaiairways/images/icons/next-arrow.png") !important;
}


.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
  position: unset !important;
  width: auto !important;
  opacity: unset !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px !important;
  height: 24px !important;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
  width: 100%;
  /*max-width: 1140px;*/
}

.header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}

.carouselwrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  display: flex;
  gap: 1.5%;
  width: 100%;
  /*max-width: 1140px;*/
}

.inflight-wrapper a{
    width: 24%;
}

.card {
  width: 100% ;
  /*max-width: 1140px !important;*/
  /*height: 290px !important;*/
  transition: background 0.3s, border 0.3s;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 1 0 0;
  border-radius: 8px !important;
  background: var(--gray-surface-invert, #fff);
  box-shadow: 0px 16px 32px 0px rgba(16, 24, 40, 0.08);
  border: none !important;
  height: 100%;
}

.card img {
  width: 100%;
  mix-blend-mode: multiply;
  object-fit: fill;
  inline-size: fit-content;
  min-width:100%;
  border-radius: 8px 8px 0px 0px;
}

.card.selected {
  border-radius: 8px;
  border: 1px solid var(--primary-stroke, #9c7dd4);
  background: var(--gray-surface-invert, #fff);
}

.card.selected p {
  color: var(--gray-text-strong, #2c3059);
  text-align: center;
  font-family: "Inter-Bold";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 160%;
  align-self: stretch;
}

.carousel-control {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.carousel-control:disabled {
  opacity: 0.5s;
  cursor: not-allowed;
}

.carousel-indicators {
  display: flex;
  gap: 5px;
  margin-bottom: 0px !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #dfe0eb;
  cursor: pointer;
  margin-right: 10px;
}

.carousel-indicators button.active {
  background: #8062b4;
  width: 20px;
  height: 6px;
  border-top: none;
  border-bottom: none;
  border-radius: 5.2px;
  margin-top: 2px;
}

.card-img-container {
  width: 100%;
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
  display: block;
}

.img-carousel-bottom-btn{
       align-self:center;
}

.img-carousel-bottom-btn .butn {
    width: 320px;
    height: 61px;
    padding-top: 16px;
    padding-right: 8px;
    padding-bottom: 16px;
    padding-left: 8px;
    border-radius: 30px;
    border:unset;
    background: var(--primary-surface-weak, #F5EFFF);
    
}
 
.img-carousel-bottom-btn .butn-txt {
    text-decoration: none;
    font-family: InterBold;
    font-weight: 700;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
    color: #684B9B !important;
}

@media (max-width: 800px) {
  .card {
    flex: 0 0 calc(100% / 1.8);
  }

  .carousel-control-next-icon,
  .carousel-control-prev-icon {
    display: none !important;
  }
}

.card-image {
  width: 100%;
  height: 80%;
  mix-blend-mode: multiply;
}

.inflight-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 0 0;
  width: 100%;
  /*max-width: 1140px;*/
}

.inflight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 0;
  border-radius: 8px;
  background: var(--gray-surface-invert, #fff);

  /* Shadow/L */
  box-shadow: 0px 16px 32px 0px rgba(16, 24, 40, 0.08);
}

.inflight-card-img {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  background: var(--Default-Blue-10, #edf5ff);
}

.inflight-card-content {
  display: flex;
  padding: 14px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  align-self: stretch;
  height: 100%;
  max-height: 100%;
}

.inflight-card-header {
  overflow: hidden;
  color: var(--gray-text-strong, #2c3059);
  text-overflow: ellipsis;

  font-family: "Inter-Bold";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

.inflight-card-desc {
  overflow: hidden;
  color: var(--gray-text, #6a6d87);
  text-overflow: ellipsis;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  text-align: left;
}
.carousel-hide {
    display: block;
}


@media (max-width: 800px) {
    .inflight-wrapper a{
        width: 300px;
    }
    .carousel-slide{
        /*overflow:auto;*/
        width:auto;
    }
}


@media (min-width: 769px) {
  #slider {
    display: none !important;
  }

  .charter-flight-container {
   overflow: hidden !important;
  }

  .carousel-container {
    overflow: unset;
    width: 100%;
    /*max-width: 1140px;*/
  }
.carousel-hide {
display: none;
}
}

@media (min-width: 769px) {
.mice-indicators-hide{
  display: none !important;
}

    #IFdisplay {
		display:none !important;
    }

    .charter-flight #IFdisplay {
		display:flex !important;
	}
}

/* September Template */
.grid-1-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.grid-2-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-3-cards > a, 
.grid-3-cards > div {
    width: 100% !important;
}

.grid-1-cards > a .card img,
.grid-2-cards > a .card img,
.grid-3-cards > a .card img, 
.grid-1-cards > div .card img,
.grid-2-cards > div .card img,
.grid-3-cards > div .card img{
    width: 100%;
    object-fit: fill;
    min-width: 100%;
    border-radius: 8px 8px 0px 0px;

    background-size: contain !important;
    aspect-ratio: 3 / 2;
}

@media (max-width: 768px) {
  .grid-1-cards, .grid-2-cards, .grid-3-cards {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }
}

/* RKTF Template */
@media (max-width: 787px) {
    .carousel-slide.RKTF-card-list {
        overflow: auto; 
        width: 100%;
        flex-direction: column;
        gap: 16px;
    }

    .inflight-wrapper .RKTF-card-list a {
        width: 100% !important;
    }

    .inflight-wrapper .RKTF-card-list .inflight-card-img img {
        min-height: max-content;
    }

	.inflight-wrapper .RKTF-card-list .inflight-card-content {
        padding: 24px;
    }
}


/* Ground Services */ 
.imagetitlewithcarousel#ground-services #carousel > div {
    width: calc(100% / 4.5);
    aspect-ratio: 1 / 1;
}

.imagetitlewithcarousel#ground-services .carousel-slide {
    display: flex;
    gap: 1%;
    width: auto;
}

.imagetitlewithcarousel#ground-services .aircraft-container .carousel-indicators button {
    width: 6px;
    height: 6px;
    border-radius: 5.2px;
    opacity: 50%;
    padding: 0;
    border: none;
    background: #dfe0eb;
    cursor: pointer;
    margin-right: 4px;
}

.imagetitlewithcarousel#ground-services .aircraft-container .carousel-indicators button.active {
  background: #8062b4;
  width: 20px;
  height: 6px;
  opacity: 100%;
  border-top: none;
  border-bottom: none;
  border-radius: 5.2px;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .imagetitlewithcarousel#ground-services #carousel > div {
    width: calc((100% - 3.0%) / 3);
    aspect-ratio: 1 / 1;
  }

  .imagetitlewithcarousel#ground-services .carousel-slide {
    display: flex;
    gap: 1.5%;
    width: 100%;
  }

  .imagetitlewithcarousel#ground-services #carousel {
	overflow: hidden;
  }
}