@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css);
@import url(https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Mitr:wght@200;300;400;500;600;700&family=Noto+Sans+Thai:wght@100..900&display=swap);
@import url(https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai+Looped:wght@100;200;300;400;500;600;700&family=Mitr:wght@200;300;400;500;600;700&family=Noto+Sans+Thai:wght@100..900&display=swap);
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "noto sans thai" !important;
    font-size: 1.06rem;
    color: #666;
    height: 120vh;
    position: relative;
    background-color: #f9f9f9;
    min-height: calc(100vh - 150px);
}
.f-mitr {
    font-family: "Mitr", sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
}

.f-ibm {
    font-family: "IBM Plex Sans Thai Looped", sans-serif;
    font-size: 18px;
    font-weight: 300;
    font-style: normal;
}

main {
    padding-top: 65px;
    min-height: calc(100vh - 150px);
}

a {
    -webkit-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    transition: 0.3s all ease;
}
a,
a:hover {
    /* text-decoration:underline; */
    text-decoration: none !important;
}

.trafic {
    background-color: #023e94;
}
.trafic a {
    display: block;
    padding: 0.6rem 1.3rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.trafic a.active,
.trafic a:hover {
    background-color: #033479; /* สีแดงเข้มขึ้นเวลาชี้ */
    border-radius: 5px;
    color: #fff;
}

a.title {
    color: rgb(190, 44, 118, 1) !important;
}
a:hover.title {
    color: rgb(190, 44, 118, 0.7) !important;
}

.card-custom {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.border-top-warning {
    border-top: 4px solid #ffc107 !important;
    /* สีเหลือง Bootstrap */
}

.border-top-info {
    border-top: 4px solid #0dcaf0 !important;
    /* สีฟ้า Bootstrap */
}

.border-top-success {
    border-top: 4px solid #198754 !important;
    /* สีเขียว Bootstrap */
}

.border-top-secondary {
    border-top: 4px solid #6c757d !important;
    /* สีเทา Bootstrap */
}

.border-top-blue {
    border-top: 4px solid #255091cc !important;
    /* สีฟ้า Bootstrap */
}

.border-top-pink {
    border-top: 4px solid #d63384 !important;
    /* สีฟ้า Bootstrap */
}

.border-top-violet {
    border-top: 4px solid #bb0ec5 !important;
    /* สีฟ้า Bootstrap */
}
p {
    margin: 0;
}
.cut-text {
    height: 2.6em;
    line-height: 135%;
    text-overflow: ellipsis; /* เพิ่ม ... จุดจุดจุดท้ายสุด */
    display: block;
    overflow: hidden;
    white-space: wrap;
    /* white-space: nowrap; บรรทัดเดียว  */
    /* width: 100%; กำหนดความกว้าง  */
    /* height: 5em; 5 บรรทัด */
}
a.cut-text {
    color: rgba(37, 80, 145, 0.75);
}

a:hover.cut-text {
    color: rgba(37, 80, 145, 0.9);
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    margin-top: 0.4rem;
    line-height: 1.2;
    color: inherit;
    font-weight: bold;
}
h1,
.h1 {
    font-size: 1.6rem;
}
h2,
.h2 {
    font-size: 1.45rem;
}
h3,
.h3 {
    font-size: 1.3rem;
}
h4,
.h4 {
    font-size: 1.15rem;
}
h5,
.h5 {
    font-size: 1rem;
}

.font-bold {
    font-weight: bold;
}

.text-sm,
.font-sm {
    font-size: small;
}

.image-crop {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%; /* หรือกำหนดความกว้างตามต้องการ */
    border-radius: 0px; /* option: ลบออกได้ */
}

.image-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ครอบภาพ */
    object-position: center center; /* ครอปตรงกลาง */
    display: block;
}

.bg-violet {
    background-color: rgb(198, 143, 250) !important;
    color: white !important;
    cursor: pointer !important;
}

.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-animate::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.6s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 0;
}

.btn-animate:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-animate span {
    position: relative;
    z-index: 2;
}

.btn-warning,
.btn-warning:active,
.btn-warning:visited {
    background-color: rgba(252, 81, 19, 0.75) !important;
    border-color: rgba(252, 81, 19, 0.75) !important;
    color: white !important;
}
.btn-warning:hover {
    background-color: rgba(252, 81, 19, 0.85) !important;
    border-color: rgba(252, 81, 19, 0.85) !important;
}

.btn-blue,
.btn-blue:active,
.btn-blue:visited {
    color: white !important;
    background-color: rgba(37, 80, 145, 0.8) !important;
    border-color: rgba(37, 80, 145, 0.8) !important;
}
.btn-blue:hover {
    background-color: rgba(37, 80, 145, 0.9) !important;
    border-color: rgba(37, 80, 145, 0.9) !important;
}

.btn-pink {
    color: white;
    background-color: #d63384;
    border-color: #d63384;
}

.btn-pink:hover,
.btn-pink:focus,
.btn-pink:active {
    background-color: #be2c76;
    border-color: #be2c76;
    color: white;
}

.btn-outline-pink {
    color: #d63384;
    border-color: #d63384;
    background-color: white !important;
    /* transparent */
}

.btn-outline-pink:hover,
.btn-outline-pink:focus,
.btn-outline-pink:active {
    color: white;
    background-color: #d63384 !important;
    border-color: #d63384;
}

.btn-outline-blue {
    color: rgba(37, 80, 145, 0.8);
    border-color: rgba(81, 138, 224, 0.8);
    background-color: transparent;
}

.btn-outline-blue:hover,
.btn-outline-blue:focus,
.btn-outline-blue:active {
    color: #fff;
    background-color: rgba(37, 80, 145, 0.9);
    border-color: rgba(81, 138, 224, 0.9);
}

.btn-my,
.btn-my:active,
.btn-my:visited {
    color: white;
    background-color: rgba(90, 90, 89, 0.75) !important;
    border-color: rgba(100, 100, 109, 0.8) !important;
    padding: 3px 10px;
}
.btn-my:hover {
    color: white;
    background-color: rgba(90, 90, 89, 0.95) !important;
    border-color: rgba(100, 100, 109, 1) !important;
}
.btn-infox,
.btn-infox:active,
.btn-infox:visited {
    color: #efefef;
    background-color: #8064a2;
    border-color: #57436e;
}
.btn-infox:hover {
    color: #fff;
    background-color: #a07dcb;
    border-color: #fafafa;
}

/* Zoom In #1 */
.hover div img {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}
.hover div:hover img {
    -webkit-transform: scale(1.25);
    transform: scale(1.25);
}
.hover div {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
}
.hover {
    background-color: white;
}

.search-wrapper {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    padding: 1rem 0;
}

.form-control.search-input {
    border-radius: 14px;
    border: 2px solid #c1c1c1;
    height: 34px;
    padding-left: 1.2rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control.search-input:focus {
    border-color: #c1c1c1;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.942);
}

.glass-bg {
    background: rgba(255, 255, 255, 0.2); /* โปร่งใสบางๆ */
    backdrop-filter: blur(10px); /* เบลอพื้นหลัง */
    -webkit-backdrop-filter: blur(10px); /* รองรับ Safari */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
}

.modal {
    z-index: 2000 !important;
}
.modal-backdrop {
    z-index: 1990 !important;
}
.modal.show {
    z-index: 2000 !important;
}
.modal-dialog {
    z-index: 2000 !important;
}