        @import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;700&display=swap');

        body {
            margin: 0;
            padding: 0;
            font-family: 'Sarabun', sans-serif;
            background-color: #f5f5f5;
        }

        /* แถบเมนูสีขาวหลัก */
        .white-header {
            background-color: #ffffff;
            width: 100%;
            height: 60px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #e0e0e0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            position: relative; /* สำคัญสำหรับการวางตำแหน่งเมนูย่อย */
            z-index: 1000;
        }

        .nav-container {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-brand {
            font-size: 22px;
            font-weight: bold;
            color: #333;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 5px; /* ลด gap เพื่อให้จัดการเมนูง่ายขึ้น */
        }

        /* ตกแต่งปุ่มเมนูหลัก */
        .nav-item {
            text-decoration: none;
            color: #444;
            font-size: 15px;
            font-weight: 500;
            padding: 18px 15px; /* เพิ่มพื้นที่คลิก */
            cursor: pointer;
            transition: 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .nav-item:hover {
            background-color: #f9f9f9;
            color: #000;
        }

        /* จัดการระบบ Dropdown */
        .dropdown {
            position: relative; /* เพื่อให้เมนูย่อยอ้างอิงตำแหน่งกับปุ่มนี้ */
        }

        /* กล่องเมนูย่อย (สีดำตามรูปที่พี่ส่งมา) */
        .dropdown-content {
            display: none; /* ปกติซ่อนไว้ */
            position: absolute;
            top: 100%; /* ให้เด้งลงมาข้างล่างพอดี */
            left: 0;
            background-color: #1a1a1a; /* สีดำเข้ม */
            min-width: 200px;
            box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
            border-radius: 4px;
            padding: 10px 0;
            z-index: 9999;
        }

        /* รายการในเมนูย่อย */
        .dropdown-content a {
            color: white;
            padding: 12px 20px;
            text-decoration: none;
            display: block;
            font-size: 14px;
            transition: 0.2s;
        }

        .dropdown-content a:hover {
            background-color: #333; /* สีเวลาเอาเมาส์ชี้ในเมนูย่อย */
        }

        /* เมื่อเอาเมาส์ชี้ที่ .dropdown ให้แสดง .dropdown-content */
        .dropdown:hover .dropdown-content {
            display: block;
        }

        .search-icon {
            margin-left: 15px;
            cursor: pointer;
            font-size: 18px;
        }

        .arrow {
            font-size: 10px;
            color: #888;
        }
        * { font-family: 'Prompt', sans-serif; }
    
    .gradient-bg {
      background: linear-gradient(135deg, #ffe8ff 0%, #ffebff 50%, #ffe0ff 100%);
    }
    
    .glass-card {
      background: rgba(255, 182, 193, 0.08);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 192, 203, 0.2);
    }
    
    .glow-border {
      box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.05);
    }
    
    .live-pulse {
      animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }
    
    .ticker-scroll {
      animation: ticker 30s linear infinite;
    }
    
    @keyframes ticker {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    
    .memorial-overlay {
      background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    }
    
    .aqi-good { background: linear-gradient(135deg, #00e400, #00c400); }
    .aqi-moderate { background: linear-gradient(135deg, #ffff00, #cccc00); color: #333; }
    .aqi-unhealthy-sensitive { background: linear-gradient(135deg, #ff7e00, #cc6500); }
    .aqi-unhealthy { background: linear-gradient(135deg, #ff0000, #cc0000); }
    .aqi-very-unhealthy { background: linear-gradient(135deg, #8f3f97, #6b2f71); }
    .aqi-hazardous { background: linear-gradient(135deg, #7e0023, #5c001a); }
    
    .scroll-container::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    .scroll-container::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.1);
      border-radius: 3px;
    }
    .scroll-container::-webkit-scrollbar-thumb {
      background: rgba(59, 130, 246, 0.5);
      border-radius: 3px;
    }
  body { box-sizing: border-box; }    :root {
        --g-start: #D4AF37;
        --g-mid: #fdfc86;
        --g-end: #9a7b11;
        --bg-color: #ffffff;
        --slogan-color: #000000;
        --footer-pink: #fcefff; 
    }

    .societics-footer {
        background-color: var(--footer-pink);
        padding: 40px 20px;
        font-family: 'Prompt', sans-serif;
        user-select: none;
    }

    .footer-top {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: 0 auto 40px auto;
        gap: 20px;
        text-align: left;
    }

    .col-info { flex: 1; min-width: 300px; }
    .col-center { flex: 1; min-width: 250px; text-align: center; }
    .col-links { flex: 1; min-width: 250px; }

    .memorial-box {
        background: white;
        padding: 20px;
        border-radius: 15px;
        border: 1px solid #ddd;
        display: inline-block;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .policy-links a {
        text-decoration: none;
        color: #333;
        display: block;
        margin-bottom: 12px;
        transition: all 0.3s ease;
        font-size: 0.95em;
    }
    .policy-links a:hover { 
        color: var(--g-end); 
        padding-left: 5px;
        font-weight: 500;
    }

    /* Banner Animation Section */
    .main-container {
        background-color: var(--bg-color);
        padding: 80px 20px;
        text-align: center;
        position: relative;
        overflow: hidden;
        border-radius: 2rem;
        z-index: 10;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .thailand-bg {
        position: absolute;
        bottom: 0; left: 0; width: 100%; height: 80%;
        object-fit: cover; opacity: 0.8;
        z-index: 1; pointer-events: none;
        filter: sepia(0.3) contrast(1.1) brightness(0.9);
    }

    .sun-box {
        position: absolute; top: 10%; right: 15%;
        width: clamp(60px, 12vw, 120px);
        height: clamp(60px, 12vw, 120px);
        z-index: 2; animation: sunFloat 6s infinite ease-in-out;
    }

    @keyframes sunFloat {
        0%, 100% { transform: translateY(0) scale(1); }
        50% { transform: translateY(-15px) scale(1.05); }
    }

    .brand-wrapper {
        display: flex; justify-content: center;
        gap: clamp(2px, 1vw, 8px);
        margin-bottom: 25px; position: relative; z-index: 10; flex-wrap: wrap;
    }

    .letter {
        display: inline-block;
        font-size: clamp(2rem, 8vw, 4.5rem);
        font-weight: 700;
        text-transform: uppercase;
        background: linear-gradient(120deg, var(--g-start), var(--g-mid), var(--g-end), var(--g-start));
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        cursor: pointer;
        animation: shine 4s linear infinite;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .letter:hover { transform: translateY(-20px) scale(1.2); -webkit-text-fill-color: #fff68f; }

    @keyframes shine { to { background-position: 200% center; } }

    .animated-line {
        width: 200px; height: 3px; background: rgba(0,0,0,0.05);
        margin: 0 auto; position: relative; overflow: hidden; z-index: 10;
    }

    .animated-line::after {
        content: ''; position: absolute; left: -100%; width: 100%; height: 100%;
        background: var(--g-start); animation: lineFlow 3s infinite ease-in-out;
    }

    @keyframes lineFlow { 0% { left: -100%; } 100% { left: 100%; } }

    .slogan {
        color: var(--slogan-color);
        font-size: clamp(0.8rem, 1.5vw, 1.1rem);
        font-weight: 500;
        letter-spacing: 5px;
        margin-top: 25px;
        text-transform: uppercase;
        position: relative; z-index: 10;
    }
        /* รีเซ็ตพื้นหลังให้โปร่งใส เพื่อให้ไม่กวนหน้าเว็บหลัก */
        html, body { margin: 0; padding: 0; height: 100%; width: 100%; background: transparent; overflow: hidden; font-family: 'Prompt', sans-serif; }

        #chat-widget {
            position: fixed;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            z-index: 999999;
        }

        #chat-window {
            display: none; 
            width: 330px; 
            height: 500px; 
            background: white; 
            border-radius: 16px; 
            flex-direction: column; 
            box-shadow: 0 12px 40px rgba(0,0,0,0.15); 
            overflow: hidden; 
            margin-bottom: 15px;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .header { background: #4285F4; color: white; padding: 15px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
        
        /* โซนไอขุนทรัพย์ ประจำสถานี */
        .khun-zone {
            background: #fff5f0;
            padding: 10px 15px;
            border-bottom: 1px solid #ffe0d0;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 12px;
            color: #d35400;
        }

        /* ปรับปรุงหน้า Login ให้ดูพรีเมียม */
        #login-view {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 30px;
            text-align: center;
            background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
        }

        .login-logo { width: 60px; height: 60px; background: #4285F4; border-radius: 12px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; font-weight: bold; box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3); }

        .btn-google {
            display: flex;
            align-items: center;
            gap: 12px;
            background: white;
            color: #5f6368;
            border: 1px solid #dadce0;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
            font-family: 'Prompt';
        }
        .btn-google:hover { background: #f8f9fa; border-color: #d2d4d7; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transform: translateY(-1px); }

        #messages { flex: 1; padding: 15px; overflow-y: auto !important; background: white; display: flex; flex-direction: column; }
        #messages::-webkit-scrollbar { width: 5px; }
        #messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

        .input-area { padding: 12px; border-top: 1px solid #f1f3f4; display: flex; gap: 8px; background: white; }
        input { flex: 1; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 10px; outline: none; background: #f8f9fa; font-family: 'Prompt'; font-size: 13px; }
        input:focus { border-color: #4285F4; background: white; }
        button.send-btn { background: #4285F4; color: white; border: none; padding: 10px 18px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; }

        .toggle-btn {
            width: 60px; height: 60px; border-radius: 30px; background: #4285F4; color: white; 
            border: none; cursor: pointer; font-size: 28px; box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
            display: flex; align-items: center; justify-content: center; transition: transform 0.2s;
        }
        .toggle-btn:hover { transform: scale(1.05); }
    body
{
   background-color: #FFFFFF;
   color: #000000;
   font-family: Arial;
   font-weight: normal;
   font-size: 16px;
   line-height: 1.1875;
   margin: 0;
   padding: 0;
}
