@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@1,100&family=Noto+Sans+Thai:wght@100;200;300;400;500;600;700;800;900&family=Poppins:ital,wght@0,300;0,500;0,600;1,500;1,900&family=Prompt:ital,wght@0,300;0,400;1,900&display=swap');
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --main-color:#008148;
  --secoud-color: #1e3932;
  --sansuisha-color: #5db050;
}

section{
  padding: 50px 10%;
  display: grid;
}
*::selection{
  color: #fff;
  background: var(--main-color);
}
img{
  width: 100%;
  border-radius: 10px;
}
header{
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 4px 41px rgb(14 55 54 / 14%);
  padding: 15px 10%;
  transition: 0.2s;
}

.hidden{
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-100%);
  transition: all 1s;
}

.show{
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

body {
  font-family: 'Noto Sans Thai', sans-serif;
  background: #fff;
  color: #fff;
  overflow-x: hidden;
  padding-bottom: 50px;

}

/*NAV BAR 
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.logo{
  display: flex;
  align-items: center;
}
.logo img{
  width: 150px;
}
.navbar{
  display: flex;
}
.navbar a{
  font-size: 1rem;
  padding: 11px 20px;
  color: var(--secoud-color);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}
.navbar a:hover{
  color: var(--main-color);
}

.navbar img{
  width: 25px;
}

.navbar .lang{
  display: flex;
}

.navbar .lang li{
  list-style-type: none
}
#menu-icon{
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  display: none;
}


/* about section
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.about{
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  gap: 1rem;
  margin-top: 3rem;
  text-align: center;
}
.heading{
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}
.heading span{
  font-size: 1rem;
  font-weight: 600;
  color: var(--secoud-color);
}
.heading h1{
  color: var(--main-color);
  text-align: center;
  font-size: 2rem;
}

.container{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.container p{
  color: var(--secoud-color);
}

.photo{
  flex: 1 1 21rem;
  border-radius: 10%;
}

.history{
  flex: 1 1 21rem;
  transition-delay: 300ms ;
}
.history h2{
  font-size: 1.2rem;
  color: var(--secoud-color);
}
.history p{
  margin: 0.5rem 0 1rem;
  text-align: justify;
  color: var(--secoud-color);
}


/* INTRO SECTION
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.intro {
  background: #fff;
  padding: 0px 0;
  color: var(--secoud-color);
}

.intro .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 2.5rem;

}


/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul {
  background: #fff;
  padding: 50px 0;
}

.timeline ul li {
  list-style-type: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  padding-top: 50px;
  background: var(--secoud-color);
}

.timeline ul li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: inherit;
  z-index: 1;
}

.timeline ul li div {
  position: relative;
  bottom: 0;
  width: 400px;
  padding: 15px;
  background: var(--main-color);
  border-radius: 7px;
}

.timeline ul li div::before {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ul li:nth-child(odd) div {
  left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
  left: -15px;
  border-width: 8px 16px 8px 0;
  border-color: transparent var(--main-color) transparent transparent;
}

.timeline ul li:nth-child(even) div {
  left: -439px;
}

.timeline ul li:nth-child(even) div::before {
  right: -15px;
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent var(--main-color);;
}

time {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}


/* EFFECTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul li::after {
  transition: background 0.5s ease-in-out;
}

.timeline ul li.in-view::after {
  background: var(--main-color);;
}

.timeline ul li div {
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.timeline ul li:nth-child(odd) div {
  transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(even) div {
  transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
  transform: none;
  visibility: visible;
  opacity: 1;
}

/*policy*/
.policy h3{
  color: var(--secoud-color);
  text-align: center;
  margin-top: 3%;
}
.policy h4{
  color: var(--secoud-color);
  margin-bottom: 1%;
}
/* philosophy */
.philosophy .image{
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5%;
}
.philosophy .image img{
  width: 700px;

}
.philosophy .row h2{
  color: var(--sansuisha-color);

}
.philosophy .row h3{
  color: var(--secoud-color);
  text-align: center;
}
.philosophy .row .column {
  width: 100%;
  padding: 10px;
}
.philosophy .value{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5%;

}
.philosophy .value .detail{
  display: block;
  margin-left: auto;
  margin-right: auto;
  
}
.philosophy .value .detail img{
  width: 80px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.philosophy .value .detail h3{
  margin-top: 20px;
  text-align: center;
}

/* Clear floats after the columns */
.philosophy .row:after {
  content: "";
  display: table;
  clear: both;
}
/* VISION */
.vision .img img{
  width: 150px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3%;
  margin-bottom: 3%;
}

.vision h3{
  color: var(--secoud-color);
}

/* Mission */
.mission .img img{
  width: 150px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3%;
  margin-bottom: 3%;
}

.mission h3{
  color: var(--secoud-color);
}

/* value */

.value .img{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5%;
}
.value .img img{
  width: 150px;
}

.value .img h3{
  color: var(--secoud-color);
}

/* Cer */
.certificate .img{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5%;
}

.certificate .img img{
  width: 500px;
}

/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media screen and (max-width: 900px) {
  .timeline ul li div {
    width: 250px;
  }
  .timeline ul li:nth-child(even) div {
    left: -289px;
    /*250+45-6*/
  }
  .value .img img{
    width: 70px;
  }

  .certificate .img img{
    width: 300px;
  }
}

@media screen and (max-width: 600px) {
  .timeline ul li {
    margin-left: 20px;
  }
  .timeline ul li div {
    width: calc(100vw - 91px);
  }
  .timeline ul li:nth-child(even) div {
    left: 45px;
  }
  .timeline ul li:nth-child(even) div::before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent #f45b69 transparent transparent;
  }
  .value .img{
    display: block;
    margin-top: 2%;
    margin-bottom: 2%;
    gap: 1%;
    width: 100%;

  }

  .value .img img{
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .value .img h3{
    margin-top: 2%;
    margin-bottom: 2%;
    font-size: 0.7rem;
    text-align: center;
  }

  .certificate .img{
    display: block;
  }
  .certificate .img img{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}


/* EXTRA/CLIP PATH STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.timeline-clippy ul li::after {
  width: 40px;
  height: 40px;
  border-radius: 0;
}

.timeline-rhombus ul li::after {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.timeline-rhombus ul li div::before {
  bottom: 12px;
}

.timeline-star ul li::after {
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.timeline-heptagon ul li::after {
  clip-path: polygon(
    50% 0%,
    90% 20%,
    100% 60%,
    75% 100%,
    25% 100%,
    0% 60%,
    10% 20%
  );
}

.timeline-infinite ul li::after {
  animation: scaleAnimation 2s infinite;
}

@keyframes scaleAnimation {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.25);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}


/* FOOTER STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
  position: fixed;
  right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
  padding: 5px;
  color: black;
  background: rgba(255, 255, 255, 0.65);
}

.page-footer a {
  display: flex;
  margin-left: 4px;
}

/* Responsitive */
@media (max-width: 1035px){
  header{
    padding: 18px 4%;
  }
}

@media (max-width: 900px){
  header{
    padding: 11px 4%;
  }
  #menu-icon{
    display: initial;
    color: #333;
  }
  header .navbar{
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 4px rgb(14 55 54/14%);
    transition: 0.2s;
    border-top: 2px solid var(--main-color);
    text-align: left;
    color: #333;
  }
  .navbar.active{
    top: 100%;
  }
  .navbar a{
    padding: 1rem ;
    display: block;
    color: var(--second-color);
  }
  .navbar .lang{
    display: flex;
  }
  .policy h4{
    margin-bottom: 2%;
  }
  .philosophy .image img{
    width: 350px;
  }
  .philosophy .value{
    display: block;
  }
}
