@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  button:focus {
    @apply outline-none;
  }
}

body {
  @apply leading-[normal] m-0;
  font-family: "Noto Sans Thai", sans-serif;
}
*,
::before,
::after {
  border-width: 0;
}
a:hover {text-decoration: none; color: inherit;}
.swiper {
  width: auto;
  height: auto;
  /* max-height: 600px; */
}

.swiper-vertical {
  max-height: 600px;
}

.swiper-slide {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  /* font-weight: bold; */
  color: #fff;
}
.news-item { align-self: stretch; }
.mySwiper7 .swiper-slide {
  color: #222;
}

.swiper-slide>.content {
  width: 100%;
  height: 600px;
}

.yt-thumb img {
  width: 100%;
  height: auto;
}
.video h4 {
  margin: 5px 0;
  color: white;
}

.transition-bg {
  transition: background-color 0.5s ease, height 0.5s ease;
}

.swiper-slide:nth-child(1n)>.content {
  background-color: rgb(206, 17, 17);
}

.swiper-slide:nth-child(2n)>.content {
  background-color: rgb(0, 140, 255);
}

.swiper-slide:nth-child(3n)>.content {
  background-color: rgb(10, 184, 111);
}

.swiper-slide:nth-child(4n)>.content {
  background-color: rgb(211, 122, 7);
}

.swiper-slide:nth-child(5n)>.content {
  background-color: rgb(118, 163, 12);
}

.swiper-slide:nth-child(6n)>.content {
  background-color: rgb(180, 10, 47);
}

.swiper-slide:nth-child(7n)>.content {
  background-color: rgb(35, 99, 19);
}

.swiper-slide:nth-child(8n)>.content {
  background-color: rgb(0, 68, 255);
}

.swiper-slide:nth-child(9n)>.content {
  background-color: rgb(218, 12, 218);
}

.swiper-slide:nth-child(10n)>.content {
  background-color: rgb(54, 94, 77);
}

.mySwiper .swiper-pagination-bullet {
  width: 12px;
  height: 10px;
  display: inline-block;
  opacity: 0.2;
  margin: 0 5px;
  border-radius: 20px;
  transition: opacity 0.5s, background-color 0.5s, width 0.5s;
  transition-delay: 0.5s, 0.5s, 0s;
  caret-color: transparent;
}
.mySwiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 100px;
  transition-delay: 0s;
  /* background-color: rgb(255 177 26 / var(--tw-text-opacity, 1)); */
  background-color: #20262e;
}

.mySwiper2 .swiper-pagination-bullet,
.mySwiper3 .swiper-pagination-bullet,
.mySwiper4 .swiper-pagination-bullet,
.mySwiper5 .swiper-pagination-bullet {
  width: 12px;
  height: 10px;
  display: inline-block;
  opacity: 0.2;
  margin: 0 5px;
  border-radius: 20px;
  transition: opacity 0.5s, background-color 0.5s, width 0.5s;
  transition-delay: 0.5s, 0.5s, 0s;
  caret-color: transparent;
}
.mySwiper2 .swiper-pagination-bullet-active,
.mySwiper3 .swiper-pagination-bullet-active,
.mySwiper4 .swiper-pagination-bullet-active {
  opacity: 1;
  width: 100px;
  transition-delay: 0s;
  background-color: rgb(255 177 26 / var(--tw-text-opacity, 1));
}

.mySwiper5 .swiper-pagination-bullet-active {
  opacity: 1;
  width: 100px;
  transition-delay: 0s;
  background-color: white;
}

.mySwiper2 .swiper-slide {
  max-width: 400px!important;
  flex-shrink: 0;
}
.mySwiper2 .swiper-slide>.news-item {
  min-height: 330px;
}

.mySwiper3 .swiper-slide {
  flex-shrink: 0;
}
.mySwiper3 .swiper-slide>.news-item {
  min-height: 330px;
}

.item-bg1 {
  width: 0;
  height: 0;
  position: absolute;
  top: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
  opacity: 0;
  transition: all 0.3s;
  left: -30px;
}
.item-bg1.active {
  left: 0;
  top: 0;
  opacity: 1;
}

.item-bg2 {
  width: 0;
  height: 0;
  position: absolute;
  top: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
  opacity: 0;
  transition: all 0.3s;
  left: -30px;
}
.item-bg2.active {
  left: 0;
  top: 0;
  opacity: 1;
}

.youtube-video {
width: 100%;
height: 0;
padding-bottom: 56.25%;
position: relative;
}
.youtube-video iframe {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
border-radius: 15px;
}
.videos .swiper-slide {
padding: 10px;
text-align: center;
cursor: pointer;
}

.tab-contents {
    position: relative;
    overflow: hidden;
}
.tab-content {
    position: relative;
    width: 100%;
}

/* /service pricing: school tab background (same gradient intent as subscription school tab) */
.subscription-pricing-scope.subpricing-bg-school {
  background: linear-gradient(0deg, rgba(255, 255, 255, 1) 1100px, rgba(255, 255, 255, 0) 0%);
}

