.sec3 p,
.sec4 p,
.row.sec2 .textbox p {
  font-family: ibmplexsansthai-regular,mavenpro-regular;
  font-size: 16px;
  color: #333;
}

article {
  overflow: hidden;
}

:root {
	font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
}

div.factbox {
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
  font-size: 16px;
  background: #fff;
  position: fixed;
  right: 0;
  top: 30%;
  width: 300px;
  z-index: 99;
  padding: 10px 20px;
  border: 1px solid #333;
  border-radius: 10px;
}

section article.content {
  height: 182px;
}

section article.content h3 {
  margin-top: 10px;
}

section div.header {
  background: #1a8fd3;
  padding: 10px !important;
}

section div.header span {
  color: #fff !important;
}

section div.header span a:hover {
  color: yellow !important;
}

.container {
  max-width: 1140px;
  width: 95%;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

.clearfix {
  display: inline-block;
}

/* start commented backslash hack \*/
* html .clearfix {
  height: 1%;
}

.clearfix {
  display: block;
}

form#search i {
  position: relative;
  left: 0;
  top: 0;
}

form#search input {
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
}

div.related h2 {
  color: #1a8fd3;
}

div.related h2,
div.related article h4 {
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
}

form#search {
  margin-bottom: 10px;
  display: block;
}

form#search button {
  border: none;
  background: transparent;
  position: absolute;
  left: 30px;
  top: 17px;
  z-index: 3;
}

.nav>li>a {
  padding: 10px 25px;
}

a.image {
  display: block;
  position: relative;
}

a.image>p.caption {
  background: #000;
  position: absolute;
  bottom: -10px;
  left: 0px;
  right: 0px;
  color: #fff;
  opacity: .7;
  line-height: 1.5em;
  text-align: center;
  padding: 0px 5px;
}

div.contentarticleforhealth a.image>p.caption {
  left: 0;
  right: 0;
}

.news-img a.image>p.caption {
  left: 0;
}

.news-detail table td {
  padding: 5px 15px;
}

.news-detail table {
  width: 100%;
  border-collapse: collapse;
}

div.table_of_content {
  padding: 0 20px 20px;
  clear: both;
  border: 1px solid #1a8fd3;
  margin-top: 20px;
  color: #1a8fd3;
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
  font-size: 18px;
}

div.table_of_content ul {
  list-style-type: square;
}

div.table_of_content ul li {
  margin-bottom: 5px;
}

.col-md-8.description .news-detail {
  height: auto;
}

.wrapper-news .col-md-8.description {
  height: auto;
}

@media(max-width:1240px) {
  div.factbox {
    position: relative;
    width: 100%;
    top: 0;
  }

  section article.content {
    height: 162px;
  }
}

@media(max-width:1024px) {

  .row.sec3 .col-md-6:nth-child(2),
  .row.sec4 .col-md-6:nth-child(2) {
    padding-right: 0;
    padding-left: 15px;
  }

  .container.home .row.sec1 .arrow-left2 {
    left: 0;
  }

  .container.home .row.sec1 .arrow-right2 {
    right: 0;
  }

  .container.home .row.sec1 .arrow-right2,
  .container.home .row.sec1 .arrow-left2 {
    top: 60%;
    z-index: 99;
  }

  .textbox .fa.fa-caret-right {
    left: auto;
    margin-left: -20px;
  }

  .nav>li>a {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media(max-width:800px) {
  .swiper-slide .image {
    width: 100%;
    background-position: center;
    background-size: 700px 250px;
    height: 250px;
    width: 100%;
  }

  .wrapper-container-home {
    margin-top: -10px;
  }

  .swiper-container {
    height: 260px !important;
  }

  section article.content {
    height: 200px;
  }

  .nav>li>a {
    padding-left: 5px;
    padding-right: 5px;
  }
}

@media(max-width:767px) {

  section article.content {
    height: auto;
  }

  div#bs-example-navbar-collapse-1 {
    margin-left: -15px;
    margin-right: -15px;
  }

  #bs-example-navbar-collapse-1>.navbar-nav>li a {
    padding-left: 15px;
    padding-right: 15px;
  }

  .navbar-nav .open .dropdown-menu {
    background: #ccc;
  }

  form#search {
    margin-top: 10px;
  }

  .logo {
    width: 100%;
    height: auto;
  }

  .row.r-logo {
    padding: 20px 5px 0;
  }

  .row {
    margin-left: -15px;
    margin-right: -15px;
  }

  form#search button {
    top: 22px;
  }

  .container.home .row.sec1 .textbox {
    padding: 0 50px;
  }

  .row.sec3 .col-md-6:nth-child(2),
  .row.sec4 .col-md-6:nth-child(2) {
    padding-left: 0;
  }

  .news-detail table td {
    width: 100%;
    display: block;
  }

  .btn.btn-default.readmore {
    display: block;
    margin: auto;
  }
  .img_doccenter {
    width:109px !important;
    height:auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media(max-width:430px) {
  /* .swiper-slide .image {
    height: 170px;
  }

  .wrapper-container-home {
    margin-top: -10px;
  }

  .swiper-container {
    height: 180px !important;
  } */
  .swiper-slide .image {
    width: 100%;
    background-position: center;
    background-size: 100%;
    height: 120px;
  }

  .wrapper-container-home {
    margin-top: -10px;
  }

  .swiper-container {
    height: 120px !important;
    margin-bottom: 10px !important;
  }

  .img_doccenter {
    width:109px !important;
    height:auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

}



.txt_box1 {
  height: 40px;
}


.box2 {}

.box2 .thumbnail {
  border: none;
  padding: 0px;
  /* background-color:#eff2f3; */
}

.box2 .txt1_box2 {
  background-color: white;
  color: #4d5356 !important;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  height: 285px;
  position: absolute;
  width: 200px;
  left: 30px;
  top: 20px;
  font-size: 16px;
  opacity: 0.7;
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
}

.box2 .txt1_box2a {
  /* background-color: white; */
  color: #4d5356 !important;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  height: 285px;
  position: absolute;
  width: 200px;
  left: 30px;
  top: 20px;
  font-size: 16px;
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
}



.box2 .txt1_box3 {
  /* background-color: #1a8fd3; */
  color: #1a8fd3;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  /* height:60px; */
  position: absolute;
  top: 265px;
  left: 30px;
  /* font-size: 16px; */
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
}

.box2 .txt1_box3a {
  /* background-color: black; */
  color: #6c6666;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  /* height: 60px; */
  position: absolute;
  top: 285px;
  left: 170px;
  font-size: 10px;
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
}

.box2 .txt1_box4 {
  /* background-color: #1a8fd3; */
  /* color: #fff; */
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  height: 60px;
  position: absolute;
  top: 225px;
  left: 30px;

}

.box2 .txt1_box4p {
  /* background-color: #1a8fd3; */
  /* color: #fff; */
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  height: 60px;
  position: absolute;
  top: 200px;
  left: 30px;
  color: #1da1e1 !important;
  /* margin-top:5px; */
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
}

.box2 .txt1_box4a {
  /* background-color: #1a8fd3; */
  /* color: #fff; */
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 0px;
  height: 25px;
  position: absolute;
  top: 262px;
  left: 175px;

  border-top: #1a8fd3;
  border-bottom: #1a8fd3;
  border-top-style: solid;
  border-bottom-style: solid;
  border-left-width: 0px;
  border-right-width: 0px;
  border-bottom-width: 2px;
  border-top-width: 2px;
  width: 50px;
  text-align: center;
  font-size: 12px;
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
}




.box2 h3 {
  color: #1da1e1 !important;
  margin-top: 5px;
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
}

.box2 .btn.btn-default.readmore {
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
  font-size: 16px;
  color: #f8f7f7;
  background-color: #1da1e1;
  border: none;
  padding-left: 5px;
  padding-right: 5px;
  height: 30px;
  padding-top: 4px;

}


.descriptpackage .col-md-6.img img {
  max-height: none;
}

.wrapper-footer02 .container.footer ul.nav.navbar-nav li a {
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
  font-size: 18px;
}

.fa-angle-down:before {
  font-size: 20px !important;
}

.footerloadmore .fa.fa-angle-down {

  margin-left: -7px;
  top: 0px;


}

.fa-2x {
  margin-top: 0px !important;
  font-size: 20px !important;
}

.box_textline {
  margin-top: 20px;
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
  color: #1a8fd3;
  font-size: 16px;
}

.box_count {
  margin-top: 20px;
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
  color: #272828;
  font-size: 16px;

  border-top: #1a8fd3;
  border-bottom: #1a8fd3;
  border-top-style: solid;
  border-bottom-style: solid;
  border-left-width: 0px;
  border-right-width: 0px;
  border-bottom-width: 1px;
  border-top-width: 1px;
  width: 230px;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
}

.thumbnail a>img,
.thumbnail>img {
  border-radius: 6px;
}

.descriptpackage .col-md-6.img img {
  max-height: none;
  border-radius: 6px;
}

.box_price {
  font-family: ibmplexsansthai-medium,mavenpro-semibold;
  font-size: 22px;
  color: #1a8fd3;
}

i.fa-box.fa {
  position: absolute;
  margin-left: 5px;
  font-size: 14px;
  margin-top: 3px;
}


.modal-footer {
 
  text-align: center;
 
}

#myModal img {
  vertical-align: middle;
  width: 100%;
}

#myModal .modal-dialog {
  width: 65%;
  margin: 30px auto;
  text-align: center;
}

#pop .modal {
  position: absolute; 
}

#pop .modal-body {
  position: relative !important;
  /* padding: 15px; */
  margin-top: 15px;
  padding-top: 0px;
  padding-right: 15px;
  padding-bottom: 15px;
  padding-left: 15px;
  max-height: none !important;
  overflow-y: unset;
}

#pop .modal-header {
  padding-right: 3px;
  padding-top: 0px;
  border-bottom: none;
  padding-bottom: 0px;
  min-height: fit-content;
}

.title_dropbox {

  text-align: center;



}

.title_dropbox1 {

  text-align: center;

}


.s1 {
  /* float: left; */
  /* margin-left: 34px; */
  font-size: 26px;
  color: #1a8fd3;
  /* line-height: 1.1; */
}

.s2 {
  /* float: left; */
  /* margin-left: 34px; */
  font-size: 26px;
  color: #1a8fd3;
}


.hsbox {
  float: left;
  margin-left: 34px;
  font-size: 26px;
  color: #1a8fd3;
  width: 90%;
}

.hsbox .title {
  font-size: 22px;
  color: #1a8fd3;
  float: left;
  background-color: #d3eaf0;
  padding: 6px 16px;
  width: 90%;
  border-radius: 8px;
}



.sbox1 {
  float: left;
  margin-left: 34px;
  font-size: 26px;
  color: #1a8fd3;
  width: 90%;
 
}

.sbox1 .title {
  font-size: 22px;
  color: #1a8fd3;
  float: left;
  background-color: #d3eaf0;
  padding: 6px 16px;
  width: 90%;
  border-radius: 8px;
}

.sbox1 .btn-primary {
  color: #fff;
  background-color: #1da1e1;
  border-color: #1da1e1;
  font-size: 20px;
}

 
.arrage-paragraph{
  margin-top: 0px;
}

.arrage-paragraph p {
  line-height: 1.3;
  margin-top: 1px;
}

.nav-menu-custom {
  color: #30398d;
 }


select#tag1 {
  font-size: 22px;
  width: 100%;
  border-radius: 5px;
  background-color: white;
}
select#tag2 {
  font-size: 22px;
  width: 100%;
  border-radius: 5px;
  background-color: white;
}

.s1 label {
  font-size: 20px;
}

.s2 label {
  font-size: 20px;
}


input.input, textarea.input {
  padding-bottom: calc(0.375em + 1px);
}

/* Read Center Clinic Redesign 2024 */
.wrapper-readcenter-clinic {
    padding-top: 40px;
    padding-bottom: 80px;
    background-color: #fcfcfc;
}

.clinic-header-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.clinic-title-area h1 {
    font-family: 'ibmplexsansthai-medium', sans-serif;
    color: #1a8fd3;
    font-size: 36px;
    margin: 0;
    line-height: 1.2;
}

.clinic-select-wrapper {
    min-width: 320px;
}

.clinic-select-label {
    display: block;
    font-size: 14px;
    color: #1587c8;
    margin-bottom: 8px;
    font-family: 'ibmplexsansthai-medium', sans-serif;
}

.modern-tabs-nav {
    border-bottom: 2px solid #eee;
    margin-bottom: 40px;
    display: flex;
    gap: 5px;
}

.modern-tabs-nav > li {
    margin-bottom: -2px;
}

.modern-tabs-nav > li > a {
    border: none !important;
    background: transparent !important;
    color: #888 !important;
    font-family: 'ibmplexsansthai-medium', sans-serif;
    padding: 15px 35px !important;
    border-radius: 0 !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease;
    font-size: 18px;
}

.modern-tabs-nav > li.active > a {
    color: #1a8fd3 !important;
    border-bottom: 3px solid #1a8fd3 !important;
    background: rgba(26, 143, 211, 0.05) !important;
}

.clinic-main-content {
    background: #fff;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    width: 100%;
}

.clinic-breadcrumb-trail {
    font-size: 14px;
    margin-bottom: 25px;
    color: #999;
}

.clinic-breadcrumb-trail a {
    color: #1a8fd3;
    transition: color 0.2s;
}

.clinic-breadcrumb-trail a:hover {
    color: #1587c8;
    text-decoration: underline;
}

.clinic-breadcrumb-trail span + span::before {
    content: "\f105";
    font-family: "FontAwesome";
    margin: 0 12px;
    color: #ccc;
}

.clinic-content-inner img {
    border-radius: 15px;
    margin-bottom: 25px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991px) {
    .clinic-header-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .clinic-select-wrapper {
        width: 100%;
    }
}

/* Modern Video Grid Redesign */
.modern-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
    list-style: none;
    margin: 0;
}

.video-item-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border-color: #1a8fd3;
}

.video-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.video-thumb-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-item-card:hover .video-thumb-wrapper img {
    transform: scale(1.08);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.15);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-item-card:hover .video-play-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.35);
}

.play-button-circle {
    width: 65px;
    height: 65px;
    background: #1a8fd3;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(26, 143, 211, 0.4);
    transform: scale(1.2); /* Sits large initially to animate down */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-item-card:hover .play-button-circle {
    transform: scale(1);
    opacity: 1;
}

.play-button-circle i {
    margin-left: 5px; /* Visual center adjustment for play icon */
}

.video-info-box {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-info-box h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #222;
    font-family: 'ibmplexsansthai-medium', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.video-info-box h4 span {
    color: #1a8fd3;
    margin-right: 12px;
    font-size: 20px;
}

@media (max-width: 767px) {
    .modern-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .video-info-box {
        padding: 20px;
    }
}