:root {
    --bg-color: #fdf8eb; /* A beautiful warm, elegant cream color that unifies the whole design */
    --text-primary: #7f3d0c; 
    --text-secondary: #7f3d0c;
    --gold: #ffc400;
    --gold-dark: #e9bb80;
    --border-color: #e9bb80;
    --white: #ffffff;
    
    --font-heading: 'Prompt', sans-serif;
    --font-body: 'Prompt', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

.text-accent-yellow {
    color: #7f3d0c; 
    background-color: #ffc400;
    padding: 2px 12px;
    border-radius: 8px;
    box-shadow: 4px 4px 0 #7f3d0c;
    border: 2px solid #7f3d0c;
    display: inline-block;
}

.text-accent-brown {
    color: #ffffff; 
    background-color: #7f3d0c;
    padding: 6px 16px;
    border-radius: 8px;
    display: inline-block;
    line-height: 1.4;
}

/* Navbar */
.navbar {
    padding: 10px 0;
    border-bottom: 2px solid var(--text-primary);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links {
    display: flex;
    gap: 24px;
}
.nav-link {
    text-decoration: none;
    color: #7f3d0c;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: #ffc400;
}
.btn-nav-buy {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #7f3d0c;
    background-color: #ffc400;
    padding: 6px 16px;
    border: 2px solid #7f3d0c;
    border-radius: 8px;
    box-shadow: 2px 2px 0 #7f3d0c;
    transition: all 0.2s ease;
}
.btn-nav-buy:hover {
    background-color: #ffffff;
    box-shadow: 4px 4px 0 #7f3d0c;
    transform: translate(-2px, -2px);
}
.logo-link {
    text-decoration: none;
}
.logo {
    font-size: 20px;
    font-weight: 800;
    color: #7f3d0c;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.logo span {
    background-color: #ffc400;
    padding: 2px 6px;
    border: 2px solid #7f3d0c;
    box-shadow: 2px 2px 0 #7f3d0c;
    border-radius: 4px;
    margin-right: 2px;
}

/* Hero Section */
.hero {
    padding: 24px 0 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #7f3d0c;
}

.hero-title .text-accent-brown {
    font-size: 64px; /* ลดขนาดลงให้บาลานซ์กับข้อความด้านล่าง */
    padding: 6px 20px;
}

.hero-title .text-accent-yellow {
    font-size: 44px; /* เพิ่มขนาดตามคำขอ */
}

.hero-desc {
    font-size: 16px;
    color: #7f3d0c;
    max-width: 700px;
    margin: 0 auto 12px; /* ลดช่องว่างด้านบนปุ่ม */
}

.btn-cta {
    display: inline-block;
    background-color: #ffffff;
    color: #7f3d0c;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    padding: 18px 80px;
    border-radius: 12px;
    margin-bottom: 8px; /* ลดช่องว่างใต้ปุ่ม */
    border: 3px solid #7f3d0c;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 8px 8px 0 #7f3d0c;
    animation: wiggle-pulse 2s infinite ease-in-out;
}

.btn-cta:hover {
    background-color: #ffc400;
    color: #7f3d0c;
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 #7f3d0c;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.section-action {
    text-align: center;
    margin-bottom: 24px; /* ลดช่องว่างเหนือรูปภาพ */
    margin-top: -24px; /* ดึงให้ชิดกับข้อความ (หัวข้อ) มากขึ้น */
}

.btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #7f3d0c;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    padding: 18px 40px;
    border-radius: 12px;
    border: 3px solid #7f3d0c;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 8px 8px 0 #7f3d0c;
    animation: floating 1.8s ease-in-out infinite;
}

.btn-theme-brown:hover {
    background-color: #ffc400; /* สีเหลืองเหมือนเดิม */
    color: #7f3d0c;
}

.btn-theme-black:hover {
    background-color: #000000; /* สีดำตามคำขอ */
    color: #ffffff;
    border-color: #000000;
}

.btn-group {
    display: flex;
    gap: 24px; /* ลดช่องว่างระหว่างปุ่ม */
    justify-content: center;
    flex-wrap: wrap;
}

.btn-group .btn {
    min-width: 320px; /* กำหนดความกว้างขั้นต่ำให้เท่ากันทั้ง 2 ปุ่ม */
    text-align: center;
}

.btn-secondary:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 #7f3d0c;
}

@keyframes wiggle-pulse {
    0% { transform: scale(1) rotate(0deg); }
    10% { transform: scale(1.05) rotate(-2deg); }
    20% { transform: scale(1.05) rotate(2deg); }
    30% { transform: scale(1.05) rotate(-2deg); }
    40% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.hero-image-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections Base */
.section-title {
    font-size: 40px; /* ขนาด 40px สำหรับคอมพิวเตอร์ */
    font-weight: 800; /* ทำให้หัวข้อหนาและดึงดูดสายตาပိုขึ้น */
    text-align: center;
    margin-bottom: 40px;
    color: #7f3d0c;
    line-height: 1.4;
}

/* Problems Section */
.problems {
    padding: 20px 0 40px 0; /* ลด padding ด้านบนเหลือ 20px */
    border-top: 2px solid #7f3d0c;
    border-bottom: 2px solid #7f3d0c;
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.problem-card {
    background-color: #ffffff;
    border: 2px solid #7f3d0c;
    border-radius: 16px;
    box-shadow: 6px 6px 0 #7f3d0c;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 #7f3d0c;
}

.problem-header {
    background-color: #ffffff;
    border-bottom: 2px solid #7f3d0c;
    padding: 12px 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-num {
    background-color: #ffc400;
    color: #7f3d0c;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid #7f3d0c;
    box-shadow: 2px 2px 0 #7f3d0c;
    flex-shrink: 0;
}

.problem-body {
    padding: 10px 20px 14px;
}

.problem-label {
    font-weight: 700;
    color: #7f3d0c;
    margin-bottom: 8px;
}

.solution-label {
    font-weight: 700;
    color: #7f3d0c;
    margin-bottom: 8px;
}

.problem-text {
    margin-bottom: 16px;
    color: #7f3d0c;
}

.solution-list {
    list-style: none;
    padding-left: 0;
}

.solution-list li {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #7f3d0c;
}

.solution-list li i {
    color: #7f3d0c;
    margin-top: 5px;
    font-size: 12px;
}

/* Features Gallery */
.features-gallery {
    padding: 40px 0 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
}

.features-grid .problem-card {
    grid-column: span 2;
}

.features-grid .problem-card:nth-child(1),
.features-grid .problem-card:nth-child(2) {
    grid-column: span 3;
}

.feature-img-wrapper {
    background-color: #ffc400; /* กลับมาใช้สีหลักตามคำขอ */
    border-bottom: 2px solid #7f3d0c;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.features-grid .problem-card:nth-child(1) .feature-img-wrapper,
.features-grid .problem-card:nth-child(2) .feature-img-wrapper {
    height: 650px;
}

.feature-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 2px solid #7f3d0c;
    box-shadow: 4px 4px 0 #7f3d0c;
    background-color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid .problem-card {
        grid-column: span 1;
    }
    .features-grid .problem-card:nth-child(1),
    .features-grid .problem-card:nth-child(2) {
        grid-column: span 2; /* Full width for top two on tablet */
    }
    .hero-title .text-accent-brown {
        font-size: 52px;
    }
    .hero-title .text-accent-yellow {
        font-size: 30px;
    }
}



/* Reviews Section */
.reviews {
    padding: 40px 0 40px 0;
    border-top: 2px solid #7f3d0c;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
    justify-items: center;
}
.review-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}
.review-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 6px 6px 0 #7f3d0c;
    border: 2px solid #7f3d0c;
    display: block;
    transition: transform 0.3s ease;
}

.review-img:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #7f3d0c;
}

/* Final CTA Section */
.final-cta {
    padding: 40px 0 0 0;
    text-align: center;
}
.final-cta h2 {
    font-size: 40px;
    margin-bottom: 12px; /* ลดช่องว่างก่อนข้อความอธิบาย */
    color: #7f3d0c;
}
.final-desc {
    font-size: 20px;
    margin-bottom: 24px; /* ลดช่องว่างก่อนกล่องราคา */
    color: #7f3d0c;
}
.price-block {
    margin-bottom: 20px; /* ลดช่องว่างด้านล่างกล่องราคา */
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 60px; /* ลดขนาดกรอบลง */
    border: 4px solid #7f3d0c;
    border-radius: 20px;
    box-shadow: 12px 12px 0 #ffc400;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.price-label {
    font-size: 32px; /* ใหญ่ขึ้นตามคำขอ */
    font-weight: 700;
    color: #7f3d0c;
    opacity: 0.9;
    margin-bottom: 8px;
}

.price-value {
    font-size: 48px; /* เล็กลงกว่าเดิมตามคำขอ */
    font-weight: 800;
    color: #7f3d0c;
    line-height: 1.1;
    margin: 8px 0;
    background-color: #ffc400;
    padding: 6px 24px;
    border-radius: 10px;
    border: 3px solid #7f3d0c;
    box-shadow: 4px 4px 0 #7f3d0c;
}

.price-unit {
    font-size: 32px; /* ใหญ่ขึ้นตามคำขอ */
    color: #7f3d0c;
    font-weight: 700;
    margin-top: 15px;
}
.final-remark {
    font-size: 20px;
    margin-bottom: 12px; /* ลดช่องว่างด้านบนปุ่ม */
    font-weight: 500;
    color: #7f3d0c;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0 80px;
    border-top: 2px solid #7f3d0c;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center; /* เพื่อให้ Title ที่เป็น inline-block อยู่ตรงกลาง */
}
.faq-title-boxed {
    display: inline-block;
    color: #7f3d0c;
    border: 3px solid #7f3d0c;
    padding: 8px 32px;
    border-radius: 12px;
    box-shadow: 6px 6px 0 #7f3d0c;
    background-color: transparent;
    font-size: 32px;
}
.faq-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: #7f3d0c;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-accordion {
    background-color: #ffffff;
    border-radius: 12px;
    color: #7f3d0c;
    overflow: hidden;
    border: 3px solid #ffc400;
    box-shadow: 6px 6px 0 #ffc400;
}
.faq-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s;
}
.faq-accordion[open] summary {
    background-color: #fdf8eb;
    border-bottom: 2px solid #ffc400;
}
.faq-accordion summary::-webkit-details-marker {
    display: none;
}
.accordion-icon {
    transition: transform 0.3s ease;
    color: #ffc400;
}
.faq-accordion[open] .accordion-icon {
    transform: rotate(180deg);
}
.faq-accordion-content {
    padding: 16px 32px 24px;
    font-size: 15px;
    color: #7f3d0c;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}
.contact-time {
    margin-top: 50px;
    font-size: 14px;
    color: #e9bb80;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Global Device Switcher */
.device-switcher-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 50px 0;
}

.device-switcher {
    display: inline-flex;
    background-color: #ffffff;
    border: 3px solid #7f3d0c;
    border-radius: 12px;
    padding: 6px;
    gap: 8px;
    box-shadow: 6px 6px 0 #7f3d0c;
}

.device-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: #7f3d0c;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.device-btn i {
    font-size: 18px;
}

.device-btn:hover {
    background-color: rgba(255, 196, 0, 0.1);
}

.device-btn.active {
    background-color: #ffc400;
    color: #7f3d0c;
    border: 2px solid #7f3d0c;
    box-shadow: 3px 3px 0 #7f3d0c;
}

.preview-img {
    transition: opacity 0.3s ease;
}

.preview-img.switching {
    opacity: 0.3;
}

@media (max-width: 600px) {
    /* Navbar Mobile overrides */
    .navbar {
        padding: 8px 0;
    }
    .navbar .container {
        flex-direction: row;
        padding: 0 8px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .navbar .container::-webkit-scrollbar {
        display: none;
    }
    .logo {
        font-size: 14px;
        flex-shrink: 0;
    }
    .logo span {
        padding: 1px 4px;
    }
    .nav-menu {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: flex-end;
        flex-shrink: 0;
    }
    .nav-links {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .nav-link {
        font-size: 13px;
        white-space: nowrap;
    }
    .btn-nav-buy {
        padding: 5px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Hero Mobile overrides */
    .hero-title {
        font-size: 32px;
    }
    .hero-title .text-accent-brown {
        font-size: 38px;
    }
    .hero-title .text-accent-yellow {
        font-size: 5.3vw; /* ปรับขนาดอัตโนมัติให้พอดีความกว้างจอ */
        line-height: 1.2;
        white-space: nowrap; /* ห้ามขึ้นบรรทัดใหม่ */
        display: inline-block;
        padding: 4px 10px !important; /* กระชับพื้นขอบเหลืองลงนิดหน่อย */
    }
    .hero-desc {
        font-size: 14px;
        padding: 0 4px;
        max-width: 100%;
    }
    .markets-banner {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0 10px;
    }
    .markets-list {
        width: 100% !important;
        justify-content: center !important;
        gap: 2.2vw !important; /* ปรับช่องว่างอัตโนมัติ */
        padding-bottom: 5px;
    }
    .markets-list > span {
        font-size: 3.4vw !important; /* ปรับขนาดตัวอักษรตลาดอัตโนมัติ */
        gap: 1.2vw !important;
    }
    .markets-list span span {
        width: 3.5vw !important; /* ปรับขนาดกล่องติ๊กถูกอัตโนมัติ */
        height: 3.5vw !important;
        border-width: 1.5px !important;
    }
    .markets-list i {
        font-size: 2.2vw !important; /* ปรับขนาดไอคอนติ๊กถูกอัตโนมัติ */
    }

    /* Section Mobile overrides */
    .section-title {
        font-size: 32px;
        line-height: 1.5;
    }
    .faq-title-boxed {
        font-size: 24px; /* ลดขนาดลงในมือถือ */
        padding: 6px 20px;
    }
    .section-action {
        margin-top: 16px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .features-grid .problem-card,
    .features-grid .problem-card:nth-child(1),
    .features-grid .problem-card:nth-child(2) {
        grid-column: span 1;
        height: auto;
    }
    .features-grid .problem-card:nth-child(1) .feature-img-wrapper,
    .features-grid .problem-card:nth-child(2) .feature-img-wrapper,
    .feature-img-wrapper {
        height: auto;
        min-height: 150px;
        padding: 16px 8px;
    }

    /* Reviews Mobile overrides - MAXIMUM SIZE */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 10px; /* ลด padding ข้างนอกเพื่อให้รูปใหญ่ขึ้น */
    }
    .review-col {
        max-width: 100%;
        padding: 0; /* เอา padding ของ col ออกเพื่อให้รูปชิดขอบที่สุด */
    }
    .review-img {
        width: 100%;
        border-radius: 12px;
        box-shadow: 4px 4px 0 #7f3d0c; /* ลดขนาดเงาลงนิดนึงเพื่อให้รูปดูใหญ่ขึ้นในพื้นที่จำกัด */
    }

    /* Pricing Mobile overrides */
    .price-block {
        padding: 20px 30px;
        width: 90%;
    }
    .price-label {
        font-size: 22px;
    }
    .price-value {
        font-size: 32px;
        padding: 4px 16px;
    }
    .price-unit {
        font-size: 22px;
    }
    .btn-cta {
        padding: 16px 40px !important;
        font-size: 24px !important;
        width: 90%;
    }
    .cta-mascot-wrapper {
        margin-top: 20px !important;
    }
    .cta-mascot-wrapper img {
        max-width: 100% !important;
        width: 110% !important; /* ขยายให้เด่นขึ้นนิดนึง */
        margin-left: -5%; /* ปรับตำแหน่งให้สมดุล */
    }

    /* Device Switcher Mobile overrides */
    .device-switcher {
        justify-content: center;
        flex-wrap: wrap;
    }
    .device-btn {
        justify-content: center;
        padding: 10px 12px;
        font-size: 14px;
    }
}
