/*
Luxury Minimal Style for Fenix Foods World
- Focus: High contrast, clean spacious design, Serif font for elegance, 
  metallic accents, 3-column grid layout, and subtle hover animations.
*/


/* 1. Base Setup and Typography */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Clean, modern font for body text */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    /* Pure white background for high contrast */
    color: #333333;
    /* Dark text */
}

h1,
h2,
h3,
h4,
.section-title {
    font-family: 'Georgia', serif;
    /* Serif font for headings for elegance */
    color: #1a1a1a;
    font-weight: 1000;
    /* Lighter weight for modern luxury */
    letter-spacing: 1px;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    /* Subtle divider */
    display: inline-block;
}

a {
    color: #b8860b;
    /* Dark Goldenrod/Gold accent color */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e6c567;
    text-decoration: underline;
}


/* 2. Layout and Structure */

main {
    padding: 40px 20px;
    max-width: 1200px;
    /* Wider content area */
    margin: 0 auto;
}

section {
    padding: 80px 0;
    /* Plenty of vertical space */
}


/* 3. Header and Navigation (High Contrast Luxury) */

header {
    background-color: #1a1a1a;
    /* Deep black header */
    color: white;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 2.5em;
    color: #e6c567;
    /* Light gold/brass color for brand name */
    margin: 0 0 10px 0;
    letter-spacing: 4px;
}

/* เปลี่ยนสีหัวโลโก้ CREME AND CO BKK เป็น #b8cacc */
h1.logocrem,
header .logocrem {
  color: #b8cacc !important;
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

nav ul li {
    display: inline;
    margin: 0 30px;
}

nav ul li a {
    color: #f0f0f0;
    font-weight: normal;
    font-size: 1.1em;
    letter-spacing: 1px;
    padding: 5px 0;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease, border-bottom 0.3s ease;
    /* เพิ่ม transition */
}

nav ul li a:hover {
    opacity: 1;
    color: #e6c567;
    /* Gold on hover */
    text-decoration: none;
    border-bottom: 1px solid #e6c567;
}


/* Hero Section (Home) */

.hero2-section {
    text-align: center;
    padding: 10px 0;
    background-color: #f9f9f9c9;
}

.hero-section {
    text-align: center;
    padding: 100px 0;
    background-color: #f9f9f9;
}

.hero-section h2 {
    font-size: 3em;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}


/* 4. Outlet Cards (Minimalist Cards with Emphasis) */

#outlets {
    /* ใช้ Grid Layout เพื่อจัดเรียง 3 คอลัมน์ในบรรทัดเดียว */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 20px;
    margin-top: 30px;
}


/* Media Query สำหรับการทำ Responsive Design */


/* เมื่อหน้าจอเล็กกว่า 1024px จะเปลี่ยนเป็น 2 คอลัมน์ */

@media (max-width: 1024px) {
    #outlets {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* เมื่อหน้าจอเล็กกว่า 768px จะเปลี่ยนเป็น 1 คอลัมน์ (เรียงลงมา) */

@media (max-width: 768px) {
    #outlets {
        grid-template-columns: 1fr;
    }
}

.outlet-card {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* เพิ่ม transition เพื่อให้การเคลื่อนไหวดูนุ่มนวล */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.outlet-card:hover {
    /* ทำให้การ์ดยกตัวขึ้นเล็กน้อยเมื่อเมาส์ชี้ */
    transform: translateY(-8px);
    /* ทำให้เงาชัดเจนขึ้นและกว้างขึ้นเล็กน้อย */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.outlet-card h3 {
    color: #b8860b;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.location-detail {
    font-weight: bold;
    margin-top: 15px;
}

.link-group {
    margin-top: 20px;
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #b8860b;
    border-radius: 2px;
    margin-right: 15px;
    color: white;
    background-color: #b8860b;
    font-weight: 600;
    /* เพิ่ม transition ให้ปุ่มเคลื่อนไหว */
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.1s ease;
}

.btn-link:hover {
    background-color: #8b6500;
    border-color: #8b6500;
    text-decoration: none;
    transform: translateY(-2px);
    /* ปุ่มยกตัวขึ้นเล็กน้อย */
}

.btn-link.secondary {
    background-color: white;
    color: #b8860b;
    border: 1px solid #b8860b;
    /* เพิ่ม transition ให้ปุ่มเคลื่อนไหว */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
}

.btn-link.secondary:hover {
    background-color: #f0f0f0;
    color: #8b6500;
    transform: translateY(-2px);
    /* ปุ่มยกตัวขึ้นเล็กน้อย */
}


/* 5. Contact Form (Refined and Centralized) */

.form-container {
    padding-bottom: 100px;
}

#contact form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    max-width: 700px;
    margin: 30px auto 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

#contact label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #1a1a1a;
}

#contact input,
#contact select,
#contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 2px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: white;
}

#contact textarea {
    resize: vertical;
}

.btn-submit {
    grid-column: 1 / -1;
    background-color: #1a1a1a;
    /* Black submit button */
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #333333;
}


/* 6. Footer */

footer {
    text-align: center;
    padding: 30px;
    background-color: #1a1a1a;
    /* Dark footer */
    color: #aaaaaa;
    font-size: 0.85em;
}

footer a {
    color: #e6c567;
    /* Gold footer links */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* ... โค้ด CSS ส่วนอื่น ๆ (Header, Hero, Base) อยู่เหมือนเดิม ... */


/* 4. Outlet Cards (Minimalist Cards with Emphasis) */

#outlets {
    /* ปรับ Grid Layout สำหรับ 5 ร้านค้า */
    display: grid;
    /* ในจอใหญ่สุด ให้เรียง 3 คอลัมน์ เพื่อไม่ให้การ์ดเล็กเกินไป */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 20px;
    margin-top: 30px;
}


/* Media Query สำหรับการทำ Responsive Design */


/* เมื่อหน้าจอเล็กกว่า 1024px จะเปลี่ยนเป็น 2 คอลัมน์ */

@media (max-width: 1024px) {
    #outlets {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* เมื่อหน้าจอเล็กกว่า 768px จะเปลี่ยนเป็น 1 คอลัมน์ (เรียงลงมา) */

@media (max-width: 768px) {
    #outlets {
        grid-template-columns: 1fr;
    }
}


/* เพิ่ม style สำหรับ title link ใน card */

.card-title-link {
    color: #b8860b;
    /* ใช้สีทองสำหรับลิงก์ */
}

.social-icon {
    width: 64px;
    /* ขนาดของรูปภาพ Icon */
    height: 64px;
    vertical-align: middle;
    /* จัดให้ Icon อยู่กลางกับข้อความ */
    margin-right: 8px;
    /* เว้นระยะห่างระหว่าง Icon กับข้อความ */
    border-radius: 5px;
    /* ทำให้ขอบมนเล็กน้อย (ไม่จำเป็นถ้าเป็นโลโก้เต็มวงกลม) */
}


/* ถ้ายังใช้ Font Awesome icon สำหรับ Instagram/LINE */

.social-links a i {
    color: #b8860b;
    /* สีทอง */
    margin-right: 5px;
    /* เว้นระยะห่างระหว่าง Icon กับข้อความ */
    transition: color 0.2s ease-in-out;
}

.social-links a:hover i {
    color: #e6c567;
    /* สีทองอ่อนลงเมื่อนำเมาส์ไปชี้ */
}

.about-container {
    /* ปรับความกว้างสูงสุดให้แคบลงจาก 900px เป็น 700px */
    max-width: 900px;
    /* จัดกึ่งกลางและเพิ่มพื้นที่ว่างด้านล่าง */
    margin: 0px auto 0 auto;
    text-align: center;
    /* ลด padding ด้านข้างลงเล็กน้อย */
    padding: 0 0;
}

.about-heading {
    font-family: 'Georgia', serif;
    font-size: 2.5em;
    color: #1a1a1a;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    /* ความยาวของเส้นใต้ */
    height: 2px;
    background-color: #b8860b;
    /* สีทอง */
}

.about-lead {
    font-size: 1.25em;
    /* ขนาดตัวอักษรเท่าเดิม */
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
    /* ลด padding ด้านข้างเพื่อให้ข้อความชิดขอบ container มากขึ้น */
    padding: 0 5%;
}

.about-body {
    font-size: 1.05em;
    /* ขนาดตัวอักษรเท่าเดิม */
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
}


/* เน้นข้อความที่ใส่ **...** */

.about-lead strong,
.about-body strong {
    color: #b8860b;
    font-weight: 600;
}


/* 3. Header and Navigation (High Contrast Luxury) */

header {
    background-color: #1a1a1a;
    /* Deep black header */
    color: white;
    /* ลบ padding: 35px 20px; ออก และใช้ padding ภายใน .header-top แทน */
    padding: 0 20px 15px 20px;
    /* เพิ่ม padding ด้านล่างสำหรับ nav */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* 3. Header and Navigation (High Contrast Luxury) */

header {
    background-color: #1a1a1a;
    color: white;
    /* เปลี่ยน padding: 35px 20px; เป็น padding แบบใหม่ */
    padding: 0 20px 15px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* Flex Container: ใช้จัดการแถวบน (โลโก้ + ไอคอน) */

.header-top-flex {
    display: flex;
    justify-content: space-between;
    /* แยกองค์ประกอบออกซ้าย-ขวา */
    align-items: center;
    /* จัดให้อยู่กึ่งกลางแนวตั้ง */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 10px 0;
    /* เพิ่ม Padding ด้านบนและล่าง */
}


/* Spacer: องค์ประกอบว่างเปล่าที่ใช้ผลักโลโก้ให้อยู่กึ่งกลางเมื่อเทียบกับไอคอน */

.flex-spacer {
    width: 250px;
    /* กำหนดความกว้างประมาณกลุ่มไอคอนด้านขวา */
    /* หรือใช้ flex-grow: 1; ก็ได้ แต่กำหนด width ช่วยให้โลโก้ตรงกลางยิ่งขึ้น */
}

header .logo {
    font-size: 2.5em;
    /* ขนาดโลโก้ */
    color: #e6c567;
    margin: 0;
    letter-spacing: 4px;
    flex-grow: 1;
    /* ให้โลโก้ขยายพื้นที่ได้ */
    text-align: center;
    /* จัดข้อความโลโก้ให้อยู่กึ่งกลาง */
}

header .logocrem {
    font-size: 2.5em;
    /* ขนาดโลโก้ */
    color: #b8cacc;
    margin: 0;
    letter-spacing: 4px;
    flex-grow: 1;
    /* ให้โลโก้ขยายพื้นที่ได้ */
    text-align: center;
    /* จัดข้อความโลโก้ให้อยู่กึ่งกลาง */
}


/* Social Group Styling */

.social-group {
    width: 250px;
    /* กำหนดความกว้างเท่ากับ Spacer เพื่อความสมดุล */
    text-align: right;
}

.social-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.85em;
    color: #aaaaaa;
    margin: 0 0 5px 0;
    font-weight: 300;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    /* จัดไอคอนทั้งหมดชิดขวาของพื้นที่ .social-group */
    gap: 10px;
    /* เว้นระยะห่างระหว่างไอคอน */
}


/* Adjusting social icon size for Header */

.social-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

.social-links a:hover .social-icon {
    opacity: 0.8;
}


/* Navigation (อยู่ตรงกลางเสมอ) */

nav {
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}


/* New: Flexbox Layout สำหรับ Form และ Map */

.reservation-layout {
    display: flex;
    gap: 40px;
    /* เว้นช่องว่างระหว่างฟอร์มกับแผนที่ */
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}


/* ปรับสไตล์เดิมของ Form */

#booking-form {
    /* ลบ max-width: 600px; และ margin: 0 auto; ออก */
    width: 45%;
    /* ให้ฟอร์มกินพื้นที่ประมาณ 45% */
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


/* New: สไตล์สำหรับ Map Container */

.map-container-flex {
    width: 55%;
    /* ให้แผนที่กินพื้นที่ประมาณ 55% */
    height: 650px;
    /* กำหนดความสูงของแผนที่ */
    display: flex;
    flex-direction: column;
}

.map-title {
    font-family: 'Georgia', serif;
    font-size: 2em;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.map-container-flex iframe {
    flex-grow: 1;
    /* ทำให้ iframe ขยายเต็มความสูงที่กำหนดไว้ใน .map-container-flex */
}


/* Responsive: สำหรับหน้าจอขนาดเล็ก */

@media (max-width: 1024px) {
    .reservation-layout {
        flex-direction: column;
        /* จัดเรียงจากบนลงล่าง */
        gap: 60px;
        /* เพิ่มช่องว่างระหว่างส่วน */
    }
    @media (max-width: 768px) {
    header {
        position: relative !important;
        z-index: 100;
    }
    }
    #booking-form {
        width: 100%;
        /* ฟอร์มเต็มความกว้าง */
        max-width: none;
        box-shadow: none;
        /* ลบเงาที่อาจจะรบกวน */
        border: none;
        /* ลบเส้นขอบ */
        padding: 0;
        /* ลบ padding ภายในฟอร์ม */
        background-color: transparent;
        /* ลบพื้นหลัง */
    }
    .map-container-flex {
        width: 100%;
        height: 400px;
        /* ลดความสูงของแผนที่บนมือถือ */
    }
}

.detail-content {
    /* ลด padding ด้านบนและด้านล่างเหลือ 40px หรือตามความเหมาะสม */
    padding: 10px 20px 10px 20px;
    /* ให้เต็มความกว้าง */
    width: 100%;
    /* จัดองค์ประกอบภายในให้อยู่กึ่งกลาง */
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.section-divider {
    width: 100%;
    height: 1px;
    /* ความหนาของเส้น */
    background-color: #333333;
    /* สีดำเข้ม */
    margin: 40px 0;
    /* เว้นระยะห่างด้านบนและด้านล่าง (ปรับตามต้องการ) */
    position: relative;
    /* เพิ่มเอฟเฟกต์สีทองตรงกลางเล็กน้อยเพื่อความหรูหรา */
}


/* New: สไตล์สำหรับ Gallery Divider Container */


/* New: สไตล์สำหรับ Gallery Divider Container */

.gallery-divider-container {
    display: flex;
    /* ใช้ Flexbox ในการแบ่งซ้าย-ขวา */
    gap: 15px;
    /* ช่องว่างระหว่างรูปหลักกับรูปย่อย */
    max-width: 1200px;
    /* จำกัดความกว้าง */
    margin: 60px auto;
    /* เว้นระยะห่างด้านบน-ล่าง และจัดกึ่งกลาง */
    padding: 0 20px;
    /* ******** แก้ไข: ตั้งค่าความสูงหลักที่นี่ ********* */
    height: 400px;
    /* สามารถเปลี่ยนค่านี้น้อยกว่า 500px ได้ตามต้องการ */
    /* ******************************************** */
}


/* 1. รูปภาพหลัก (ซ้าย) */

.main-image-area {
    /* กำหนดความกว้างชัดเจน */
    width: 80%;
    /* รูปหลักจะกินพื้นที่ 80% */
    /* ******** แก้ไข: กำหนดความสูงให้รับค่าจาก Parent ********* */
    height: 100%;
    /* ให้ความสูงเท่ากับ gallery-divider-container */
    min-width: 0;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.main-gallery-img {
    width: 100%;
    height: 100%;
    /* ใช้ object-fit: cover เพื่อให้รูปครอบคลุมพื้นที่โดยไม่บิดเบือน (อาจถูกตัดขอบ) */
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}


/* 2. Thumbnail List (ขวา - เลื่อนได้) */

.thumbnail-list {
    /* กำหนดความกว้างชัดเจน (20% ที่เหลือ) */
    width: 20%;
    /* ******** แก้ไข: กำหนดความสูงให้รับค่าจาก Parent ********* */
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* ******** ปรับ: เปิด Scroll Bar ตลอดเวลา ********* */
    overflow-y: scroll;
    -ms-overflow-style: auto;
    /* IE and Edge */
    scrollbar-width: auto;
    /* Firefox */
    padding-right: 10px;
}


/* ลบโค้ดซ่อน Scroll Bar ออกไป เพื่อให้ Scroll Bar แสดงผลตามปกติ */



.thumbnail-item {
    width: 100%;
    /* ******** แก้ไข: ลดความสูง Thumbnail ให้เหมาะสมกับความสูง Gallery ใหม่ ********* */
    height: 80px;
    /* ลดความสูงต่อรูป เพื่อให้ Scroll Bar แสดงได้ง่ายขึ้น */
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 3px;
    transition: border 0.2s ease, transform 0.1s ease;
}

.thumbnail-item:hover {
    border-color: #e6c567;
    transform: scale(1.02);
}

.thumbnail-item.active {
    border-color: #b8860b;
}


/* Responsive Design */

@media (max-width: 768px) {
    .gallery-divider-container {
        flex-direction: column;
        height: auto;
        margin: 40px auto;
        padding: 0 10px;
    }
    .main-image-area {
        /* ปรับสัดส่วนบนมือถือ */
        width: 100%;
        height: 300px;
        margin-bottom: 10px;
        box-shadow: none;
    }
    .thumbnail-list {
        /* ปรับสัดส่วนบนมือถือ */
        width: 100%;
        flex-direction: row;
        height: 100px;
        overflow-x: scroll;
        overflow-y: hidden;
        padding-bottom: 5px;
    }
    /* ปรับ Scroll Bar บนมือถือให้แสดงผลตามปกติ (แนวนอน) */
    .thumbnail-list::-webkit-scrollbar {
        height: 8px;
        /* ตั้งค่าความสูงของ Scroll Bar บนมือถือ */
        display: block;
    }
    .thumbnail-item {
        flex: 0 0 100px;
        height: 100px;
    }
}


/* *** NEW DELIVERY & SOCIAL STYLING *** */

.delivery-follow-us {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 5px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.delivery-heading,
.social-heading {
    text-align: center;
    color: #1a1a1a;
    font-size: 2em;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.delivery-lead {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #555;
}

.delivery-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.delivery-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease;
}

.delivery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.delivery-icon {
    width: 28px;
    height: 28px;
    margin-right: 15px;
    object-fit: contain;
}


/* Specific Delivery Button Colors */

.grabfood-btn {
    background-color: #00b14f;
    /* Grab Green */
    color: white;
}

.lineman-btn {
    background-color: #00c73e;
    /* LINE MAN Green */
    color: white;
}

.social-divider {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

.social-follow-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-large-icon {
    width: 50px;
    /* ขนาดไอคอนใหญ่ขึ้น */
    height: 50px;
    transition: transform 0.2s ease;
}

.social-follow-icons a:hover .social-large-icon {
    transform: scale(1.1);
}


/* *** END NEW DELIVERY & SOCIAL STYLING *** */


/* --- ส่วนนี้คือ CSS ที่คุณต้องเพิ่ม/แก้ไข --- */

footer {
    text-align: center;
    /* อาจจะลบออกหรือไม่ก็ได้ ขึ้นอยู่กับผลลัพธ์สุดท้าย */
    padding: 30px;
    background-color: #1a1a1a;
    color: #aaaaaa;
    font-size: 0.85em;
    margin-top: 60px;
}

.footer-content-wrapper {
    /* ใช้ Flexbox เพื่อจัดเรียงเนื้อหาซ้าย-ขวา */
    display: flex;
    justify-content: space-between;
    /* กระจายเนื้อหาไปซ้ายสุดและขวาสุด */
    align-items: flex-start;
    /* จัดให้อยู่ด้านบน (กรณีความสูงไม่เท่ากัน) */
    max-width: 1200px;
    /* จำกัดความกว้างให้เท่ากับเนื้อหาส่วนอื่น */
    margin: 0 auto;
    /* จัดให้อยู่กึ่งกลาง */
    padding: 0 20px;
    /* ระยะห่างด้านข้าง */
    flex-wrap: wrap;
    /* ให้ขึ้นบรรทัดใหม่เมื่อจอเล็ก */
}

.footer-content-left,
.footer-content-right {
    padding: 0;
    margin: 0;
}

.footer-content-left p {
    /* จัดการกับ p ภายในส่วนที่อยู่ */
    text-align: left;
    /* จัดชิดซ้าย */
    margin-bottom: 5px;
    /* ลดช่องว่างระหว่างบรรทัดที่อยู่ */
}

.footer-content-right p {
    /* จัดการกับ p ภายในส่วนลิขสิทธิ์ */
    text-align: right;
    /* จัดชิดขวา */
    /* ตรวจสอบให้แน่ใจว่าข้อความลิขสิทธิ์นี้ชิดขวา */
}


/* --- ส่วนนี้คือ CSS ที่คุณต้องเพิ่ม/แก้ไข --- */

footer {
    text-align: center;
    /* อาจจะลบออกหรือไม่ก็ได้ ขึ้นอยู่กับผลลัพธ์สุดท้าย */
    padding: 30px;
    background-color: #1a1a1a;
    color: #aaaaaa;
    font-size: 0.85em;
    margin-top: 60px;
}

.footer-content-wrapper {
    /* ใช้ Flexbox เพื่อจัดเรียงเนื้อหาซ้าย-ขวา */
    display: flex;
    justify-content: space-between;
    /* กระจายเนื้อหาไปซ้ายสุดและขวาสุด */
    align-items: flex-start;
    /* จัดให้อยู่ด้านบน (กรณีความสูงไม่เท่ากัน) */
    max-width: 1200px;
    /* จำกัดความกว้างให้เท่ากับเนื้อหาส่วนอื่น */
    margin: 0 auto;
    /* จัดให้อยู่กึ่งกลาง */
    padding: 0 20px;
    /* ระยะห่างด้านข้าง */
    flex-wrap: wrap;
    /* ให้ขึ้นบรรทัดใหม่เมื่อจอเล็ก */
}

.footer-content-left,
.footer-content-right {
    padding: 0;
    margin: 0;
}

.footer-content-left p {
    /* จัดการกับ p ภายในส่วนที่อยู่ */
    text-align: left;
    /* จัดชิดซ้าย */
    margin-bottom: 5px;
    /* ลดช่องว่างระหว่างบรรทัดที่อยู่ */
}

.footer-content-right p {
    /* จัดการกับ p ภายในส่วนลิขสิทธิ์ */
    text-align: right;
    /* จัดชิดขวา */
    /* ตรวจสอบให้แน่ใจว่าข้อความลิขสิทธิ์นี้ชิดขวา */
}


/* ทำให้ Footer กลับมาเรียงซ้อนกันเมื่ออยู่บนจอขนาดเล็ก */

@media (max-width: 768px) {
    .footer-content-wrapper {
        flex-direction: column;
        /* เรียงซ้อนกันแนวตั้ง */
        align-items: center;
        /* จัดกึ่งกลาง */
        text-align: center;
    }
    .footer-content-left p,
    .footer-content-right p {
        text-align: center;
        /* จัดข้อความทั้งหมดให้อยู่กึ่งกลางจอเล็ก */
        margin-top: 15px;
    }
}