
/* =========================================
   [1] GLOBAL STYLES (สี, ฟอนต์หลัก)
   ========================================= */

body { 
    font-family: 'Kanit', sans-serif; 
    -webkit-font-smoothing: antialiased;
    background-color: #f8f9fa; 
}

.custom-logo{
    font-family: 'Kanit', sans-serif;
    font-size: 1.4rem;      /* ปรับขนาดตามต้องการ */
    font-weight: 600;       /* ความหนาที่ดูพรีเมียมแต่ไม่แข็งทื่อ */
    letter-spacing: 1px;    /* ระยะห่างตัวอักษรให้ดูโปร่ง */
    text-transform: uppercase;
    /* ใส่เงาให้ดูนุ่มนวล (ละมุน ไม่คมแข็ง) */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s ease;
}

/* =========================================
   [2] Nav menu header (สี, ฟอนต์หลัก)
   ========================================= */


.brand-top {
    color: #ed1d24; 
}

.brand-star {
    color: #233c94;
}

.brand-trading {
    color: #233c94;
}


.navbar-brand { 
    font-weight: 600; 
    letter-spacing: 1px; 
}

.navbar-brand img {
    max-width: 50;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img{
    transform: scale(1.09);
}


.navbar-nav .nav-link{
    font-weight: 400;       /* ความหนาระดับพอดี ไม่หนาจนแข็ง */
    letter-spacing: 0.5px;  /* เพิ่มระยะห่างตัวอักษรเล็กน้อยให้ดูโปร่ง */
    padding: 8px 15px !important;
    transition: all 0.3s ease; /* ทำให้เวลาเอาเมาส์ชี้ สีจะค่อยๆ เปลี่ยนแบบสมูท */
    font-size: 1.05rem;     /* ขนาดกำลังดีสำหรับเมนู */
    
}

.navbar-nav .nav-link:hover {
    color: #f7b902 !important; /* สีเหลืองทองที่คุณเลือก */
    transform: translateY(-2px); /* ให้เมนูยกขึ้นเล็กน้อยแบบนุ่มนวล */
}


.custom-nav{
    background: linear-gradient(  #f5c842 ,#f0bb1e , #f7b902) !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
   /*background-color: #ffc107 !important;  เปลี่ยนรหัสสีที่ต้องการตรงนี้ */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* เพิ่มเงาให้ดูมีมิติ */
}

/* ถ้าอยากเปลี่ยนสีตัวหนังสือในเมนู */
.custom-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

/* เปลี่ยนสีเวลาเอาเมาส์ไปชี้ (Hover) */
.custom-nav .nav-link:hover {
    color: #a58704 !important; /* เปลี่ยนเป็นสีเหลืองเวลาชี้ */

}

/* ปรับแต่ง Dropdown List ให้เป็นพื้นหลังสีขาว */
.dropdown-menu {
    background-color: #f7b902 !important; /* พื้นหลังสีขาวบริสุทธิ์ */
     /*border: 1px solid #dee2e6;          เส้นขอบสีเทาอ่อนบางๆ */
    border-top: 3px solid #f7b902 !important; /* เส้นสีทองด้านบนเพื่อความสวยงาม */
    border-radius: 4px;                  /* มนเล็กน้อย */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* ใส่เงาฟุ้งๆ ให้ดูมีมิติเหนือพื้นหลัง */
    padding: 8px 0;
}

/* ปรับสีตัวหนังสือในรายการเมนูให้เป็นสีเข้ม (เพื่อให้เห็นบนพื้นขาว) */
.dropdown-item {
    color: #ffffff !important; 
    font-family: 'Kanit', sans-serif;
    padding: 10px 20px;
}


/* 1. สีตอนที่กำลังกดเม้าส์ลงไป (Active) */
.dropdown-item:active {
    background-color: #f7b902 !important; 
    color: #a58704 !important;           
}

/* 2. สีของเมนูที่ถูกเลือกอยู่ (ในกรณีที่เป็นหน้าปัจจุบัน) */
.dropdown-item.active {
    background-color: #f7b902 !important;
    color: #a58704 !important;
}

/* 3. ลบเส้นขอบสีฟ้า (Focus Outline) ที่น่ารำคาญเวลาคลิก */
.dropdown-item:focus {
    background-color: #f0bb1e; /* สีเทาอ่อนๆ ตอนโฟกัส */
    color: #f7b902;
    outline: none;
    box-shadow: none;
}

.category-card {
    transition: transform 0.3s;
    cursor: pointer;
    border: none;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-icon { 
    font-size: 3rem; 
    color: #ffc107; 
    margin-bottom: 15px; 
}

/* บังคับให้ Dropdown แสดงเมื่อ Hover บนหน้าจอคอมพิวเตอร์ */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0; 
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.3s ease;
    }
}

/* =========================================
   [3] Hero Section(สี, ฟอนต์หลัก)
   ========================================= */

.hero-split {
    background-color: #ffffff;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px 0;
}

.hero-container {
    display: flex;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    align-items: center;
    gap: 20px;
}

.hero-content-left {
    flex: 1;
    padding: 0 5% 0 8%;
}

.hero-badge {
    color: #BF953F;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-main-title {
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    color: #333;
    margin-bottom: 30px;
}

.hero-main-title span { color: #BF953F; }

.hero-desc {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 50px;
}

/* ปุ่ม */
.hero-btn-group { display: flex; gap: 20px; }

.btn-gold-solid, .btn-gold-outline {
    padding: 18px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    border: 2px solid #BF953F;
    display: inline-block;
}

.btn-gold-solid { background: #BF953F; color: #fff; box-shadow: 0 10px 20px rgba(191,149,63,0.2); }
.btn-gold-solid:hover { background: #a67f35; border-color: #a67f35; transform: translateY(-3px); }

.btn-gold-outline { background: transparent; color: #BF953F; }
.btn-gold-outline:hover { background: #BF953F; color: #fff; transform: translateY(-3px); }

/* สไลเดอร์ฝั่งขวา */
.hero-slider-right {
    flex: 1;
    min-width: 0;
    height: 620px;
    padding-right: 5%;
}

.hero-main-slider {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0); /* เปิด Hardware Acceleration */
    will-change: transform, opacity; /* บอก Browser ให้เตรียมตัวทำแอนิเมชัน */
}

.hero-main-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 50px;
}

.slide-cat-name {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-left: 5px solid #BF953F;
    padding-left: 20px;
    text-transform: uppercase;
}

/* Pagination */
.hero-main-slider .swiper-pagination-bullet-active {
    background: #BF953F !important;
    width: 30px;
    border-radius: 10px;
}

/* --- ปรับแต่งปุ่มลูกศร (Navigation Arrows) --- */
.hero-main-slider .swiper-button-next,
.hero-main-slider .swiper-button-prev {
    color: #ffffff; /* สีลูกศร */
    background: rgba(191, 149, 63, 0.3); /* พื้นหลังสีทองจางๆ */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* เพิ่มความเบลอให้ดูแพง */
}

/* ปรับขนาดหัวลูกศรให้เล็กลงดู Minimal */
.hero-main-slider .swiper-button-next::after,
.hero-main-slider .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* เอฟเฟกต์ตอนเอาเมาส์ไปชี้ */
.hero-main-slider .swiper-button-next:hover,
.hero-main-slider .swiper-button-prev:hover {
    background: #BF953F;
    color: #ffffff;
    transform: scale(1.1);
}

/* บังคับให้ตัวสไลด์แต่ละหน้ากว้างเท่ากับกรอบแม่ 100% */
.hero-main-slider .swiper-slide {
    width: 100% !important; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* ตัดส่วนเกินที่อาจจะแลบออกมา */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* บังคับรูปภาพ */
.hero-main-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ให้รูปเต็มพื้นที่โดยไม่เสียสัดส่วน */
    display: block;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ป้องกันความกว้างของ swiper-wrapper คำนวณผิด */
.hero-main-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.hero-main-slider .swiper-button-next, 
.hero-main-slider .swiper-button-prev {
    z-index: 999 !important; /* มั่นใจว่าอยู่เหนือทุกรูปแน่นอน */
    pointer-events: auto !important;
}


/* Responsive */
@media (max-width: 1024px) {
    .hero-container { flex-direction: column; }
    .hero-slider-right { width: 90%; height: 500px; padding-right: 0; }
    .hero-content-left { text-align: center; padding: 40px 20px; }
    .hero-btn-group { justify-content: center; }
}


/* =========================================
   [4] Hero Section(สี, ฟอนต์หลัก)
   ========================================= */

.activities-section {
    padding: 100px 0;
    background-color: #FAFAFA; /* พื้นหลังเทาอ่อนสว่าง */
}

.activities-title {
    color: #706C61; /* สีละมุนสว่าง */
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.title-line-gold {
    width: 60px;
    height: 2px;
    background: #BF953F; /* สีทองพรีเมียม */
    margin: 20px auto;
}

.activities-subtitle {
    color: #A19D94;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* --- Card & Slider --- */
.activity-card {
    background: #FFFFFF;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.4s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-slider-box {
    width: 100%;
    height: 320px; /* ขนาดรูปที่แนะนำสัดส่วนประมาณ 1024x768 */
    position: relative;
}

.activity-slider-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Body Content --- */
.activity-body {
    padding: 35px;
}

.activity-tag {
    color: #BF953F;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.activity-body h3 {
    color: #4A4A4A;
    margin: 15px 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.activity-body p {
    color: #777777;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* --- Navigation Buttons (Arrows) --- */
.act-arrow {
    z-index: 100 !important;      /* ดันมาข้างหน้าสุด */
    cursor: pointer !important;   /* เปลี่ยนเมาส์เป็นรูปมือ */
    pointer-events: auto !important; /* มั่นใจว่ารับแรงกดได้ */
    color: #FFFFFF !important;
    background: rgba(112, 108, 97, 0.3); /* สีเทาละมุนโปร่งแสง */
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.act-arrow:after {
    font-size: 16px !important;
    font-weight: bold;
}

.act-arrow:hover {
    background: rgba(191, 149, 63, 0.9); /* สีทองเมื่อชี้ */
}

/* --- Pagination --- */
.swiper-pagination-bullet-active {
    background: #BF953F !important;
}

@media (max-width: 768px) {
    .activities-title { font-size: 1.8rem; }
    .activity-slider-box { height: 250px; }
}


/* =========================================
   [5] Categories Section(สี, ฟอนต์หลัก)
   ========================================= */

.categories-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.cat-title {
    color: #706C61; /* สีสว่างละมุน */
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gold-line {
    width: 50px;
    height: 2px;
    background: #BF953F; /* สีทอง */
    margin: 20px auto;
}

.cat-subtitle {
    color: #A19D94;
    margin-bottom: 60px;
}

/* --- Grid Layout (7 Items) --- */
.cat-grid {
    display: grid;
    /* แบ่งจอใหญ่เป็น 4 คอลัมน์ */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* จัดให้แถวที่ 2 (ชิ้นที่ 5-7) อยู่กึ่งกลางสวยๆ */
@media (min-width: 992px) {
    .cat-card:nth-child(n+5) {
        grid-column: span 1;
    }
    .cat-grid {
        /* ใช้ Flex สำหรับจัดกึ่งกลางแถวสุดท้าย */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .cat-card {
        flex: 0 0 calc(25% - 30px); /* ขนาด 1/4 ของพื้นที่ */
        min-width: 250px;
    }
}

/* --- Card Style --- */
.cat-card {
    background: #ffffff;
    border: 1px solid #F0F0F0;
    border-radius: 25px;
    padding: 45px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

/* --- Icon Style --- */
.cat-icon {
    font-size: 2.8rem;
    color: #706C61;
    height: 80px; /* ล็อคความสูงโซนไอคอน */
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

/* --- Info Style --- */
.cat-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4A4A4A;
    letter-spacing: 1px;
    margin-bottom: 15px;
    
    /* ล็อคความสูงชื่อหมวดหมู่ให้ตรงกันทุกใบ */
    min-height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.cat-info p {
    font-size: 0.85rem;
    color: #A19D94;
    line-height: 1.6;
    margin: 0;
}

/* --- Hover Effect --- */
.cat-card:hover {
    transform: translateY(-10px);
    border-color: #BF953F;
    box-shadow: 0 20px 40px rgba(191, 149, 63, 0.1);
}

.cat-card:hover .cat-icon {
    color: #BF953F;
    transform: scale(1.15);
}

/* --- Responsive (Mobile) --- */
@media (max-width: 991px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr); /* จอกลาง-เล็ก แถวละ 2 */
    }
    .cat-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .cat-grid {
        grid-template-columns: 1fr; /* มือถือเล็ก แถวละ 1 */
    }
}

/* =========================================
   [5] footer Section(สี, ฟอนต์หลัก)
   ========================================= */
.main-footer {
    background-color: #4A4A4A; /* สีเทาเข้มขรึม */
    color: #FFFFFF;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-logo-img {
    height: 50px;
    margin-bottom: 25px;
    /* filter: brightness(0) invert(1);  */
}

.footer-about {
    color: #D1D1D1;
    line-height: 1.8;
    margin-bottom: 25px;
    padding-right: 30px;
}

.footer-title {
    color: #BF953F; /* สีทอง */
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    letter-spacing: 1px;
}

/* เส้นใต้หัวข้อเล็กๆ */
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: #BF953F;
}

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

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

.footer-links li a {
    color: #D1D1D1;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Contact Info Style */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #D1D1D1;
    line-height: 1.5;
}

.contact-info i {
    color: #BF953F;
    margin-top: 5px;
}

/* Social Icons */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: #BF953F;
    transform: translateY(-3px);
}

/* Divider & Bottom */
.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 40px 0 20px;
}

.footer-bottom p {
    color: #A19D94;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* =========================================
   [6] About Us (สี, ฟอนต์หลัก)
   ========================================= */

/* --- About Us Page Exclusive CSS --- */

/* ส่วนของการคลุมเนื้อหาทั้งหมด */
.about-section {
    background-color: #fcfcfc;
    overflow: hidden;
}

/* สีหัวข้อหลัก #a58704 */
.about-section .main-title {
    color: #a58704;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-section .subtitle {
    color: #666;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ขีดเส้นใต้หัวข้อ */
.title-line {
    width: 80px;
    height: 4px;
    background-color: #a58704;
    margin-bottom: 30px;
}

/* ตกแต่งรายการข้อมูลบริษัท */
.company-info-list {
    margin-bottom: 25px;
}

.info-item {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-item .label {
    font-weight: 700;
    color: #333;
    margin-right: 10px;
}

.info-item .value {
    color: #555;
}

/* กรอบรูปภาพและลูกเล่น Zoom */
.about-image-zoom-frame {
    overflow: hidden; /* สำคัญ: เพื่อไม่ให้รูปล้นขอบตอนขยาย */
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.about-image-zoom-frame img {
    transition: transform 0.5s ease; /* หน่วงเวลาตอนขยาย */
    width: 100%;
}

/* เมื่อเอาเมาส์วาง หรือคลิก (Active) ให้รูปขยายเล็กน้อย */
.about-image-zoom-frame:hover img,
.about-image-zoom-frame:active img {
    transform: scale(1.08); /* ขยายขึ้น 8% */
}

/* ส่วนของผู้บริหาร (Highlight Box) */
.executive-highlight-box {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    border-left: 8px solid #a58704;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.quote-container {
    font-style: italic;
    font-size: 1.25rem;
    color: #555;
    border-left: 3px solid #ddd;
    padding-left: 20px;
    margin: 20px 0;
}

.ceo-name {
    color: #333;
    font-weight: 700;
    margin-bottom: 0;
}

.ceo-position {
    color: #a58704;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}
/* เอฟเฟกต์สำหรับรูปภาพที่เป็นลายเส้นหรือกราฟิก */
.about-page-wrapper .glass-effect {
    background: linear-gradient(135deg, rgba(247, 185, 2, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 30px;
    border: 1px solid rgba(247, 185, 2, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-page-wrapper .img-overlay-gold {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(247, 185, 2, 0.1) 0%, transparent 80%);
    pointer-events: none;
}

/* ปรับให้รูปภาพขยับเบาๆ ดูมีชีวิต */
.about-page-wrapper .about-image-zoom-frame:hover img {
    transform: scale(1.05) rotate(1deg);
}