/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
    border-radius: 50px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: inherit;
}

.btn-primary {
    color: var(--bs-white);
}


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 200px;
    min-height: 60vh;
    background:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url("../img/r4.png") center center / cover no-repeat;
}


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, .5);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}


/*** Team ***/
/*** TEAM – FORCE SAME SIZE ***/
.team-item {
    position: relative;
    height: 420px;                 /* 🔥 ล็อกความสูงการ์ดทั้งหมด */
}

/* รูป */
.team-item .team-body {
    height: 300px;                 /* รูปสูงเท่ากัน */
    overflow: hidden;
    position: relative;
}

.team-item .team-body img {
    width: 100%;
    height: 100% !important;       /* ชนะ img-fluid */
    object-fit: cover !important;  /* ครอป ไม่ยืด */
    object-position: center center;
    display: block;
}

/* กล่องชื่อด้านล่าง */
.team-item .team-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;                 /* 🔥 สำคัญ: รองรับข้อความยาว */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.7);
    text-align: center;
    padding: 8px 10px;
}

/* คุมตัวอักษร ไม่ให้ดันการ์ด */
.team-item .team-name h5 {
    margin: 0;
    line-height: 1.25;
}

.team-item .team-name h5:last-child {
    max-height: 2.6em;             /* ไม่เกิน 2 บรรทัด */
    overflow: hidden;
}

/* Hover overlay ให้ตรงกับความสูงใหม่ */
.team-item .team-body .team-before,
.team-item .team-body .team-after {
    height: calc(100% - 120px);
}

/* Mobile */
@media (max-width: 767.98px) {
    .team-item { height: 380px; }
    .team-item .team-body { height: 260px; }
    .team-item .team-name { height: 120px; }
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
	background-image: url(../img/footer-bg.png);
	background-position: 0px 0px;
    background-repeat: repeat-x;
	animation: footerAnimatedBg 50s linear infinite;
}
/* ===== CONTACT SECTION BACKGROUND (FIXED) ===== */
.contact-section {
    min-height: 100vh;               /* 🔥 บังคับให้ section มีความสูง */
    padding: 80px 0;                 /* เว้นระยะบน–ล่าง */
    background:
        linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)),
        url("../img/r4.png") center center / cover no-repeat;
}

/* ตัวหนังสือใน Contact */
.contact-section h1,
.contact-section h4,
.contact-section h5,
.contact-section td {
    color: #ffffff;
}
/* ================================
   FIX: TEXT OVERLAP ON MOBILE
   (Add this at the END of your CSS)
================================== */

/* 1) ปรับ Header/Carousel บนมือถือให้ข้อความไม่ทับกัน */
@media (max-width: 576px) {
    .carousel-caption {
        padding-top: 72px !important;   /* ลดจาก 100px */
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* ลดหัวข้อใหญ่ที่มักใช้ display-1 */
    .carousel-caption .display-1,
    .carousel-caption h1 {
        font-size: 2.1rem !important;
        line-height: 1.12 !important;
        margin-bottom: 12px !important;
        word-break: break-word;
    }

    /* ลดข้อความยาวๆ ใต้หัวข้อ */
    .carousel-caption p,
    .carousel-caption .fs-5,
    .carousel-caption .fs-4 {
        font-size: 1rem !important;
        line-height: 1.75 !important;
    }
}

/* 2) FIX หลัก: Title line ของ template (เส้นก่อน/หลัง h5) ทำให้ซ้อนในมือถือ */
@media (max-width: 576px) {
    /* ให้ title เป็น block และเว้นระยะชัดขึ้น */
    .title .title-left,
    .title .title-center,
    .title .title-right {
        display: block !important;
        overflow: visible !important;
    }

    /* ปรับขนาด h5/h1 ใน title ให้พอดีมือถือ */
    .title .title-left h5,
    .title .title-center h5,
    .title .title-right h5 {
        font-size: 14px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .title .title-left h1,
    .title .title-center h1,
    .title .title-right h1 {
        font-size: 1.8rem !important;
        line-height: 1.15 !important;
        margin-bottom: 10px !important;
        word-break: break-word;
    }

    /* ปิดเส้นยาวๆ ก่อน/หลัง h5 บนมือถือ (ตัวการทำให้ซ้อน) */
    .title .title-left h5::after,
    .title .title-center h5::before,
    .title .title-center h5::after,
    .title .title-right h5::before {
        content: none !important;
        display: none !important;
    }

    /* เส้นใต้ h1 ถ้าทำให้ดูแน่นเกินไป ลดให้บางลง (คงไว้ แต่ไม่รบกวน) */
    .title .title-left h1,
    .title .title-center h1,
    .title .title-right h1 {
        border-bottom-width: 1px !important;
    }
}

/* 3) กันข้อความใน section อื่นที่ใช้ title เดิมไม่ให้ชนกันบนจอเล็ก */
@media (max-width: 768px) {
    .title {
        margin-bottom: 1.25rem !important;
    }
}
/* ================================
   FIX: LOGO OVERLAPS TEXT ON MOBILE
   (Paste at END of your CSS)
================================== */

/* 1) ลดขนาดโลโก้+ความสูง navbar บนมือถือ */
@media (max-width: 576px) {

  /* ลด padding ของ navbar เพื่อไม่กินพื้นที่จอ */
  .navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* ถ้าโลโก้เป็น <img> ใน .navbar-brand (ตามโค้ดที่เคยใช้ height:150px) */
  .navbar .navbar-brand img {
    height: 64px !important;     /* ปรับได้: 56-72 */
    width: auto !important;
    max-width: 52vw !important;  /* กันโลโก้ใหญ่เกินครึ่งจอ */
    object-fit: contain;
  }

  /* ปุ่ม hamburger ไม่ให้ทับโลโก้ */
  .navbar .navbar-toggler {
    padding: 6px 10px !important;
    margin-right: 10px !important;
  }

  /* เมนูที่ dropdown ลงมาในมือถืออย่าให้หนา */
  .navbar .navbar-nav .nav-link,
  .navbar.bg-dark .navbar-nav .nav-link {
    padding: 10px 0 !important;
    font-size: 15px !important;
  }
}

/* 2) ดันข้อความใน carousel ลงมาให้พ้นโลโก้/navbar */
@media (max-width: 576px) {
  .carousel-caption {
    padding-top: 130px !important; /* ✅ สำคัญ: กันโลโก้บังข้อความ */
  }
}

/* 3) จอมือถือแนวนอน/จอเตี้ย (กันบังเพิ่ม) */
@media (max-width: 768px) and (max-height: 500px) {
  .navbar .navbar-brand img {
    height: 54px !important;
  }
  .carousel-caption {
    padding-top: 115px !important;
  }
}
/* ================================
   DROPDOWN BEAUTIFY (Black/Gold)
   (Paste at END of your CSS)
================================== */

/* กล่อง Dropdown */
.navbar .dropdown-menu{
  background: rgba(0,0,0,.92) !important;
  border: 1px solid rgba(201,162,77,.35) !important; /* #C9A24D */
  border-radius: 16px !important;
  padding: 10px !important;
  min-width: 220px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* รายการใน Dropdown */
.navbar .dropdown-item{
  color: rgba(255,255,255,.92) !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 15px;
  letter-spacing: .2px;
  transition: .18s ease-in-out;
}

/* Hover/Focus */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus{
  background: rgba(201,162,77,.16) !important;
  color: #fff !important;
  transform: translateX(2px);
}

/* Active (หน้าที่เลือกอยู่) */
.navbar .dropdown-item.active,
.navbar .dropdown-item:active{
  background: rgba(201,162,77,.28) !important;
  color: #fff !important;
}

/* เส้นคั่นใน dropdown (ถ้ามี) */
.navbar .dropdown-divider{
  border-top: 1px solid rgba(255,255,255,.12) !important;
  margin: 8px 6px !important;
}

/* ปรับลูกศร dropdown ให้เป็นสีทอง */
.navbar .dropdown-toggle::after{
  color: #C9A24D;
  opacity: .95;
}

/* ====== MOBILE: ให้ dropdown ในโหมด collapse ดูเป็นกล่องสวยๆ ====== */
@media (max-width: 991.98px){
  /* ให้ dropdown ไม่ลอยแยก แต่เป็นบล็อกใต้เมนู */
  .navbar .dropdown-menu{
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin-top: 6px !important;
    box-shadow: none !important;
  }

  /* ทำให้มันเหมือน sub-menu */
  .navbar .dropdown-item{
    padding: 11px 14px !important;
  }
}

/* ====== DESKTOP: ใส่ animation เวลาแสดง dropdown (สวยขึ้น) ====== */
@media (min-width: 992px){
  .navbar .nav-item .dropdown-menu{
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .navbar .nav-item:hover .dropdown-menu{
    transform: translateY(0);
  }
}
/* =================================
FIX MOBILE MENU OVER TEXT
================================= */

@media (max-width: 991.98px){

/* เมนู dropdown มือถือ */
.navbar-collapse{
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    padding:20px;
    border-radius:15px;
    margin-top:10px;
}

/* เมนูแต่ละรายการ */
.navbar-nav .nav-link{
    padding:12px 0 !important;
    font-size:18px;
    color:#fff !important;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

/* hover */
.navbar-nav .nav-link:hover{
    color:#C9A24D !important;
}

/* ป้องกันเมนูทับข้อความ */
.navbar{
    background: rgba(0,0,0,0.85);
}

/* ทำให้ข้อความด้านล่างเลื่อนลง */
.carousel-caption{
    padding-top:160px !important;
}

}


/* =================================
MAKE HEADER TEXT MORE BEAUTIFUL
================================= */

/* ทำให้ข้อความเด่นขึ้น */
.carousel-caption h1{
    text-shadow:
    0 3px 10px rgba(0,0,0,0.8),
    0 6px 20px rgba(0,0,0,0.6);
}

/* เพิ่มกรอบพื้นหลังบางๆ */
.carousel-caption p{
    background: rgba(0,0,0,0.55);
    padding:18px;
    border-radius:12px;
    backdrop-filter: blur(6px);
}

/* ปรับขนาดมือถือ */
@media (max-width:576px){

.carousel-caption h1{
    font-size:2.2rem;
    line-height:1.15;
}

.carousel-caption p{
    font-size:0.95rem;
    line-height:1.7;
}

}


/* =================================
SMOOTH MENU ANIMATION
================================= */

.navbar-collapse{
    transition:all .3s ease;
}
/* Mobile text size fix for all languages */
@media (max-width: 768px){

    .carousel-caption h1{
        font-size: 36px !important;
        line-height: 1.3;
    }

    .carousel-caption h5{
        font-size: 18px !important;
    }

    .carousel-caption p{
        font-size: 16px !important;
        line-height: 1.7;
    }

}
/* Fix mobile alignment only */
@media (max-width:768px){

.carousel-caption .title-center{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.carousel-caption .title-center h1{
    min-height:2.2em;
}

}
/* Move English title slightly lower on mobile */
@media (max-width:768px){

html[lang="en"] .carousel-caption .title-center h1{
    margin-top:10px;
}

}
/* Move English title down on mobile */
@media (max-width:768px){

html[lang="en"] .carousel-caption .title-center h1{
    margin-top:70px !important;
}

}
/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
    border-radius: 50px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: inherit;
}

.btn-primary {
    color: var(--bs-white);
}


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 200px;
    min-height: 60vh;
    background:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url("../img/r4.png") center center / cover no-repeat;
}


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, .5);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}


/*** Team ***/
/*** TEAM – FORCE SAME SIZE ***/
.team-item {
    position: relative;
    height: 420px;                 /* 🔥 ล็อกความสูงการ์ดทั้งหมด */
}

/* รูป */
.team-item .team-body {
    height: 300px;                 /* รูปสูงเท่ากัน */
    overflow: hidden;
    position: relative;
}

.team-item .team-body img {
    width: 100%;
    height: 100% !important;       /* ชนะ img-fluid */
    object-fit: cover !important;  /* ครอป ไม่ยืด */
    object-position: center center;
    display: block;
}

/* กล่องชื่อด้านล่าง */
.team-item .team-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;                 /* 🔥 สำคัญ: รองรับข้อความยาว */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.7);
    text-align: center;
    padding: 8px 10px;
}

/* คุมตัวอักษร ไม่ให้ดันการ์ด */
.team-item .team-name h5 {
    margin: 0;
    line-height: 1.25;
}

.team-item .team-name h5:last-child {
    max-height: 2.6em;             /* ไม่เกิน 2 บรรทัด */
    overflow: hidden;
}

/* Hover overlay ให้ตรงกับความสูงใหม่ */
.team-item .team-body .team-before,
.team-item .team-body .team-after {
    height: calc(100% - 120px);
}

/* Mobile */
@media (max-width: 767.98px) {
    .team-item { height: 380px; }
    .team-item .team-body { height: 260px; }
    .team-item .team-name { height: 120px; }
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
	background-image: url(../img/footer-bg.png);
	background-position: 0px 0px;
    background-repeat: repeat-x;
	animation: footerAnimatedBg 50s linear infinite;
}
/* ===== CONTACT SECTION BACKGROUND (FIXED) ===== */
.contact-section {
    min-height: 100vh;               /* 🔥 บังคับให้ section มีความสูง */
    padding: 80px 0;                 /* เว้นระยะบน–ล่าง */
    background:
        linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)),
        url("../img/r4.png") center center / cover no-repeat;
}

/* ตัวหนังสือใน Contact */
.contact-section h1,
.contact-section h4,
.contact-section h5,
.contact-section td {
    color: #ffffff;
}
/* ================================
   FIX: TEXT OVERLAP ON MOBILE
   (Add this at the END of your CSS)
================================== */

/* 1) ปรับ Header/Carousel บนมือถือให้ข้อความไม่ทับกัน */
@media (max-width: 576px) {
    .carousel-caption {
        padding-top: 72px !important;   /* ลดจาก 100px */
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* ลดหัวข้อใหญ่ที่มักใช้ display-1 */
    .carousel-caption .display-1,
    .carousel-caption h1 {
        font-size: 2.1rem !important;
        line-height: 1.12 !important;
        margin-bottom: 12px !important;
        word-break: break-word;
    }

    /* ลดข้อความยาวๆ ใต้หัวข้อ */
    .carousel-caption p,
    .carousel-caption .fs-5,
    .carousel-caption .fs-4 {
        font-size: 1rem !important;
        line-height: 1.75 !important;
    }
}

/* 2) FIX หลัก: Title line ของ template (เส้นก่อน/หลัง h5) ทำให้ซ้อนในมือถือ */
@media (max-width: 576px) {
    /* ให้ title เป็น block และเว้นระยะชัดขึ้น */
    .title .title-left,
    .title .title-center,
    .title .title-right {
        display: block !important;
        overflow: visible !important;
    }

    /* ปรับขนาด h5/h1 ใน title ให้พอดีมือถือ */
    .title .title-left h5,
    .title .title-center h5,
    .title .title-right h5 {
        font-size: 14px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .title .title-left h1,
    .title .title-center h1,
    .title .title-right h1 {
        font-size: 1.8rem !important;
        line-height: 1.15 !important;
        margin-bottom: 10px !important;
        word-break: break-word;
    }

    /* ปิดเส้นยาวๆ ก่อน/หลัง h5 บนมือถือ (ตัวการทำให้ซ้อน) */
    .title .title-left h5::after,
    .title .title-center h5::before,
    .title .title-center h5::after,
    .title .title-right h5::before {
        content: none !important;
        display: none !important;
    }

    /* เส้นใต้ h1 ถ้าทำให้ดูแน่นเกินไป ลดให้บางลง (คงไว้ แต่ไม่รบกวน) */
    .title .title-left h1,
    .title .title-center h1,
    .title .title-right h1 {
        border-bottom-width: 1px !important;
    }
}

/* 3) กันข้อความใน section อื่นที่ใช้ title เดิมไม่ให้ชนกันบนจอเล็ก */
@media (max-width: 768px) {
    .title {
        margin-bottom: 1.25rem !important;
    }
}
/* ================================
   FIX: LOGO OVERLAPS TEXT ON MOBILE
   (Paste at END of your CSS)
================================== */

/* 1) ลดขนาดโลโก้+ความสูง navbar บนมือถือ */
@media (max-width: 576px) {

  /* ลด padding ของ navbar เพื่อไม่กินพื้นที่จอ */
  .navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* ถ้าโลโก้เป็น <img> ใน .navbar-brand (ตามโค้ดที่เคยใช้ height:150px) */
  .navbar .navbar-brand img {
    height: 64px !important;     /* ปรับได้: 56-72 */
    width: auto !important;
    max-width: 52vw !important;  /* กันโลโก้ใหญ่เกินครึ่งจอ */
    object-fit: contain;
  }

  /* ปุ่ม hamburger ไม่ให้ทับโลโก้ */
  .navbar .navbar-toggler {
    padding: 6px 10px !important;
    margin-right: 10px !important;
  }

  /* เมนูที่ dropdown ลงมาในมือถืออย่าให้หนา */
  .navbar .navbar-nav .nav-link,
  .navbar.bg-dark .navbar-nav .nav-link {
    padding: 10px 0 !important;
    font-size: 15px !important;
  }
}

/* 2) ดันข้อความใน carousel ลงมาให้พ้นโลโก้/navbar */
@media (max-width: 576px) {
  .carousel-caption {
    padding-top: 130px !important; /* ✅ สำคัญ: กันโลโก้บังข้อความ */
  }
}

/* 3) จอมือถือแนวนอน/จอเตี้ย (กันบังเพิ่ม) */
@media (max-width: 768px) and (max-height: 500px) {
  .navbar .navbar-brand img {
    height: 54px !important;
  }
  .carousel-caption {
    padding-top: 115px !important;
  }
}
/* ================================
   DROPDOWN BEAUTIFY (Black/Gold)
   (Paste at END of your CSS)
================================== */

/* กล่อง Dropdown */
.navbar .dropdown-menu{
  background: rgba(0,0,0,.92) !important;
  border: 1px solid rgba(201,162,77,.35) !important; /* #C9A24D */
  border-radius: 16px !important;
  padding: 10px !important;
  min-width: 220px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* รายการใน Dropdown */
.navbar .dropdown-item{
  color: rgba(255,255,255,.92) !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 15px;
  letter-spacing: .2px;
  transition: .18s ease-in-out;
}

/* Hover/Focus */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus{
  background: rgba(201,162,77,.16) !important;
  color: #fff !important;
  transform: translateX(2px);
}

/* Active (หน้าที่เลือกอยู่) */
.navbar .dropdown-item.active,
.navbar .dropdown-item:active{
  background: rgba(201,162,77,.28) !important;
  color: #fff !important;
}

/* เส้นคั่นใน dropdown (ถ้ามี) */
.navbar .dropdown-divider{
  border-top: 1px solid rgba(255,255,255,.12) !important;
  margin: 8px 6px !important;
}

/* ปรับลูกศร dropdown ให้เป็นสีทอง */
.navbar .dropdown-toggle::after{
  color: #C9A24D;
  opacity: .95;
}

/* ====== MOBILE: ให้ dropdown ในโหมด collapse ดูเป็นกล่องสวยๆ ====== */
@media (max-width: 991.98px){
  /* ให้ dropdown ไม่ลอยแยก แต่เป็นบล็อกใต้เมนู */
  .navbar .dropdown-menu{
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin-top: 6px !important;
    box-shadow: none !important;
  }

  /* ทำให้มันเหมือน sub-menu */
  .navbar .dropdown-item{
    padding: 11px 14px !important;
  }
}

/* ====== DESKTOP: ใส่ animation เวลาแสดง dropdown (สวยขึ้น) ====== */
@media (min-width: 992px){
  .navbar .nav-item .dropdown-menu{
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .navbar .nav-item:hover .dropdown-menu{
    transform: translateY(0);
  }
}
/* =================================
FIX MOBILE MENU OVER TEXT
================================= */

@media (max-width: 991.98px){

/* เมนู dropdown มือถือ */
.navbar-collapse{
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    padding:20px;
    border-radius:15px;
    margin-top:10px;
}

/* เมนูแต่ละรายการ */
.navbar-nav .nav-link{
    padding:12px 0 !important;
    font-size:18px;
    color:#fff !important;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

/* hover */
.navbar-nav .nav-link:hover{
    color:#C9A24D !important;
}

/* ป้องกันเมนูทับข้อความ */
.navbar{
    background: rgba(0,0,0,0.85);
}

/* ทำให้ข้อความด้านล่างเลื่อนลง */
.carousel-caption{
    padding-top:160px !important;
}

}


/* =================================
MAKE HEADER TEXT MORE BEAUTIFUL
================================= */

/* ทำให้ข้อความเด่นขึ้น */
.carousel-caption h1{
    text-shadow:
    0 3px 10px rgba(0,0,0,0.8),
    0 6px 20px rgba(0,0,0,0.6);
}

/* เพิ่มกรอบพื้นหลังบางๆ */
.carousel-caption p{
    background: rgba(0,0,0,0.55);
    padding:18px;
    border-radius:12px;
    backdrop-filter: blur(6px);
}

/* ปรับขนาดมือถือ */
@media (max-width:576px){

.carousel-caption h1{
    font-size:2.2rem;
    line-height:1.15;
}

.carousel-caption p{
    font-size:0.95rem;
    line-height:1.7;
}

}


/* =================================
SMOOTH MENU ANIMATION
================================= */

.navbar-collapse{
    transition:all .3s ease;
}
/* Mobile text size fix for all languages */
@media (max-width: 768px){

    .carousel-caption h1{
        font-size: 36px !important;
        line-height: 1.3;
    }

    .carousel-caption h5{
        font-size: 18px !important;
    }

    .carousel-caption p{
        font-size: 16px !important;
        line-height: 1.7;
    }

}
/* Fix mobile alignment only */
@media (max-width:768px){

.carousel-caption .title-center{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.carousel-caption .title-center h1{
    min-height:2.2em;
}

}
/* Move English title slightly lower on mobile */
@media (max-width:768px){

html[lang="en"] .carousel-caption .title-center h1{
    margin-top:10px;
}

}
/* Move English title down on mobile */
@media (max-width:768px){

html[lang="en"] .carousel-caption .title-center h1{
    margin-top:70px !important;
}

}

/* =====================================================
   MOBILE FINAL FIX
   เพิ่มส่วนนี้ท้ายสุดเพื่อจัดข้อความมือถือให้อ่านง่ายขึ้น
===================================================== */
@media (max-width: 768px) {

    /* ===== Navbar ให้สมดุลขึ้น ===== */
    .navbar {
        background: rgba(0, 0, 0, 0.88) !important;
        padding: 8px 14px !important;
        min-height: 76px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .navbar .navbar-brand {
        display: flex;
        align-items: center;
        max-width: 72%;
        margin-right: 0 !important;
    }

    .navbar .navbar-brand img {
        height: 56px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain;
        display: block;
    }

    .navbar .navbar-toggler {
        border: none !important;
        box-shadow: none !important;
        padding: 6px 8px !important;
        margin-right: 0 !important;
    }

    .navbar-collapse {
        background: rgba(0,0,0,0.96) !important;
        padding: 16px 18px !important;
        border-radius: 16px !important;
        margin-top: 12px !important;
        box-shadow: 0 12px 28px rgba(0,0,0,.28);
    }

    .navbar .navbar-nav {
        margin-top: 0 !important;
        border-top: none !important;
    }

    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link,
    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        font-size: 15px !important;
        line-height: 1.45 !important;
        letter-spacing: .3px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        margin-right: 0 !important;
    }

    .navbar .dropdown-menu {
        border-radius: 14px !important;
        padding: 8px !important;
    }

    .navbar .dropdown-item {
        font-size: 14px !important;
        line-height: 1.45 !important;
        padding: 10px 12px !important;
    }

    /* ===== Header / Carousel ===== */
    #header-carousel .carousel-item {
        min-height: 620px !important;
    }

    .carousel-caption {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 145px !important;
        padding-bottom: 38px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,.80),
            rgba(0,0,0,.62),
            rgba(0,0,0,.84)
        ) !important;
    }

    .carousel-caption .title {
        width: 100%;
        margin-bottom: 14px !important;
    }

    .carousel-caption .title-center,
    .carousel-caption .title-left,
    .carousel-caption .title-right {
        width: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        overflow: visible !important;
    }

    .carousel-caption h5,
    .title .title-left h5,
    .title .title-center h5,
    .title .title-right h5 {
        font-size: 14px !important;
        line-height: 1.4 !important;
        letter-spacing: 1px;
        margin-bottom: 10px !important;
        color: rgba(255,255,255,.88) !important;
        font-weight: 400 !important;
    }

    .carousel-caption h1,
    .carousel-caption .display-1,
    .title .title-left h1,
    .title .title-center h1,
    .title .title-right h1 {
        font-size: 2rem !important;
        line-height: 1.22 !important;
        letter-spacing: .3px;
        margin-top: 0 !important;
        margin-bottom: 14px !important;
        padding-bottom: 8px;
        word-break: break-word;
        border-bottom: 1px solid rgba(255,255,255,.35) !important;
        text-shadow:
            0 2px 8px rgba(0,0,0,.72),
            0 6px 18px rgba(0,0,0,.48);
        min-height: auto !important;
    }

    .carousel-caption p,
    .carousel-caption .fs-4,
    .carousel-caption .fs-5 {
        max-width: 100%;
        margin: 0 auto !important;
        font-size: 15px !important;
        line-height: 1.8 !important;
        letter-spacing: .15px;
        padding: 14px 16px !important;
        border-radius: 14px !important;
        background: rgba(0,0,0,.44) !important;
        color: rgba(255,255,255,.96) !important;
        box-shadow: 0 6px 20px rgba(0,0,0,.18);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    /* ปิดเส้นตกแต่ง title บนมือถือ */
    .title .title-left h5::after,
    .title .title-center h5::before,
    .title .title-center h5::after,
    .title .title-right h5::before {
        content: none !important;
        display: none !important;
    }

    .title {
        margin-bottom: 1.2rem !important;
    }

    .title .title-left,
    .title .title-center,
    .title .title-right {
        display: block !important;
        overflow: visible !important;
    }

    /* ยกเลิกการดันหัวข้อภาษาอังกฤษลงมากเกินไป */
    html[lang="en"] .carousel-caption .title-center h1 {
        margin-top: 0 !important;
    }

    /* ===== section spacing ===== */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* ===== Team section ===== */
    .team-item {
        height: 370px !important;
        border-radius: 16px;
        overflow: hidden;
    }

    .team-item .team-body {
        height: 245px !important;
    }

    .team-item .team-name {
        height: 125px !important;
        padding: 10px 12px !important;
        background: rgba(0,0,0,.76) !important;
    }

    .team-item .team-name h5 {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    /* ===== Service ===== */
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 28px !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .service-item .service-img::before {
        width: calc(100% - 5rem) !important;
        height: calc(100% - 5rem) !important;
        border-width: 1.25rem !important;
    }

    /* ===== Contact ===== */
    .contact-section {
        min-height: auto !important;
        padding: 60px 0 !important;
    }

    .contact-section h1 {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
    }

    .contact-section h4,
    .contact-section h5,
    .contact-section td,
    .contact-section p,
    .contact-section a {
        font-size: 15px !important;
        line-height: 1.75 !important;
    }
}

@media (max-width: 576px) {

    .navbar {
        min-height: 72px;
        padding: 8px 12px !important;
    }

    .navbar .navbar-brand img {
        height: 50px !important;
        max-width: 58vw !important;
    }

    .carousel-caption {
        padding-top: 132px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-bottom: 32px !important;
    }

    .carousel-caption h5,
    .title .title-left h5,
    .title .title-center h5,
    .title .title-right h5 {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .carousel-caption h1,
    .carousel-caption .display-1,
    .title .title-left h1,
    .title .title-center h1,
    .title .title-right h1 {
        font-size: 1.72rem !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .carousel-caption p,
    .carousel-caption .fs-4,
    .carousel-caption .fs-5 {
        font-size: 14px !important;
        line-height: 1.8 !important;
        padding: 12px 14px !important;
        border-radius: 12px !important;
    }

    .team-item {
        height: 355px !important;
    }

    .team-item .team-body {
        height: 230px !important;
    }

    .team-item .team-name {
        height: 125px !important;
    }
}
/* FIX เฉพาะมือถือ: ให้เส้นข้าง "ยินดีต้อนรับ" กลับมา
   และให้พื้นด้านบนโปร่งใส โดยไม่กระทบ desktop */
@media (max-width: 768px) {

    /* ให้พื้นด้านบนโปร่งใสเฉพาะมือถือ */
    .carousel-caption {
        background: transparent !important;
    }

    /* เปิดเส้นซ้าย-ขวาของ h5 กลับมาเฉพาะ title ตรง header */
    .carousel-caption .title .title-left h5::after,
    .carousel-caption .title .title-center h5::before,
    .carousel-caption .title .title-center h5::after,
    .carousel-caption .title .title-right h5::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        width: 500% !important;
        height: 0 !important;
        top: 9px !important;
        border-bottom: 1px solid var(--bs-white) !important;
    }

    .carousel-caption .title .title-left h5::after,
    .carousel-caption .title .title-center h5::after {
        left: calc(100% + 15px) !important;
    }

    .carousel-caption .title .title-right h5::before,
    .carousel-caption .title .title-center h5::before {
        right: calc(100% + 15px) !important;
    }
}
@media (max-width: 768px) {
    .navbar {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}
@media (max-width: 768px) {

    /* ปรับเส้นด้านบน (welcome) ให้ยาวเท่าด้านล่าง */
    .carousel-caption .title h5::before,
    .carousel-caption .title h5::after {
        width: 120% !important;   /* ปรับตรงนี้ให้บาลานซ์กับเส้นล่าง */
        max-width: 200px;         /* กันยาวเกินหน้าจอ */
    }

    /* จัดตำแหน่งซ้าย-ขวาให้เท่ากัน */
    .carousel-caption .title h5::before {
        right: 100% !important;
        margin-right: 15px;
    }

    .carousel-caption .title h5::after {
        left: 100% !important;
        margin-left: 15px;
    }
}
@media (max-width: 768px) {

    /* ให้ block title กึ่งกลาง */
    .carousel-caption .title .title-center {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* ให้ h5 เป็นจุดอ้างอิงของเส้น */
    .carousel-caption .title .title-center h5 {
        position: relative !important;
        display: inline-block !important;
        padding: 0 18px !important;
        margin-bottom: 12px !important;
    }

    /* บังคับเส้นซ้าย-ขวาบนมือถือ */
    .carousel-caption .title .title-center h5::before,
    .carousel-caption .title .title-center h5::after {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        height: 1px !important;
        width: 80px !important;   /* ปรับค่านี้ได้ */
        background: #fff !important;
        border: 0 !important;
    }

    .carousel-caption .title .title-center h5::before {
        right: 100% !important;
        margin-right: 18px !important;
    }

    .carousel-caption .title .title-center h5::after {
        left: 100% !important;
        margin-left: 18px !important;
    }
}
/* แก้หน้า Contact เฉพาะมือถือ */
@media (max-width: 768px) {

    /* หัวข้อใหญ่ */
    .contact-page h1,
    .contact h1,
    .container-fluid h1 {
        font-size: 2.6rem !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    /* หัวข้อรอง เช่น Contact / 연락처 / ข้อมูลติดต่อ */
    .contact-page h2,
    .contact-page h3,
    .contact h2,
    .contact h3 {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        margin-bottom: 18px !important;
        letter-spacing: 0 !important;
        word-break: keep-all !important;
    }

    /* ข้อความที่อยู่ */
    .contact-page p,
    .contact p,
    .contact-page .address,
    .contact .address {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        text-align: center !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        margin-bottom: 14px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* กล่องข้อมูลติดต่อ */
    .contact-page .bg-dark,
    .contact .bg-dark,
    .contact-page .p-5,
    .contact .p-5 {
        padding: 24px 18px !important;
    }

    /* ป้ายหัวข้อในกล่อง เช่น โทร / 이메일 / 전화번호 */
    .contact-page label,
    .contact-page h4,
    .contact-page h5,
    .contact h4,
    .contact h5 {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        letter-spacing: 0 !important;
        word-break: keep-all !important;
    }

    /* ช่องข้อมูลเบอร์/อีเมล */
    .contact-page .form-control,
    .contact-page .form-control-plaintext,
    .contact-page input,
    .contact-page .rounded-pill,
    .contact .form-control,
    .contact .form-control-plaintext,
    .contact input,
    .contact .rounded-pill {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        padding: 16px 20px !important;
        word-break: break-word !important;
    }
}
@media (max-width: 768px) {

    .contact p,
    .container-fluid p {
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
        line-break: strict !important;
    }
}
@media (max-width: 768px) {
    .no-break {
        white-space: nowrap !important;
        display: inline-block !important;
    }
}
@media (max-width: 768px) {
    .contact p,
    .contact-page p,
    .container-fluid p {
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
    }

    .no-break {
        white-space: nowrap !important;
        display: inline-block !important;
    }
}
/* ===== FINAL MOBILE FIX (DO NOT EDIT BELOW) ===== */
