@media (min-width: 1200px) {
    .container{
        max-width: 1400px;
    }
}

@media (max-width: 768px) {

    .thumb-post2 img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
        object-position: center;
        width: 100%;
      }

      .thumb-post-slide img {
        /* aspect-ratio: 16 / 9; */
        /* object-fit: cover; */
        /* object-position: center; */
        width: 100%;
        height: 260px !important;
      }

     .news-title-overley, .news-title-video-overley, .news-content-title-overley {
        width: 100%;
        height: 320px !important;
        }


    .carousel-caption {
        left: 5%;
        right: 5%;
        padding-bottom: 5px;
        font-size: 20px !important;
    }

    .carousel-caption small {
        font-size: 14px !important;
    }


}




body {
    overflow-x: hidden;
}


.carousel-caption {
    font-size: 28px;
    left: 8%;
    right: 8%;
}

.carousel-caption small {
    display: block;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.427);
}

/* #  Styles control NEWS BOX [UPDATE | อัพเดท] */
.news-container-title {
    position: relative;
    padding: 10px;
    transition: all 0.4s ease-in-out;
}

.news-container-title:hover {
    background-color: rgb(49, 175, 156);
    transform: scale(1.05);
}

.text-health {
    color: rgb(49, 175, 156);
}


.news-container-title2 {

    /* position: relative; */
    padding: 10px;
    transition: all 0.4s ease-in-out;
}

.news-container-title2:hover {
    background-color: rgba(255, 255, 255, 0.084);
    transform: scale(1.05);
}


.news-box {
    position: absolute;
    width: 90%;
    height: 150px;
    bottom: -70px;
    right: 5%;
    left: 5%;
    padding: 10px;
    background-color: white;
}

.news-box2 {
    position: absolute;
    width: 90%;
    height: 150px;
    bottom: -70px;
    right: 5%;
    left: 5%;
    padding: 10px;
    background-color: #CCD1D4;
}

.news-category
{
    color:white;
    font-size: 18px;
    position: absolute;
    border-radius: 30px;
    bottom: -25px;
    left: 5%;
    padding: 10px 18px;
    background-color:rgb(49, 175, 156);
}

.news-box3
{
    margin-top: -2px;
    padding: 28px 40px 15px 40px;
    border-top: none !important;
    border: 2px solid rgb(49, 175, 156);
}

.news-title {
    line-height: 23px;
    padding-top: 3px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-content-title-overley,
.news-title-overley {
    transition: all 0.4s ease-in-out;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    color: white;
    padding: 20px;
    text-align: center;
}

.news-content-title-overley {
    height: 700px;
    /* background-position:right 50% top 15%; */
    background-position:bottom;
}
.news-title-overley:hover {
    /* transform: scale(1.05); */
}


.news-title-video-overley {
    transition: all 0.4s ease-in-out;
    aspect-ratio: 16 / 9;
    width: 100%;
    /* height: 500px; */
    object-fit: cover;
    object-position: center;
    background-size: cover;
    color: white;
    padding: 20px;
    text-align: center;
    filter: drop-shadow(5px 5px 10px rgb(0, 0, 0));
}




.first-letter::first-letter {
    margin-left: 25px
}



.icon-center, .icon-center-small {
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    -ms-transform: translate(-50%, -50%);
    
    padding: 12px 24px; 
    cursor: pointer; 
    background: linear-gradient(to right, rgba(2, 171, 177, 0.36), #00cdac 51%, rgba(2, 171, 177, 0.41));
    
    transition: 0.5s;

    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color:transparent;
}

.icon-center {
    font-size: 12em; 
}

.icon-center-small {
    font-size: 7em; 
}

.icon-center-small:hover, .icon-center:hover {
   background-position: 100px;
 }



/* custom image */
.thumb-post img {
    aspect-ratio: 16 / 9;
    object-fit: cover; 
    object-position: center;
    width: 100%;
    margin-bottom: 1rem;
  }



  .thumb-post2 img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    width: 100%;
  }

  
  .thumb-post3 img {
    border-bottom: none !important;
    border: 2px solid rgb(49, 175, 156);
    object-fit: cover; /* Do not scale the image */
    object-position: center; /* Center the image within the element */
    width: 100%;
    max-height: 850px;
  }

  .thumb-post-slide img {
    transition: all 0.4s ease-in-out;
    /* aspect-ratio: 16 / 9; */
    object-fit: cover;
    object-position: center;
    width: 100%;
  }

  .thumb-post-slide img:hover {
    transform: scale(1.05);
  }


.bg-slide-gardiant {
    background: linear-gradient(to top, rgba(245, 246, 252, 0), #48b6a6);
}

.img-news-gardiant {
    background: linear-gradient(to top, rgba(245, 246, 252, 0), #48b6a6);
}

/* SOCIAL */
.social-text-label {
    color:#48b6a6bb;
}
.social-text-count {
    color: #48b6a6;
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: -10px;
}

#line-button,
#download-button,
#twitter-button,
#fb-share-button {
    background: #48b6a6;
    border-radius: 100%;
    font-weight: 600;
    padding: 10px;
    display: inline-block;
    position: static;
    transition: 0.4s;
}

#line-button:hover,
#download-button:hover,
#twitter-button:hover,
#fb-share-button:hover {
    cursor: pointer;
    background: #378c7f;
    transform: scale(1.1);
}

#fb-share-button svg {
    width: 26px;
    fill: white;
    vertical-align: middle;
}

#line-button svg,
#twitter-button svg {
    width: 26px;
    height: 26px;
    fill: white;
    vertical-align: middle;
}

#fb-share-button span {
    vertical-align: middle;
    color: white;
    font-size: 14px;
    padding: 0 3px
}

#download-button i {
    vertical-align: middle;
    color: white;
    font-size: 22px;
    width: 26px;
    height: 26px;
    padding: 0 3px
}

/* SOCIAL */



/* news content body */
.detail p > img {
    max-width: 100% !important;
    margin: auto;
    display: block;
    /* padding-top: 10px; */
    /* padding-bottom: 10px; */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 8px;
}