@charset "UTF-8";
:root{
    scroll-behavior: smooth;
    --nav-h: 25px;
}

html, body{
    font-family: "Prompt", sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    margin: 0;   /* ลบขอบนอกที่เบราว์เซอร์กำหนดมาให้ */
    padding: 0;  /* ลบช่องว่างภายในที่เบราว์เซอร์กำหนดมาให้ */
    padding-top: var(--nav-h);
}

#topNav {
  opacity: 75 !important;
  /* visibility: hidden !important;
  transform: translateY(-100%) !important;
  pointer-events: none !important;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s !important; */
  z-index: 1040 !important; /* คง z-index ไว้ตามที่ตั้ง */
  background: transparent !important;      /* ป้องกันพื้นหลังโผล่ตอนซ่อน */
  box-shadow: none !important;
}

/* โชว์เมื่อเลื่อนเกิน offset */
#topNav.show-nav {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  transition: transform .35s ease, opacity .35s ease !important;
  background: #ffffff !important;          /* ทึบตอนแสดง */
  box-shadow: 0 6px 16px rgba(0,0,0,.12) !important;
}

/* ใส่ padding-top ให้เนื้อหาเฉพาะตอน nav โผล่ (กันทับ) */
body.nav-visible {
  padding-top: var(--nav-h) !important;
}

/* ถ้ามี anchor jump (#id) ใช้ค่าจาก --nav-h เดิมได้เลย */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px) !important; }


.full-screen1{
    height: 100vh; /* เต็มความสูงหน้าจอ */
    width: 100vw;  /* เต็มความกว้างหน้าจอ */
}

.small-toggler{
  border-color: rgba(255,255,255,1) !important;
}
/* ย่อเฉพาะไอคอน (ขนาดเดิม 1.5em) */
.small-toggler .navbar-toggler-icon{
    width: 1rem;
    height: 1.3rem;
    background-size: 100% 100%;

    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ถ้าอยากให้ปุ่มทั้งก้อนเล็กลงด้วย */
/* .small-toggler{
  padding: .2rem .4rem;
  font-size: .9rem;
}  */


/* underline link */
a:link {
    text-decoration: none !important;
    color: inherit !important;
}
a:visited {
    text-decoration: none !important;
    color: inherit !important;
}
a:hover {
    text-decoration: none !important;
    color: inherit !important;
}
a:active {
    text-decoration: none !important;
    color: inherit !important;
}


/* color-web-bg */
.bg-web {
    background-color: #2e3192 !important;
}
.bg-red{
    background-color: #DC3545 !important;
}
.bg-blue{
    background-color: #0DCAF0 !important;
}
.bg-orange {
    background:#FF9900 !important;
}
.bg-yellow{
    background-color: #fdf363 !important;
}
.bg-search{
    background-color: #ffffff;
}
.bg-search:hover{
    background-color: #e0e0e0;
}
.bg-base{
    background-color: #009688 !important;
}
.bg-gray{
    background-color: #f1efef !important;
}
.bg-gray-2{
    background-color: #fafafa !important;
}

/* text-color */
.text-web{
    color: #2e3192 !important;
}
.text-red{
    color: red !important;
}
.text-blue{
    color: blue !important;
}
.text-orange{
    color: orange !important;
}
.text-orange2{
    color: rgb(243, 73, 5) !important;
}
.text-yellow{
    color: yellow !important;
}
.text-green{
    color: green !important;
}
.text-brown{
    color: #795548 !important;
}
.text-gray{
    color: #808080 !important;
}


@keyframes metallicCycle{
    0%   { color: #2c2c2c; text-shadow: 1px 1px 2px #444; }
    25%  { color: #3f3f3f; text-shadow: 1px 1px 3px #555; }
    50%  { color: #5a5a5a; text-shadow: 2px 2px 4px #777; }
    75%  { color: #2a3c4d; text-shadow: 1px 1px 3px #444; }
    100% { color: #2c2c2c; text-shadow: 1px 1px 2px #333; }
}
.metallic-text{
    text-transform: uppercase;
    animation: metallicCycle 5s infinite ease-in-out;
    letter-spacing: 1px;
}

/* border-web */
.border-red{
    border: 1px solid #DC3545 !important;
}
.border-yellow{
    border: 1px solid #fdf363 !important;
}
.border-web{
    border: 1px solid #2e3192 !important;
}
.border-web-b{
    border-bottom: 1px solid #2e3192 !important;
}

.border-web .dropdown-item:hover {
    background-color: #dbdbdb;
    color: white;
}

.border-no-top{
    border-top: 4px solid #2e3192 !important;
    border-bottom: 4px solid #2e3192 !important;
    border-left: 4px solid #2e3192 !important;
    border-right: 4px solid #2e3192 !important;
    border-radius: 5px;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
}

/* font */
.fs-7{
    font-size: 7px;
}

.fs-8{
    font-size: 8px;
}

.fs-9{
    font-size: 9px;
}

.fs-10{
    font-size: 10px;
}

.fs-11{
    font-size: 11px;
}

.fs-12{
    font-size: 12px;
}

.fs-13{
    font-size: 13px;
}

.fs-14{
    font-size: 14px;
}

.fs-15{
    font-size: 15px;
}


.fs-16{
    font-size: 16px;
}

.fs-17{
    font-size: 17px;
}

.fs-18{
    font-size: 18px;
}

.fs-19{
    font-size: 19px;
}

.fs-20{
    font-size: 20px;
}

.fs-21{
    font-size: 21px;
}

.fs-22{
    font-size: 22px;
}

.fs-24{
    font-size: 24px;
}

.fs-26{
    font-size: 26px;
}

.fs-28{
    font-size: 28px;
}

.fs-30{
    font-size: 30px;
}

.fs-33{
    font-size: 33px;
}

.fs-35{
    font-size: 35px;
}

.fs-38{
    font-size: 38px;
}

.fs-40{
    font-size: 40px;
}

.fs-42{
    font-size: 42px;
}

.fw-800{
    font-weight:800;
}

.fw-900{
    font-weight:900;
}

.btn-web{
    border-color: #f16f33 !important;
    color: #2e3192 !important;
}
.btn-web:hover{
    background-color: #f8d5ad !important;
    color: #f16f33 !important;
}

/* hide scrollbar */
.hide-scrollbar{
    overflow: scroll; /* เลื่อนได้ */
    scrollbar-width: none; /* สำหรับ Firefox */
}
.hide-scrollbar::-webkit-scrollbar{
display: none; /* ซ่อน scrollbar */
}
/* hide scrollbar - y */
.hide-scrollbar-y{
    overflow-y: scroll;
    scrollbar-width: none;
}
.hide-scrollbar-y::-webkit-scrollbar{
    display: none;
}


/* hover btn */
.hover-grow{
    /* transition: transform 0.2s ease-in-out; */
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}
.hover-grow:hover{
    transform: scale(1.05); /* ขยายขึ้น 5% */
}

.hover-grow-border{
    /* transition: transform 0.2s ease-in-out; */
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}
.hover-grow-border:hover{
    transform: scale(1.05); /* ขยายขึ้น 5% */
    border: 2px solid #2e3192;
}

.hover-shadow{
    border: 2px solid #dee2e6;
    transition: box-shadow 0.3s ease;
}
.hover-shadow:hover{
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
    transform: translateY(-2px); /* ลอยนิดๆ */
    border: 2px solid #2e3192;
}


/* shadow */
.shadow-soft {
    box-shadow:
    0 4px 6px rgba(0,0,0,0.1),
    0 0 10px rgba(0,0,0,0.05);
}
.shadow-hard {
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.25);
}

/* ปุ่ม disabled */
.disabled-div {
    pointer-events: none;
    opacity: 0.7;
    z-index: 0;
    cursor: not-allowed;
}
.disabled-div .t-disabled {
    position: absolute;
    z-index: 9999;
    background-color: #fff !important;
    color: orange !important;
}


/* news */
.font-news-title {
    font-size: 20px;
}
.font-news-content {
    font-size: 24px;
}
.img-news {
    width: auto;
    max-height: 600px;
}
@media (max-width: 648px) {
    .font-news-title {
        font-size: 16px;
    }
    .font-news-content {
        font-size: 16px;
    }
    /* .img-news {
        width: auto;
        max-height: 300px;
    } */
}


/* about */
.font-about-title {
    font-size: 20px;
}
.font-about-content {
    font-size: 18px;
}
.img-about {
    width: auto;
    max-height: 800px;
}
@media (max-width: 648px) {
    .font-about-title {
        font-size: 16px;
    }
    .font-about-content {
        font-size: 14px;
    }
    .img-about {
        width: auto;
        height: 380px;
    }
}



/* font foot */
.font-f-title {
    font-size: 20px;
}
.font-f-content {
    font-size: 18px;
}
.font-f-contact {
    font-size: 40px;
}

.img-logo-tk{
    max-height: 160px;
}

.img-logo-trt{
    max-height: 160px;
}

.img-logo-c{
    max-height: 80px;
}
@media (max-width: 960px) {
    .font-f-title{
        font-size: 16px;
    }
    .font-f-content {
        font-size: 14px;
    }
    .font-f-contact {
        font-size: 20px;
    }
    .img-logo-tk{
        max-height: 70px;
    }
    .img-logo-trt{
        max-height: 90px;
    }
    .img-logo-c{
        max-height: 50px;
    }
}

/* img modal history */
@media (max-width: 576.98px) {
  /* เจาะจงกว่า .img-fluid เพื่อ override height:auto */
  .img-fluid.img-mobile-tall {
    width: 100%;
    height: clamp(240px, 70vw, 420px); /* ปรับตัวเลขได้ตามต้องการ */
    object-fit: cover;
    object-position: center; /* เล็งกลางภาพ (เปลี่ยนเป็น top / 50% 30% ได้) */
    display: block;
  }
}

@media (max-width: 576.98px) {
  .profile-img-size {
    width: 100%;
    height: clamp(305px, 50vw, 500px);
    object-fit: cover;
    object-position: center;
    display: block;
    padding: 5px;
  }
}

/* ตัดคำ */
.cut-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;    /* จำนวนบรรทัดที่จะให้แสดง (เช่น 3 บรรทัด ≈ 100 ตัวอักษร) */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* pharmarcist */
.img-grow {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block; /* กัน element บางตัวไม่ทำงาน */
}

.img-grow:hover {
  transform: scale(1.02); /* ขยายเล็กน้อย */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* เงาให้นูน */
  cursor: pointer;
}

.call-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); /* พื้นหลังโปร่งดำ */
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.call-overlay:hover {
  opacity: 1; /* โชว์ overlay เวลา hover */
}
