:root{
  --black: #444;
  --white: #fff;
  --bg-nav-color: linear-gradient(to bottom right, #5b86e5, #36d1dc);
  --bg-color: linear-gradient(to top right, #4ea2cf, #89d5dd);
  --nav-bg-color: #f2f8fa;
  --green: #4aaba4;
  --orange: #f2af82;
  --pink: #f490da;
  --blue: #83ccd9;
  --dark-blue: #1d4a72;
  --light-blue: #c0d7df;
  --border: .1rem solid rgba(0,0,0,.2);
  --box-shadow: 0px 15px 10px -15px;;
}

@font-face {
  font-family: "TH-Chara";
  src: url("../assets/TH-Chara/TH-Chara\ ver\ 2.00.otf") format("woff2"),
  url("../../static/assets/TH-Chara/TH-Chara\ ver\ 2.00.ttf") format("woff2");
}

*{
  font-family: 'TH-Chara';
  margin:0; padding:0;
  box-sizing: border-box;
  outline: none; border:none;
  text-decoration: none;
}

html{
  font-size: 62%;
  overflow-x: hidden;
}

body{
  padding-left: 25rem;
}

section{
  min-height: 100vh;
  padding: 2rem;
}

/* navbar */
.nav .header{
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  background: var(--bg-nav-color);
  width: 25rem;
  border-right: var(--border);
  height: 100%;
  text-align: center;
}

.nav .header a{
  text-decoration: none;
}

.nav .header .user h3{
  color: var(--white);
  font-size: 3.3rem;
  font-weight: bolder;
  line-height: 3.8rem;
  padding: 1.7rem;
}


.nav .header .navbar .txt{
  display: flex;
  margin: 1rem 0;
  padding: 1rem;
  width: 32rem;
  height: 9rem;
  border-radius: .8rem;
  font-size: 3rem;
  color: var(--black);
  background: var(--nav-bg-color);
  font-weight: bolder;
  line-height: 3rem;
  text-align: center;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0px 15px 10px -15px;

}

.nav .header .navbar a:hover{
  box-shadow: var(--box-shadow-inset);
  color: var(--white);
  text-decoration: none;
  background: var(--blue);
}

.nav .header .icons{
  padding: 5rem;
}

.nav .header .icons i{
  position: relative;
  font-size: 3rem;
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
  filter: drop-shadow(2px 3px 1px rgb(0 0 0 / 0.4));
}

.nav .header .icons i:hover{
  color: var(--dark-blue);
}

/*=========strategies==========*/
.strategies .heading{
  text-align: center;
  padding: 1rem;
  background: var(--dark-blue);
  color: var(--white);
}

.strategies .heading h1{
  font-size: 3rem;
  font-weight: 600;
  line-height: 3rem;
 
}

.strategies .row{
  padding: 2rem 1rem;
}

.strategies .first.row .flowchart-heading{
  background: var(--green);
  
}

.strategies .second.row .flowchart-heading{
  background: var(--orange);
}

.strategies .third.row .flowchart-heading{
  background: var(--pink);
}

.strategies .flowchart-heading{
  width: 100%;
  height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
}

.strategies .flowchart-heading h3{
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
}

.strategies .flowchart-heading p{
  font-size: 2rem;
  line-height: 2rem;
  font-weight: 600;
  color: var(--dark-blue);
}

/* เส้นแนวนอนริมขวาล่าง*/
.strategies .flowchart-heading::before{ 
  content: '';
  display: block;
  position: absolute;
  border-style: solid;
  width: 97%;
  top: 50%;
  z-index: -1;
}

/* เส้นแนวตั้งระหว่างหัวข้อ*/
.strategies .first.row .flowchart-heading::after,
.strategies .second.row .flowchart-heading::after{
  content: '';
  display: block;
  position: absolute;
  border-style: solid;
  width: 1px;
  height: 80%;
  right: 50%;
  z-index: -1;
}
/* หัวลูกศรบน */
.strategies .second.row .col-md-4::before{
  content: '';
  width: 0;
  height: 0;
  border-top: 10px solid var(--black);
  border-left: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid transparent;
  position: absolute;
  right: 50%;
  margin-right: -8px;
  margin-top: -8px;
}

/* หัวลูกศรล่าง*/
.strategies .third.row .col-md-4::before{
  content: '';
  width: 0;
  height: 0;
  border-top: 10px solid var(--black);
  border-left: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid transparent;
  position: absolute;
  right: 50%;
  margin-right: -8px;
  margin-top: -8px;
}

/* เส้นแนวตั้งริมขวา respon ไม่ได้ */
.strategies .big-row::before{
  content: '';
  display: block;
  border-style: solid;
  position: fixed;
  height: 48%;
  right: 3rem;
  top: 28%; 
}

/* ลูกศรริมขวา */
.strategies .first.row .flowchart-content::after{
  content: '';
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-left: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--black);
  position: absolute;
  right: 3rem;
  top: 50%;
  margin-top: -10px;
}

/* เส้นแนวนอนหัวข้อริวขวา */
.strategies .third.row .flowchart-content::after{
  content: '';
  width: 25px;
  height: 1px;
  position: absolute;
  border-style: solid;
  right: 15px;
  top: 50%;
}
/* เส้นแนวนอนริมขวาบน */
.strategies .first.row .col-md-8::after{
  content: '';
  width: 15px;
  height: 1px;
  position: absolute;
  border-style: solid;
  top: 50%;
  right: 15px;
  margin-top: -1px;
}

.strategies .flowchart-content{
  padding: .5rem;
  border: var(--border);
  border-radius: 1rem;
  border-width: .3rem;
  display: flex;
  justify-content: space-between;
  margin-right: 2.5rem;
}

.strategies .first.row .flowchart-content{
  border-color: var(--green);
}

.strategies .second.row .flowchart-content{
  border-color: var(--orange);
}

.strategies .third.row .flowchart-content{
  border-color: var(--pink);
}

.strategies .flowchart-content ul{
  padding-left: 1.5rem;
}

.strategies .flowchart-content li{
  font-size: 1.7rem;
}

.strategies .flowchart-content .icon{
  font-size: 4rem;
  cursor: pointer;
  padding-top: 1.3rem;
}

.strategies .first.row .flowchart-content .icon i{
  color: var(--green);
  filter: drop-shadow(2px 3px 1px rgb(0 0 0 / 0.4));
}
.strategies .first.row .flowchart-content .icon i::before{
}


.strategies .second.row.row .flowchart-content .icon i{
  color: var(--orange);
  filter: drop-shadow(2px 3px 1px rgb(0 0 0 / 0.4));
}

.strategies .third.row.row .flowchart-content .icon i{
  color: var(--pink);
  filter: drop-shadow(2px 3px 1px rgb(0 0 0 / 0.4));
}


/*=======encountering======= */
/* media queries  */
 @media (max-width:1200px){
  html{
    font-size: 55%;
  }
}

@media (max-width:991px){
  header{
    padding:2rem;
  }
  section{
    padding:2rem;
  }
}

@media (max-width:450px){
  html{
    font-size: 50%;
  }
  .heading span{
    font-size: 2.5rem;
  }
}  


.strategies-detail .heading{
  display: flex;
  text-align: center;
  padding: 1rem;
  color: var(--white);
  justify-content: space-between;
}

.strategies-detail .encountering .heading{
  background: var(--green);
}

.strategies-detail .co-creating-caring-relationship .heading{
  background: var(--orange);
}

.strategies-detail .meaningful-engaging .heading{
  background: var(--pink);
}

.strategies-detail .heading h1{
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 3rem;
}

.strategies-detail .icon{
  font-size: 3rem;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(2px 2px 1px rgb(0 0 0 / 0.4));
}

.strategies-detail .content{
  padding: 1rem;
}

.strategies-detail .content img{
  width: 100%;
  height: auto;
}

.strategies-detail .content .text h1{
  font-weight: 600;
}

.strategies-detail .content .text p{
  font-size: 2rem;
}

.strategies-detail .content .title.row{
  align-items: center;
  font-weight: 600;
}


.strategies-detail .content .title.row .image img{
  width: 80%;
  height: auto;
}

.strategies-detail .co-creating-caring-relationship .content .title.row .image img{
  width: 65%;
  height: auto;
}

.strategies-detail .content .title.row .left.image img{
  top: 3rem;
}

.strategies-detail .content .title.row .left{
  text-align: right;

}

.strategies-detail .content .title.row .text.row{
  border-style: solid;
  border-radius: 50%;
  border-width: .3rem;
  border-color: var(--green);
  color: var(--green);

}

.strategies-detail .co-creating-caring-relationship .title{
  align-items: center;

}

.strategies-detail .meaningful-engaging .title{
  align-items: center;
  text-align: center;

}

.strategies-detail .third.box-container.row p{
  font-size: 1.5rem;
}

.strategies-detail .co-creating-caring-relationship .center.text{
  text-align: center;
  border-style: solid;
  border-radius: 50%;
  border-width: .3rem;
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 600;
  
}

.strategies-detail .meaningful-engaging .center.text{
  text-align: center;
  border-style: solid;
  border-radius: 50%;
  border-width: .3rem;
  border-color: #a7386f;
  color: #a7386f;
  font-weight: 600;

}
.strategies-detail .box-container.row{
  padding: 0 1rem;
}

.strategies-detail .box{
  padding: 1rem;
}

.strategies-detail .box .content{
  background: #f2f2f2;
  padding: 2rem;
  height: 100%;
}
.strategies-detail .first.box-container.row .content h3{
  color: var(--green);
  font-weight: bold;
}

.strategies-detail .second.box-container.row .content h3{
  color: var(--orange);
  font-weight: bold;
}

.strategies-detail .third.box-container.row .content h3{
  color: #a7386f;
  font-weight: bold;
}

.strategies-detail .box .content li{
  font-size: 1.5rem;
}


/* ===================tips===================== */
.tips{
  background: var(--blue);
}

.tips .wrapper{
  background: var(--white);
}
.tips .heading{
  text-align: center;
  margin: 0 6rem;
  font-size: 3.3rem;
  font-weight: bolder;
  color: var(--dark-blue);
  padding: 1rem;
  border-bottom: .1rem solid var(--black);
}
.tips .container{
  padding: 5rem 3rem 5rem 3rem;
}

.tips .video-playe video:focus {
  outline: none;
} 

/* ===================media choice===================== */
.media{
  background: var(--blue);
  z-index: -99;
}

.media .wrapper{
  background: var(--white);
  z-index: 1;
  padding: 20% 5% 20% 5%;
}

.media .wrapper .row{
  position: relative;
  justify-content: space-evenly;
}

.media .card-body{
  text-align: center;
}

.media .card.left,
.media .card.right{
  z-index: 5;
  width: 45%;
  font-size: 3rem;
  color: var(--white);
  border-radius: 3rem;
  cursor: pointer;
  filter: drop-shadow(2px 2px 1px rgb(0 0 0 / 0.4));
}


.media .card.left{
  background: linear-gradient(to bottom right, #36d1dc, #5b86e5);
}
.media .card.right{
  background: linear-gradient(to bottom left,#78ffd6, #007991);
}

.media .card:hover{
  background: var(--dark-blue);
}

.media .card img{
 padding: 1rem;
}

.media a{
  text-decoration: none;
  color: var(--white);
}

/* ===================media detail===================== */
.image-media{
  position: relative;
  width: 100%;
  padding: 2rem 2rem 2rem 2rem;
  align-items: center;
  justify-content: space-around;
  background: var(--blue);
}

.image-media .wrapper{
  background: var(--white);
  z-index: 0;
}

.image-media .content i{
  cursor: pointer;
  font-size: 3rem;
  filter: drop-shadow(2px 2px 1px rgb(0 0 0 / 0.4));

}

.image-media .content p{
  font-size: 3.5rem;
  color: var(--black);
  font-weight: 600;

}

.image-media .content span{
  color: rgb(150, 12, 12);
  padding: 2rem 0;
  font-size: 3.5rem;
  font-weight: 600;
}

.image-media .carousel-control-prev{
  position: fixed;
  opacity: 1;
  height: 46px;
  width: 46px;
  top: 90%;
  left: 50%;
  cursor: pointer;
  border-radius: 1rem;
  filter: drop-shadow(2px 2px 1px rgb(0 0 0 / 0.4));
}

.image-media .carousel-control-next{
  top: 90%;
  opacity: 1;
  height: 46px;
  width: 46px;
  right: 30%;
  position: fixed;
  cursor: pointer;
  border-radius: 1rem;
  filter: drop-shadow(2px 2px 1px rgb(0 0 0 / 0.4));
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");

}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

.image-media .icons{
  position: fixed;
  top: 90%;
  right: -10%;
  height:auto;
  text-align:center;
  width:100%;
  cursor: pointer;
}

.image-media .icons i{
  font-size: 30px;
  color: var(--black);
  cursor: pointer;
  filter: drop-shadow(2px 2px 1px rgb(0 0 0 / 0.4));
}

.image-media .icons i:hover{
  color: var(--dark-blue);
}
/* หน้าแรกของสไลด์ */
.image-media .first.row {
  align-items: center;
}
.image-media .first.row .content{
  display: block;
  align-items: center;
}

.image-media .first.row .content.left{
  padding: 1rem;
  padding-left: 4rem;
  text-align: center;
}

.image-media .first.row .content.right{
  padding: 1rem;
  padding-right: 4rem;
  text-align: center;
}

.image-media .first.row .line.col-md-4::after{
  content: "";
  display: block;
  position: absolute;
  width: 120%;
  height: 10px;
  left: 90%;
  top: 73%;
  margin-left:-1px;
  background: var(--dark-blue);
}

.image-media .card.left{
  font-size: 3rem;
  text-align: center;
  border-radius: 3rem;
  background: var(--bg-nav-color);
}

.image-media .card.left .card-body{
  color: var(--white);
  z-index: 4;

}

.image-media .card.left img{
  color: var(--white);
  padding: 1rem;
  padding-bottom: 0;
  z-index: 0;


}
.image-media .first.row .col-md-4 {
  padding-top: 16rem;
}

.image-media .first.row .col-md-4 p{
  font-weight: bold;
  color: var(--dark-blue);
  background: var(--light-blue);
  border-radius: 1rem;
  padding: 1rem;
}

/* ------- */
.image-media .row{
  padding-bottom: 14.3rem;
}

/* หน้าสอง */
.image-media .row.second .image{
  align-items: center;
}

.image-media .row.second .image img{
  width: 100%;
  height: auto;
  padding: 4rem 0;
  align-items: center;
}

.image-media .row.second{
  padding: 6.5rem 1rem;
}

/* หน้าสาม */
.image-media .third.row .image img{
  width: 100%;
  height: auto;
  padding: 4rem 0;
  align-items: center;
  padding-left: 2rem;
}

.image-media .third.row{
  padding: 7.4rem 1rem;
}

.image-media .third.row .content{
  align-items: center;
  padding-top: 3.5rem;
}

/* หน้าสี่ */
.image-media .fourth.row .image img{
  width: 100%;
  height: auto;
  padding: 4rem 0;
  align-items: center;
}

.image-media .fourth.row{
  padding: 5.5rem 1.5rem;
}

.image-media .fourth.row .content{
  align-items: center;
  padding-top: 3.5rem;
  padding-right: 1.5rem;
}

.image-media .fourth.row .col-md-6{
  padding-left: 0;
  padding-right: 0;
}


/* หน้าอันตรายจากการดึงท่อช่วยหายใจออกเอง */
.image-media .dangerous h3,
.image-media .dangerous h3{
  font-size: 3rem;
  font-weight: 600;
}

.image-media .dangerous.row{
  padding-bottom: 4.3rem;
}

.image-media .dangerous .row-right img,
.image-media .dangerous .row-left img{
  width: 120px;
  height: 120px;
  padding: 2rem 0;
}

.image-media .dangerous .row-left{
  text-align: right;
}

.image-media .dangerous .divider{
  position: relative;
}

.image-media .dangerous .divider img{
  width: 320px;
  height: 280px;
}

.image-media .header{
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--dark-blue);
  text-align: center;
  font-weight: bold;
  padding: 2rem 0 1rem 0;
}

/* หน้าวิธีการสื่อสารอ่านปาก */
.image-media .how-to.row .image img{
  width: 100%;
  height: auto;
  align-items: center;
  padding-left: 2rem;
}

.image-media .how-to.row{
  padding: 9rem 1rem;
}

.image-media .how-to.row .content{
  align-items: center;
  padding-top: 3.5rem;
  padding-right: 1rem;
}

/* หน้าวิธีการสื่อสารท่าทาง*/
.image-media .hand.row .image img{
  width: 100%;
  height: auto;
  align-items: center;
  padding-left: 2rem;
}

.image-media .hand.row{
  padding: 5.6rem 1rem;
}

.image-media .hand.row .content{
  align-items: center;
  padding-top: 3.5rem;
  padding-right: 1rem;
}

/* หน้าวิธีการสื่อสาร เขียน*/
.image-media .write.row .image img{
  width: 100%;
  height: auto;
  align-items: center;
  padding-left: 2rem;
}

.image-media .write.row{
  padding: 3.4rem 1rem;
}

.image-media .write.row .content p{
  align-items: center;
  padding-top: 5rem;
  padding-right: 1rem;
}

/* หน้าวิธีการสื่อสาร tablet*/
.image-media .tablet.row .image img{
  width: 100%;
  height: auto;
  align-items: center;
  padding-left: 2rem;
}

.image-media .tablet.row{
  padding: 8.7rem 1rem;
}

.image-media .tablet.row .content p{
  align-items: center;
  padding-top: 5rem;
  padding-right: 1rem;
}
/* หน้าสื่อวีดีโอ */
.video-media{
  background: var(--blue);
}
.video-media .container{
  padding: 10rem 5rem 10rem 5rem;
  background: var(--white);
  z-index: -2;
}



