/* -----------------------------------------
   1. ส่วนตั้งค่าพื้นฐาน (Global Styles)
----------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    color: #000000;
    line-height: 1.6;
    background-color: #fcfbfb;
    scroll-behavior: smooth;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

h2 {
    font-size: 50px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    color: #1a252f;
}

/* เส้นตกแต่งใต้หัวข้อหลัก */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ffd000;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* ปุ่มทั่วไป */
.btn {
    display: inline-block;
    background-color: #ffd000;
    color: #000000;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #b39200;
}

/* -----------------------------------------
/* -----------------------------------------
   2. แถบนำทาง (Navbar)
----------------------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 64px;

    padding: 0 350px;

    background: #e0b011;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);

    z-index: 1000;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 46px;
    width: auto;
}

.logo span {
    font-size: 18px;
    font-weight: 700;
    color: #1a252f;
    letter-spacing: .5px;
}

/* เมนูหลัก */
.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 16px;
    font-weight: 600;
    color: #1a252f;
    text-decoration: none;
    position: relative;
    transition: .3s;
}

/* เส้นใต้เมนู */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: .3s;
}

/* Hover */
.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Active */
.nav-links a.active {
    color: #fff !important;
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
    background: #fff;
}

/* =========================================
   DROPDOWN DESKTOP
========================================= */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-menu {
    display: none;

    position: absolute;
    top: calc(100% + 1px);
    left: 0;

    min-width: 220px;

    margin: 0;
    padding: 8px 0;

    list-style: none;

    background: #e0b011;

    box-shadow: 0 8px 20px rgba(0,0,0,.15);

    z-index: 9999;
}

/* เปิด Dropdown เมื่อ Hover */
@media (min-width: 1201px) {

    .nav-links .dropdown:hover > .dropdown-menu {
        display: block !important;
    }

    .nav-links .dropdown:focus-within > .dropdown-menu {
        display: block !important;
    }
}

/* รายการใน Dropdown */
.nav-links .dropdown-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

.nav-links .dropdown-menu a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    white-space: nowrap;
    color: #1a252f;
}

/* ไม่ให้เส้นใต้เกิดในเมนูย่อย */
.nav-links .dropdown-menu a::after {
    display: none;
}

/* Hover Dropdown */
.nav-links .dropdown-menu a:hover {
    color: #fff;
    background: rgba(0,0,0,.08);
}

/* =========================================
   HAMBURGER
========================================= */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

/* =========================================
   MOBILE / TABLET
========================================= */
@media (max-width: 1200px) {

    .navbar {
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #e0b011;
        flex-direction: column;
        box-shadow: 0 8px 20px rgba(0,0,0,.15);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    .nav-links a {
        display: block;
        padding: 14px 20px;
    }

    /* Active บนมือถือ */
    .nav-links a.active {
        color: #e0b011;
        font-weight: 700;
    }

    .nav-links a.active::after {
        display: none;
    }

    /* Dropdown บนมือถือ */
    .nav-links .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        padding: 0;
        background: rgba(0,0,0,.06);
        box-shadow: none;
    }

    .nav-links .dropdown.open > .dropdown-menu {
        display: block;
    }

    .nav-links .dropdown-menu a {
        padding: 12px 20px;
    }

    .nav-links .dropdown-menu a:hover {
        color: #fff;
        background: rgba(0,0,0,.08);
    }

    .nav-links a:hover {
        color: #fff;
    }
}

/* -----------------------------------------
   3. แบนเนอร์หน้าแรก (Hero Section แบบแบ่งฝั่งใหม่)
----------------------------------------- */
.hero {
    background-color: #ffffff; /* เปลี่ยนพื้นหลังภาพรวมเป็นสีขาวสะอาดตาเพื่อให้ข้อความเด่น */
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 10px; /* เว้นระยะไม่ให้จมใต้ Navbar */
}

/* กล่องครอบดีไซน์แบบแบ่งฝั่ง */
.hero-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 50px; /* ระยะห่างระหว่างฝั่งซ้ายและขวา */
}

/* --- ฝั่งซ้าย: ข้อความ --- */
.hero-left {
    flex: 1; /* ขยายพื้นที่เท่ากัน */
    text-align: left; /* จัดตัวหนังสือชิดซ้าย */
}
.hero-subtitle{

    display:block;

    font-size:15px;

    font-weight:600;

    color:#ffc400;

    letter-spacing:3px;

    text-transform:uppercase;

    margin-bottom:12px;

}

.hero-left h1 {
    font-size: 70px;
    line-height: 1.3;
    color: #1a252f;
    margin-bottom: 20px;
    font-weight: 700;
}

/* สีข้อความ TOP */
.hero-left h1 {
    color: #ff0000; 
}

/* สีข้อความ IMAGE */
.hero-left h1 .highlight {
    color: #1100ff; 
}

.hero-left p {
    font-size: 20px;
    color: #555;
    margin-bottom: 35px;
    font-weight: 400;
}

/* --- ฝั่งขวา: กล่องรูปภาพ --- */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}


/* --- ปรับแต่งเมื่อดูบนมือถือ (Responsive) --- */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse; /* บนมือถือเอาภาพขึ้นก่อน แล้วตามด้วยข้อความ */
        gap: 30px;
        text-align: center;
    }
    .hero-left {
        text-align: center;
    }
    .hero-left h1 {
        font-size: 32px;
    }
    }

/* ปุ่มดูภาพรวมกิจกรรม */
.activity-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 45px;
}

.activity-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 14px 32px;

    background: #e0b011;
    color: #000000;

    border-radius: 30px;

    text-decoration: none;
    font-weight: 600;
    font-size: 16px;

    transition: all 0.3s ease;
}

.activity-more-btn i {
    transition: transform 0.3s ease;
}

.activity-more-btn:hover {
    background: #c99d0d;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.activity-more-btn:hover i {
    transform: translateX(5px);
}
/* -----------------------------------------
   4. หน้าเกี่ยวกับเรา (About Section)
----------------------------------------- */

.about {
    background-color: #e0e0e0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

/* หัวข้อหลัก */
.about h2{
    font-size:40px;
    font-weight:700;
    color:#222;
    margin-bottom:20px;
}

/* หัวข้อย่อย */
.about-text h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size:26px;
    font-weight:600;
    color:#e0b011;
}

/* เนื้อหา */
.about-text p{
    font-size: 20px;
    line-height:1.9;
    color:#000000;
    margin-bottom:15px;
}

/* รูปภาพ */
.about-img img {
    margin-left:80px;
    width:80%;
    border-radius:12px;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
}
/* -----------------------------------------
   5. ส่วนผลิตภัณฑ์ (Products Section)
----------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fffefe;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px); /* ยกตัวขึ้นเมื่อเอาเมาส์มาชี้ */
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: contain; /* บังคับให้รูปตัดพอดีกรอบ ไม่เบี้ยว */
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #1a252f;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-sm {
    display: inline-block;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-sm:hover {
    background-color: #007bff;
    color: #fff;
}

/* ส่วนแสดงรูปสินค้า */
.product-display{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 40px auto;
}

/* กล่องรูป */
.product-display-image{
    width: 100%;
    display: flex;
    justify-content: center;
}

/* รูปสินค้า */
.product-display-image img{
    width: 100%;
    max-width: 1600px;
    height: auto;
    display: block;
    object-fit: contain;
}
/*==========================
      HISTORY
==========================*/

/*==========================
       HISTORY / TIMELINE
==========================*/
.history{padding:120px 0;background:#fff;}
.section-header{text-align:center;margin-bottom:80px;}
.section-tag{color:#e0b011;font-weight:700;letter-spacing:4px;}
.section-header h2{font-size:42px;margin:15px 0;}
.section-header p{max-width:700px;margin:auto;color:#666;line-height:1.8;}
.timeline{position:relative;width:1100px;max-width:94%;margin:auto;padding:20px 0;}
.timeline::before{content:"";position:absolute;left:50%;top:0;width:4px;height:100%;background:#ececec;transform:translateX(-50%);}
.timeline-progress{position:absolute;left:50%;top:0;width:4px;height:0;background:#e0b011;transform:translateX(-50%);transition:height .1s linear;z-index:1;}
.timeline-item{position:relative;display:flex;justify-content:space-between;align-items:center;gap:70px;min-height:360px;padding:70px 0;opacity:0;transform:translateY(70px);transition:opacity .8s ease,transform .8s ease;}
.timeline-item.show{opacity:1;transform:translateY(0);}
.timeline-content{width:46%;position:relative;z-index:3;}
.timeline-left .timeline-content{text-align:right;padding-right:30px;order:1;}
.timeline-right .timeline-content{text-align:left;padding-left:30px;order:2;}
.timeline-image{width:46%;position:relative;z-index:2;overflow:hidden;border-radius:18px;box-shadow:0 12px 35px rgba(0,0,0,.15);opacity:0;transition:opacity .9s ease .15s,transform .9s ease .15s,box-shadow .35s ease;}
.timeline-left .timeline-image{order:2;transform:translateX(90px);}
.timeline-right .timeline-image{order:1;transform:translateX(-90px);}
.timeline-item.show .timeline-image{opacity:1;transform:translateX(0);}
.timeline-image:hover{box-shadow:0 18px 45px rgba(0,0,0,.20);}
.timeline-image img{display:block;width:100%;height:320px;object-fit:cover;transition:transform .7s ease;}
.timeline-image:hover img{transform:scale(1.05);}
.timeline-dot{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:24px;height:24px;background:#e0b011;border:5px solid #fff;border-radius:50%;box-shadow:0 0 0 5px rgba(224,176,17,.12),0 0 18px rgba(224,176,17,.45);z-index:4;transition:transform .4s ease,box-shadow .4s ease;}
.timeline-item.show .timeline-dot{transform:translate(-50%,-50%) scale(1.08);box-shadow:0 0 0 8px rgba(224,176,17,.12),0 0 24px rgba(224,176,17,.55);}
.year{display:block;font-size:38px;font-weight:700;color:#e0b011;margin-bottom:10px;line-height:1;}
.timeline-content h3{font-size:27px;color:#1a252f;margin-bottom:12px;}
.timeline-content p{line-height:1.9;color:#666;font-size:17px;}
@media (max-width:900px){.timeline{width:94%;}.timeline-item{gap:35px;min-height:300px;}.timeline-content,.timeline-image{width:45%;}.timeline-image img{height:250px;}.year{font-size:32px;}.timeline-content h3{font-size:23px;}.timeline-content p{font-size:16px;}}
@media (max-width:768px){.history{padding:80px 0;}.section-header{margin-bottom:50px;}.section-header h2{font-size:32px;}.section-header p{padding:0 15px;font-size:15px;}.timeline{width:100%;max-width:100%;padding:10px 0 10px 42px;}.timeline::before,.timeline-progress{left:18px;transform:translateX(-50%);}.timeline-item{display:flex;flex-direction:column!important;align-items:stretch;gap:20px;min-height:auto;padding:50px 15px 60px;}.timeline-left .timeline-content,.timeline-right .timeline-content{order:1;width:100%;padding:0;text-align:left;}.timeline-left .timeline-image,.timeline-right .timeline-image{order:2;width:100%;transform:translateY(50px);}.timeline-item.show .timeline-image{transform:translateY(0);}.timeline-image img{height:230px;}.timeline-dot{left:18px;top:50px;width:20px;height:20px;}.timeline-item.show .timeline-dot{transform:translate(-50%,-50%) scale(1.05);}.year{font-size:32px;}.timeline-content h3{font-size:22px;}.timeline-content p{font-size:15px;line-height:1.8;}}
@media (max-width:480px){.history{padding:65px 0;}.section-header h2{font-size:28px;}.section-tag{font-size:13px;letter-spacing:3px;}.timeline{padding-left:36px;}.timeline::before,.timeline-progress{left:15px;}.timeline-dot{left:15px;}.timeline-item{padding-left:12px;padding-right:8px;}.timeline-image{border-radius:14px;}.timeline-image img{height:200px;}.year{font-size:29px;}}
.feature-section{
    padding:100px 8%;
    background:#f8f9fb;
}


.section-title span{
    width:6px;
    height:45px;
    background:#f2b400;
    border-radius:5px;
}

.section-title h2{
    font-size:48px;
    color:#12386b;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}

.feature-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.35s;
    display:flex;
    flex-direction:column;
    padding-bottom:30px;
}

.feature-card:hover{
    transform:translateY(-8px);
}

.feature-image{
    height:240px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.feature-image img{
    max-width:180px;
    max-height:180px;
    width:auto;
    height:auto;
    object-fit:contain;
}

.feature-card h3{
    margin:0 25px 15px;
    color:#12386b;
    font-size:28px;
}

.feature-card p{
    margin:0 25px;
    color:#666;
    line-height:1.8;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {

    .qr-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

}


@media (max-width: 600px) {

    .qr-section {
        margin-top: 50px;
        padding: 40px 18px 45px;
    }

    .qr-header {
        gap: 10px;
    }

    .qr-header h2 {
        font-size: 23px;
    }

    .qr-line {
        width: 30px;
    }

    .qr-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .qr-card {
        padding: 22px;
    }

    .qr-image {
        width: 170px;
        height: 170px;
    }

}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .qr-grid {
        grid-template-columns: 1fr;

        max-width: 650px;
    }

}


@media (max-width: 600px) {

    .qr-section {
        margin-top: 50px;

        padding:
            40px 18px
            45px;
    }

    .qr-header {
        gap: 10px;
    }

    .qr-header h2 {
        font-size: 23px;
    }

    .qr-line {
        width: 30px;
    }

    .qr-subtitle {
        font-size: 14px;

        margin-bottom: 28px;
    }

    .qr-card {
        flex-direction: column;

        text-align: center;

        padding: 25px 20px;

        gap: 18px;
    }

    .qr-image {
        width: 170px;
        height: 170px;
    }

    .qr-content {
        text-align: center;
    }

    .qr-icon {
        margin-left: auto;
        margin-right: auto;
    }

}
/* -----------------------------------------
/* ==========================================
   Footer
========================================== */

.footer{
    background:#1a252f;
    color:#ffffff;
    margin-top:80px;
}

.footer .container{
    padding:60px 0 25px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1.2fr 1fr;
    gap:45px;
}

.footer-column h3{
    color:#e0b011;
    margin-bottom:18px;
    font-size:20px;
}

.footer-column p{
    color:#d6d6d6;
    line-height:1.8;
    margin-bottom:10px;
}

/* Quick Links */

.footer-links{
    list-style:none;
    padding:0;
}

.footer-links li{
    margin-bottom:12px;
}

.footer-links a{
    color:#d6d6d6;
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover{
    color:#e0b011;
    padding-left:8px;
}

/* Social */

.footer-social{
    display:flex;
    gap:12px;
    margin-top:20px;
}

.footer-social a{

    width:42px;
    height:42px;

    border-radius:50%;

    background:#e0b011;

    color:#1a252f;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    transition:.3s;

}

.footer-social a:hover{

    background:#ffffff;

    transform:translateY(-3px);

}

.footer-bottom{

    margin-top:40px;

    border-top:1px solid rgba(255,255,255,.15);

    padding-top:20px;

    text-align:center;

    color:#bdbdbd;

    font-size:14px;

}
@media(max-width:992px){

.footer-grid{

    grid-template-columns:1fr 1fr;

}

}

@media(max-width:768px){

.footer-grid{

    grid-template-columns:1fr;

    text-align:center;

}

.footer-social{

    justify-content:center;

}

.footer-links{

    padding:0;

}

}
/* -----------------------------------------
   7. รองรับหน้าจอมือถือ (Responsive Design)
----------------------------------------- */
@media (max-width: 768px) {

    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
.hero-left h1,
.hero-left p,
.hero-left .btn{
    opacity:0;
    transform:translateY(40px);
    animation:fadeUp 1s ease forwards;
}

.hero-left p{
    animation-delay:.4s;
}

.hero-left .btn{
    animation-delay:.8s;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}/* รูปภาพเลื่อนเข้าจากด้านขวา */

.hero-right {
    opacity: 0;
    transform: translateX(60px);
    animation: slideRight 1.2s ease forwards;
    animation-delay: 0.8s;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.heroSwiper{
    width:100%;
    max-width:600px;      
    height:380px;      
    margin:0 auto;

    border-radius:20px;
    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

.heroSwiper img{
    width:100%;
    height:100%;

    object-fit:fill;
    object-position:center;
}

.swiper-button-next,
.swiper-button-prev{
    color:#ffffff;
}

.swiper-pagination-bullet{
    background:#ffffff;
}

.swiper-pagination-bullet-active{
    background:#ffd000;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
    margin-top:40px;
}

.product-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.productSwiper{
    width:100%;
    height: 550px;
    background:#f8f8f8;
}

.productSwiper img{
    width:100%;
    height:auto;
    object-fit:cover;
    padding:15px;
}

.product-info{
    padding:24px;
}

.product-info h3{
    font-size:24px;
    margin-bottom:12px;
}

.product-info p{
    font-size:16px;
    line-height:1.8;
}

@media(max-width:768px){

    .product-grid{
        grid-template-columns:1fr;
    }

}
.activity-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
    margin-top:40px;
}

.activity-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.activitySwiper{
    width:100%;
    height:400px;
    background:#f8f8f8;
}

.activitySwiper img{
    width:100%;
    height:auto;
    object-fit:fill;
    padding:15px;
}

.activity-info{
    padding:24px;
}

.activity-info h3{
    font-size:24px;
    margin-bottom:12px;
}

.activity-info p{
    font-size:16px;
    line-height:1.8;
}

@media (max-width:768px){
    .activity-grid{
        grid-template-columns:1fr;
    }
}
img{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none}