/* ===== Kindness Health Innovation Styles ===== */

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Noto Sans Thai', sans-serif;
    color: #0f172a;
    background: #f9fafb;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.nav-wrap {
    background: #e5e7eb;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    background: #fff;
    border-radius: 999px;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    gap: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f172a;
}

.brand-img {
    height: 40px;
}

.brand-text small {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.links {
    display: flex;
    gap: 20px;
}

.link {
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.link:hover {
    color: #256a63;
}

/* ===== Intro Section ===== */
.innov-intro {
    background: #dcdfe3;
    padding: 60px 0 80px;
    text-align: center;
}

.innov-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.innov-sub {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 24px;
}

.innov-hero-photo {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #cbd5e1;
}

/* ===== Features Section ===== */
.section {
    padding: 70px 0;
}

.section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0f172a;
}

.feature p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Product Gallery ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product img {
    height: 220px;
    object-fit: cover;
}

.product h3 {
    font-size: 16px;
    padding: 14px 18px;
    color: #0f172a;
}

/* ===== Badge Row ===== */
.badges {
    background: #eef4f2;
    text-align: center;
    padding: 60px 0;
}

.badges h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.badge-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0;
}

.badge-row li {
    background: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.badge-row img {
    height: 40px;
}

/* ===== Case Section ===== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.case {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.case h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.case p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* ===== CTA ===== */
.cta-band {
    background: #d1fae5;
    text-align: center;
    padding: 80px 20px;
}

.cta-band h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.btn.primary {
    background: #059669;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.btn.primary:hover {
    background: #047857;
}

/* ===== Footer Message ===== */
.footer-message {
    background: #f3f4f6;
    text-align: center;
    padding: 50px 20px;
    color: #374151;
}

.footer-message h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.footer-message .quote {
    font-style: italic;
    color: #256a63;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        border-radius: 20px;
    }

    .feature-grid,
    .product-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Product Showcase Section ===== */
.product-showcase {
    background: #f8fafc;
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 40px;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.product-info {
    padding: 24px;
    text-align: left;
}

.product-info h3 {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 700;
}

.btn-light {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-light:hover {
    background: #256a63;
    color: #fff;
    border-color: #256a63;
}

/* ===== Product Showcase (Alternate Layout) ===== */
.product-showcase.alt {
    background: #d9dbde;
    padding: 80px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 24px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-card {
    background: #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-info {
    padding: 16px 22px 26px;
    text-align: left;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.btn-light {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-light:hover {
    background: #256a63;
    color: #fff;
    border-color: #256a63;
}

/* Responsive */
@media (max-width: 960px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Masonry layout: ซ้าย 2 ใบ, ขวา 1 ใบสูง ===== */
.product-showcase.masonry {
    background: #d9dbde;
    padding: 80px 0;
}

/* ===== Masonry layout: ซ้าย 2 ใบ, ขวา 1 ใบสูง ===== */
.showcase-masonry {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* ซ้ายกว้างกว่านิดหน่อย */
    grid-template-rows: auto auto;
    grid-template-areas:
        "a c"
        "b c";
    gap: 24px;
    align-items: stretch;
}

.card-a {
    grid-area: a;
}

.card-b {
    grid-area: b;
}

.card-c {
    grid-area: c;
    display: flex;
    flex-direction: column;
}

.card-c img {
    height: 100%;
    /* ให้ภาพขวายืดเต็มพื้นที่สองแถว */
    object-fit: cover;
}

/* ปรับความสูงซ้ายบน/ล่าง */
.card-a img,
.card-b img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.product-card {
    background: #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.product-info {
    padding: 16px 22px 24px;
    text-align: left;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.btn-light {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #111827;
    text-decoration: none;
    transition: 0.2s;
}

.btn-light:hover {
    background: #256a63;
    color: #fff;
    border-color: #256a63;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .showcase-masonry {
        grid-template-columns: 1fr;
        grid-template-areas:
            "a"
            "b"
            "c";
    }

    .card-c img {
        height: 260px;
    }
}

.section {
    padding: 70px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


.product-carousel {
    background: #dcdcdc4d;
}

.pc-head {
    text-align: left;
    margin-bottom: 12px;
}

.pc-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.pc-sub {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}


.pc-frame {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.pc-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px;
    border-radius: 16px;
    scrollbar-width: thin;
}

.pc-track::-webkit-scrollbar {
    height: 8px;
}

.pc-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.pc-track.dragging {
    cursor: grabbing;
}


.pc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    scroll-snap-align: start;
    min-width: 280px;
}

.pc-media img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.pc-body {
    padding: 14px 16px 18px;
}

.pc-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.pc-body p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}


.pc-nav {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.pc-nav:hover {
    background: #256a63;
    color: #fff;
    border-color: #256a63;
}


.pc-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.pc-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    border: 0;
}

.pc-dot.active {
    background: #256a63;
}


/* จอใหญ่ 3 ใบ/หน้า */
@media (min-width: 1000px) {
    .pc-track {
        grid-auto-columns: calc((100% - 32px) / 3);
    }
}

/* แท็บเล็ต 2 ใบ/หน้า */
@media (min-width: 700px) and (max-width: 999px) {
    .pc-track {
        grid-auto-columns: calc((100% - 16px) / 2);
    }
}

/* มือถือ 1 ใบ/หน้า และซ่อนปุ่ม ใช้การปัด */
@media (max-width: 699px) {
    .pc-track {
        grid-auto-columns: 100%;
    }

    .pc-nav {
        display: none;
    }
}

.promo-section {
    background: #eceff4;
}

.feature-promo {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    border: 1px solid #d1d5db;
    background: linear-gradient(180deg, #fff 0%, #fff 42%, #ffeaa7 42%, #ffeaa7 100%);
}

.fp-head {
    background: #1e88e5;
    color: #fff;
    padding: 14px 18px;
    border-bottom: 4px solid #0d47a1;
}

.fp-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.fp-head p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: .95;
}

.fp-muted {
    font-weight: 500;
    opacity: .9;
}


.fp-body {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 16px;
    padding: 16px;
    align-items: center;
}

.fp-text {
    min-width: 0;
}

.fp-list {
    margin: 0;
    padding: 0 0 0 18px;
}

.fp-list li {
    margin: 6px 0;
    color: #111827;
}


.fp-badges {
    margin-top: 10px;
}

.badge-premium {
    display: inline-block;
    background: #d4af37;
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 6px rgba(0, 0, 0, .15);
}


.fp-media {
    margin: 0;
    display: grid;
    place-items: center;
}

.fp-media img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
}


/* ความกว้างเล็กลง: ซ้อนเป็นคอลัมน์เดียว */
@media (max-width: 900px) {
    .fp-body {
        grid-template-columns: 1fr;
    }

    .fp-media img {
        max-width: 440px;
    }
}

@media (max-width: 600px) {
    .fp-head h3 {
        font-size: 16px;
    }

    .fp-head p {
        font-size: 12px;
    }

    .fp-media img {
        max-width: 360px;
    }
}