/* ฟอนต์หลักทั้งไฟล์ */

* {

    font-family: 'Kanit', sans-serif !important;

}

/*ประกาศ*/

.popular-img {

    height: 100%;

    width: 100%;

    object-fit: cover;

    border-radius: 12px;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

    background: #fff;

    display: block;

}



.popular-modal-full {

    max-width: 98vw;

    margin: 0 auto;

}



.popular-slider-section {

    background: #f8f8f8;

}



.popular-slider-section .container {

    background: #f8f8f8;

    padding-top: 5rem;

    padding-bottom: 3rem;

}



.announce-pulse {

    display: inline-block;

    animation: pulse-announce 1.2s infinite;

}





@media (max-width: 600px) {

    .popular-modal-full {

        max-width: 100vw;

    }

}



.announce-blink {

    color: #ff8800;

    font-weight: bold;

    margin-left: 10px;

    animation: blink-announce 0.7s steps(1) infinite;

    font-size: 1.3em;

    vertical-align: middle;

}



@keyframes blink-announce {



    0%,

    100% {

        opacity: 1;

    }



    50% {

        opacity: 0;

    }

}



@keyframes pulse-announce {



    0%,

    100% {

        transform: scale(1);

    }



    50% {

        transform: scale(1.10);

    }

}





/*ข่าวสาร และ กิจกรรมภายใน*/

body {

    font-family: 'Kanit', sans-serif;

}



.placeholder-thumb {

    width: 100%;

    height: 225px;

    background-color: #C0C0C3;

    border-top-left-radius: .25rem;

    border-top-right-radius: .25rem;

    padding: 0;

    overflow: hidden;

}



.card-thumbnail {

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;

}



#modalImage {

    width: 100%;

    height: auto;

}



.modal-dialog-centered {

    display: flex;

    align-items: center;

    justify-content: center;

}



.modal-lg {

    max-width: 95%;

    margin: auto;

}



.jumbotron-heading {

    font-size: 2rem;

    line-height: 1.4;

    margin-bottom: 20px;

}



.album .container {

    padding: 0 !important;

}



.btn-orange,

.pagination .page-link {

    background: #ffd9b3 !important;

    color: #fff !important;

    border: none !important;

    margin: 0 4px;

    border-radius: 5px !important;

    font-size: 1.7rem;

    text-align: center;

    transition: background 0.2s, color 0.2s;

    box-shadow: none;

    outline: none !important;

}



.btn-orange:hover,

.btn-orange:focus,

.btn-orange.active,

.pagination .page-link:hover,

.pagination .page-item.active .page-link {

    background: #ff8800 !important;

    color: #fff !important;

}



.pagination {

    display: flex;

    justify-content: center !important;

    margin-top: 20px;

    margin-bottom: 20px;

}





/*คลินิกพิเศษ*/

.clinic-section-underline {

    width: 140px;

    height: 4px;

    background: #ff8c1a;

    border-radius: 2px;

    margin-bottom: 24px;

    margin-left: 0;

}



.btn-switch-clinic {

    min-width: 120px;

    margin-right: 8px;

    margin-bottom: 10px;

}



.btn-switch-clinic.active {

    background: #ff8c1a;

    color: #fff;

    font-weight: 600;

}



.clinic-img-featured {

    transition: box-shadow 0.2s;

    cursor: pointer;

}



.clinic-img-featured:hover {

    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);

}



.clinic-section-underline {

    width: 140px;

    height: 4px;

    background: #ff8c1a;

    border-radius: 2px;

    margin-bottom: 24px;

    margin-left: 0;

}



.btn-switch-clinic {

    min-width: 120px;

    margin-right: 8px;

    margin-bottom: 10px;

}



.btn-switch-clinic.active {

    background: #ff8c1a;

    color: #fff;

    font-weight: 600;

}



.clinic-img-featured {

    transition: box-shadow 0.2s;

    cursor: pointer;

}



.clinic-img-featured:hover {

    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);

}



.clinic-info-item {

    background: #fff;

    border-radius: 12px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);

    min-width: 0;

    width: 100%;

    display: flex;

    align-items: stretch;

    overflow: hidden;

    transition: box-shadow 0.18s;

    padding: 0;

    font-family: 'Kanit', sans-serif;

}



.clinic-info-item:not(:last-child) {

    margin-bottom: 18px !important;

}



.clinic-info-logo {

    background: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 56px;

    min-width: 56px;

    max-width: 56px;

    height: 56px;

    border-radius: 8px 0 0 8px;

    margin: 8px 0 8px 8px;

    font-family: 'Kanit', sans-serif;

}



.clinic-info-logo img {

    width: 36px;

    height: 36px;

    object-fit: contain;

    display: block;

}



.clinic-info-item span {

    font-size: 1.9rem;

    color: #333;

    font-weight: 500;

    word-break: break-word;

    background: #fff;

    display: flex;

    align-items: center;

    flex: 1 1 0%;

    min-height: 56px;

    padding: 0 16px;

    border-radius: 0 8px 8px 0;

    margin: 8px 8px 8px 0;

    font-family: 'Kanit', sans-serif;

}



.clinic-info-item:hover {

    box-shadow: 0 4px 18px rgba(255, 140, 26, 0.13);

}



.col-md-4.d-flex.flex-column.justify-content-center.align-items-start.mt-4.mt-md-0 {

    gap: 0;

}



/*ตรวจสุขภาพ*/

.card-title {

    margin-top: 10px;



}



.health-img-square {

    object-fit: cover;

    border-radius: 16px;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

    transition: box-shadow 0.2s;

}



.health-img-square:hover {

    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);

}



.health-section-underline {

    width: 140px;

    height: 4px;

    background: #ff8c1a;

    border-radius: 2px;

    margin-bottom: 24px;

    margin-left: 0;

}

/*จัดซื้อจัดจ้าง-สมัครงาน*/
iframe {
      margin-top: -100px !important;
      padding: 0 !important;
      margin: 0 !important;
    }

    /* ซ่อนส่วน header, navigation และ banner ของ iframe */
    iframe[src*="HumanResourcessection"] {
      position: relative;
      top: -52rem !important;
      left: -1.5rem !important;
      height: 1220px !important;
      width: calc(100% + 3rem) !important;
      transform: scale(1.16) !important;
      transform-origin: center top !important;
    }

    .content.typography.fontkanit {
      padding: 0 !important;
      margin: 0 !important;
      overflow: hidden !important;
      position: relative !important;
    }

    .news-categories-section {
      background-color: #f8f9fa;
    }

    .news-tabs {
      border-bottom: 1px solid #dee2e6;
      text-align: left;
    }

    .news-tab {
      display: inline-block;
      padding: 15px 30px;
      cursor: pointer;
      border-bottom: 3px solid transparent;
      margin-right: 20px;
      transition: all 0.3s ease;
      background-color: transparent;
      border-radius: 0;
      position: relative;
    }

    .news-tab:hover {
      border-bottom: 3px solid #FF8C1A;
      transform: translateY(-2px);
    }

    .news-tab.active {
      border-bottom: 3px solid #FF8C1A;
    }

    .news-tab h4 {
      margin: 0;
      color: #333;
      font-size: 1.8rem;
      font-weight: normal;
      transition: all 0.3s ease;
    }

    .news-tab:hover h4 {
      color: #FF8C1A;
      font-weight: 500;
    }

    .news-tab.active h4 {
      color: #FF8C1A;
      font-weight: bold;
    }

    .news-content-area {
      height: 400px;
      background-color: white;
      padding: 20px;
      border: 1px solid #dee2e6;
      overflow-y: auto;
      overflow-x: hidden;
    }

    /* ซ่อน scroll bar ทั้งหมดสำหรับข่าวสมัครงาน */
    #jobs-content {
      overflow: hidden !important;
      padding: 0 !important;
    }

    #jobs-content .content.typography.fontkanit {
      overflow: hidden !important;
    }

    /* ซ่อน scroll bar ของ container เมื่อแสดงข่าวสมัครงาน */
    .news-category-content#jobs-content.active {
      height: 100% !important;
    }

    .news-category-content#jobs-content.active~* {
      display: none !important;
    }

    .news-category-content {
      display: none;
    }

    .news-category-content.active {
      display: block;
    }

    .news-item {
      padding: 15px 0;
      border-bottom: 1px solid #eee;
    }

    .news-item:last-child {
      border-bottom: none;
    }

    .news-item h5 {
      margin-bottom: 5px;
      color: #333;
      cursor: pointer;
      transition: color 0.3s ease;
      font-size: 1.4rem;
    }

    .news-item h5:hover {
      color: #FF8C1A;
    }

    .news-item p {
      margin-bottom: 0;
      font-size: 1.3rem;
    }