/**
 * 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;
    height: 100%;
}

/* Sticky Footer */
html,
body#top {
    min-height: 100vh;
}

body#top {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

body#top>header {
    flex-shrink: 0;
}

body#top>.content-wrapper {
    flex: 1 0 auto;
}

body#top>.footer {
    flex-shrink: 0;
    margin-top: auto;
}

body {
    line-height: 1.6;
    font-family: "Sarabun", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    color: #6f8ba4;
    font-weight: 400;
    overflow-x: hidden;
    /* Beautiful gradient background - green-yellow theme */
    background: linear-gradient(160deg, #e8f5e9 0%, #f1f8e9 30%, #fff8e1 60%, #f9fbe7 100%);
    background-attachment: fixed;
}

.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: #222;
}

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

h2,
.h2 {
    font-size: 44px;
}

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: #2d7a3a;
}

/* add style icon eff */
.shrink img {
    transition: 1s ease;
}

.shrink img:hover {
    -webkit-transform: scale(0.8);
    -ms-transform: scale(0.8);
    transform: scale(0.8);
    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.1);
}

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

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

.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 #2d7a3a;
}

.form-control {
    box-shadow: none;
    border-radius: 0;
}

.form-control:focus {
    box-shadow: none;
    border: 1px solid #2d7a3a;
}

.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: #2d7a3a;
    color: #fff;
    border-color: #236b2e;
}

.btn-main:hover {
    background: #c8a415;
    color: #fff;
    border-color: #b8960f;
}

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

.btn-main-2:hover {
    background: #2d7a3a;
    color: #fff;
    border-color: #2d7a3a;
}

.btn-solid-border {
    border: 2px solid #2d7a3a;
    background: transparent;
    color: #2d7a3a;
}

.btn-solid-border:hover {
    border: 2px solid #2d7a3a;
    color: #fff;
    background: #2d7a3a;
}

.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: #2d7a3a;
    color: #fff;
    border-color: #2d7a3a;
}

.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: #2d7a3a;
}

.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: 10px 0;
}

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

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

.subtitle {
    color: #2d7a3a;
    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: #2d7a3a;
}

.secondary-bg {
    background: #2d7a3a;
}

/* ============================================
   SECTION TITLE - Modern Premium Design
   ============================================ */
.section-title {
    margin-top: 20px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 18px;
    display: block;
}

/* Animated gradient underline */
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #2d7a3a 0%, 
        #4a9e5c 25%, 
        #8db600 50%, 
        #c8a415 75%, 
        #8db600 100%);
    background-size: 200% 100%;
    border-radius: 20px;
    animation: sectionTitleLineGrow 0.8s ease-out forwards;
    box-shadow: 0 2px 8px rgba(45, 122, 58, 0.3);
}

/* Decorative left accent */
.section-title::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(180deg, #2d7a3a 0%, #c8a415 100%);
    border-radius: 10px;
    opacity: 0;
    animation: fadeInLeft 0.5s ease-out 0.3s forwards;
}

@keyframes sectionTitleLineGrow {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        left: -25px;
    }
    100% {
        opacity: 1;
        left: -15px;
    }
}

.section-title h2,
.section-title h3 {
    color: #222222;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: all 0.3s ease;
}

/* Icon styling for section titles */
.section-title h2 i,
.section-title h3 i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #2d7a3a 0%, #c8a415 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.section-title a:hover h2,
.section-title a:hover h3 {
    color: #2d7a3a;
    transform: translateX(5px);
}

/* Section title centered variant */
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title.text-center::before {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title::before {
        display: none;
    }
    
    .section-title h2,
    .section-title h3 {
        font-size: 1.5rem;
    }
}

.custom-carousel-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1900 / 550;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .custom-carousel-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1900 / 770;
    }
}

/* .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,
#navbarmain .nav-home {
    padding: 10px 15px;
    color: #ffffff;
    font-family: "Athiti", sans-serif;
    font-size: 20px;
    display: inline-block;
    line-height: 1.5;
    transition: all 0.25s ease;
}

#navbarmain .nav-link:hover,
#navbarmain .active .nav-link {
    color: #000000;
}

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

.navbar-brand {
    margin-top: 10px;
}

.header-top-bar {
    /*background: #117268;*/
    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: #20d6c4;
    color: #fff;
}

.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;
    /* 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: #117268;
}

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

.text-color {
    color: #117268;
}

.text-color-2 {
    color: #117268;
}

.divider {
    height: 3px;
    background: #ff1100f8;
}

@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: #117268;
    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: #117268;
}

.feature-item h4 {
    color: #117268;
}

.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: #117268;
}

@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: #117268;
}

.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: #117268;
    color: #fff;
}

.nav-links .page-numbers.current {
    background: #117268;
    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: #117268;
    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: #117268;
    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: #117268;
    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: #117268;
}

.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: #117268;
}

.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: #117268;
    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 #2d7a3a;
}

.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: #117268;
    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: #117268;
}

.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: #2d7a3a;
}

.footer,
.footer h6,
.footer span,
.footer p,
.footer b,
.footer strong,
.footer div,
.footer .text-dark {
    color: #ffffff !important;
}

.footer .copyright a {
    font-weight: 600;
}

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

.logo {
    font-weight: 600;
    letter-spacing: 1px;
}

.logo h3 {
    color: #2d7a3a;
}

.logo span {
    color: #2d7a3a;
}

.widget .divider {
    height: 3px;
}

.widget h4 {
    color: #2d7a3a;
}

.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: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 100%;
    transition: all 0.3s ease;
}

.footer-socials li a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Visitor Count Styling */
.visitor-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
}

/* Center visitor count on mobile */
@media (max-width: 991.98px) {
    .visitor-count {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }
}

/* Mobile Footer Responsive */
@media (max-width: 991.98px) {
    .footer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .footer h6 {
        font-size: 14px;
    }

    .footer p.small {
        font-size: 12px;
    }

    .footer-socials li a {
        width: 44px;
        height: 44px;
    }

    .footer hr {
        opacity: 0.2;
    }
}

.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: linear-gradient(90deg, #1db5a6 0%, #4ecdc4 100%);
    z-index: 9999;
    display: inline-block;
    right: 55px;
    width: 50px;
    height: 50px;
    bottom: 50px;
    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: 40px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .backtop {
        width: 45px;
        height: 45px;
    }
}

.backtop:hover {
    background-color: #f5e5e1;
}

.backtop i {
    color: #fff;
    font-size: 20px;
    background-color: linear-gradient(90deg, #1db5a6 0%, #4ecdc4 100%);
}

.reveal {
    transition: all 0.3s;
    cursor: pointer;
    opacity: 1;
}

/* -------------------------------------------------- */
/* 1. ตั้งค่าเริ่มต้น: ซ่อน Bottom Nav ไว้ก่อน (สำหรับ PC) */
/* -------------------------------------------------- */
.mobile-bottom-nav {
    display: none !important;
    /* ซ่อนไว้ก่อน */
}

/* -------------------------------------------------- */
/* 2. แสดงผลเฉพาะเมื่อจอเล็กกว่า 992px (Mobile & Tablet) */
/* -------------------------------------------------- */
@media (max-width: 991.98px) {

    /* เปลี่ยนเป็นให้ footer มี padding-bottom แทน body เพื่อให้ footer ชิดขอบล่าง */
    body#top>.footer {
        padding-bottom: 90px !important;
    }

    /* กำหนดสไตล์ของ Bottom Nav และสั่งแสดงผล (Display Flex) */
    .mobile-bottom-nav {
        display: flex !important;
        /* บังคับแสดงผล */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background-color: #2d7a3a;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        /* ใส่ค่าสูงๆ ให้ลอยทับทุกอย่าง */
        padding-bottom: env(safe-area-inset-bottom);
        /* รองรับ iPhone จอแหว่ง */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        /* เพิ่มเงาด้านบนเล็กน้อยให้ดูมีมิติ */
    }

    /* สไตล์ของแต่ละปุ่มไอคอน */
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 10px;
        min-width: 60px;
        color: #ffffff !important;
        text-decoration: none !important;
        opacity: 0.8;
        /* ทำให้สีจางนิดหน่อยตอนปกติ */
        transition: opacity 0.3s;
        white-space: nowrap;
        /* ป้องกันการตัดบรรทัด */
    }

    /* เมื่อเอาเมาส์จิ้ม หรือกดค้าง ให้ชัดขึ้น */
    .mobile-nav-item:hover,
    .mobile-nav-item:active {
        opacity: 1;
    }

    .mobile-nav-item i {
        font-size: 24px;
        margin-bottom: 4px;
    }

    /* ปุ่ม Scan ตรงกลาง */
    .scan-btn-wrapper {
        position: relative;
        top: -25px;
    }

    .scan-btn {
        width: 60px;
        height: 60px;
        background-color: #c8a415;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 2px solid #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        color: white;
        text-decoration: none;
    }

    .scan-btn i {
        font-size: 28px;
    }

    .scan-label {
        display: block;
        text-align: center;
        font-size: 10px;
        color: #ffffff;
        margin-top: 5px;
    }
}

/* 1. ปรับแต่งช่องกรอกข้อความ (Input) */
.search-pill .form-control {
    border: 2px solid #ffffff;
    border-right: none;
    border-radius: 30px 0 0 30px !important;
    background: white;

    /* --- ส่วนสำคัญที่ปรับเพิ่ม --- */
    height: 40px;
    /* ความสูงกล่อง - ให้ตรงกับปุ่ม */
    line-height: 40px;
    /* จัดกึ่งกลางแนวตั้ง (ต้องเท่ากับ height) */
    padding-top: 0;
    /* ลบช่องว่างส่วนเกินด้านบน */
    padding-bottom: 0;
    /* ลบช่องว่างส่วนเกินด้านล่าง */
    /* ----------------------- */

    text-align: center;
    /* จัดกึ่งกลางแนวนอน */

    /* --- ซ่อนช่องค้นหาไว้ก่อน --- */
    width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    transition: all 0.4s ease;
}

/* แสดงช่องค้นหาเมื่อ hover ที่ container */
.search-pill:hover .form-control,
.search-pill .form-control:focus {
    width: 200px;
    padding-left: 20px;
    padding-right: 10px;
    opacity: 1;
}

.search-pill .form-control:focus {
    box-shadow: none;
    border-color: #ffffff;
}

/* 2. ปรับแต่งปุ่มค้นหา (Button) */
.search-pill .btn {
    background-color: #ffffff;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    /* Make it a circle */
    color: rgb(0, 0, 0);
    height: 40px !important;
    width: 40px !important;
    /* Make it a perfect circle */
    min-width: 40px !important;

    /* เพิ่มเพื่อให้ไอคอนแว่นขยายอยู่ตรงกลางเป๊ะๆ ด้วย */
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;

    transition: all 0.4s ease;
}

/* ปรับรูปร่างปุ่มเมื่อ hover */
.search-pill:hover .btn,
.search-pill .form-control:focus~.input-group-append .btn {
    border-radius: 0 30px 30px 0 !important;
    border-left: none !important;
    height: 40px !important;
}

.search-pill .btn:hover {
    background-color: #65c6f7;
    border-color: #ffffff;
    color: rgb(255, 255, 255);
}

/* card */
.news-img-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 450px;
}

/* image */
.news-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* overlay */
.news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.25),
            transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* hover รูป → แสดงข้อความ */
.news-img-card:hover .news-overlay {
    opacity: 1;
}

/* ข้อความปกติ (ตอน hover รูป) */
.news-title {
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

/* hover ที่ "ข้อความ" เท่านั้น */
.news-title:hover {
    color: #ffd400;
    /* สีเมื่อ hover ตัวอักษร */
}

/* Zoom Icon Overlay */
.news-zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: scale(0.5);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.news-zoom-icon i {
    font-size: 20px;
    color: #2d7a3a;
    transition: all 0.3s ease;
}

.news-img-card:hover .news-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.news-zoom-icon:hover {
    background: linear-gradient(135deg, #2d7a3a 0%, #c8a415 100%);
    transform: scale(1.15);
}

.news-zoom-icon:hover i {
    color: #fff;
}

/* Lightbox Modal */
.activity-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.activity-lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    width: auto;
    height: auto;
    min-height: 85vh;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    background: linear-gradient(135deg, #2d7a3a 0%, #c8a415 100%);
    color: #fff;
    padding: 15px 25px;
    text-align: center;
    border-radius: 0 0 12px 12px;
    margin-top: -5px;
}

.lightbox-caption h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
    background: #ff4444;
    color: #fff;
    transform: rotate(90deg);
}

.news-title:hover::after {
    width: 100%;
}

/* Title link in overlay */
.news-title-link {
    text-decoration: none;
    display: block;
}

.news-title-link:hover .news-title {
    color: #ffd400;
}

/* Image cursor */
.news-img-card img {
    cursor: pointer;
}

.marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

/* ✅ หยุดทันทีเมื่อ hover */
.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    flex: 0 0 auto;
    width: calc(25vw - 10px);
    /* desktop = 4 รูปเต็มจอ */
}

/* responsive */
@media (max-width: 991px) {
    .marquee-item {
        width: calc(40vw - 10px);
        /* tablet = 3 รูป */
    }
}

@media (max-width: 575px) {
    .marquee-item {
        width: calc(75vw - 10px);
        /* mobile = 2 รูป */
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

iframe,
.note-video-clip,
.note-editable iframe {
    width: 100% !important;
    /* กว้างเต็มจอเสมอ */
    max-width: 100% !important;
    /* ห้ามเกินจอ */
    height: auto !important;
    /* ลบความสูงที่ถูก Fix มา */
    aspect-ratio: 16 / 9;
    /* บังคับสัดส่วน 16:9 (เหมือน Youtube) */
    display: block !important;
}

.news-minimal-item {
    padding: 8px;
    padding-bottom: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #f5f7fa;
}

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

.news-minimal-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    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 {
    background: #fff;
    padding: 5px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.youtube-clean-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

/* ============================================
   VIEW ALL BUTTON - Subtle Outline Design
   ============================================ */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    color: #222222 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    color: #2d7a3a !important;
    transform: translateX(3px);
}

.btn-view-all i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

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

/* PR News Item - ข่าวประชาสัมพันธ์ */
.pr-news-item {
    padding: 12px 15px;
    margin-bottom: 0 !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee !important;
    background: #fff;
}

.pr-news-item:hover {
    background: #fff;
    transform: translateX(8px);
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pr-news-link {
    display: flex;
    align-items: center;
    color: #333333;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.pr-news-link i {
    color: #2d7a3a;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pr-news-item:hover .pr-news-link {
    color: #2d7a3a;
}

.pr-news-item:hover .pr-news-link i {
    transform: translateX(5px);
    color: #c8a415;
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
    footer .col-lg-8 {
        text-align: right !important;
    }

    footer .footer-socials {
        justify-content: flex-end;
    }

    footer .footer-btm .copyright {
        text-align: left !important;
    }
}

/* Newsletter Card Styles */
.newsletter-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    height: 100%;
}

.newsletter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.newsletter-card-img {
    position: relative;
    overflow: hidden;
}

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

.newsletter-card:hover .newsletter-card-img img {
    transform: scale(1.05);
}

.newsletter-card-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-card:hover .newsletter-card-img::after {
    opacity: 1;
}

.newsletter-card-body {
    padding: 15px;
    text-align: center;
    background: #fff;
}

.newsletter-card-title {
    color: #2d7a3a;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsletter-card-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d7a3a;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.newsletter-card:hover .newsletter-card-icon {
    opacity: 1;
    transform: scale(1);
}

/* Legacy support for newsletter-hover-item */
.newsletter-hover-item {
    display: block;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border-radius: 8px;
}

.newsletter-hover-item:hover {
    transform: translateY(-8px);
}

.newsletter-hover-item img {
    transition: box-shadow 0.3s ease;
}

.newsletter-hover-item:hover img {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* 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: 50px;
    height: 50px;
    background: #b5e6a3;
    border: 2px solid #2d7a3a;
    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: #1a4d24;
    font-size: 20px;
    margin-right: -5px;
}

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

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

.accessibility-btn:hover {
    background: #2d7a3a;
    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 #2d7a3a;
    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 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

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

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

.font-size-btn:hover {
    background: #2d7a3a;
    color: #ffffff;
}

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

.lang-btn {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 2px solid #2d7a3a;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.lang-btn:hover,
.lang-btn.active {
    background: #2d7a3a;
    color: #ffffff;
}

/* ==========================================
   SEARCH PANEL - Modern Beautiful Design 
   ========================================== */

/* Search Dropdown Panel */
.search-dropdown-panel {
    min-width: 280px !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: none !important;
    border-radius: 16px 0 0 16px !important;
    box-shadow:
        -8px 8px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
    backdrop-filter: blur(10px);
}

/* Search Panel Title */
.search-panel-title {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    font-weight: 700;
    font-size: 16px;
    color: #2d7a3a;
    border-bottom: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.search-panel-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2d7a3a 0%, #c8a415 100%);
    border-radius: 2px;
}

/* Search Panel Form */
.search-panel-form {
    width: 100%;
}

/* Search Input Wrapper */
.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:hover {
    border-color: #2d7a3a;
    box-shadow: 0 4px 15px rgba(45, 122, 58, 0.15);
}

.search-input-wrapper:focus-within {
    border-color: #2d7a3a;
    box-shadow:
        0 0 0 4px rgba(45, 122, 58, 0.1),
        0 4px 15px rgba(45, 122, 58, 0.2);
}

/* Search Input Field */
.search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 12px 15px;
    font-size: 14px;
    color: #2c3e50;
    background: transparent;
    font-family: 'Sarabun', sans-serif;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Search Submit Button */
.search-submit-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, #2d7a3a 0%, #c8a415 100%);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #1a4d24 0%, #a88a0f 100%);
    transform: scale(1.05);
}

.search-submit-btn:active {
    transform: scale(0.98);
}

.search-submit-btn i {
    transition: transform 0.2s ease;
}

.search-submit-btn:hover i {
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-dropdown-panel {
        min-width: 220px !important;
        padding: 15px !important;
    }

    .search-input-wrapper {
        align-items: stretch;
    }

    .search-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .search-submit-btn {
        width: 45px;
        min-height: 45px;
        height: 100%;
        font-size: 16px;
        border-radius: 0 10px 10px 0;
        flex-shrink: 0;
    }
}


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


/* 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 */

.accessibility-btn[data-tooltip] {
    position: relative;
}

.accessibility-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    background: #2d7a3a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.accessibility-btn[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive - มือถือ  */

@media (max-width: 768px) {
    .accessibility-toolbar {
        top: auto;
        bottom: 450px;
        transform: none;
    }

    .accessibility-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .accessibility-dropdown-content {
        min-width: 120px;
        padding: 8px;
    }
}

/* ========================================
   Custom Pagination Styles
   ======================================== */
.custom-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.custom-pagination li {
    display: inline-block;
}

.custom-pagination li a,
.custom-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 500;
    color: #2d7a3a;
    background-color: #fff;
    border-right: 1px solid #dee2e6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.custom-pagination li:last-child a,
.custom-pagination li:last-child span {
    border-right: none;
}

.custom-pagination li a:hover {
    background-color: #e9ecef;
    color: #2d7a3a;
}

.custom-pagination li.active span {
    background-color: #2d7a3a;
    color: #fff;
    border-color: #2d7a3a;
}

.custom-pagination li.disabled span {
    color: #6c757d;
    background-color: #fff;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 576px) {

    .custom-pagination li a,
    .custom-pagination li span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 14px;
    }
}

/* ============================================
   FOOTER - Modern Premium Design
   ============================================ */
.footer {
    background: linear-gradient(135deg, #2d7a3a 0%, #1a5427 50%, #4a9e5c 100%);
    position: relative;
}

/* Social Icons */
.footer-socials {
    margin-bottom: 0;
    padding: 0;
}

.footer-socials li {
    margin-right: 10px;
}

.footer-socials li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-socials li a:hover {
    background: #fff;
    color: #2d7a3a;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-socials li a i {
    font-size: 20px;
}

/* Visitor Count */
.visitor-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.visitor-count i {
    color: #c8a415;
}

/* Footer Contact Info */
.footer h6 {
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px !important;
}

.footer p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 5px;
}

.footer p i {
    color: #c8a415;
    margin-right: 5px;
}

/* Footer Bottom */
.footer-btm {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-socials li a {
        width: 40px;
        height: 40px;
    }
    
    .footer-socials li a i {
        font-size: 18px;
    }
    
    .visitor-count {
        display: flex;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}

#gtco-pricing .card-img {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 150px;
    height: 150px;
    object-fit: contain;
    padding: 5px;
    margin: 0 auto;
    display: block;
}

#gtco-pricing .title-color {
    max-width: 150px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 20px;
    line-height: 1.3;
}
