:root {
    --gold-light: #FDEEA3; 
    --gold-main: #F0C030;  
    --gold-dark: #C89A20;  
    
    --white: #ffffff;
    --off-white: #F8F9FA;  
    --text-dark: #2C2C2C;  
    --text-light: #666666; 
}

body {
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
}

header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(to right, #C89A20, #F0C030);
    padding: 8px 0;
    color: #ffffff;
    font-size: 0.85em;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto !important;
}

.contact-info-top span {
    margin-right: 20px;
    font-weight: 300;
}

.contact-info-top i, .social-top i {
    margin-right: 5px;
    color: #FDEEA3;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    position: relative; /* สำคัญสำหรับการวางเมนูมือถือ */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-icon {
    height: 60px;
    width: auto;
    border-radius: 0 !important;
    object-fit: contain !important;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none !important;
}

.logo-title {
    font-size: 1.6em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.title-dark {
    color: #333333 !important; 
}

.title-gold {
    color: #F0C030 !important; 
}

.logo-subtitle {
    font-size: 0.7em;
    font-weight: 600;
    color: #888888 !important; 
    letter-spacing: 1.5px;
    text-decoration: none !important;
}

/* =========================================
   ตั้งค่าปุ่ม 3 ขีด (ซ่อนในคอมพิวเตอร์)
   ========================================= */
#mobile-menu-btn {
    display: none; /* ซ่อนไว้ก่อน */
    font-size: 28px;
    color: var(--gold-dark);
    cursor: pointer;
    z-index: 1001;
}

/* =========================================
   จัดระเบียบแถบเมนูหลัก (ให้อยู่บรรทัดเดียวกัน)
   ========================================= */
.menu {
    display: flex !important;
    align-items: center;
    gap: 5px; 
}

.menu > a, 
.menu .dropdown > a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.menu > a:not(.contact-menu-btn)::after,
.menu .dropdown > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #F0C030;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu > a:not(.contact-menu-btn):hover::after,
.menu .dropdown:hover > a::after {
    width: 70%;
}

.menu > a:hover,
.menu .dropdown:hover > a {
    color: #C89A20;
}

/* =========================================
   สไตล์ Dropdown Menu 
   ========================================= */
.menu .dropdown {
    position: relative; 
    display: flex;
    align-items: center;
}

.menu .dropdown-content {
    visibility: hidden; 
    opacity: 0;
    position: absolute; 
    top: 100%; 
    left: 0;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.1);
    z-index: 9999; 
    border-top: 3px solid #F0C030;
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column; 
    padding: 5px 0;
    transition: all 0.3s ease;
    transform: translateY(10px); 
}

.menu .dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.menu .dropdown-content a {
    color: var(--text-dark);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    width: 100%; 
    box-sizing: border-box; 
    font-size: 0.95em;
    margin: 0; 
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    text-align: left; 
}

.menu .dropdown-content a:last-child {
    border-bottom: none;
}

.menu .dropdown-content a:hover {
    background-color: var(--off-white);
    color: #C89A20;
    padding-left: 25px; 
}

/* =========================================
   ปุ่มติดต่อเรา
   ========================================= */
.menu a.contact-menu-btn {
    border: 2px solid #F0C030;
    border-radius: 30px;
    padding: 8px 25px;
    color: #C89A20;
    margin-left: 15px;
    background: transparent;
    box-shadow: 0 4px 10px rgba(240, 192, 48, 0.15);
}

.menu a.contact-menu-btn:hover {
    background: linear-gradient(135deg, #F0C030, #C89A20);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(240, 192, 48, 0.45);
}

/* =========================================
   ส่วนอื่นๆ ของเว็บไซต์
   ========================================= */
.hero {
    background: linear-gradient(rgba(15, 15, 15, 0.75), rgba(15, 15, 15, 0.85)), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 150px 20px;
    text-align: center;
}

.hero h1 {
    background: linear-gradient(to bottom, #FDEEA3 0%, #F0C030 45%, #C89A20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    filter: drop-shadow(3px 3px 1px rgba(0, 0, 0, 0.9)) drop-shadow(5px 5px 8px rgba(0, 0, 0, 0.6));
}

.hero p {
    font-size: 1.3rem;
    color: #eaeaea; 
    font-weight: 300;
}

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

h1, h2, h3 {
    color: #C89A20;
}

.section-title {
    text-align: center;
    border-bottom: 2px solid #F0C030;
    display: inline-block;
    margin-bottom: 40px;
    padding-bottom: 10px;
    color: #C89A20;
    font-weight: bold;
    letter-spacing: 1px;
}

/* =========================================
   กล่องการ์ด (Card) สำหรับบริการ และ บทความ
   ========================================= */
.card {
    border: 1px solid #eee;
    border-top: 4px solid #F0C030;
    border-radius: 8px;
    padding: 40px 30px;
    margin-bottom: 20px;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06); 
    text-align: center;
}

.card i.fa-solid, .card i.fa-regular {
    font-size: 3em;
    color: #F0C030;
    margin-bottom: 20px;
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card:hover {
    box-shadow: 0 15px 30px rgba(240, 192, 48, 0.22);
    transform: translateY(-8px);
    border-top-color: #C89A20;
}

.card-footer {
    padding: 0 30px 25px 30px;
    margin-top: auto; 
}

.card-footer-inner {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 8px; 
    color: #888;
    font-size: 0.9em;
}

.post-date i {
    color: #C89A20;
    font-size: 1.1em !important; 
    margin-bottom: 0 !important;
    display: flex;
}

.read-more-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #C89A20;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.read-more-btn i {
    font-size: 1.1em !important;
    margin-bottom: 0 !important;
    color: inherit !important;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    color: #A67C15; 
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* =========================================
   ปุ่มทั่วไป
   ========================================= */
.btn {
    background: linear-gradient(135deg, #F0C030 0%, #C89A20 100%);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 30px; 
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(240, 192, 48, 0.35);
    border: none;
    margin-top: 20px;
}

.btn:hover {
    background: linear-gradient(135deg, #FDEEA3 0%, #F0C030 100%);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 192, 48, 0.55);
}

.btn-outline {
    background: transparent;
    color: #C89A20;
    border: 2px solid #F0C030;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 30px; 
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #F0C030 0%, #C89A20 100%);
    color: var(--white);
    box-shadow: 0 6px 15px rgba(240, 192, 48, 0.45);
    transform: translateY(-2px);
}

.hero-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; 
    margin-top: 35px;
    flex-wrap: wrap; 
}

.hero-btn-group .btn {
    width: auto !important; 
    min-width: 250px; 
    display: inline-block !important;
    margin: 0 !important;
    padding: 15px 25px;
}

/* =========================================
   Layout และ Footer
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.footer {
    background-color: var(--white);
    padding: 60px 0 0 0; 
    margin-top: 60px;
    border-top: 4px solid #F0C030; 
    color: var(--text-light); 
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr; 
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col p {
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-heading {
    color: #C89A20; 
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #F0C030;
}

.footer-contact-list, .footer-social-list, .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li, .footer-social-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.footer-contact-list i, .footer-social-list i {
    color: #F0C030; 
    font-size: 1.3em;
    margin-right: 15px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

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

.footer-bottom {
    background-color: var(--off-white);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #eaeaea;
    font-size: 0.9em;
    color: #888888;
}

.client-box {
    width: 200px; 
    height: 120px; 
    background: linear-gradient(135deg, #F0C030 0%, #C89A20 100%); 
    border: 1px solid #FDEEA3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--white) !important; 
    font-size: 1.3em; 
    box-shadow: 0 8px 15px rgba(240, 192, 48, 0.3); 
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none !important;
    flex-shrink: 1; 
}

.client-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(240, 192, 48, 0.55);
    filter: brightness(1.1); 
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast; 
    object-fit: cover; 
}

.service-img-large {
    width: 100% !important; 
    height: 480px !important; 
    object-fit: cover !important; 
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: #eee;
}

/* =========================================
   [ขั้นเด็ดขาด] บังคับปุ่มหน้าแรกสำหรับจอคอมพิวเตอร์
   ========================================= */
@media (min-width: 769px) {
    .hero .hero-btn-group {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        margin-top: 35px !important;
        flex-direction: row !important;
    }
    
    .hero .btn, 
    .hero .hero-btn-group .btn {
        width: auto !important;
        min-width: 250px !important;
        max-width: 320px !important;
        display: inline-block !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}

.page-header {
    background-size: cover;
    background-position: center center;
    background-color: rgba(0, 0, 0, 0.6); 
    background-blend-mode: multiply;
    padding: 80px 0;
    text-align: center;
    color: white; 
}

/* =========================================
   Mobile Responsive (จอขนาดเล็กกว่า 768px)
   ========================================= */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 1. จัด Top Bar ให้อยู่ตรงกลาง */
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .contact-info-top span {
        margin-right: 10px;
        display: inline-block;
        font-size: 0.9em;
    }

    /* 2. จัดบาร์โลโก้และปุ่ม 3 ขีด (โลโก้ซ้าย - ปุ่มขวาสุด) */
    nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 20px !important;
        position: relative;
    }

    .logo-icon {
        height: 45px !important;
    }
    
    .logo-title {
        font-size: 1.3em !important;
    }

    /* แสดงปุ่ม 3 ขีด */
    #mobile-menu-btn {
        display: block !important;
    }

    /* 3. ซ่อนเมนู และตั้งค่าให้เด้งลงมาเมื่อกด */
    .menu {
        display: none !important; /* ซ่อนเด็ดขาดถ้ายังไม่กด */
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 3px solid var(--gold-main);
        z-index: 1000;
    }

    /* เมื่อ JS เติมคลาส active จะแสดงเมนูออกมา */
    .menu.active {
        display: flex !important;
    }

    /* 4. จัดหน้าตาแต่ละลิงก์ในมือถือ */
    .menu > a, .menu .dropdown {
        width: 100% !important;
        box-sizing: border-box;
    }

    .menu > a, .menu .dropdown > a {
        display: block !important;
        padding: 15px 25px !important;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        text-align: left;
    }

    .menu > a::after, .menu .dropdown > a::after {
        display: none; 
    }

    /* 5. ตั้งค่าเมนูย่อย (บริการ) */
    .menu .dropdown-content {
        display: none !important; 
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        background-color: #f9f9f9 !important; 
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* แสดงเมนูย่อยเมื่อกด */
    .menu .dropdown.open .dropdown-content {
        display: block !important;
    }

    .menu .dropdown-content a {
        padding: 12px 25px 12px 40px !important; 
        border-bottom: 1px solid #eee;
    }

    /* 6. ปุ่มติดต่อเรา */
    .menu a.contact-menu-btn {
        margin: 20px auto !important;
        width: 85% !important;
        text-align: center !important;
        border-radius: 30px !important;
    }

    /* ส่วน Hero และอื่นๆ สำหรับมือถือ */
    .hero {
        padding: 80px 15px;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1em !important;
    }
    .service-img-large {
        height: 250px !important; 
    }
    .card img {
        height: 200px !important; 
    }
    div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    div[style*="flex: 1"], div[style*="flex: 1.5"] {
        min-width: 100% !important; 
        margin-bottom: 20px;
    }
    .client-box {
        width: 140px;
        height: 80px;
        font-size: 1em;
    }
    section {
        padding: 50px 15px !important;
    }
    h2.section-title {
        font-size: 1.5em;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }
    .client-box {
        width: 120px;
        height: 70px;
        font-size: 0.9em;
    }
}