/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: 1rem;
  

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}


body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
  display: flex;
  flex-direction: column;
}



ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}
p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #555;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1140px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FF6347;
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}


/*=============== NAV ===============*/
.nav{
  height: var(--header-height);

}
.na__logo,
.na__burger,
.na__close{
  color: var(--white-color);
}

.na__data{
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

}
.na__logo{
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
  
}

.na__logo i{
  font-weight: initial;
  font-size: 1.25rem;
}
.na__toggle{
  position: relative;
  width: 32px;
  height: 32px;
  
}

.na__burger,
.na__close{
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transfrom .4s;

}
.na__close{
  opacity: 0;
}

.footer {
  background-color: #f4f4f4;
  padding: 40px 0 300px;
  color: #333;
  text-align: center;
}

.footer__container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer__content {
  margin-bottom: 20px;
}

.footer__title {
  font-size: 20px;
  margin-bottom: 15px;
}

.footer__info,
.footer__social {
  list-style: none;
  padding: 0;
}

.footer__info li,
.footer__social li {
  margin-bottom: 10px;
}

.footer__social li {
  display: inline;
  margin-right: 10px;
}

.footer__social li a {
  color: #333;
  font-size: 24px;
}

.footer__copy {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}


.container-head-slide{
    max-width: 1120px;
    width: 100%; 
    margin: auto;
    margin-bottom: 20px;
    padding-left: 30px;
    padding-right: 20px;
}

/*---slide--*/
.slide-container{
  max-width: 1120px;
  width: 100%;
  padding: 40px 0;
  margin-bottom: 20px;
}
.slide-content{
  margin: 0 40px;
  overflow: hidden;
  border-radius: 25px;
}
.card{
  border-radius: 25px;
  background-color: #FFF;
}
.image-content,
.card-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
}
.image-content{
  position: relative;
  row-gap: 5px;
  padding: 25px 0;
}
.overlay{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #ff63a4;
  border-radius: 25px 25px 0 25px;
}
.overlay::before,
.overlay::after{
  content: '';
  position: absolute;
  right: 0;
  bottom: -40px;
  height: 40px;
  width: 40px;
  background-color: #ff63a4;
}
.overlay::after{
  border-radius: 0 25px 0 0;
  background-color: #FFF;
}
.card-image{
  position: relative;
  height: 170px;
  width: 170px;
  border-radius: 50%;
  background: #FFF;
  padding: 3px;
}
.card-image .card-img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #FF398C;
}
.name{
  font-size: 18px;
  font-weight: 500;
  color: #333;
}
.description{
  font-size: 14px;
  color: #707070;
  text-align: center;
}
.button{
  border: none;
  font-size: 16px;
  color: #FFF;
  padding: 8px 16px;
  background-color: #FF398C;
  border-radius: 6px;
  margin: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.button:hover{
  background: #265DF2;
}

.swiper-navBtn{
  color: #ff0777;
  transition: color 0.3s ease;
}
.swiper-navBtn:hover{
  color: #ff007b;
}
.swiper-navBtn::before,
.swiper-navBtn::after{
  font-size: 35px;
}
.swiper-button-next{
  right: 0;
}
.swiper-button-prev{
  left: 0;
}
.swiper-pagination-bullet{
  background-color: #6E93f7;
  opacity: 1;
}
.swiper-pagination-bullet-active{
  background-color: #4070F4;
}

.card-image-2{
  position: relative;
  height: 150px;
  width: 250px;
  border-radius: 20px; /* ค่า border-radius ที่คุณต้องการ */
  overflow: hidden; /* เพื่อให้มีการตัดขอบเหลี่ยมโค้ง */
  background: #FFF;
  padding: 3px;
}
.card-image-2 .card-img-2{
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 20px; /* ค่า border-radius ที่คุณต้องการ */
  overflow: hidden; /* เพื่อให้มีการตัดขอบเหลี่ยมโค้ง */
  border: 4px solid #4070F4;
}

@media screen and (max-width: 1118px) {
  .slide-content{
    margin: 0 10px;
  }
  .swiper-navBtn{
    display: none;
  }
}

/* บทความ*/
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card-item {
  background-color: #FFF;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: calc(33.333% - 20px); /* Adjust card width */
  max-width: 300px;
  min-width: 200px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-item img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #EEE;
}

.card-item span {
  display: block;
  padding: 10px;
  font-weight: bold;
  color: #FFF;
  text-align: center;
}

.developer {
  background-color: #4070F4;
}

.develo {
  background-color: #f4406a;
}

.designer {
  background-color: #F4B400;
}

.editor {
  background-color: #34A853;
}

.card-item h3 {
  padding: 10px;
  font-size: 1.2em;
  color: #333;
}

.arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.card-icon {
  font-size: 1.5em;
  color: #333;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .card-item {
      width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .card-item {
      width: 100%;
  }
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px){
  .na__menu{
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top 4.s, opacity .3s;
  }
  .na__menu::-webkit-scrollbar{
    width: 0;
  }
  .na__list{
    background-color: var(--black-color);
    padding: 1rem;
  }
}


.na__link{
  color: var(--white-color);
  background-color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}
.na__link:hover{
  background-color: var(--black-color-light);
}
/* Show menu */
.show-menu{
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .na__burger{
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .na__close{
  opacity: 1;
  transform: rotate(90deg);
}


/*=============== DROPDOWN ===============*/


.dropdown__arrow{
  font-size: 1.25rem;
  font-weight: initial;
  transition: transfrom .4s;
}

.dropdown__link,
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--white-color);
  background-color: var(--black-color-light);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link{
  cursor: pointer;
}


.dropdown__link i,
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover,
.dropdown__sublink:hover{
  background-color: var(--black-color);
}
.dropdown__menu,
.dropdown__submenu{
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover  .dropdown__menu,
.dropdown__subitem:hover  .dropdown__submenu{
  
  overflow: initial;
  opacity: 0;
  pointer-events: none;
  
}
.dropdown__item.show-dropdown .dropdown__menu,
.dropdown__subitem.show-dropdown .dropdown__submenu {
  max-height: 1000px;
  opacity: 1;
  pointer-events: initial;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow{
  transform: rotate(180deg);
}

.dropdown__item:focus .dropdown__arrow{
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add{
  margin-left: auto;
}

.dropdown__sublink{
  background-color: var(--black-color-lighten);
}

/*=============== content ===============*/
.site-content {
  margin-top: 50px; /* Adjust according to the height of your navigation bar */
}
.container-dhealth {
  max-width: 1120px; 
  margin: 0 auto;
  padding: 20px;
 
}

.main-title {
  font-size: 1.25rem; 
  
}

.main-title a {
  text-decoration: none;
  color: #ff007e; 
}

.main-title a:hover {
  text-decoration: none;
}
.sub-title {
  font-size: 1rem; 
  color: var(--black-color);
  margin-bottom: 10px;
}

.divider {
  border-top: 1px solid #ccc; 
  margin-bottom: 1px; 
}
.image-container {
  text-align: center; 
  margin-bottom: 21px;
}

.image-container img {
  max-width: 100%; 
  height: auto; 
  margin-top: 20px; 
}

.text-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
 
}

.text-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
}

.text-img {
  
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  
}

.img-icon-top {
  width: 80px; 
  height: 80px; 
  margin-bottom: 10px; 
}

.blockquotation{
  position: relative;
  font-size: 1.2em;
  line-height: 1.6;
  position: relative;
  padding: 35px 15%;
  border: none;
  margin: 60px 0;
  text-align: center;
  font-weight: 300;
  
}


/*=============== content button ===============*/

.title-text{
  font-size: 17px;
}

.border-box{
  outline: 1px solid rgb(93, 93, 93);
  border-radius: 10px;
}

.transition-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; /* Adjust as needed */
  padding: 17px;
  border: none;
  background-color:  #fff;
  border-radius: 10px;
}

.dropdown-img{
  max-width: 100%; 
  height: auto; 
}

/* Slideshow container */
.slideshow-container {
  max-width: 1120px;
  position: relative;
  margin: auto;
  margin-top: 60px;
  margin-left: 10px;
  margin-right: 10px;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}





/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px){
  container{
    margin-inline: 1rem;
  }
  .na__link{
    padding-inline: 1rem;
  }
}

@media screen and (max-width: 600px){
  .dropdown__link{
  cursor: none;
}
}
/* For large devices */
@media screen and (min-width: 1118px){  
  .container{
    margin-inline: auto;
  }
  .nav{
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .na__logo{
    white-space: nowrap;
    column-gap:  .25rem;
  }
  .na__toggle{
    display: none;
  }
  .na__list{
    height: 100%;
    display: flex;
    column-gap: 0.5rem;
  }

  .na__link{
    height: 100%;
    padding: 1.25rem;
    justify-content: initial;
    column-gap: .25rem;
    white-space: nowrap;
    background-color: #FF6347;
  }
  .na__link:hover{
    background-color: transparent;
  }
  
  .dropdown__item,
  .dropdown__subitem{
    position: relative;
  }
  
  .dropdown__menu,
  .dropdown__submenu{
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }
  .dropdown__link,
  .dropdown__sublink{
    padding-inline: 1rem 3.5rem;
    white-space: nowrap;
  }

  .dropdown__subitem .dropdown__link{
    padding-inline: 1rem;
  }

  .dropdown__submenu{
    left: 100%;
    top: .5rem;
  }
 /* Show dropdown menu */
 .dropdown__item:hover .dropdown__menu{
  opacity: 1;
  top: 5.5rem;
  pointer-events: initial;
  transition: top .3s;
 }
  /* Show dropdown submenu */ 
.dropdown__subitem:hover .dropdown__submenu{
  opacity: 1;
  top: 0;
  pointer-events: initial;
  transition: top .3s;
}
.container-dhealth {
  padding-top: 70px;
  margin: 0 auto;
  max-width: 1140;
}

/*=============== content button ===============*/

.title-text{
  font-size: 20px;
}

.textdd{
  padding: 10px 70px 10px 70px;
}

.slideshow-container {
  max-width: 1120px;
  position: relative;
  margin: auto;
  margin-top: 100px;
}


}