/**
 * WEBSITE: https://themefisher.com
 * TWITTER: https://twitter.com/themefisher
 * FACEBOOK: https://www.facebook.com/themefisher
 * GITHUB: https://github.com/themefisher/
 */

/*=== MEDIA QUERY ===*/
@import url("https://fonts.googleapis.com/css2?family=Athiti:wght@200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?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");
html {
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    font-family: "Sarabun", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    color: #ecf1f6;
    font-weight: 400;
    overflow-x: hidden;
    background-color: #f3f6f8;
    /* Sticky Footer Layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.bg-head {
    /*  background: url("../images/web/headweb.jpg"); */
    background: url("../images/web/headweb2.jpg");
    background-size: cover;
    position: relative;
    background-position: top;
    background-repeat: no-repeat;
}
.bg-contant {
    /* background-image: url("../images/web/bodyweb.jpg"); */
    background-size: cover;
    position: relative;
    background-position: top;

    background-repeat: no-repeat;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-family: "Sarabun", sans-serif;
    font-weight: 700;
    color: #000000;
}

h1,
.h1 {
    font-size: 2.5rem;
}

h2,
.h2 {
    font-size: 2.75rem;
}

h3,
.h3 {
    font-size: 1.5rem;
}

h4,
.h4 {
    font-size: 1.3rem;
    line-height: 30px;
}

h5,
.h5 {
    font-size: 1.25rem;
}

h6,
.h6 {
    font-size: 1rem;
}

p {
    line-height: 30px;
}

/* add style  */

.pad-cont {
    padding-right: 5rem;
    padding-left: 5rem;
}
.navbar-toggle .icon-bar {
    background: #223a66;
}
/* add style icon eff */
.shrink img {
    transition: 1s ease;
}

.shrink img:hover {
    -webkit-transform: scale(0.9);
    -ms-transform: scale(0.9);
    transform: scale(0.9);
    transition: 1s ease;
}

.circle img {
    transition: 1s ease;
}

.circle img:hover {
    border-radius: 20%;
    transition: 1s ease;
}

.fadein img {
    opacity: 1;
}

.fadein img:hover {
    opacity: 0.5;
    transition: 1s ease;
}

.fadeout img {
    transition:
        transform 0.5s,
        filter 1.5s ease-in-out;
}

.fadeout img:hover {
    transform: scale(1.05);
}

.card-header {
    padding: 0px !important;
}

.bg-navmenu {
    /*    border-bottom-style: solid;
    border-color: #97c407;   
	padding: 10px !important;*/
    background-color: #5c3184 !important;
}

.bg-white {
    background-color: #077a5f !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.report_statit {
    display: block;
    color: #eff0f3b5;
    font-size: 25px;
}

/**---- -carousel-inner2 -----**/

/**---- ------**/

.container-fluid {
    padding-left: 0px !important;
    padding-right: 0px !important;
    font-family: "Sarabun", sans-serif;
}
.bg-fff {
    background-color: #fff;
}
.bg-box {
    background-color: #fe8007;
}
.bg-boxhr {
    background-color: #ff6804;
}
.bg-showdata {
    background-color: #fff;
}
.font_tel {
    color: #f8f9faad;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"] {
    box-shadow: none;
    height: 45px;
    outline: none;
    font-size: 14px;
}
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
    box-shadow: none;
    border: 1px solid #223a66;
}

.form-control {
    box-shadow: none;
    border-radius: 0;
}
.form-control:focus {
    box-shadow: none;
    border: 1px solid #223a66;
}

.py-7 {
    padding: 7rem 0px;
}

.btn {
    display: inline-block;
    font-size: 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.75rem 2rem;
    font-family: "Sarabun", sans-serif;
    text-transform: uppercase;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: all 0.35s ease;
}
.btn.btn-icon i {
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    padding-left: 15px;
}
.btn:focus {
    outline: 0px;
    box-shadow: none;
}

.btn-main {
    background: #28a745;
    color: #fff;
    border-color: #019f25;
}
.btn-main:hover {
    background: #02673c;
    color: #fff;
    border-color: #48b435;
}

.btn-main-2 {
    background: #e12454;
    color: #fff;
    border-color: #e12454;
}
.btn-main-2:hover {
    background: #223a66;
    color: #fff;
    border-color: #223a66;
}

.btn-solid-border {
    border: 2px solid #223a66;
    background: transparent;
    color: #223a66;
}
.btn-solid-border:hover {
    border: 2px solid #223a66;
    color: #fff;
    background: #223a66;
}
.btn-solid-border:hover.btn-icon i {
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}
.btn-solid-border.btn-icon i {
    border-left: 1px solid rgba(0, 0, 0, 0.09);
}

.btn-transparent {
    background: transparent;
    color: #222;
    border-color: #6f8ba4;
}
.btn-transparent:hover {
    background: #6f8ba4;
    color: #fff;
}

.btn-white {
    background: #fff;
    border-color: #fff;
    color: #222;
}
.btn-white:hover {
    background: #223a66;
    color: #fff;
    border-color: #223a66;
}

.btn-solid-white {
    border-color: #fff;
    color: #fff;
}
.btn-solid-white:hover {
    background: #fff;
    color: #222;
}

.btn-round {
    border-radius: 4px;
}

.btn-round-full {
    border-radius: 50px;
}

.btn.active:focus,
.btn:active:focus,
.btn:focus {
    outline: 0;
}

.bg-gray {
    background: #eff0f3;
}

.bg-primary {
    background: #223a66;
}

.bg-primary-dark {
    background: #152440;
}

.bg-primary-darker {
    background: #090f1a;
}

.bg-dark {
    background: #222;
}

.bg-gradient {
    background-image: linear-gradient(
        145deg,
        rgba(19, 177, 205, 0.95) 0%,
        rgba(152, 119, 234, 0.95) 100%
    );
    background-repeat: repeat-x;
}

.section {
    padding: 0;
}

.section-sm {
    padding: 70px 0;
}

.section-bottom {
    padding-bottom: 100px;
}

.subtitle {
    color: #223a66;
    font-size: 14px;
    letter-spacing: 1px;
}

.overlay:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    background: #132138d6;
}

.overly-2 {
    position: relative;
}
.overly-2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.text-sm {
    font-size: 14px;
}

.text-md {
    font-size: 2.25rem;
}

.text-lg {
    font-size: 4.75rem;
    color: #f8b279;
}

.no-spacing {
    letter-spacing: 0px;
}

/* Links */
a {
    color: #222;
    text-decoration: none;
    transition: all 0.35s ease;
}

a:focus,
a:hover {
    color: #222;
    text-decoration: none;
}

a:focus {
    outline: none;
}

.content-title {
    font-size: 40px;
    line-height: 50px;
}

.page-title {
    padding: 10px 0px 7px 0px;
    position: relative;
}
.page-title .block h1 {
    color: #fff;
}
.page-title .block p {
    color: #fff;
}
.page-title .breadcumb-nav {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.slick-slide:focus,
.slick-slide a {
    outline: none;
}

@media (max-width: 480px) {
    h2,
    .h2 {
        font-size: 1.3rem;
        line-height: 36px;
    }
}
.title-color {
    color: #223a66;
}

.secondary-bg {
    background: #223a66;
}

.section-title {
    margin-top: 20px;
    margin-bottom: 20px;
    /* border-bottom-style: ridge;
    border-color: #fd0707; */
}
.section-title h2 {
    color: #223a66;
}

/* .text-lg {
  font-size: 50px;
} */

.gray-bg {
    background: #c98f30;
}

.bg-topNews1 {
    background-color: #e0f055;
}
.bg-topNews2 {
    background-color: #48b435;
}
.bg-topNews3 {
    background-color: #129845;
}

@media (max-width: 480px) {
    .text-lg {
        font-size: 28px;
    }
}
@media (max-width: 400px) {
    .text-lg {
        font-size: 28px;
    }
}
#navbarmain .nav-link {
    padding: 6px 12px;
    color: #ffffff;
    font-family: "Athiti", sans-serif;
    text-transform: capitalize;
    font-size: 16px;
    transition: all 0.25s ease;
    font-weight: 500;
    white-space: nowrap;
}
#navbarmain .nav-link:hover,
#navbarmain .active .nav-link {
    color: #ffd54f;
}

.dropdown-toggle::after {
    display: none;
}

/* Navbar Layout - NRRU Style */
.navigation {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 999;
}

.navigation .navbar-collapse {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.navigation .navbar-brand {
    margin: 0;
    padding: 10px 30px 10px 20px;
    flex-shrink: 0;
    order: 1;
}

.navigation .navbar-nav.mx-auto {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0;
    order: 2;
}

.navigation .navbar-nav.ml-auto {
    margin-left: 0;
    margin-right: 20px;
    flex-shrink: 0;
    order: 3;
}

@media (min-width: 992px) {
    .navigation .navbar-collapse {
        display: flex !important;
    }
}

.navbar-brand {
    margin-top: 0px;
    padding: 5px 15px;
    margin-right: 0;
    flex-shrink: 0;
}

.navbar-logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Top Utility Bar Styles - Premium Redesign */
.top-utility-bar {
    background: linear-gradient(135deg, #5bb2d4 0%, #46a5fd 100%);
    padding: 0;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.top-utility-links {
    list-style: none;
    margin: 0;
    padding: 8px 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.top-utility-links li {
    margin: 0;
    padding: 0;
}

.top-utility-links li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    position: relative;
}

.top-utility-links li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.top-utility-links li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.top-utility-links li a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* เพิ่มเส้นแบ่งแบบเรียบหรู */
.top-utility-links li:not(:last-child):not(.dropdown):not(.search-form-li) {
    position: relative;
    padding-right: 25px;
}

.top-utility-links
    li:not(:last-child):not(.dropdown):not(.search-form-li)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
}

/* ปรับแต่ง Dropdown เลือกภาษา */
.top-utility-links .dropdown-toggle {
    color: #ffffff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.top-utility-links .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.top-utility-links .dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    z-index: 1000;
    display: none;
    min-width: 150px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    backdrop-filter: blur(15px);
    animation: fadeInDown 0.3s ease forwards;
}

/* สร้างสะพานเชื่อมเพื่อไม่ให้ Dropdown หายเวลาเลื่อนเมาส์ผ่านช่องว่าง */
.top-utility-links .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-utility-links .dropdown:hover > .dropdown-menu {
    display: block;
}

.top-utility-links .dropdown-item {
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    color: #444 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.top-utility-links .dropdown-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #5c3184;
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.top-utility-links .dropdown-item:hover {
    background: linear-gradient(135deg, #5c3184 0%, #7e00ff 100%) !important;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(92, 49, 132, 0.3);
}

.top-utility-links .dropdown-item:hover::before {
    transform: scaleY(1);
}

/* ช่องค้นหาใหม่ */
.top-search-form {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50px;
    padding: 4px;
    height: 38px;
    width: 38px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.top-search-form:hover,
.top-search-form:focus-within {
    width: 260px;
    padding: 4px 4px 4px 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.top-search-form input {
    border: none;
    background: transparent;
    font-size: 13px;
    width: 0;
    opacity: 0;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.top-search-form:hover input,
.top-search-form:focus-within input {
    width: 100%;
    opacity: 1;
}

.top-search-form button {
    border: none;
    background: #2956a4;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.top-search-form button:hover {
    background: #4a276a;
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .top-utility-links {
        justify-content: center;
        flex-wrap: wrap;
        padding: 5px;
    }
    .top-search-form {
        width: 150px;
        margin-top: 5px;
    }
}

.header-top-bar {
    /*background: #223a66;*/
    font-size: 14px;
    padding: 0px 0px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #fff;
}

.top-bar-info li a {
    color: #fff;
    margin-right: 20px;
}

.top-right-bar a span {
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    vertical-align: middle;
}
.top-right-bar a i {
    color: #fff;
    margin-right: 10px;
}

@media (max-width: 992px) {
    .navigation {
        text-align: center;
    }
}
.navigation .dropdown-menu {
    padding: 0px;
    border: 0px;
    /*border-top: 5px solid #00318b;*/
    background: #fff;
    border-radius: 0px;
}
@media (max-width: 992px) {
    .navigation .dropdown-menu {
        text-align: center;
        float: left !important;
        width: 100%;
        margin: 0;
    }
}
.navigation .dropdown-toggle::after {
    display: none;
}
.navigation .dropleft .dropdown-menu,
.navigation .dropright .dropdown-menu {
    margin: 0;
}
.navigation .dropleft .dropdown-toggle::before,
.navigation .dropright .dropdown-toggle::after {
    font-weight: bold;
    font-size: 14px;
    border: 0;
    display: inline-block;
    font-family: IcoFont !important;
    vertical-align: 1px;
}
.navigation .dropleft .dropdown-toggle::before {
    content: "\eac9";
    margin-right: 5px;
}
.navigation .dropright .dropdown-toggle::after {
    content: "\eaca";
    margin-left: 5px;
}
.navigation .dropdown-item {
    padding: 13px 20px;
    background: transparent;
    font-weight: 400;
    color: #555;
    border-bottom: 1px solid #eee;
}
.navigation li:last-child .dropdown-item {
    border-bottom: 0;
}
.navigation .dropdown-submenu.active > .dropdown-toggle,
.navigation .dropdown-submenu:hover > .dropdown-item,
.navigation .dropdown-item.active,
.navigation .dropdown-item:hover {
    background: #6051ff;
    color: #ffffff;
}
.navigation button:focus {
    outline: 0;
}
@media (min-width: 992px) {
    .navigation .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition:
            all 0.2s ease-in,
            visibility 0s linear 0.2s,
            transform 0.2s linear;
        display: block;
        visibility: hidden;
        opacity: 0;
        min-width: 200px;
        transform: translateY(10px);
    }
    .navigation .dropleft .dropdown-menu,
    .navigation .dropright .dropdown-menu {
        margin-top: -5px;
    }
    .navigation .dropdown:hover > .dropdown-menu {
        visibility: visible;
        transition: all 0.3s ease 0s;
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-1 {
    background: url("../images/web/head-pages.png") no-repeat 50% 50%;
    background-size: cover;
    position: relative;
}

.banner {
    position: relative;
    overflow: hidden;
    background: #fff;
    /* background: url("../images/bg/slider-bg-1.jpg") no-repeat; */
    background-size: cover;
    margin-top: -20px !important;
    padding-top: 0 !important;
    /* min-height: 250px;
  max-height: 270px;*/
}
.banner .block {
    padding: 80px 0px 160px;
}
.banner .block h1 {
    font-size: 60px;
    line-height: 1.2;
    letter-spacing: -1.2px;
    text-transform: capitalize;
    color: #223a66;
}

.letter-spacing {
    letter-spacing: 2px;
}

.text-color {
    color: #223a66;
}

.text-color-2 {
    color: #223a66;
}

.divider {
    height: 3px;
    background: #1c4d8d;
}

@media (max-width: 480px) {
    .banner .block h1 {
        font-size: 38px;
        line-height: 50px;
    }
    .banner {
        min-height: 150px;
        background: #fff !important;
    }
    .service-block img {
        /* width: 100%; */
        height: 100px;
        margin-top: -60px;
        border: 2px solid #fff;
    }
}
@media (max-width: 400px) {
    .banner .block h1 {
        font-size: 28px;
        line-height: 40px;
    }
    .banner {
        min-height: 150px;
        background: #fff !important;
    }
    .service-block img {
        /* width: 100%; */
        height: 100px;
        margin-top: -60px;
        border: 2px solid #fff;
    }
}
@media (max-width: 768px) {
    .banner .block h1 {
        font-size: 56px;
        line-height: 70px;
    }
    .banner {
        background: #fff !important;
    }
    .service-block img {
        /* width: 100%; */
        height: 150px;
        margin-top: -60px;
        border: 2px solid #fff;
    }
}
@media (max-width: 992px) {
    .banner {
        background: #fff !important;
    }
    .service-block img {
        /* width: 100%; */
        height: 200px;
        margin-top: -60px;
        border: 2px solid #fff;
    }
}
.about-img img {
    border-radius: 5px;
    box-shadow: 0px 0px 30px 0px rgba(0, 42, 106, 0.1);
}

.award-img {
    height: 120px;
    margin-bottom: 10px;
    align-items: center;
    display: flex;
    justify-content: center;
    background: #eff0f3;
}

.appoinment-content {
    position: relative;
}
.appoinment-content img {
    width: 85%;
}
.appoinment-content .emergency {
    position: absolute;
    content: "";
    right: 10px;
    bottom: 20px;
    background: #223a66;
    padding: 48px;
}
.appoinment-content .emergency h2 {
    color: #fff;
}
.appoinment-content .emergency i {
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.appoinment-form {
    margin-top: 40px;
}
.appoinment-form .form-control {
    background: #f4f9fc;
    height: 55px;
    border-color: rgba(0, 0, 0, 0.05);
}
.appoinment-form textarea.form-control {
    height: auto;
}

.client-thumb {
    text-align: center;
}

.features {
    margin-top: -70px;
}

.feature-item {
    flex-basis: 33.33%;
    margin: 0px 10px;
    padding: 10px 10px;
    background-color: #fff;
    border-radius: 15px 15px 15px 15px;
    box-shadow: 0px 0px 30px 0px rgba(0, 42, 106, 0.1);
}
.feature-item .feature-icon i {
    font-size: 50px;
    color: #223a66;
}
.feature-item h4 {
    color: #223a66;
}
.feature-item p {
    font-size: 14px;
}

.feature-section.border-top {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.w-hours li {
    padding: 6px 0px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.counter-stat {
    text-align: center;
    padding: 55px 0px 40px 0px;
    position: relative;
}
.counter-stat i {
    display: block;
    color: rgb(66 31 31 / 6%);
    font-size: 70px;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    transform: translateY(25px);
}
.counter-stat span {
    font-size: 70px;
    color: #fff;
}
.counter-stat p {
    margin-bottom: 0px;
    color: rgb(141 128 199);
}

.mb--80 {
    margin-bottom: -80px;
}

.service {
    padding-top: 80px;
}
.service .service-item {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
}
.service .icon {
    float: left;
    margin-bottom: 10px;
}
.service i {
    color: #e12454;
}
.service h4 {
    padding-left: 20px;
}
.service .content {
    clear: both;
}

.service-block {
    padding: 20px;
    margin-top: 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 0 38px rgba(21, 40, 82, 0.07);
    background: #ffffff8c;
}
.service-block img {
    /* width: 100%; */
    height: 200px;
    margin-top: -60px;
    border: 2px solid #fff;
}

.department-service {
    margin-bottom: 40px;
}
.department-service li {
    margin-bottom: 10px;
}
.department-service li i {
    color: #e12454;
}

.doctors .btn-group .btn {
    border-radius: 0px;
    margin: 0px 2px;
    text-transform: capitalize;
    font-size: 16px;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
}
.doctors .btn-group .btn.active {
    box-shadow: none !important;
    border-color: transparent;
    background: #e12454;
    color: #fff;
}
.doctors .btn-group .btn.focus {
    box-shadow: none !important;
    border-color: transparent;
}
.doctors .btn-group .btn:focus {
    box-shadow: none !important;
    border-color: transparent;
    background: #e12454;
    color: #fff;
}
.doctors .btn-group .btn:hover {
    box-shadow: none !important;
    border-color: transparent;
    background: #e12454;
    color: #fff;
}
.doctors .btn-group > .btn-group:not(:last-child) > .btn,
.doctors .btn-group > .btn:not(:last-child):not(.dropdown-toggle),
.doctors .btn-group > .btn:not(:first-child) {
    border-radius: 3px;
}

.doctor-inner-box {
    overflow: hidden;
}
.doctor-inner-box .doctor-profile {
    overflow: hidden;
    position: relative;
    box-shadow: 0px 8px 16px 0px rgba(200, 183, 255, 0.2);
}
.doctor-inner-box .doctor-profile .doctor-img {
    transition: all 0.35s ease;
}
.doctor-inner-box .doctor-profile .doctor-img:hover {
    transform: scale(1.1);
}

.lh-35 {
    line-height: 35px;
}

.doctor-info li {
    margin-bottom: 10px;
    color: #222;
}
.doctor-info li i {
    margin-right: 20px;
    color: #e12454;
}

.read-more {
    color: #223a66;
}

@media (max-width: 480px) {
    .doctors .btn-group {
        display: block;
    }
    .doctors .btn-group .btn {
        margin: 8px 3px;
    }
}
@media (max-width: 400px) {
    .doctors .btn-group {
        display: block;
    }
    .doctors .btn-group .btn {
        margin: 8px 3px;
    }
}
@media (max-width: 768px) {
    .doctors .btn-group {
        display: block;
    }
    .doctors .btn-group .btn {
        margin: 8px 3px;
    }
}
.cta {
    background: url("../images/bg/bg-4.jpg") no-repeat 50% 50%;
    background-size: cover;
    position: relative;
}
.cta:before {
    position: absolute;
    content: "";
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background: #bfb5ef;
}

.mb-30 {
    margin-bottom: 30px;
}

.text-color-primary {
    color: #223a66;
}

.cta-section {
    margin-bottom: -80px;
}

.cta-2 {
    /*background: url("../images/bg/cta-bg.png") no-repeat;*/
    background-position: center center;
}

.cta-page {
    /* background: url("../images/bg/banner.jpg") no-repeat;*/
    background-size: cover;
    position: relative;
}

.testimonial {
    position: relative;
}
.testimonial:before {
    width: 48%;
    height: 100%;
    top: 0;
    left: 0px;
    position: absolute;
    content: "";
    background: url("../images/bg/bg-2.jpg") no-repeat 50% 50%;
}
.testimonial .slick-dots {
    text-align: left;
}

.testimonial-block {
    position: relative;
    margin-bottom: 20px;
}
.testimonial-block p {
    background: #fff;
    font-size: 18px;
}
.testimonial-block .client-info {
    margin-bottom: 20px;
}
.testimonial-block .client-info h4 {
    margin-bottom: 0px;
}
.testimonial-block i {
    font-size: 60px;
    position: absolute;
    right: 46px;
    bottom: 89px;
    opacity: 0.08;
}
.testimonial-block .slick-dots {
    text-align: left;
}

.testimonial-wrap-2 .slick-dots {
    margin-left: -10px;
}

.testimonial-block.style-2 {
    background: #fff;
    padding: 30px;
    margin: 0px 4px;
    margin-bottom: 30px;
}
.testimonial-block.style-2 .testimonial-thumb {
    float: left;
}
.testimonial-block.style-2 .testimonial-thumb img {
    width: 80px;
    height: 80px;
    border-radius: 100%;
    margin-right: 20px;
    margin-bottom: 30px;
    border: 5px solid #eff0f3;
    margin-top: -5px;
}
.testimonial-block.style-2 .client-info p {
    clear: both;
    background: transparent;
}
.testimonial-block.style-2 i {
    bottom: -20px;
    color: #e12454;
    opacity: 0.3;
}

@media (max-width: 480px) {
    .testimonial-wrap {
        margin-left: 0px;
    }
    .testimonial::before {
        display: none;
    }
    .contact-block i {
        font-size: 20px;
        margin-bottom: 5px;
        display: inline-block;
        color: #00318b;
    }
}
@media (max-width: 400px) {
    .testimonial-wrap {
        margin-left: 0px;
    }
    .testimonial::before {
        display: none;
    }
    .contact-block i {
        font-size: 20px;
        margin-bottom: 5px;
        display: inline-block;
        color: #00318b;
    }
}
@media (max-width: 768px) {
    .testimonial-wrap {
        margin-left: 0px;
    }
    .testimonial::before {
        display: none;
    }
    .contact-block i {
        font-size: 30px;
        margin-bottom: 5px;
        display: inline-block;
        color: #00318b;
    }
}
@media (max-width: 992px) {
    .testimonial-wrap {
        margin-left: 0px;
    }
    .testimonial::before {
        display: none;
    }
    .contact-block i {
        font-size: 50px;
        margin-bottom: 5px;
        display: inline-block;
        color: #00318b;
    }
}
.contact-form-wrap .form-group {
    margin-bottom: 20px;
}
.contact-form-wrap .form-group .form-control {
    height: 60px;
    border: 1px solid #eef2f6;
    box-shadow: none;
    width: 100%;
    background: #f4f9fc;
}
.contact-form-wrap .form-group-2 {
    margin-bottom: 13px;
}
.contact-form-wrap .form-group-2 textarea {
    height: auto;
    border: 1px solid #eef2f6;
    box-shadow: none;
    background: #f4f9fc;
    width: 100%;
}

.social-icons li {
    margin: 0 6px;
}
.social-icons a {
    margin-right: 10px;
    font-size: 18px;
}

.google-map {
    position: relative;
}

.google-map #map {
    width: 100%;
    height: 500px;
}

.mt-90 {
    margin-top: 90px;
}

.contact-block {
    text-align: center;
    border: 1px solid #72a0cf;
    padding: 10px 5px;
    border-radius: 5px;
}
.contact-block1 {
    text-align: center;
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 10px;
    background: #44addf;
}
.contact-block2 {
    text-align: center;
    border: 1px solid #fff;
    padding: 10px 5px;
    border-radius: 10px;
    background: #0c80d3;
}
.contact-block3 {
    text-align: center;
    border: 1px solid #fff;
    padding: 10px 5px;
    border-radius: 9px;
    background: #042a93;
}
.contact-block i {
    font-size: 50px;
    margin-bottom: 5px;
    display: inline-block;
    color: #00318b;
}

.contact-block1 i,
.contact-block2 i,
.contact-block3 i {
    display: inline-block;
    color: #f0f1f3;
}

.blog-item-content h2 {
    font-weight: 600;
    font-size: 38px;
}

/*=================================================================
  Single Blog Page
==================================================================*/
.nav-links .page-numbers {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    background: #eee;
    text-align: center;
    padding-top: 13px;
    font-weight: 600;
    margin-right: 10px;
}
.nav-links .page-numbers:hover {
    background: #223a66;
    color: #fff;
}
.nav-links .page-numbers.current {
    background: #223a66;
    color: #fff;
}

.comment-area .comment-thumb {
    margin-right: 20px;
    margin-bottom: 30px;
}
.comment-area h5 {
    font-size: 18px;
    font-weight: 500;
}
.comment-area span {
    font-size: 14px;
}

.posts-nav h6 {
    font-weight: 500;
}

.quote {
    font-size: 22px;
    color: #223a66;
    padding: 40px;
    font-style: italic;
    border-left: 5px solid #e12454;
    margin: 25px 0px;
}

.tag-option a {
    border: 1px solid #eff0f3;
    padding: 6px 12px;
    color: #6f8ba4;
    font-size: 14px;
}

.comment-form .form-control {
    background: #f7f8fb;
    border-radius: 5px;
    border-color: #f7f8fb;
    height: 50px;
}
.comment-form textarea.form-control {
    height: auto;
}

.post.post-single {
    border: none;
}
.post.post-single .post-thumb {
    margin-top: 30px;
}

.post-sub-heading {
    border-bottom: 1px solid #dedede;
    padding-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 20px;
}

.post-social-share {
    margin-bottom: 50px;
}

.post-comments {
    margin: 30px 0;
}
.post-comments .media {
    margin-top: 20px;
}
.post-comments .media > .pull-left {
    padding-right: 20px;
}
.post-comments .comment-author {
    margin-top: 0;
    margin-bottom: 0px;
    font-weight: 500;
}
.post-comments .comment-author a {
    color: #223a66;
    font-size: 14px;
    text-transform: uppercase;
}
.post-comments time {
    margin: 0 0 5px;
    display: inline-block;
    color: #808080;
    font-size: 12px;
}
.post-comments .comment-button {
    color: #223a66;
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
}
.post-comments .comment-button i {
    margin-right: 5px;
    display: inline-block;
}
.post-comments .comment-button:hover {
    color: #223a66;
}

.post-excerpt {
    margin-bottom: 60px;
}
.post-excerpt h3 a {
    color: #000;
}
.post-excerpt p {
    margin: 0 0 30px;
}
.post-excerpt blockquote.quote-post {
    margin: 20px 0;
}
.post-excerpt blockquote.quote-post p {
    line-height: 30px;
    font-size: 20px;
    color: #223a66;
}

.comments-section {
    margin-top: 35px;
}

.author-about {
    margin-top: 40px;
}

.post-author {
    margin-right: 20px;
}

.post-author > img {
    border: 1px solid #dedede;
    max-width: 120px;
    padding: 5px;
    width: 100%;
}

.comment-list ul {
    margin-top: 20px;
}
.comment-list ul li {
    margin-bottom: 20px;
}

.comment-wrap {
    border: 1px solid #dedede;
    border-radius: 1px;
    margin-left: 20px;
    padding: 10px;
    position: relative;
}
.comment-wrap .author-avatar {
    margin-right: 10px;
}
.comment-wrap .media .media-heading {
    font-size: 14px;
    margin-bottom: 8px;
}
.comment-wrap .media .media-heading a {
    color: #223a66;
    font-size: 13px;
}
.comment-wrap .media .comment-meta {
    font-size: 12px;
    color: #888;
}
.comment-wrap .media p {
    margin-top: 15px;
}

.comment-reply-form {
    margin-top: 80px;
}
.comment-reply-form input,
.comment-reply-form textarea {
    height: 35px;
    border-radius: 0;
    box-shadow: none;
}
.comment-reply-form input:focus,
.comment-reply-form textarea:focus {
    box-shadow: none;
    border: 1px solid #223a66;
}
.comment-reply-form textarea,
.comment-reply-form .btn-main {
    height: auto;
}

.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 35px;
}
.sidebar-widget h5 {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}
.sidebar-widget h5:before {
    position: absolute;
    content: "";
    left: 0px;
    bottom: 0px;
    width: 35px;
    height: 3px;
    background: #042a93;
}
.sidebar-widget.latest-post .media img {
    border-radius: 7px;
}
.sidebar-widget.latest-post .media h6 {
    font-weight: 500;
    line-height: 1.4;
}
.sidebar-widget.latest-post .media p {
    font-size: 12px;
}
.sidebar-widget.category ul li {
    margin-bottom: 10px;
}
.sidebar-widget.category ul li a {
    color: #222;
    transition: all 0.3s ease;
}
.sidebar-widget.category ul li a:hover {
    color: #223a66;
    padding-left: 5px;
}
.sidebar-widget.category ul li span {
    margin-left: 10px;
}
.sidebar-widget.tags a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    line-height: 41px;
    height: 41px;
    font-weight: 500;
    border-radius: 20px;
    color: #666;
    display: inline-block;
    background-color: #eff0f3;
    margin: 0 7px 10px 0;
    padding: 0 25px;
    transition: all 0.2s ease;
}
.sidebar-widget.tags a:hover {
    color: #fff;
    background: #223a66;
}
.sidebar-widget.schedule-widget {
    background: #f4f9fc;
    padding: 20px;
}
.sidebar-widget.schedule-widget ul li {
    padding: 10px 0px;
    border-bottom: 1px solid #eee;
}

.search-form {
    position: relative;
}
.search-form i {
    position: absolute;
    right: 15px;
    top: 35%;
}

.footer {
    background: linear-gradient(116deg, #05814d 0%, #05814d 59%, #05814d 96%);
    margin-top: auto; /* ดัน footer ให้อยู่ด้านล่างเสมอ */
}
.footer .copyright a {
    font-weight: 600;
}

.lh-35 {
    line-height: 35px;
}

.logo {
    font-weight: 600;
    letter-spacing: 1px;
}
.logo h3 {
    color: #223a66;
}
.logo span {
    color: #223a66;
}

.widget .divider {
    height: 3px;
}
.widget h4 {
    color: #223a66;
}
.widget .footer-menu a {
    color: #6f8ba4;
}
.widget .footer-menu a:hover {
    color: #e12454;
}

.footer-contact-block span {
    font-weight: 400;
    color: #6f8ba4;
}
.footer-contact-block i {
    font-size: 20px;
}

.footer-btm {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-socials li a {
    width: 48px;
    height: 48px;
    background: #e6ebef2e;
    color: #fff;
    display: inline-block;
    text-align: center;
    border-radius: 100%;
    padding-top: 12px;
}
.footer-socials li a:hover {
    width: 50px;
    height: 50px;
}

.widget-contact h6 {
    font-weight: 500;
    margin-bottom: 18px;
}
.widget-contact h6 i {
    color: #e12454;
}

.subscribe {
    position: relative;
}
.subscribe .form-control {
    border-radius: 50px;
    height: 60px;
    padding-left: 25px;
    border-color: #eee;
}
.subscribe .btn {
    position: absolute;
    right: 6px;
    top: 6px;
}

.backtop {
    position: fixed;
    background: #3c00ff;
    z-index: 9999;
    display: inline-block;
    right: 55px;
    width: 50px;
    height: 50px;
    bottom: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    border-radius: 50px;
    transition: 0.3s;
}
@media (max-width: 992px) {
    .backtop {
        bottom: 80px;
        right: 15px;
    }
}
@media (max-width: 991.98px) {
    .backtop {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .backtop {
        width: 45px;
        height: 45px;
    }
}
.backtop:hover {
    background-color: #9d00ff;
}
.backtop i {
    color: #fff;
    font-size: 20px;
}

.reveal {
    transition: all 0.3s;
    cursor: pointer;
    opacity: 1;
}
/*# sourceMappingURL=style.css.map */

.custom-carousel-img {
    height: 600px;
    /* กำหนดความสูงที่คุณต้องการคงไว้ */
    object-fit: cover;
    /* ทำให้รูปเต็มกรอบโดยไม่เสียสัดส่วน (ส่วนเกินจะถูก crop) */
    object-position: center;
    /* จัดให้กลางรูปอยู่ตรงกลางกรอบ */
}

@media (max-width: 768px) {
    .custom-carousel-img {
        height: 200px;
        /* ปรับความสูงสำหรับมือถือ */
    }
}

/* Mobile Navigation Bar */
.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #88ffcf 0%, #88ffcf 100%);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 6px 0;
    backdrop-filter: blur(10px);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    border-radius: 12px;
    position: relative;
}

.mobile-nav-item::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.mobile-nav-item:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.mobile-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.mobile-nav-item:hover i {
    transform: scale(1.1);
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
    font-family: "Sarabun", sans-serif;
    letter-spacing: 0.3px;
}

/* Mobile Popup */
.mobile-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-popup.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-popup-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-popup.active .mobile-popup-content {
    transform: scale(1);
}

.mobile-popup-header {
    background: linear-gradient(135deg, #4988c4 0%, #0f2854 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.mobile-popup-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.mobile-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-popup-close i {
    font-size: 20px;
}

.mobile-popup-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Mobile Nav List */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list > li {
    margin-bottom: 8px;
}

.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.mobile-nav-list > li > a:hover {
    background: linear-gradient(135deg, #5c3184 0%, #7e00ff 100%);
    color: #fff;
    transform: translateX(5px);
}

.mobile-nav-list > li > a i {
    margin-right: 12px;
    font-size: 20px;
}

/* Mobile Dropdown */
.mobile-menu-dropdown .mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-dropdown.active .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu li {
    margin-bottom: 5px;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 15px 12px 40px;
    background: #e9ecef;
    border-radius: 10px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.mobile-submenu li a:hover {
    background: #5c3184;
    color: #fff;
    transform: translateX(5px);
}

/* Add padding to body for mobile nav */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }
}

/* Hide desktop navigation on mobile */
@media (max-width: 991.98px) {
    .navigation {
        display: none !important;
    }
}

/* ========================================
   Services Section - NRRU Style
   ======================================== */

#gtco-pricing {
    padding: 60px 0;
}

#gtco-pricing .section-title h3 {
    color: #000000;
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 0;
}

#gtco-pricing .section-title h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #ffffff, #ffffff);
    border-radius: 2px;
}

/* Service Card Styling */
#gtco-pricing .shrink {
    position: relative;
    margin-bottom: 30px;
}

#gtco-pricing .shrink a {
    display: block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#gtco-pricing .shrink .card-img {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 25px rgba(92, 49, 132, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    background: linear-gradient(145deg, #4988c4, #a19dde);
    padding: 20px;
}

#gtco-pricing .shrink a:hover .card-img {
    transform: translateY(-15px) scale(1.05);
    filter: drop-shadow(0 20px 40px rgba(92, 49, 132, 0.5));
}

/* Service Title */
#gtco-pricing .title-color {
    margin-top: 20px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gtco-pricing .shrink a:hover .title-color {
    color: #5c3184;
    transform: scale(1.05);
}

/* View All Services Link */
#gtco-pricing .text-right a {
    color: #5c3184;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#gtco-pricing .text-right a::after {
    content: "";
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

#gtco-pricing .text-right a:hover {
    color: #7e00ff;
}

#gtco-pricing .text-right a:hover::after {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    #gtco-pricing {
        padding: 40px 0;
    }

    #gtco-pricing .section-title h3 {
        font-size: 1.5rem;
    }

    #gtco-pricing .shrink .card-img {
        max-width: 150px;
    }

    #gtco-pricing .title-color {
        font-size: 14px;
        min-height: 40px;
    }
}
@media (max-width: 576px) {
    #gtco-pricing .shrink .card-img {
        max-width: 120px;
    }
}

.service-card-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    background: white;
}

.service-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: #f0f0f0;
}

.service-card-content {
    display: none;
    z-index: 2;
    color: white;
}

.service-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

.service-card-subtitle {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-card-footer {
    background: white;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.service-card-footer-text {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.service-description {
}

.service-description h3 {
    color: #a8d063;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-description p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 14px;
}

.service-description .highlight {
    color: #f39c12;
    font-weight: 600;
}

@media (max-width: 991px) {
    .service-card {
        aspect-ratio: 2 / 1;
    }

    .service-card-wrapper {
        margin-bottom: 15px;
    }

    .service-description {
        margin-bottom: 25px;
        padding: 20px;
    }
}

.news-minimal-item {
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-minimal-item:hover {
    transform: translateY(-5px);
    background: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-minimal-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-minimal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-minimal-title {
    color: #333;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    height: 68px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: left;
    margin-bottom: 8px;
}

.youtube-clean-wrapper:hover {
    transform: translateY(-5px);
}

.youtube-video-clean-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.banner {
    margin-top: 0 !important;
}

.custom-carousel-img {
    height: 400px;
    /* กำหนดความสูงที่คุณต้องการคงไว้ */
    object-fit: cover;
    /* ทำให้รูปเต็มกรอบโดยไม่เสียสัดส่วน (ส่วนเกินจะถูก crop) */
    object-position: center;
    /* จัดให้กลางรูปอยู่ตรงกลางกรอบ */
}

@media (max-width: 991px) {
    .banner {
        margin-top: 0 !important;
    }

    .custom-carousel-img {
        height: 170px;
        width: 100%;
        /* ปรับความสูงสำหรับมือถือ */
    }
}

.gallery-section h3 {
    color: black;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

.gallery-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-carousel-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.gallery-item {
    flex-shrink: 0;
    width: 260px;
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        transparent 100%
    );
    padding: 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
/* Gallery Zoom Icon on Hover */
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.gallery-zoom-icon:hover {
    background: #ffc107;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.gallery-zoom-icon i {
    font-size: 24px;
    color: #333;
}

.gallery-item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: white;
    text-align: center;
    padding: 0 10px;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
}

.gallery-item-title-link {
    text-decoration: none;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        transparent 100%
    );
    transition: all 0.3s ease;
}

.gallery-item-title-link:hover {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.gallery-item-title-link .gallery-item-title {
    position: relative;
    bottom: auto;
    transition: all 0.3s ease;
}

.gallery-item-title-link:hover .gallery-item-title {
    color: #ffc107;
    text-decoration: underline;
}

/* Gallery Popup Modal */
.gallery-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition:
        visibility 0.3s,
        opacity 0.3s ease;
}

.gallery-popup.active {
    visibility: visible;
    opacity: 1;
}

.gallery-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.gallery-popup-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    z-index: 10001;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.gallery-popup.active .gallery-popup-content {
    transform: scale(1);
}

.gallery-popup-close {
    position: absolute;
    top: -45px;
    right: 0;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
    line-height: 1;
    z-index: 10002;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-popup-close:hover {
    color: #ffc107;
    transform: rotate(90deg);
}

.gallery-popup-content img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.gallery-popup-title {
    display: none !important;
}

.gallery-popup-title:empty {
    display: none;
}

@media (max-width: 768px) {
    .gallery-item {
        width: 260px;
        height: 260px;
    }

    .gallery-zoom-icon {
        width: 50px;
        height: 50px;
    }

    .gallery-zoom-icon i {
        font-size: 20px;
    }

    .gallery-popup-content {
        max-width: 100%;
        max-height: 100%;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .gallery-popup-content img {
        width: auto;
        height: auto;
        max-width: 100vw;
        max-height: 85vh;
        border-radius: 4px;
    }

    .gallery-popup-close {
        position: fixed;
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .gallery-popup-title {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* Posts All Page - Lock Image Sizes */
.blog-wrap .department-block {
    display: block;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.blog-wrap .department-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-wrap .department-block .card-img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
    display: block !important;
}

.blog-wrap .department-block .content {
    padding: 10px 5px;
}

.blog-wrap .department-block .title-color {
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px !important;
    margin-bottom: 8px;
}

.blog-wrap .department-block .read-more {
    color: #1299ec;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-wrap .department-block:hover .read-more {
    color: #0f2854;
}

@media (max-width: 768px) {
    .blog-wrap .department-block .card-img {
        height: 180px !important;
    }
}

/* Make navigation menu text bolder */
.navbar .nav-link {
    font-weight: 650 !important;
}

.navbar .dropdown-toggle {
    font-weight: 650 !important;
}

/* Reduce white space in blog-wrap section */
.blog-wrap {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* Mobile Footer Styling */
@media (max-width: 991px) {
    .footer {
        padding: 20px 15px !important;
        text-align: center !important;
    }

    .footer .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .footer .col-lg-8,
    .footer .col-lg-4 {
        text-align: center !important;
        margin-bottom: 15px;
    }

    .footer-socials {
        justify-content: center !important;
        margin-bottom: 15px !important;
    }

    .footer-socials li a i {
        font-size: 1.5rem !important;
    }

    .footer .text-light div {
        font-size: 12px !important;
        line-height: 1.6 !important;
        margin-bottom: 5px;
    }

    .visitor-counter-section {
        text-align: center !important;
        padding: 15px 0 !important;
    }

    .visitor-counter-section .container-fluid {
        padding-left: 0 !important;
    }

    .visitor-count span {
        font-size: 13px !important;
    }

    .footer-btm {
        padding: 10px 0 !important;
        margin-bottom: 60px !important; /* Space for mobile nav bar */
    }

    .copyright {
        font-size: 11px !important;
        text-align: center !important;
    }
}

.text-test {
    color: #000000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* News Card New Design */
.news-card-new {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 8px;
}

.news-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.news-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-new:hover .news-card-img img {
    transform: scale(1.1);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 91, 187, 0.7) 0%,
        rgba(0, 51, 102, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card-overlay i {
    font-size: 32px;
    color: #ffffff;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.news-card-new:hover .news-card-overlay {
    opacity: 1;
}

.news-card-new:hover .news-card-overlay i {
    transform: scale(1);
}

.news-card-body {
    padding: 20px;
}

.news-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
    margin: 0 0 12px 0;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.news-read-more {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-read-more i {
    transition: transform 0.3s ease;
}

.news-card-new:hover .news-read-more {
    color: #003366;
}

.news-card-new:hover .news-read-more i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991px) {
    .news-card-img {
        height: 200px;
        overflow: hidden;
    }

    .news-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .news-card-body {
        padding: 8px 12px;
    }

    .news-card-title {
        font-size: 12px;
        height: 30px;
        margin: 0 0 4px 0;
    }

    .news-read-more {
        font-size: 11px;
    }

    .news-card-footer {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .news-card-new {
        margin-bottom: 15px;
    }
}

/* Mobile Banner Full Width */
@media (max-width: 991px) {
    body {
        overflow-x: hidden;
    }

    .banner-services-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-top-bar {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-top-bar .container-fluid,
    .banner-services-section .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    .header-top-bar .row,
    .banner-services-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .header-top-bar .col-12,
    .banner-services-section [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .header-top-bar img {
        width: 100% !important;
    }

    .banner-services-section .carousel-item img {
        height: 180px !important;
        width: 100% !important;
        object-fit: cover;
    }
}

/* Force text color in blog content - fix white text on white background from WYSIWYG editor */
.blog-item-content p,
.blog-item-content span,
.blog-item-content div,
.blog-item-content li,
.blog-item-content a {
    color: #333 !important;
}

.blog-item-content p,
.blog-item-content h5 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Newsletter Card Simple - No Frame */
.newsletter-card-simple {
    transition: all 0.3s ease;
    text-align: center;
}

.newsletter-card-simple:hover {
    transform: translateY(-5px);
}

.newsletter-card-simple img {
    width: 90%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.newsletter-card-simple:hover img {
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.15);
}

.newsletter-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

/* YouTube Sidebar Header */
.youtube-sidebar-header {
    border-left: 4px solid #05814d;
    padding-left: 10px;
}

.youtube-sidebar-header h5 {
    margin: 0;
}

/* YouTube Card Compact */
.youtube-card-compact {
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* View All Button - Rounded Light Blue Style */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    background-color: #05814d; /* Light blue from user image */
    color: #ffffff !important;
    padding: 6px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-view-all:hover {
    background-color: #007bff;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.2);
}

.btn-view-all i {
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(3px);
}

.youtube-card-compact:hover {
    transform: translateY(-3px);
}

.youtube-thumb-compact {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
}

.youtube-thumb-compact iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-title-compact {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
    padding: 12px 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.service-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.service-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-grid-card {
    background: #fff;
    border-radius: 12px;
    height: 140px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-grid-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-grid-img-wrapper {
    height: 90px;
    width: 100%;
    overflow: hidden;
}

.service-grid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-grid-card:hover .service-grid-img-wrapper img {
    transform: scale(1.05);
}

.service-grid-content {
    background: #fff;
    padding: 8px 5px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-grid-content p {
    margin: 0;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.services-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991px) {
    .services-sidebar {
        margin-top: 15px;
    }

    .service-mini-card img {
        height: 100px !important;
    }
}

/* Blue Gradient Header Frame - Simple & Professional */
.header-frame-blue {
    background: linear-gradient(
        to right,
        #077a5f,
        #05814d
    ); /* Minimal professional blue */
    color: #ffffff !important;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;

    /* Clean shadow, no complex borders */
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
    border: none;

    display: inline-block;
    width: 100%;
    text-align: left;
    letter-spacing: 0.5px;
}

/* Blue Line Header Style - เรียบง่าย มีเส้นใต้แบบจดหมายข่าว */
.header-line-blue {
    color: #333 !important;
    padding-bottom: 8px;
    border-bottom: 3px solid #005bbb;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
    width: 100%;
}

.section-title .header-frame-blue,
.section-title .header-line-blue {
    margin-bottom: 0;
}

/* Navbar Search Form - ช่องค้นหาใน Navbar ฝั่งขวาสุด */
.search-form-navbar {
    margin-left: 15px;
}

.navbar-search-form {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 25px;
    padding: 5px 10px;
    height: 38px;
    min-width: 200px;
    border: 1px solid #e0e4e8;
    transition: all 0.3s ease;
}

.navbar-search-form:hover,
.navbar-search-form:focus-within {
    background: #ffffff;
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.navbar-search-form input {
    border: none;
    background: transparent;
    font-size: 14px;
    width: 100%;
    color: #333;
    outline: none;
    padding: 0 8px;
    font-family: "Sarabun", sans-serif;
}

.navbar-search-form input::placeholder {
    color: #999;
}

.navbar-search-form button {
    border: none;
    background: #4a90e2;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.navbar-search-form button:hover {
    background: #357abd;
    transform: scale(1.05);
}

.navbar-search-form button i {
    font-size: 14px;
}

/* Responsive - Mobile */
@media (max-width: 991px) {
    .search-form-navbar {
        width: 100%;
        margin: 10px 0;
    }

    .navbar-search-form {
        width: 100%;
        min-width: auto;
    }
}

/* Container หลัก - ติดขอบขวาของหน้าจอ */
.accessibility-toolbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/*  แต่ละปุ่ม */
.accessibility-btn {
    width: 35px;
    height: 35px;
    background: #cdf4d4db;
    border: 2px solid #44ffb3;
    border-right: none;
    border-radius: 50% 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #00ff99;
    font-size: 16px;
    margin-right: -5px;
}

.accessibility-btn:first-child {
    border-radius: 50% 0 0 0;
    margin-right: 0;
    color: #064604;
}

.accessibility-btn:last-child {
    border-radius: 0 0 0 50%;
}

.accessibility-btn:hover {
    background: #7dfb8e;
    color: #ffffff;
    transform: translateX(-5px);
}

.accessibility-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #ffffff;
}

/* ปุ่มแบบ Dropdown (สไลด์ออกมา) */
.accessibility-dropdown {
    position: relative;
}

.accessibility-dropdown-content {
    position: absolute;
    right: 100%;
    left: auto;
    top: 0;
    background: #ffffff;
    border: 2px solid #00ff99;
    border-radius: 10px 0 0 10px;
    padding: 10px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.accessibility-dropdown:hover .accessibility-dropdown-content,
.accessibility-dropdown:focus-within .accessibility-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ปุ่มขนาดตัวอักษร */
.font-size-controls {
    display: flex;
    gap: 5px;
}

.font-size-btn {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 2px solid #00ff99;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s ease;
}

.font-size-btn:hover {
    background: #00ff99;
    color: #ffffff;
}

/* ปุ่มเปลี่ยนภาษา */
.lang-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lang-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 2px solid #00ff99;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s ease;
    text-align: center;
}

.lang-btn:hover,
.lang-btn.active {
    background: #00ff99;
    color: #ffffff;
}

/* Accessibility Search Form */
.accessibility-search-form {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.accessibility-search-form input {
    width: 160px;
    padding: 6px 10px;
    border: 2px solid #00ff99;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.accessibility-search-form input:focus {
    border-color: #3498db;
}

.accessibility-search-form button {
    width: 36px;
    height: 36px;
    background: #00ff99;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.accessibility-search-form button:hover {
    background: #34495e;
}

/* โหมดสำหรับผู้พิการทางสายตา */

/* High Contrast Mode - โหมดความคมชัดสูง */
html.high-contrast {
    filter: contrast(1.5) !important;
}

html.high-contrast body,
html.high-contrast header,
html.high-contrast nav,
html.high-contrast .navbar,
html.high-contrast .bg-navmenu,
html.high-contrast .testimonial-2,
html.high-contrast .gray-bg,
html.high-contrast footer {
    filter: none !important;
}

html.high-contrast * {
    border-color: #000 !important;
}

/* Inverted Colors - สลับสี */
html.inverted-colors {
    filter: invert(1) hue-rotate(180deg) !important;
}

html.inverted-colors body,
html.inverted-colors header,
html.inverted-colors nav,
html.inverted-colors .navbar,
html.inverted-colors .bg-navmenu,
html.inverted-colors .testimonial-2,
html.inverted-colors .gray-bg,
html.inverted-colors footer {
    filter: none !important;
}

html.inverted-colors img,
html.inverted-colors video,
html.inverted-colors .carousel-item img {
    filter: invert(1) hue-rotate(180deg) !important;
}

/* Grayscale - ขาวดำ */
html.grayscale-mode {
    filter: grayscale(100%) !important;
}

html.grayscale-mode body,
html.grayscale-mode header,
html.grayscale-mode nav,
html.grayscale-mode .navbar,
html.grayscale-mode .bg-navmenu,
html.grayscale-mode .testimonial-2,
html.grayscale-mode .gray-bg,
html.grayscale-mode footer {
    filter: none !important;
}

/* Large Text - ตัวอักษรใหญ่ */
html.large-text {
    font-size: 120% !important;
}

html.large-text body,
html.large-text body * {
    font-size: inherit !important;
}

/* Extra Large Text */
html.xlarge-text {
    font-size: 140% !important;
}

html.xlarge-text body,
html.xlarge-text body * {
    font-size: inherit !important;
}

/* Font Size Scaling - ให้ทุกส่วนเปลี่ยนตาม */

/* Navbar menu items */
html #navbarmain .nav-link,
html .navbar-nav .nav-item a,
html .dropdown-item,
body .nav-link,
#navbarmain a {
    font-size: 1rem !important;
}

/* Service section titles */
html .testimonial-2 h5,
html .testimonial-2 .card-title,
html .gray-bg h5,
html .gray-bg .card-title {
    font-size: 1.25rem !important;
}

/* Card titles (news cards) */
html .card-title,
html .card-text,
html .card-footer,
html .card-body h5,
html .card-body p {
    font-size: 1rem !important;
}

/* Section headers */
html h5,
html h6 {
    font-size: 1.25rem !important;
}

/* General text */
html p,
html span,
html a:not(.nav-link):not(.navbar-brand),
html li,
html div {
    /* Allow inheritance but respect minimums or scaling if explicitly set elsewhere */
    /* converting explicit px to rem where possible in style.css would be best, but overriding here: */
}

/* Force inherit for most text when scaling is active is tricky. 
   Instead, relying on rem for the specific problematic areas. */

/* Specific fix for the user request about navbar */
.navbar-nav li a {
    font-size: 1rem !important;
}

/* Service section titles */
body .testimonial-2 h5,
body .testimonial-2 .card-title,
body .gray-bg h5,
body .gray-bg .card-title {
    font-size: 1em !important;
}

/* Card titles (news cards) */
body .card-title,
body .card-text,
body .card-footer,
body .card-body h5,
body .card-body p {
    font-size: 1em !important;
}

/* Section headers */
body h5,
body h6 {
    font-size: 1.1em !important;
}

/* General text */
body p,
body span,
body a {
    font-size: 1em !important;
}

/*  Tooltip */
