/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sarabun', sans-serif;
    line-height: 1.6;
    color: #4A4A4A;
    background-color: #FEFEFE;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand .logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 2px solid #C9A86A;
    border-radius: 50px;
    padding: 3px;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.2);
}

.nav-brand span {
    font-size: 20px;
    font-weight: 700;
    color: #8B6F47;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #4A4A4A;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #8B6F47;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #8B6F47;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F5F1E8 0%, #E8DCC8 100%);

    /*
    background-image: url('../images/logo.jpg');
    */  
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 241, 232, 0.9) 0%, rgba(232, 220, 200, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.hero-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 30px;
    border: 4px solid #C9A86A;
    border-radius: 150px;
    padding: 5px;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.3);
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #8B6F47;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 400;
    color: #6B8E6F;
    margin-bottom: 15px;
}

.hero-tagline {
    font-size: 24px;
    font-weight: 300;
    color: #4A4A4A;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: #8B6F47;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #6B5537;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 111, 71, 0.3);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: #8B6F47;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 20px;
    color: #6B8E6F;
    margin-bottom: 20px;
}

.divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #C9A961, #6B8E6F);
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 50px 0;
    background-color: #FFFFFF;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.about-text strong {
    color: #8B6F47;
    font-weight: 600;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Atmosphere Section - Carousel with Grid Layout */

.atmosphere-slider-container {
    position: relative;
    max-width: 1000px; /* ขยายความกว้างสูงสุดเพื่อให้เห็นภาพได้มากขึ้น */
    margin: 0 auto;
    padding: 0 20px;
}

.atmosphere-scroll-container {
    overflow-x: auto; /* เปิดใช้งาน Horizontal Scroll */
    white-space: nowrap; /* ป้องกันไม่ให้ item ขึ้นบรรทัดใหม่ */
    -webkit-overflow-scrolling: touch; /* ปรับปรุงการเลื่อนบน iOS */
    scroll-snap-type: x mandatory; /* ทำให้การเลื่อนหยุดที่ภาพพอดี */
    border-radius: 8px;
    background-color: #FFFFFF;
    padding-bottom: 15px; /* เพิ่มพื้นที่สำหรับ scrollbar */
}

.scroll-track {
    display: inline-flex; /* ใช้ inline-flex เพื่อให้เลื่อนได้ */
    gap: 20px; /* เพิ่มช่องว่างระหว่างภาพ */
    padding: 10px 0; /* เพิ่ม padding ด้านบนและล่าง */
}

.scroll-item {
    flex-shrink: 0; /* ป้องกันไม่ให้ item หดตัว */
    width: 600px; /* กำหนดความกว้างของแต่ละภาพตามที่ผู้ใช้ต้องการ */
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start; /* กำหนดจุด snap */
}

.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    cursor: pointer;
}

/* Custom Scrollbar (Optional but recommended for better aesthetics) */
.atmosphere-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.atmosphere-scroll-container::-webkit-scrollbar-thumb {
    background-color: #C9A86A;
    border-radius: 10px;
}

.atmosphere-scroll-container::-webkit-scrollbar-track {
    background-color: #F5F1E8;
}

@media (max-width: 768px) {
    .atmosphere-slider-container {
        padding: 0 10px;
    }
    .scroll-item {
        width: 80vw; /* ให้ภาพกว้าง 80% ของ viewport บนมือถือ */
    }
}

.atmosphere {
    padding: 50px 0;
    background-color: #F5F1E8;
}

.atmosphere-description {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto 50px;
}


.gallery-item img {
    /* สไตล์เดิม */
    /* width: 100%;
    height: 400px;
    object-fit: cover; */
}

/* Slider Styles */
.slider-container {
    position: relative;
    overflow: hidden;
    max-width: 900px; /* จำกัดความกว้างของสไลเดอร์ */
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 500px; /* กำหนดความสูงที่เหมาะสม */
    object-fit: cover;
    display: block;
}

.slide-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    line-height: 1;
    transition: background 0.3s;
}

.slide-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-button {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.next-button {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.dot.active {
    background-color: #8B6F47; /* สีทอง */
    transform: scale(1.2);
    border: 2px solid #FFFFFF;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .slide img {
        height: 300px; /* ลดความสูงสำหรับมือถือ */
    }
    .slide-button {
        padding: 10px;
        font-size: 20px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Practice Section */
.practice {
    padding: 50px 0;
    background-color: #FFFFFF;
}

.practice-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.practice-card {
    background-color: #F5F1E8;
    overflow: hidden;
}

.practice-header {
    padding: 20px;
    text-align: center;
}

.practice-header.theory {
    background-color: #8B6F47;
}

.practice-header.practical {
    background-color: #6B8E6F;
}

.practice-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
}

.practice-body {
    padding: 30px;
}

.practice-body img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

.practice-body p {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
}

/* Facilities Section */
.facilities {
    padding: 50px 0;
    background-color: #F5F1E8;
}

.facilities-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.facilities-left {
    flex: 1;
}

.facilities-right {
    flex: 1;
}

.facilities-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.facilities-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.facility-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.facility-icon {
    border: 2px solid #8B6F47; /* เพิ่มขอบสีน้ำตาลทอง */
    border-radius: 50%; /* ทำให้เป็นวงกลม */
    background-color: #FFFFFF; /* เปลี่ยนพื้นหลังเป็นสีขาว */

    width: 30px;
    height: 80px;
    min-width: 80px;
}

.facility-icon img {
    padding: 12px; /* เพิ่มระยะห่างภายในเพื่อให้รูปไม่ติดขอบ */
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.facility-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: #8B6F47;
    margin-bottom: 10px;
}

.facility-text p {
    font-size: 18px;
    line-height: 1.6;
	text-align: justify;
}

.facilities-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Free Service Section */
.free-service {
    padding: 50px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.free-service-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: #8B6F47;
    margin-bottom: 30px;
}

.free-service-content > p {
    font-size: 20px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

.highlight-box {
    background: linear-gradient(135deg, #F5F1E8 0%, #E8DCC8 100%);
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
}

.highlight-box h3 {
    font-size: 32px;
    font-weight: 700;
    color: #6B8E6F;
    margin-bottom: 20px;
}

.highlight-box p {
    font-size: 20px;
    line-height: 1.8;
    color: #4A4A4A;
}

.free-service-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 40px auto 0;
}

/* Testimonials Section */
.testimonials {
    padding: 50px 0;
    background-color: #F5F1E8;
}

.testimonials-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.testimonials-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial-item {
    background-color: #FFFFFF;
    padding: 10px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #4A4A4A;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    font-size: 16px;
    font-weight: 600;
    color: #8B6F47;
    text-align: right;
}

/* Contact Section */
.contact {
    padding: 50px 0;
    background-color: #FFFFFF;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default to two columns for wider screens */
    gap: 40px;
    align-items: start; /* Align items to the start of the grid area */
}

.contact-intro {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: justify;
}

.contact-items {
    display: grid; /* Change to grid for better layout control */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: initial;
    gap: 10px;
    /* New styles for border and hover effect */
    padding: 10px;
    border: 1px solid #E0D5C7; /* Light, thin border */
    border-radius: 20px;
    background-color: #FFFFFF;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer; /* Indicate interactivity */
}

.contact-item:hover {
    background-color: #F5F1E8; /* Slightly darker background on hover */
    border-color: #C9A86A; /* Highlight border on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 32px;
    color: #8B6F47;
    min-width: 40px;
}
.contact-item div {
    display: flex;
    /* flex-direction: column; /* Removed to allow inline content */
    align-items: center; /* Center vertically */
    flex-wrap: wrap; /* Allow wrapping if content is too long */
}

.contact-item strong {
    font-size: 18px;
    color: #8B6F47;
    margin-right: 5px; /* Add a small space after the label */
    /* margin-bottom: 5px; /* Removed */
    /* display: block; /* Removed to allow inline content */
}

.contact-item span {
    font-size: 16px;
    color: #4A4A4A;
}

.contact-map {
    width: 100%;
    margin: 0; /* Remove margin as it's handled by gap in grid */
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border: none;
}


.contact-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    width: 100%;
}

.contact-logo img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 30px;
    border: 5px solid #C9A86A;
    border-radius: 150px;
    padding: 15px;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #F5F1E8 0%, #E8DCC8 100%);
    padding: 8px 0; /* ลด padding เพื่อให้ footer สั้นลง */
    text-align: center;
}

.footer-content p {
    font-size: 16px; /* ลดขนาดตัวอักษร */
    font-weight: 400;
    color: #8B6F47;
    margin-bottom: 0px; /* ลด margin-bottom */
}

.footer-blessing {
    font-size: 14px; /* ลดขนาดตัวอักษร */
    font-weight: 400;
    color: #6B8E6F;
    margin-bottom: 0px; /* ลด margin-bottom */
}

.footer-copyright {
    font-size: 14px; /* ลดขนาดตัวอักษร */
    font-weight: 400;
    color: #4A4A4A;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(245, 241, 232, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .about-content,
    .atmosphere-gallery,
    .practice-content,
    .facilities-content,
    .testimonials-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: center;
    }

    .gallery-item img {
        height: 300px;
    }

    .practice-body img {
        height: 250px;
    }

    .free-service-content h2 {
        font-size: 28px;
    }

    .highlight-box h3 {
        font-size: 24px;
    }

    .highlight-box p {
        font-size: 18px;
    }
}



/* Courses Section */
.courses {
    padding: 50px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F1E8 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #8B7355;
    margin-top: 10px;
}

.courses-content {
    display: flex; /* เปลี่ยนจาก grid เป็น flex เพื่อจัดกึ่งกลางได้ง่ายขึ้น */
    flex-direction: column;
    align-items: center; /* จัดกึ่งกลางตามแนวนอน */
    gap: 60px;
    margin-top: 60px;
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.course-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #C9A86A;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 115, 85, 0.2);
}

.course-card.special {
    border-top-color: #8B7355;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F1E8 50%);
}

.course-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #C9A86A 0%, #8B7355 100%);
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.course-card h3 {
    font-size: 20px;
    color: #4A4A4A;
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-card p {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
}

.course-card p strong {
    color: #8B7355;
}

.application-steps {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.1);
    border-left: 5px solid #C9A86A; /* ใช้สีเดียวกับเส้นขอบ course-card */
}

.application-steps h3 {
    font-size: 28px;
    font-weight: 700;
    color: #8B6F47; /* ใช้สีเดียวกับ h2 ใน section-header */
    margin-bottom: 10px;
    text-align: center;
}

.application-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.application-list li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    text-align: justify;
}

.application-list li::before {
    content: "\f058"; /* Font Awesome check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #6B8E6F; /* สีเขียวอ่อน */
    position: absolute;
    left: 0;
    top: 0;
}

.courses-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 1px;
}

.schedule-item {
    background: #FFFFFF;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schedule-item h3 {
    font-size: 22px;
    color: #4A4A4A;
    margin-bottom: 20px;
    text-align: center;
}

.schedule-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.schedule-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.schedule-thumbnail:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.register-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #C9A86A 0%, #8B7355 100%);
    color: #FFFFFF;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.register-btn:hover {
    background: linear-gradient(135deg, #8B7355 0%, #C9A86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

.register-btn i {
    font-size: 20px;
}

/* Image Popup Modal */
.image-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.popup-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.popup-close:hover,
.popup-close:focus {
    color: #C9A86A;
}

@media (max-width: 768px) {
    .courses-list {
        grid-template-columns: 1fr;
    }
    
    .application-steps {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.1);
    border-left: 5px solid #C9A86A; /* ใช้สีเดียวกับเส้นขอบ course-card */
}

.application-steps h3 {
    font-size: 28px;
    font-weight: 700;
    color: #8B6F47; /* ใช้สีเดียวกับ h2 ใน section-header */
    margin-bottom: 20px;
    text-align: center;
}

.application-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.application-list li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 5px;
    padding-left: 30px;
    position: relative;
    text-align: justify;
}

.application-list li::before {
    content: "\f058"; /* Font Awesome check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #6B8E6F; /* สีเขียวอ่อน */
    position: absolute;
    left: 0;
    top: 0;
}

.courses-schedule-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .schedule-item {
        padding: 20px;
    }
    
    .register-btn {
        font-size: 16px;
        padding: 12px 24px;
    }
}



/* Digital Clock */
#digital-clock {
    font-size: 1em; /* ลดขนาดตัวอักษร */
    font-weight: 400;
    color: #8B6F47;
    white-space: nowrap;
}

/* Flag Counter in Footer */
.footer-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* อนุญาตให้ตัดบรรทัดถ้าพื้นที่ไม่พอ */
    margin-top: 1px;
    padding-top: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-counter a {
    display: flex;
    align-items: center;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-counter a:hover {
    transform: scale(1.0);
}

.footer-counter img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    max-height: 700px; /* ลดความสูงของรูปภาพ */
    border-radius: 4px;
}



/* Preparation Section Styles */
.preparation {
    padding: 40px 0;
    background: linear-gradient(135deg, #F5F1E8 0%, #E8DCC8 100%);
}

.preparation-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.preparation-item {
    display: flex;
    gap: 25px;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #8B6F47;
}

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

.preparation-item.important {
    border-left-color: #D4AF37;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFFFF 100%);
}

.preparation-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B6F47 0%, #6B5537 100%);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.preparation-text h3 {
    font-size: 22px;
    color: #8B6F47;
    margin-bottom: 15px;
}

.preparation-text ul {
    list-style: none;
    padding-left: 0;
}

.preparation-text li {
    font-size: 18px;
    color: #4A4A4A;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.preparation-text li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #6B8E6F;
    position: absolute;
    left: 0;
    top: 4px;
}

.preparation-text .note {
    font-size: 16px;
    color: #8B7355;
    font-style: italic;
}

@media (max-width: 768px) {
    .preparation-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .preparation-text li {
        padding-left: 0;
        text-align: left;
    }

    .preparation-text li::before {
        position: static;
        margin-right: 10px;
    }
}


/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    padding: 15px;
    text-align: center;
    z-index: 1001;
    display: none; /* Initially hidden */
}

.cookie-consent-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.cookie-consent-text {
    margin: 0;
}

.cookie-consent-btn {
    background: #C9A86A;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-consent-btn:hover {
    background: #8B7355;
}

.section-tone-80 {
    background-color: #E8E2D5 !important;
}

/* Courses Table Styles */
.courses-table-wrapper {
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.1);
    overflow-x: auto;
    width: 100%; /* ให้ wrapper ใช้ความกว้างเต็มที่เพื่อรองรับตาราง */
    max-width: 900px; /* จำกัดความกว้างสูงสุดของตาราง */
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    background-color: #FFFFFF;
    min-width: 100%;
}

.courses-table th,
.courses-table td {
    padding: 15px;
    border: 1px solid #E8DCC8;
    vertical-align: top;
}

.courses-table th {
    background-color: #8B6F47;
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    font-size: 18px;
    white-space: nowrap;
}

.courses-table td {
    color: #4A4A4A;
}

/* Style for the Course Name column (first column) */
.courses-table td:first-child {
    font-size: 18px; /* Slightly larger than default 16px */
    font-weight: 600; /* Bold to stand out */
    color: #8B6F47; /* Use the primary theme color (Brown/Gold) for emphasis */
}

.courses-table tbody tr:nth-child(even) {
    background-color: #F5F1E8;
}

.courses-table tbody tr:hover {
    background-color: #E8DCC8;
}

.courses-table td:nth-child(2),
.courses-table td:nth-child(3) {
    text-align: center;
    font-weight: 600;
    color: #6B8E6F;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .courses-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .courses-table thead {
        display: none;
    }
    
    .courses-table tbody {
        display: block;
    }
    
    .courses-table tr {
        display: block;
        margin-bottom: 20px;
        border: 2px solid #8B6F47;
        background-color: #FFFFFF;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .courses-table tr:nth-child(even) {
        background-color: #F5F1E8;
    }
    
    .courses-table td {
        display: block;
        padding: 12px 15px;
        border: none;
        border-bottom: 1px solid #E8DCC8;
        text-align: left;
        position: relative;
        padding-left: 140px;
    }
    
    .courses-table td:last-child {
        border-bottom: none;
    }
    
    .courses-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 12px;
        font-weight: 700;
        color: #8B6F47;
        width: 120px;
        font-size: 14px;
    }
    
    .courses-table td:nth-child(2),
    .courses-table td:nth-child(3) {
        text-align: left;
        color: #6B8E6F;
        font-weight: 600;
    }
}

/* Custom Highlight Class for Orange Color */
.highlight-orange {
    color: #FF8C00; /* DarkOrange - เป็นสีส้มที่ชัดเจนและอ่านง่าย */
    font-weight: 400;
}

/* Custom styles for Practice Section - Teachers */
.teachers-container {
    display: flex;
    justify-content: center;
    gap: 200px;
    margin-top: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.teacher-card {
    text-align: center;
    max-width: 300px;
}

.teacher-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #C9A86A; /* Gold/Brown border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.teacher-name {
    font-size: 16px;
    font-weight: 600;
    color: #4A4A4A;
}

.practice-intro {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
    color: #6B5537;
}

.practice-intro strong {
    color: #8B6F47;
    font-weight: 700;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .teachers-container {
        gap: 20px;
    }

    .teacher-card {
        max-width: 120px;
    }

    .teacher-image {
        width: 100px;
        height: 100px;
    }

    .teacher-name {
        font-size: 14px;
    }

    .practice-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }
}


/* Facilities Gallery Section */
.facilities-gallery-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #E0D5C7;
}

.gallery-title {
    font-size: 22px;
    font-weight: 700;
    color: #8B6F47;
    text-align: left;
    margin-bottom: 20px;
}

.facilities-slider-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.facilities-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    border-radius: 8px;
    background-color: #FFFFFF;
    padding-bottom: 15px;
}

.facilities-scroll-track {
    display: inline-flex;
    gap: 20px;
    padding: 10px 0;
}

.facilities-scroll-item {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.facilities-scroll-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.facilities-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    cursor: pointer;
}

/* Custom Scrollbar for Facilities Gallery */
.facilities-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.facilities-scroll-container::-webkit-scrollbar-thumb {
    background-color: #C9A86A;
    border-radius: 10px;
}

.facilities-scroll-container::-webkit-scrollbar-track {
    background-color: #F5F1E8;
}

@media (max-width: 768px) {
    .facilities-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .facilities-slider-container {
        padding: 0;
    }
    
    .facilities-scroll-item {
        width: 100%;
    }
    
    .gallery-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto; /* Auto width */
    height: auto; /* Auto height */
    background-color: #8B6F47; /* สีเดียวกับแบรนด์ */
    color: #FFFFFF;
    border-radius: 30px; /* Pill shape */
    text-align: center;
    line-height: normal; /* Normal line height */
    font-size: 18px; /* Adjusted font size */
    font-weight: 600;
    padding: 15px 25px; /* Add padding */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* เพื่อให้สามารถใช้เป็นลิงก์ได้ */
}

.floating-contact-btn:hover {
    background-color: #6B5537;
    transform: scale(1.05);
}

/* Media Query for smaller screens */
@media (max-width: 600px) {
    .floating-contact-btn {
        font-size: 16px;
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
    }
}
