:root {
    --primary: #062a60;
    --secondary: #ff5100;
    --accent: #FABD59;
    --light: #F5F7FA;
    --dark: #062a60;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Site Header Bar */
.site-header {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    transition: all 0.3s ease;
}

.site-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-header-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.site-header-item:hover {
    color: var(--accent);
}

.site-header-item i {
    font-size: 0.9rem;
    color: var(--accent);
}

.site-header-social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.site-header-social span {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.site-header-social a {
    width: 26px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.site-header-social a:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

/* Site Header - Desktop จะซ่อนเมื่อ scroll, Mobile จะคงอยู่ */
@media (min-width: 769px) {
    .site-header.scrolled {
        transform: translateY(-100%);
    }
}

/* Logo - ลดขนาด */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    color: var(--primary);
}

.logo img {
    height: 40px; /* ลดจาก 50px */
    margin-right: 10px; /* ลดจาก 12px */
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.3rem; /* ลดจาก 1.6rem */
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* Header - ลดขนาด */
header {
    position: fixed;
    top: 42px;
    left: 0;
    width: 100%;
    z-index: 1001;
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Header Scroll Effect - เฉพาะ Desktop */
@media (min-width: 769px) {
    header.scrolled {
        padding: 0.2rem 0; /* ลดจาก 0.3rem */
        top: 0;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0; /* ลดจาก 1.2rem */
    gap: 1rem;
    max-width: 100%;
}

/* Navigation - ปรับให้ responsive */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    flex-shrink: 1; /* เปลี่ยนจาก 0 เป็น 1 */
    flex-wrap: wrap; /* เปลี่ยนจาก nowrap เป็น wrap */
    max-width: none;
    margin-left: auto;
    gap: 0.5rem; /* เพิ่ม gap */
}

.nav-item {
    position: relative;
    margin-left: 1.5rem; /* ลดจาก 2rem */
}

.nav-item:first-child {
    margin-left: 0;
}

.nav-link {
    color: var(--dark);
    font-weight: 600;
    position: relative;
    font-size: 1rem; /* ลดจาก 1.1rem */
    padding: 0.6rem 0.4rem; /* ลดจาก 0.8rem 0.5rem */
    white-space: nowrap;
    display: block;
    letter-spacing: 0.3px; /* ลดจาก 0.5px */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; /* ลดจาก -5px */
    left: 0;
    width: 0;
    height: 2px; /* ลดจาก 3px */
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.8rem;
    color: var(--dark);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    color: var(--secondary);
    background-color: var(--light);
    padding-left: 2.5rem;
}

/* Search Icon - ลดขนาด */
.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem; /* ลดจาก 1.5rem */
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-icon .search-btn {
    width: 38px; /* ลดจาก 45px */
    height: 38px; /* ลดจาก 45px */
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; /* ลดจาก 1.2rem */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-icon .search-btn:hover {
    background-color: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.4rem; /* ลดจาก 1.8rem */
    cursor: pointer;
    padding: 0.5rem;
    color: var(--dark);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.search-modal-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
}

.search-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.search-form {
    margin-bottom: 2rem;
}

.search-input-group {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: white;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 94, 148, 0.1);
}

.search-submit-btn {
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--light);
    color: var(--dark);
    border: 2px solid var(--light-gray);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-filter-btn:hover,
.search-filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.search-result-category {
    font-size: 0.8rem;
    color: var(--secondary);
    background-color: rgba(242, 127, 12, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.search-result-description {
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.search-result-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
}

.search-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.search-no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.search-loading i {
    font-size: 2rem;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    padding-top: 122px;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slide {
    height: 100vh;
    display: flex !important;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.hero-btns {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.hero-btns .btn {
    margin: 0 0.5rem;
}

/* Slick Slider Controls */
.slick-dots {
    bottom: 25px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.slick-dots li button:before {
    color: white;
    opacity: 0.5;
    font-size: 12px;
}

.slick-dots li.slick-active button:before {
    color: var(--secondary);
    opacity: 1;
}

.slick-prev, .slick-next {
    z-index: 10;
    width: 50px;
    height: 50px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.slick-prev {
    left: 15px;
}

.slick-next {
    right: 30px;
}

.slick-prev:before, .slick-next:before {
    font-size: 70px;
    opacity: 0.8;
}

.hero:hover .slick-dots,
.hero:hover .slick-prev,
.hero:hover .slick-next {
    opacity: 1;
    visibility: visible;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--secondary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section - รูปแบบใหม่ตามภาพ */
.about {
    background-color: white;
    padding: 6rem 0;
    position: relative;
}

.about .container {
    max-width: 1400px;
}

.about .section-header {
    text-align: left;
    margin-bottom: 0;
    padding-left: 0;
}

.about .section-header .section-title {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.about .section-header .section-title::after {
    display: none; /* ซ่อนเส้นใต้ */
}

.about .section-header .section-title::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--primary);
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.about-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #FF6B00; /* สีส้ม */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #FF6B00;
}

.about-btn:hover {
    background-color: transparent;
    color: #FF6B00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.about-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-contact-text {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
}

.about-phone {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-phone:hover {
    color: var(--secondary);
}

.about-img {
    flex: 1;
    min-width: 350px;
    position: relative;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-img:hover img {
    transform: scale(1.02);
}

/* Presentation Video Section */
.presentation {
    background-color: var(--light);
    padding-bottom: 6rem;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 8px solid var(--accent);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: var(--accent);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-placeholder {
    background-color: var(--light-gray);
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    border: 8px solid var(--accent);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.video-placeholder p {
    font-size: 1.2rem;
    color: var(--gray);
}

/* ===== Services Section - ปรับปรุงใหม่ทั้งหมด ===== */
.services {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* เพิ่ม pattern background */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(14, 94, 148, 0.02) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(242, 127, 12, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.services .container {
    position: relative;
    z-index: 1;
    max-width: 1400px; /* เพิ่มความกว้าง */
}

.services .section-header {
    margin-bottom: 4rem;
}

/* Services Grid - ปรับให้เต็มความกว้าง */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Service Card - สไตล์ใหม่ตามรูป */
.service-card {
    background: white;
    border-radius: 0;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: none;
    overflow: hidden;
    cursor: pointer;
    border-bottom: 4px solid var(--secondary);
}

/* สีส้มที่จะเลื่อนจากล่างขึ้นบน */
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--secondary);
    transition: height 0.4s ease;
    z-index: 1;
}

/* Content wrapper for z-index */
.service-card > * {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover .service-icon {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.service-card:hover .service-title {
    color: white;
}

.service-card:hover .service-description {
    color: white;
}

/* Service Icon - ปรับให้เข้ากับสไตล์ใหม่ */
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(242, 127, 12, 0.3);
    position: relative;
}

/* Service Title */
.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    line-height: 1.3;
}

/* Service Description */
.service-description {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.4s ease;
    margin-bottom: 0;
}

/* ===== Gallery Section - เต็มจอและพื้นหลังสี #062a60 ===== */
.gallery {
    background-color: #062a60; /* เปลี่ยนเป็นสีที่ต้องการ */
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    width: 100vw; /* เต็มความกว้างหน้าจอ */
    margin-left: calc(-50vw + 50%); /* ขยายออกไปจากกรอบ container */
}

.gallery .container {
    position: relative;
    z-index: 1;
    max-width: none; /* ไม่จำกัดความกว้าง */
    width: 100%; /* เต็มความกว้าง */
    padding: 0; /* ไม่มี padding ข้าง */
}

.gallery .section-header {
    margin-bottom: 4rem;
    padding: 0 2rem; /* เพิ่ม padding สำหรับ title */
}

/* เปลี่ยนสีของ section title ให้เด่นบนพื้นหลังสีเข้ม */
.gallery .section-title {
    color: white;
}

.gallery .section-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Gallery Grid - เต็มจอ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 คอลัมน์เท่ากัน */
    grid-template-rows: repeat(2, 400px); /* 2 แถว ความสูงคงที่ */
    gap: 0; /* ไม่มีช่องว่าง */
    margin: 3rem 0 0 0; /* ไม่มี margin ข้าง */
    width: 100%;
    height: 800px; /* ความสูงรวม */
    border: none; /* ไม่มีเส้นขอบรอบนอก */
    border-radius: 0;
    box-shadow: none;
}

/* Gallery Item - เต็มกรอบ */
.gallery-item {
    position: relative;
    border-radius: 0; /* ไม่มีมุมโค้ง */
    overflow: hidden;
    height: 100%;
    box-shadow: none;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid #ffffff; /* เส้นขอบสีขาวแยกแต่ละช่อง */
    box-sizing: border-box;
    background-color: #ffffff;
}

/* Gallery Image */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

/* Gallery Overlay - สีส้มเต็มพื้นที่ */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary); /* สีส้ม */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 2.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* Hover Effects */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Gallery Title */
.gallery-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Description */
.gallery-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: white;
    opacity: 0.95;
    max-width: 300px;
}

/* Gallery Location (ถ้ามี) */
.gallery-location {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: white;
    opacity: 0.9;
    font-style: italic;
}

/* READ MORE Button ใน Overlay */
.gallery-overlay .btn {
    background-color: white;
    color: var(--secondary);
    border: 2px solid white;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-overlay .btn:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Project Construction Special Overlay (สำหรับช่องที่มี overlay พิเศษ) */
.gallery-item.special-overlay .gallery-overlay {
    background: var(--secondary);
    opacity: 1;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 3rem;
    text-align: left;
}

.gallery-item.special-overlay .gallery-img {
    opacity: 0.3;
}

.gallery-item.special-overlay .gallery-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.gallery-item.special-overlay .gallery-description {
    font-size: 1.2rem;
    max-width: none;
    margin-bottom: 3rem;
}

.gallery-item.special-overlay .btn {
    align-self: flex-start;
}

/* Client Logos */
.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.logo-item {
    width: 150px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0);
    opacity: 1;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
}

/* CONTACT CHAT WIDGET */
.contact-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    font-family: inherit;
}

.chat-options {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    padding-bottom: 80px;
}

.chat-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    margin-left: auto;
}

.chat-option:hover {
    transform: scale(1.1);
    color: white;
}

.chat-option-line {
    background-color: #00B900;
}

.chat-option-facebook {
    background-color: #1877F2;
}

.chat-option-phone {
    background-color: #FF6B35;
}

.chat-option-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.chat-option-youtube {
    background-color: #FF0000;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #2C3E50;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    background-color: #34495E;
}

.chat-toggle-btn.active {
    transform: rotate(45deg);
    background-color: #E74C3C;
}

/* Back to Top Button - แก้ไขสีให้เหมือน chat-toggle-btn */
.back-to-top {
    position: fixed;
    left: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    background-color: #2C3E50; /* เปลี่ยนจาก var(--primary) เป็นสีเดียวกับ chat-toggle-btn */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #34495E; /* สี hover เหมือน chat-toggle-btn */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.back-to-top:active,
.back-to-top:focus {
    background-color: #2C3E50 !important; /* คงสีเดิมเมื่อ active/focus */
    color: white !important;
    outline: none;
}

/* Social Links - สีตามโซเชียลมีเดียจริง */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* สีตามโซเชียลมีเดียจริง */
.social-link[href*="facebook"] {
    background-color: #1877F2;
}

.social-link[href*="facebook"]:hover {
    background-color: #166FE5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-link[href*="line"] {
    background-color: #00B900;
}

.social-link[href*="line"]:hover {
    background-color: #00A300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.3);
}

.social-link[href*="instagram"] {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-link[href*="instagram"]:hover {
    background: linear-gradient(45deg, #3B54D1, #4D47C6, #7530A0, #AD2E79, #CC2B61, #E81A1A);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.social-link[href*="youtube"] {
    background-color: #FF0000;
}

.social-link[href*="youtube"]:hover {
    background-color: #E60000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.social-link:active,
.social-link:focus {
    color: white !important;
    outline: none;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact-info i {
    margin-right: 10px;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chatFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.chat-toggle-btn {
    animation: chatFloat 3s ease-in-out infinite;
}

.chat-toggle-btn:hover {
    animation: none;
}

/* Language Switcher - ย้ายไปท้ายสุด และปรับขนาด */
.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem; /* ลดจาก 1.5rem */
    position: relative;
    order: 10; /* ย้ายไปท้ายสุด */
}

.language-dropdown {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.language-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem; /* ลดจาก 0.4rem */
    padding: 0.4rem 0.8rem; /* ลดจาก 0.5rem 1rem */
    background-color: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px; /* ลดจาก 25px */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem; /* ลดจาก 0.9rem */
    font-weight: 600;
    color: var(--primary);
    min-width: 80px; /* ลดจาก 100px */
    width: 80px; /* ลดจาก 100px */
    text-align: center;
    box-sizing: border-box;
}

.language-current:hover {
    background-color: var(--primary);
    color: white;
}

.language-current .flag {
    width: 16px; /* ลดจาก 20px */
    height: 12px; /* ลดจาก 15px */
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.flag.th {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjE1IiBmaWxsPSIjRkZGRkZGIi8+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyLjUiIGZpbGw9IiNEQzE0M0MiLz4KPHJlY3QgeT0iMTIuNSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIuNSIgZmlsbD0iI0RDMTQzQyIvPgo8cmVjdCB5PSI1IiB3aWR0aD0iMjAiIGhlaWdodD0iNSIgZmlsbD0iIzAwMjQ5QyIvPgo8L3N2Zz4K');
}

.flag.en {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjE1IiBmaWxsPSIjMDEyMzY5Ii8+CjxwYXRoIGQ9Ik0wIDBoMjB2MS4xNUgwVjB6bTAgMi4zaDIwdjEuMTVIMFYyLjN6bTAgMi4zaDIwdjEuMTVIMFY0LjZ6bTAgMi4zaDIwdjEuMTVIMFY2Ljl6bTAgMi4zaDIwdjEuMTVIMFY5LjJ6bTAgMi4zaDIwdjEuMTVIMFYxMS41em0wIDIuM2gyMFYxNUgwdi0xLjJ6IiBmaWxsPSIjRkZGRkZGIi8+CjxyZWN0IHdpZHRoPSIxMCIgaGVpZ2h0PSI3LjUiIGZpbGw9IiMwMTIzNjkiLz4KPC9zdmc+Cg==');
}

.language-arrow {
    font-size: 0.6rem; /* ลดจาก 0.7rem */
    transition: transform 0.3s ease;
}

.language-dropdown.active .language-arrow {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 100%;
    min-width: 80px; /* ลดจาก 100px */
    background-color: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    box-sizing: border-box;
}

.language-dropdown.active .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem; /* ลดจาก 0.4rem */
    padding: 0.5rem 0.6rem; /* ลดจาก 0.6rem 0.8rem */
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.8rem; /* ลดจาก 0.9rem */
    font-weight: 500;
    color: var(--dark);
    box-sizing: border-box;
    white-space: nowrap;
}

.language-option:hover {
    background-color: var(--light);
}

.language-option.active {
    background-color: var(--primary);
    color: white;
}

.language-option .flag {
    width: 16px; /* ลดจาก 20px */
    height: 12px; /* ลดจาก 15px */
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Touch Device Controls */
@media (hover: none) and (pointer: coarse) {
    .slick-dots,
    .slick-prev,
    .slick-next {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .slick-prev, .slick-next {
        width: 35px !important;
        height: 35px !important;
    }
    
    .slick-prev:before, .slick-next:before {
        font-size: 20px !important;
        opacity: 0.7 !important;
    }
    
    .slick-dots {
        bottom: 15px !important;
    }
    
    .slick-dots li button:before {
        font-size: 10px !important;
        opacity: 0.6 !important;
    }
    
    .slick-dots li.slick-active button:before {
        opacity: 1 !important;
    }
    
    .slick-prev {
        left: 10px !important;
    }
    
    .slick-next {
        right: 10px !important;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem; /* ลดจาก 1.5rem */
    }
    
    .nav-item {
        margin-left: 1.2rem; /* ลดจาก 1.5rem */
    }
    
    .nav-link {
        font-size: 0.95rem; /* ลดจาก 1rem */
        padding: 0.5rem 0.3rem; /* ลดจาก 0.7rem 0.4rem */
    }
    
    .logo-text {
        font-size: 1.2rem; /* ลดจาก 1.4rem */
    }
    
    .logo img {
        height: 38px; /* ลดจาก 45px */
    }
    
    .search-icon {
        margin-left: 0.8rem; /* ลดจาก 1rem */
    }
    
    .search-icon .search-btn {
        width: 35px; /* ลดจาก 40px */
        height: 35px; /* ลดจาก 40px */
        font-size: 0.9rem; /* ลดจาก 1.1rem */
    }
    
    .language-switcher {
        margin-left: 0.8rem; /* ลดจาก 1rem */
    }
    
    .language-current {
        padding: 0.3rem 0.6rem; /* ลดจาก 0.4rem 0.8rem */
        font-size: 0.75rem; /* ลดจาก 0.85rem */
        min-width: 70px; /* ลดจาก 85px */
        width: 70px; /* ลดจาก 85px */
        gap: 0.25rem; /* ลดจาก 0.3rem */
    }
    
    .language-current .flag {
        width: 14px; /* ลดจาก 18px */
        height: 10px; /* ลดจาก 13px */
    }
    
    .language-option {
        padding: 0.4rem 0.6rem; /* ลดจาก 0.5rem 0.8rem */
        font-size: 0.75rem; /* ลดจาก 0.85rem */
        gap: 0.25rem; /* ลดจาก 0.3rem */
    }
    
    .language-option .flag {
        width: 14px; /* ลดจาก 18px */
        height: 10px; /* ลดจาก 13px */
    }
    
    .language-options {
        min-width: 70px; /* ลดจาก 85px */
    }
    
    /* Services responsive */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .service-card {
        padding: 2.5rem 1.8rem;
    }
    
    /* About responsive */
    .about-content {
        gap: 3rem;
    }
    
    .about-main-title {
        font-size: 2.5rem;
    }
    
    .about-img {
        min-width: 320px;
    }
}

@media (max-width: 991px) {
    .site-header {
        padding: 0.35rem 0;
        font-size: 0.75rem;
    }
    
    .site-header-left {
        gap: 0.8rem;
    }
    
    .site-header-item {
        font-size: 0.75rem;
    }
    
    .site-header-social span {
        display: none;
    }
    
    header {
        top: 35px;
    }
    
    .hero {
        padding-top: 115px;
    }
    
    header.scrolled {
        top: 35px;
        padding: 0.2rem 0; /* ลดจาก 0.3rem */
    }
    
    .header-inner {
        padding: 0.6rem 0; /* ลดจาก ค่าก่อนหน้า */
        gap: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .nav-item {
        margin-left: 1rem; /* ลดจาก 1.2rem */
    }
    
    .nav-link {
        font-size: 0.9rem; /* ลดจาก 0.95rem */
    }
    
    .search-icon {
        margin-left: 0.6rem; /* ลดจาก 0.8rem */
    }
    
    .search-icon .search-btn {
        width: 32px; /* ลดจาก 38px */
        height: 32px; /* ลดจาก 38px */
        font-size: 0.85rem; /* ลดจาก 1rem */
    }
    
    .language-switcher {
        margin-left: 0.6rem; /* ลดจาก 0.8rem */
    }
    
    .language-current {
        padding: 0.25rem 0.5rem; /* ลดจาก 0.3rem 0.7rem */
        font-size: 0.7rem; /* ลดจาก 0.8rem */
        min-width: 65px; /* ลดจาก 75px */
        width: 65px; /* ลดจาก 75px */
    }
    
    .language-current .flag {
        width: 12px; /* ลดจาก 16px */
        height: 9px; /* ลดจาก 12px */
    }
    
    .language-option {
        padding: 0.3rem 0.5rem; /* ลดจาก 0.4rem 0.7rem */
        font-size: 0.7rem; /* ลดจาก 0.8rem */
    }
    
    .language-option .flag {
        width: 12px; /* ลดจาก 16px */
        height: 9px; /* ลดจาก 12px */
    }
    
    .language-options {
        min-width: 65px; /* ลดจาก 75px */
    }
}

@media (max-width: 768px) {
    /* Site Header - จัดเรียงเป็นบรรทัดเดียว */
    .site-header {
        padding: 0.3rem 0;
        font-size: 0.7rem;
    }
    
    .site-header-content {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.2rem 0;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .site-header-left {
        flex: 1;
        gap: 0.5rem;
        justify-content: flex-start;
        width: auto;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .site-header-right {
        flex-shrink: 0;
        gap: 0.3rem;
        justify-content: flex-end;
        width: auto;
        margin-left: auto;
    }
    
    .site-header-item {
        font-size: 0.65rem;
        gap: 0.2rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .site-header-social {
        gap: 0.3rem;
        flex-shrink: 0;
    }
    
    .site-header-social span {
        display: none;
    }
    
    .site-header-social a {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    
    header {
        top: 35px;
        position: fixed;
    }
    
    header.scrolled {
        padding: 0.2rem 0; /* ลดจาก 0.3rem */
        top: 35px;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .header-inner {
        padding: 0.5rem 0; /* ลดจาก 1rem */
        gap: 0.6rem; /* ลดจาก 1rem */
    }
    
    .logo-text {
        font-size: 1rem; /* ลดจาก ค่าก่อนหน้า */
    }
    
    .logo img {
        height: 32px; /* ลดจาก 35px */
        margin-right: 8px;
    }

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: none;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 1.5rem 0; /* ลดจาก 2rem */
        box-shadow: none;
        transition: right 0.3s ease;
        margin-left: 0;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }

    .mobile-nav-toggle {
        display: block;
        z-index: 10000;
        position: relative;
        background: white;
        border-radius: 5px;
        padding: 6px; /* ลดจาก 8px */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        font-size: 1.4rem; /* ลดจาก 1.8rem */
    }
    
    .nav-item {
        margin: 0 0 0.8rem 0; /* ลดจาก 1rem */
        text-align: center;
        width: 100%;
    }

    .nav-link {
        font-size: 1rem; /* ลดจาก 1.2rem */
        padding: 0.8rem 1.5rem; /* ลดจาก 1rem 2rem */
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-link:hover {
        background-color: var(--light);
        color: var(--primary);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        display: none;
        background-color: var(--light);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--light-gray);
    }

    .dropdown-item:hover {
        background-color: white;
        padding-left: 2.5rem;
    }

    /* Language Switcher ใน Mobile - ย้ายไปล่างสุด */
    .language-switcher {
        order: 999; /* ย้ายไปล่างสุด */
        margin: 2rem 0 0 0; /* เพิ่ม margin ด้านบน */
        width: 100%;
        justify-content: center;
        align-self: center;
        border-top: 1px solid var(--light-gray); /* เส้นแบ่งด้านบน */
        padding-top: 1.5rem; /* เพิ่ม padding ด้านบน */
    }
    
    .language-current {
        padding: 0.5rem 1rem; /* ลดจาก 0.6rem 1.2rem */
        min-width: 100px; /* ลดจาก 120px */
        width: 100px; /* ลดจาก 120px */
        gap: 0.4rem; /* ลดจาก 0.5rem */
        font-size: 0.9rem; /* ลดจาก 1rem */
    }
    
    .language-current .flag {
        width: 18px; /* ลดจาก 22px */
        height: 13px; /* ลดจาก 16px */
    }
    
    .language-option {
        padding: 0.6rem 1rem; /* ลดจาก 0.8rem 1.2rem */
        font-size: 0.9rem; /* ลดจาก 1rem */
        gap: 0.4rem; /* ลดจาก 0.5rem */
    }
    
    .language-option .flag {
        width: 18px; /* ลดจาก 22px */
        height: 13px; /* ลดจาก 16px */
    }
    
    .language-options {
        min-width: 100px; /* ลดจาก 120px */
        z-index: 10001;
    }

    .nav-menu .language-dropdown {
        position: relative;
        z-index: 10002;
    }

    .nav-menu .language-options {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10003;
        background-color: white;
        border: 2px solid var(--primary);
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .nav-menu .language-switcher {
        position: relative;
        z-index: 10002;
    }

    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open .nav-menu {
        overflow-y: auto;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    body.menu-open header {
        z-index: 10001;
        position: fixed;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .video-wrapper {
        border-width: 6px;
    }

    /* Search Modal ใน Mobile */
    .search-modal-content {
        width: 95%;
        max-width: 500px;
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .search-modal-title {
        font-size: 1.5rem;
    }

    .search-input-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .search-input {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .search-submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .search-filters {
        gap: 0.3rem;
    }

    .search-filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .contact-chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .chat-toggle-btn.active {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .chat-option {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .chat-options {
        gap: 12px;
        padding-bottom: 70px;
    }

    .back-to-top {
        left: 20px;
        bottom: 90px;
        width: 45px;
        height: 45px;
    }
    
    /* Services responsive */
    .services {
        padding: 4rem 0;
    }
    
    .services .section-title {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .service-card:hover {
        transform: translateY(-8px);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .service-title {
        font-size: 1.4rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    /* About responsive */
    .about {
        padding: 5rem 0;
    }
    
    .about-content {
        flex-direction: column-reverse;
        gap: 3rem;
        text-align: center;
    }
    
    .about .section-header {
        text-align: center;
    }
    
    .about .section-header .section-title::before {
        display: none;
    }
    
    .about-text {
        min-width: auto;
    }
    
    .about-main-title {
        font-size: 2.2rem;
    }
    
    .about-img {
        min-width: auto;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-actions {
        justify-content: center;
    }
    
@media (max-width: 768px) {
    .gallery {
        padding: 4rem 0;
        margin-left: 0; /* ยกเลิกการขยายออกใน mobile */
        width: 100%;
    }
    
    .gallery .section-header {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 คอลัมน์ */
        grid-template-rows: repeat(6, 250px); /* 6 แถว */
        height: auto;
        gap: 0; /* ไม่มีช่องว่าง เหมือนหน้าจอใหญ่ */
        margin: 2rem 0 0 0; /* ไม่มี margin ข้าง */
        border: 1px solid #ffffff; /* เส้นขอบสีขาวรอบนอก */
    }
    
    .gallery-item {
        border-radius: 0; /* ไม่มีมุมโค้ง เหมือนหน้าจอใหญ่ */
        border: 1px solid #ffffff; /* เส้นขอบสีขาวแยกแต่ละช่อง */
        box-shadow: none; /* ไม่มี shadow */
        margin: 0; /* ไม่มี margin */
    }
    
    /* แสดง overlay สีส้มเหมือนหน้าจอใหญ่ */
    .gallery-overlay {
        opacity: 0; /* เริ่มต้นซ่อน */
        background: var(--secondary); /* สีส้ม */
    }
    
    .gallery-item:hover .gallery-overlay,
    .gallery-item:active .gallery-overlay {
        opacity: 1; /* แสดงเมื่อ hover หรือ touch */
    }
    
    .gallery-title {
        font-size: 1.4rem;
        color: white;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .gallery-description {
        font-size: 0.95rem;
        color: white;
        opacity: 0.95;
    }
    
    .gallery-overlay {
        padding: 1.5rem;
    }
    
    .gallery-overlay .btn {
        background-color: white;
        color: var(--secondary);
        border: 2px solid white;
        padding: 0.7rem 1.8rem;
        font-size: 0.8rem;
        border-radius: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
    }
    
    .gallery-overlay .btn:hover {
        background-color: transparent;
        color: white;
        border-color: white;
    }
}
}

@media (max-width: 576px) {
    .site-header {
        padding: 0.25rem 0;
        font-size: 0.65rem;
    }
    
    .site-header-content {
        gap: 0.3rem;
        padding: 0.15rem 0;
    }
    
    .site-header-left {
        gap: 0.4rem;
    }
    
    .site-header-right {
        gap: 0.25rem;
    }
    
    .site-header-item {
        font-size: 0.6rem;
        gap: 0.15rem;
    }
    
    .site-header-social a {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    .site-header-left .site-header-item:nth-child(3) {
        display: none;
    }
    
    header {
        top: 30px;
    }
    
    .hero {
        padding-top: 110px;
    }
    
    header.scrolled {
        top: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-btns .btn {
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .video-wrapper {
        border-width: 4px;
    }
    
    .video-placeholder {
        height: 250px;
    }

    /* Search Modal ในหน้าจอเล็กมาก */
    .search-modal-content {
        width: 98%;
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .search-modal-title {
        font-size: 1.3rem;
    }

    .search-input {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .search-submit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .contact-chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .chat-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    }

    .chat-toggle-btn.active {
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    }

    .chat-option {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .chat-options {
        gap: 10px;
        padding-bottom: 65px;
    }

    .back-to-top {
        left: 15px;
        bottom: 80px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 0.9rem; /* ลดจาก 1.1rem */
    }
    
    .logo img {
        height: 28px; /* ลดจาก 35px */
        margin-right: 6px;
    }

    .nav-link {
        font-size: 0.95rem; /* ลดจาก 1.1rem */
        padding: 0.6rem 1.2rem; /* ลดจาก 0.8rem 1.5rem */
    }

    .nav-item {
        margin: 0 0 0.6rem 0; /* ลดจาก 1rem */
    }

    .dropdown-item {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .nav-menu .language-current {
        font-size: 0.85rem; /* ลดจาก 0.95rem */
        padding: 0.4rem 0.8rem; /* ลดจาก 0.5rem 1rem */
        min-width: 85px; /* ลดจาก 100px */
        width: 85px; /* ลดจาก 100px */
    }
    
    .nav-menu .language-current .flag {
        width: 16px; /* ลดจาก 20px */
        height: 12px; /* ลดจาก 15px */
    }
    
    .nav-menu .language-option {
        padding: 0.5rem 0.8rem; /* ลดจาก 0.6rem 1rem */
        font-size: 0.85rem; /* ลดจาก 0.95rem */
    }
    
    .nav-menu .language-option .flag {
        width: 16px; /* ลดจาก 20px */
        height: 12px; /* ลดจาก 15px */
    }
    
    .nav-menu .language-options {
        min-width: 85px; /* ลดจาก 100px */
    }
    
    /* Services responsive */
    .service-card {
        margin: 0;
        padding: 1.8rem 1.2rem;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    /* About responsive */
    .about {
        padding: 4rem 0;
    }
    
    .about-content {
        gap: 2.5rem;
    }
    
    .about-main-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .about-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .about-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .about-contact {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .about-phone {
        font-size: 1.1rem;
    }
    
@media (max-width: 576px) {
    /* Gallery responsive */
    .gallery-grid {
        grid-template-rows: repeat(6, 220px);
        margin: 2rem 0 0 0; /* ไม่มี margin ข้าง */
        gap: 0; /* ไม่มีช่องว่าง */
        border: 1px solid #ffffff; /* เส้นขอบสีขาวรอบนอก */
    }
    
    .gallery .section-header {
        padding: 0 0.5rem;
    }
    
    .gallery-item {
        border-radius: 0; /* ไม่มีมุมโค้ง */
        border: 1px solid #ffffff; /* เส้นขอบสีขาวแยกแต่ละช่อง */
        box-shadow: none; /* ไม่มี shadow */
        margin: 0; /* ไม่มี margin */
    }
    
    .gallery-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: white;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .gallery-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        color: white;
        opacity: 0.95;
    }
    
    .gallery-overlay {
        padding: 1.2rem;
        background: var(--secondary); /* สีส้ม */
        opacity: 0; /* เริ่มต้นซ่อน */
    }
    
    .gallery-item:hover .gallery-overlay,
    .gallery-item:active .gallery-overlay {
        opacity: 1; /* แสดงเมื่อ hover หรือ touch */
    }
    
    .gallery-overlay .btn {
        background-color: white;
        color: var(--secondary);
        border: 2px solid white;
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
        border-radius: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
    }
    
    .gallery-overlay .btn:hover {
        background-color: transparent;
        color: white;
        border-color: white;
    }
}
}

@media (max-width: 480px) {
    .site-header-left .site-header-item:nth-child(2) {
        display: none;
    }
    
    .site-header-item {
        font-size: 0.55rem;
    }
    
    .site-header-social a {
        width: 18px;
        height: 18px;
        font-size: 0.55rem;
    }
    
    .nav-menu .language-current {
        font-size: 0.8rem; /* ลดจาก 0.9rem */
        padding: 0.3rem 0.6rem; /* ลดจาก 0.4rem 0.8rem */
        min-width: 75px; /* ลดจาก 90px */
        width: 75px; /* ลดจาก 90px */
    }
    
    .nav-menu .language-current .flag {
        width: 14px; /* ลดจาก 18px */
        height: 10px; /* ลดจาก 13px */
    }
    
    .nav-menu .language-option {
        padding: 0.4rem 0.6rem; /* ลดจาก 0.5rem 0.8rem */
        font-size: 0.8rem; /* ลดจาก 0.9rem */
    }
    
    .nav-menu .language-option .flag {
        width: 14px; /* ลดจาก 18px */
        height: 10px; /* ลดจาก 13px */
    }
    
    .nav-menu .language-options {
        min-width: 75px; /* ลดจาก 90px */
    }
    
    /* About responsive */
    .about-main-title {
        font-size: 1.8rem;
    }
    
    .about-description {
        font-size: 0.95rem;
    }
    
    .about-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.85rem;
    }
    
    .about-img {
        margin: 0 1rem;
    }
    
@media (max-width: 480px) {
    /* Gallery responsive */
    .gallery-grid {
        grid-template-rows: repeat(6, 200px);
        margin: 2rem 0 0 0; /* ไม่มี margin ข้าง */
        gap: 0; /* ไม่มีช่องว่าง */
        border: 1px solid #ffffff; /* เส้นขอบสีขาวรอบนอก */
    }
    
    .gallery-item {
        border-radius: 0; /* ไม่มีมุมโค้ง */
        border: 1px solid #ffffff; /* เส้นขอบสีขาวแยกแต่ละช่อง */
        box-shadow: none; /* ไม่มี shadow */
        margin: 0; /* ไม่มี margin */
    }
    
    .gallery-overlay {
        padding: 1rem;
        background: var(--secondary); /* สีส้ม */
        opacity: 0; /* เริ่มต้นซ่อน */
    }
    
    .gallery-item:hover .gallery-overlay,
    .gallery-item:active .gallery-overlay {
        opacity: 1; /* แสดงเมื่อ hover หรือ touch */
    }
    
    .gallery-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        color: white;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .gallery-description {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
        color: white;
        opacity: 0.95;
    }
    
    .gallery-overlay .btn {
        background-color: white;
        color: var(--secondary);
        border: 2px solid white;
        padding: 0.5rem 1.2rem;
        font-size: 0.7rem;
        border-radius: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
    }
    
    .gallery-overlay .btn:hover {
        background-color: transparent;
        color: white;
        border-color: white;
    }
}
}

/* Touch Device Effects - ปรับปรุงสำหรับ Mobile */
@media (hover: none) and (pointer: coarse) {
    /* สำหรับ Touch Device ให้แสดง overlay เมื่อแตะ */
    .gallery-overlay {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }
    
    /* สำหรับ special overlay ให้แสดงตลอด */
    .gallery-item.special-overlay .gallery-overlay {
        opacity: 1;
    }
    
    /* เพิ่ม visual feedback เมื่อแตะ */
    .gallery-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .gallery-item:active .gallery-img {
        transform: scale(1.05);
    }
}

/* ปรับ site-header เมื่อเมนูเปิดใน Mobile */
body.menu-open .site-header {
    z-index: 998;
}