a {
    text-decoration: none;
    color: #fcfcfc;
}

/* โครงสร้างพื้นฐาน */
body {
    font-family: 'Mitr', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    /* zoom: 90%; */
}

.btn-custom {
    background-color: #673ab7;
    /* สีม่วง */
    color: white;
}

.btn-custom:hover {
    background-color: #5e35b1;
    color: rgb(187, 186, 186);
}

.content {
    flex: 1;
}

.detail-book {
    font-size: 13px;
    color: #727272;
}

.detail-room {
    font-size: 16px;
    color: #727272;
}

.detail-book-small {
    font-size: 12px;
    color: #969696;
    font-style: italic;
}


/* Navbar */
.navbar {
    background-color: #004d40;
}

/* .navbar-brand,
.nav-link {
    color: white !important;
    font-weight: 500;
} */

/* Hero section */
.hero {
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Search box */
.search-box {
    background-color: #f8f8f8;
    padding: 30px;
    margin-top: -60px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-box input {
    height: 45px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Services icon */
.icon-service i {
    font-size: 40px;
    color: #004d40;
}

/* Section headers */
.section-header,
.section-header-right {
    padding-left: 10px;
    font-weight: 600;
    margin: 40px 0 20px;
}

.section-header {
    color: #004d40;
    border-left: 4px solid #e28b08;
}

.section-header-right a {
    text-decoration: none;
    font-size: 14px;
    color: #004d408e;
    display: block;
}

.section-header-right a:hover {
    color: #004d40;
}

.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Footer */
footer {
    background-color: #004d40;
    color: white;
    padding: 30px 20px;
    font-size: 14px;
}

/* Announcements */
.announcement-box {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.announcement-img {
    width: 100%;
    height: auto;
    background-color: #ebeaea;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.animation-img {
    width: 100%;
    height: auto;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.card-img {
    width: 100%;
    height: auto;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.announcement-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.animation-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgb(255, 255, 255);
}

.announcement-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgb(212, 212, 212);
}

.card-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Meeting & book images */
.meeting-img {
    width: 100%;
    height: 300px;
    border-radius: 5px;
    margin-bottom: 15px;
    object-fit: cover;
}

.book-img-wrapper {
    width: 100%;
    margin-bottom: 15px;
}

.book-img-box {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 5px;
}

.book-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* New badge */
.new {
    font-size: 13px;
    color: #fff;
    background: #e53637;
    padding: 2px 12px;
    border-radius: 4px;
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 10;
}

.book-caption {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

/* Toggle lists */
.toggle-content {
    display: none;
    margin-top: 10px;
    padding-left: 10px;
}

.toggle-content li {
    list-style: none;
    margin-bottom: 2px;
    line-height: 1.6;
}

.toggle-content a {
    text-decoration: none;
    color: #033b01;
    display: block;
    text-indent: -15px;
    padding-left: 15px;
    white-space: normal;
}

.toggle-content a:hover {
    color: #007bff;
}

.toggle-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #434442;
    padding-left: 10px;
}

.arrow {
    transition: transform 0.5s ease;
}

.toggle-button.active .arrow {
    transform: rotate(180deg);
}

/* Preloader animations */
#preloder {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999999;
    background: #000;
    opacity: 1;
    transition: opacity 0.1s ease;
}

#preloder.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f44336;
    border-left-color: transparent;
    border-radius: 50%;
    animation: loader 0.8s linear infinite;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
        border-color: #f44336;
        border-left-color: transparent;
    }

    50% {
        transform: rotate(180deg);
        border-color: #673ab7;
        border-left-color: transparent;
    }

    100% {
        transform: rotate(360deg);
        border-color: #f44336;
        border-left-color: transparent;
    }
}

/* Info boxes */
.box-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.info-box-link {
    flex: 1 1 calc(33.333% - 20px);
    text-decoration: none;
    color: inherit;
}

.info-box {
    background-color: #fdb36e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Menu styles */
.menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu-links {
    color: white;
    text-decoration: none;
    padding: 10px 5px;
    display: inline-block;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-links::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #e28b08;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.menu-links:hover::after,
.menu-links.active::after {
    transform: translateX(-50%) scaleX(1);
}

.dropdowns-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 10px 0;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.dropdowns-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdowns-menu a {
    padding: 10px 20px;
    display: block;
    color: #333;
}

.dropdowns-menu a:hover {
    background-color: #f0f0f0;
}

.dropdowns:hover .dropdowns-menu {
    display: block;
}




.menu-box {
    background: linear-gradient(to right, #f7f7f7, #ffffffe1);
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    gap: 10px;
}

.menu-box i {
    font-size: 24px;
    color: #555;
}

.menu-box span {
    font-size: 28px;
    color: teal;
    font-weight: 350;
}

.menu-box-show {
    background: linear-gradient(to right, #f7f7f7, #ffffffe1);
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    gap: 10px;
}

.menu-box-show i {
    font-size: 24px;
    color: #555;
}

.menu-box-show span {
    font-size: 24px;
    color: teal;
    font-weight: 350;
}


/* Slide Image*/
.main-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

#thumbnailContainer {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    /* ✅ ทำให้เลื่อนลื่น */
    gap: 10px;
    padding: 5px 0;
    -ms-overflow-style: none;
    /* IE และ Edge */
    scrollbar-width: none;
    /* Firefox */
}

.thumbnails img {
    width: 200px;
    height: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 6px;
    flex-shrink: 0;
    /* ✅ ป้องกันย่อขนาดเมื่อ scroll แนวนอน */
}

.thumbnails img:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.thumbnails img.active {
    opacity: 1;
    border: 2px solid #007bff;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}



.header-content1 {
    background: linear-gradient(to right, #ffffff, #d6f3f3, #ffffff);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}


.title1 {
    margin: 0;
    color: #28a5a5;
    font-size: 18px;
    font-weight: 500;
}

.view-all1 {
    color: #4f4f4f;
    font-size: 14px;
    text-decoration: none;
}


/* Responsive breakpoints */
@media (max-width: 767.98px) {

    .section-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-box-link {
        flex: 1 1 100%;
    }

    .hero {
        padding: 60px 20px;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
    }

    .menu-box-show span {
        font-size: 20px;
        color: teal;
        font-weight: 350;
    }

    .thumbnails img {
        width: 100px;
        height: auto;
        cursor: pointer;
        opacity: 0.6;
        transition: transform 0.3s, opacity 0.3s;
        border-radius: 6px;
        flex-shrink: 0;
    }

}

@media (max-width: 991.98px) {
    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        background-color: #004d40;
        padding: 15px;
        border-radius: 0 0 10px 10px;
        display: none;
    }

    .menu.show {
        display: flex;
    }

    .menu-box-show span {
        font-size: 20px;
        color: teal;
        font-weight: 350;
    }

    .menu-links {
        width: 100%;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .dropdowns-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        padding-left: 15px;
        display: none;
    }


    .dropdowns-menu a {
        color: #fc0606;
    }
}