@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Bai Jamjuree" !important;
}

button {
  box-shadow: none;
  border: none;
}
button:hover,
a:hover {
  cursor: pointer;
}
a{
  color: var(--primary-color2);
}

/* title section */

.wrap-title-section {
  padding: 16px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.line-title-section {
  height: 4px;
  width: 100px;
  background-color: #eba642;
}
.title-section {
  font-size: 28px;
  font-weight: 600;
  text-transform: none;
  color: #3f3e3e;
}

/* Main */
#main {
  /* background: linear-gradient(90deg,#182f56 .39%,#1372b0)!important; */
  background: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
}
#content-main {
  padding: 24px 0;
  /* width: 60%;
  max-width: 990px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Banner Slider */
#banner {
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 24px;
}

#banner img {
  border-radius: 24px;
  width: 100%;
}

/* INTRODUCE */

#content-intro {
  display: flex;
  justify-content: center;
  align-items: center;
  /* flex-direction: column; */
  /* text-align: center; */
  color: #0059b3;
  gap: 12px;
  line-height: 200%;
  padding: 16px 0;
}
#content-intro p {
  width: 90%;
  text-align: justify;
}

#content-intro .left-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

#content-intro .right-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-self: flex-start;
}

section#wrapper #loading-text {
  background: var(--gradient-color1);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.wrap-detail-intro {
  flex: 1;
  display: flex;
  gap: .5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.wrap-stats-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-direction: column;
}

.stat-blocks .column {
  display: flex;
}

.total-contribution-content {
  width: 70%;
  margin: .8rem auto !important;
}

.stat-blocks .column, .total-contribution .column, .total-contribution-content .column {
  padding: 0.25rem;
}

.stat-blocks .column .stat-block {
  width: 100%
}

.stat-block {
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #FCAF17;
  color: #0059D3;
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-size: 16px;
  line-height: 150%;
}

.stat-block .stat {
  color: var(--secondary-color2);
  font-weight: bold;
  font-size: 18px;
}

.stat-block .info {
  color: #352208;
}

/* Slider  album*/

#image-slide {
  width: 100%;
  margin: 1rem 0;
}

#sponsor {
  width: 100%;
  margin: 1rem 0;
}

#image-slide .slider-wrap {
  width: 100%;
}

#image-slide .slider-row {
  margin: 0 auto;
  position: relative;
}
.slide-image img {
  position: relative;
}
.slide-image .text {
  position: absolute;
  z-index: 100;
  top: 1;
}
.slide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: flex !important;
  justify-content: center;
  margin: 0 0.5rem;
}

.slide-image img {
  width: 270px !important;
  height: 150px;
  border-radius: 12px;
}

#sponsor .sponsor__block .slide-image { 
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: flex;
  justify-content: center;  
  cursor: pointer;
}

#sponsor .sponsor__block img {
  width: 150px;
  height: auto;
  border-radius: 4px;
}

.slider {
  position: relative;
}

.prev {
  display: block;
  color: #333;
  position: absolute;
  top: 38%;
  left: 0;
  font-size: 1.5em;
  :hover {
    cursor: pointer;
    transform: translateX(-4px);
    transition: all 0.3s ease-in-out;
  }
}
.next {
  display: block;
  color: #333;
  position: absolute;
  top: 38%;
  right: 0;
  font-size: 1.5em;
  :hover {
    cursor: pointer;
    transform: translateX(4px);
    transition: all 0.3s ease-in-out;
  }
}

.slick-dots li {
  display: inline-block;
  margin-left: 4px;
  margin-right: 4px;
}
.slick-dots li.slick-active button {
  background-color: black;
}
.slick-dots li button {
  font: 0/0 a;
  text-shadow: none;
  color: transparent;
  background-color: #999;
  border: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.slick-dots li :hover {
  background-color: black;
}

/* search bib */
#search-pictures {
  padding: 10px 0;
}
#btnSearch {
  display: none;
  background-color: var(--primary-color2);
  border-radius: 8px;
  padding: 12px 24px;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.8rem;
}
#btnSearch:hover {
  font-size: 0.9rem;
}
#btnRegister {
  background-color: var(--secondary-color);
  border-radius: 8px;
  padding: 12px 24px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  /* animation: 2s infinite shake; */
  box-shadow: #e1cbaa -5px 5px;
}
#btnRegister:hover {
  animation: 2s infinite shake;
}

#strava-cta {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  /* width: 90px; */
  cursor: pointer;
}

/* #strava-cta img {
  max-width: 40px;
} */

#strava-cta .close-icon {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #000000;
  color: #fff;
  border-radius: 9999px;
  width: 20px;
  height: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.talk-bubble {
	margin: 14px;
  display: inline-block;
  position: relative;
	min-width: 150px;
	height: auto;
	background-color: var(--primary-color2);
  border-radius: 30px;
  -webkit-border-radius: 30px;
	-moz-border-radius: 30px;
}
/* Right triangle placed top left flush. */
.tri-right.btn-left:after {
  content: ' ';
  position: absolute;
  width: 0;
  height: 0;
  left: 2px;
  right: auto;
  top: auto;
  bottom: -10px;
  border: 14px solid;
  border-color: transparent transparent transparent var(--primary-color2);
}

.talktext {
  padding: .5em;
  text-align: left;
  line-height: 1.5em;
  color: #fff;
  font-weight: 600;
}

.teaser-video-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 24px 0; */
}

.teaser-video {
  position: relative;
  width: 90%;
  /* padding-bottom: 56.25%; */
  padding-bottom: 400px;
  height: 0;
}

.teaser-video iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 640px;
  height: 100%;
  transform: translate(-50%, 0);
}

.total-contribution {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.total-contribution .stat-blocks {
  display: flex;
  gap: 0.5rem;
}

.total-contribution .stat-blocks .stat-block {
  width: 100%;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}


/* Accordion */
.wrap-accordion{
  margin: 8px 0;
  width: 100%;

}
.accordion {
  border-radius:8px    ;
  background-color: #fff;
  /* color: #444; */
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  /* font-size: 1.2rem; */
  transition: 0.4s;
  font-weight: 600;
}

.accordion-active, .accordion:hover {
  color: var(--primary-color1);
}

.accordion-panel {
  padding: 12px 18px;
  display: none;
  background-color: #edf6ff;
  overflow: hidden;
    border-radius: 0 0 8px 8px ;
}
.accordion:after {
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  font-size: 13px;
  color: #777;
  float: right;
  margin-left: 5px;
}

.accordion-active:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}

.title-2{
  font-size: 30px;
  font-weight: 600;
  text-transform: none;
  color: var(--secondary-color);
}
.wrap-t{
  padding: 8px 24px !important;
}
.wrap-t2{
  /* padding: 4px 32px !important; */
  padding: 0 14px;
}
ul.wrap-t {
  padding: 0 24px;
}
.wrap-t li{
  list-style-type:circle;
}
.wrap-t2 li{
  list-style-type:circle;
}
/* Accordition */
.title-1 {
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  color: var(--primary-color2);
}

/* News + support */
#new, #support{
  display: flex;
  flex-direction: column;
}

.wrap-card-new{
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  max-width: 350px;
  border-radius: 8px;
  
}
.wrap-card-new:hover{
  background-color: #eba642;
  color: #fff;
}
.wrap-card-new img{
  width: auto;
  max-width: 100%;  
  border-radius: 8px;
  height: 149px;
}
.wrap-card-new h1{
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* white-space: pre-wrap;  */
}
.seeall{
  font-weight: 600;
  padding: 0 24px;
}
.seeall:hover{
 color: var(--primary-color2);
}
.seeall::after {
  content: "\f152";
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  font-size: 1.2em;
  line-height: 40px;
  color: var(--primary-color2);
  margin-left: 10px;
}

.gift-video {
  width: 100%;
  position: relative;
  padding-bottom: 400px;
  height: 0;
}

.gift-video iframe {
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  width: 640px;
  height: 100%;
  transform: translate(-50%, 0);
}

.activity-row {
  display: flex;
  gap: .5rem;
  flex-direction: column;
}

.promo__block {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.promo__block .promo__block__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color2);
}

.promo__block img {
  width: 180px;
  border-radius: 8px;
}

.medal-box .home-medal {
  max-width: 175px;
}

@media screen and (max-width: 1024px) {
  .stat-block .stat {
    font-size: 16px;
  }

  .teaser-video-wrap {
    justify-content: flex-start;
  }

  .teaser-video, .gift-video {
    padding-bottom: 56.25%;
  }

  .teaser-video iframe, .gift-video iframe {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  /* For mobile phones: */
  #content-intro {
    flex-direction: column;
  }

  .wrap-card-new {
    max-width: unset;
  }

  iframe {
    height: 200px;
    width: 100%;
  }

  .left-content h1 {
    text-align: center;
  }

  .footer p {
    font-size: 12px;
  }

  .list-news {
    flex-direction: column;
  }
  
  .teaser-video, .gift-video {
    padding-bottom: 56.25%; 
  }
  .teaser-video iframe, .gift-video iframe {
    width: 100%;
  }
}