/* นำเข้าฟอนต์ Kanit จาก Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

/* CSS Variables สำหรับจัดการโทนสี */
:root {
    --primary-color: #EF3E25;
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-gray: #f5f5f5;
}

/* รีเซ็ตค่าพื้นฐาน */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* ส่วน Hero Banner */
.hero {
    background-color: var(--light-gray);
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #666;
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s;
}

.hero-btn:hover {
    transform: translateY(-3px);
}

/* หมวดหมู่สินค้า */
.categories {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.card {
    background-color: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.rc-step-num {
    background: #000;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ส่วนแบรนด์ (Our Brands) 4 Cards */
.brands-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.brand-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-radius: 24px 24px 0 0;
    aspect-ratio: 1 / 1.8;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s;
    text-decoration: none;
}

.brand-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 1);
}

.brand-card img {
    max-width: 80%;
    max-height: 50%;
    object-fit: contain;
}

.brand-logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.brand-logo-center img {
    height: 40px;
    object-fit: contain;
}

/* ส่วนที่เพิ่มใหม่จากรูปภาพอ้างอิง */
.rc-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.rc-banner {
    position: relative;
    background-color: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
    background-image: url('../image/website_homepage.png');
    background-size: cover;
    background-position: center;
    margin-top: 0;
}

.rc-banner .content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rc-banner h2 {
    font-size: 36px;
    color: #EF3E25;
    margin-bottom: 10px;
    line-height: 1.3;
}

.rc-banner p {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: bold;
    color: #333;
}

.rc-btn-primary {
    display: inline-block;
    background-color: #EF3E25;
    color: white !important;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.rc-btn-primary:hover {
    background-color: #d1321d;
}

.rc-btn-outline {
    display: inline-block;
    border: 1px solid #EF3E25;
    color: #EF3E25 !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.rc-btn-outline:hover {
    background-color: #EF3E25;
    color: white !important;
}

.rc-products-header {
    color: #EF3E25;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: left;
}

.rc-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.rc-product-card {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    transition: box-shadow 0.3s;
    cursor: pointer;
}

.rc-product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rc-product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.rc-product-card p {
    color: #EF3E25;
    font-weight: 500;
}

.rc-flex-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.rc-flex-half {
    flex: 1;
    min-width: 300px;
}

.rc-flex-half img {
    max-width: 100%;
    border-radius: 8px;
}

.rc-flex-half h2 {
    color: #EF3E25;
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.rc-steps-banner {
    background-color: #e6e6e6;
    padding: 60px 40px;
    border-radius: 8px;
    margin: 60px auto;
    max-width: 1200px;
    position: relative;
}

.rc-steps-banner h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.rc-steps-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.rc-step {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    color: #333;
    flex: 1;
    min-width: 250px;
}

/* ส่วน Timeline แบรนด์ (เพิ่มใหม่) */
.brand-timeline-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.timeline-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.timeline-card {
    position: relative;
    flex: 1;
    min-width: 220px;
    padding: 40px 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.04);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.timeline-card:first-child {
    border-radius: 8px 0 0 8px;
}

.timeline-card:last-child {
    border-radius: 0 8px 8px 0;
}

.timeline-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.timeline-logo img {
    max-height: 100%;
    max-width: 80%;
    object-fit: contain;
}

.timeline-year-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin-bottom: 20px;
}

.timeline-chevron {
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 50px;
    background-color: #EF3E25;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%, 30% 50%);
    z-index: 2;
}

.timeline-year {
    font-size: 32px;
    color: #9aa1a6;
    font-weight: 700;
}

.timeline-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    padding: 0 10px;
}

/* ส่วน Partner Store (เพิ่มใหม่) */
.partner-store-section {
    width: 100%;
    margin: 60px 0;
    padding: 80px 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../image/background-partner-store.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.partner-header {
    max-width: 1000px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.partner-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}

.partner-header .text-red {
    color: #EF3E25;
}

.partner-header .text-white {
    color: #ffffff;
}

.partner-header .text-dark {
    color: #333333;
}

.partner-content {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 500px;
    align-items: center;
}

.partner-left {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.partner-grid-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.partner-right {
    flex: 1;
}

@media (max-width: 768px) {
    .partner-content {
        flex-direction: column;
        min-height: auto;
    }

    .partner-left {
        justify-content: center;
    }
}

/* ส่วน Our Products Showcase (เพิ่มใหม่) */
.our-products-showcase {
    width: 100%;
    margin: 60px 0;
    padding: 80px 20px;
    background-image: url('../image/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.our-products-showcase h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.our-products-showcase h2 span.text-black {
    color: #333333;
}

.our-products-showcase h2 span.text-red {
    color: #EF3E25;
}

.our-products-image-container {
    max-width: 1100px;
    margin: 0 auto 50px auto;
}

.our-products-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.showcase-footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.showcase-footer-logo img {
    height: 35px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .our-products-showcase {
        padding: 40px 15px;
    }

    .our-products-showcase h2 {
        font-size: 32px;
    }
}

/* ส่วน Dog Day Info (Split Layout) */
.dog-day-info-section {
    display: flex;
    max-width: 1200px;
    margin: 60px auto;
    background: #fff;
    border: 1px solid #eaeaea;
    overflow: hidden;
}

.dog-day-info-left {
    flex: 0 0 540px;
    width: 540px;
    height: 650px;
    min-height: 650px;
}

.dog-day-info-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-day-info-right {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-brand-logo {
    width: 200px;
    margin-bottom: 30px;
}

.info-brand-logo img {
    width: 100%;
    height: auto;
}

.dog-day-info-right h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.dog-day-info-right p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.certificates-grid {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cert-item img {
    height: 60px;
    object-fit: contain;
}

.cert-item span {
    font-size: 10px;
    color: #888;
    text-align: center;
    max-width: 100px;
}

@media (max-width: 992px) {
    .dog-day-info-section {
        flex-direction: column;
    }

    .dog-day-info-left {
        min-height: 300px;
    }

    .dog-day-info-right {
        padding: 40px 20px;
    }
}

/* ส่วนสถิติแบรนด์ (Brand Statistics) */
.brand-stats-section {
    background-color: #fcfcfc;
    padding: 80px 20px;
    border-top: 1px solid #eaeaea;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
}

.stats-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.stats-header p {
    color: #666;
    font-size: 16px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.chart-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.chart-box h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: #444;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 992px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .brand-card {
        aspect-ratio: 1 / 1.2;
    }

    .rc-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .rc-product-card {
        padding: 15px;
    }

    .rc-product-card img {
        height: 150px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rc-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rc-product-card {
        padding: 10px;
    }

    .rc-product-card img {
        height: 120px;
        margin-bottom: 10px;
    }
}

/* ═══════════════════════════════════
   FAQ Section — คำถามที่พบบ่อย
   ═══════════════════════════════════ */
.faq-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.faq-container {
    text-align: center;
}

.faq-heading {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.faq-subheading {
    font-size: 15px;
    color: #888;
    margin-bottom: 40px;
}

.faq-list {
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
}

.faq-item:first-child {
    border-top: 1px solid #eaeaea;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 8px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: color 0.25s;
    text-align: left;
    gap: 16px;
}

.faq-question:hover {
    color: #EF3E25;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.35s ease, color 0.25s;
    color: #999;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #EF3E25;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.35s ease;
    padding: 0 8px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 8px 20px;
}

.faq-answer p {
    font-size: 14.5px;
    line-height: 1.8;
    color: #666;
}

@media (max-width: 768px) {
    .faq-heading {
        font-size: 28px;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px 4px;
    }
}