  /* ================= Reset & Global ================= */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        body {
            background-color: #121212;
            color: #ffffff;
            overflow-x: hidden;
        }

        .app-container {
            display: flex;
            min-height: 100vh;
        }


        /* ================= Navigator (Left Sidebar) ================= */
        .sidebar {
            width: 250px;
            background-color: #1a1a1a;
            padding: 30px 20px;
            position: fixed;
            height: 100vh;
            left: 0;
            top: 0;
            transition: transform 0.3s ease-in-out;
            z-index: 100;
            border-right: 1px solid #333;
        }
        
        .sidebar h2 {
            color: #00d2ff;
            margin-top: 30px;
            margin-bottom: 20px;
            text-align: center;
        }
        .nav-menu {
            list-style: none;
        }
        .nav-menu li {
            margin-bottom: 20px;
        }
        .nav-menu a {
            color: #b3b3b3;
            text-decoration: none;
            font-size: 1rem;
            display: block;
            padding: 4px;
            border-radius: 8px;
            transition: all 0.2s;
        }
        .nav-menu a:hover, .nav-menu a.active {
            background-color: #333;
            color: #fff;
        }

        /* ================= Mobile Hamburger Menu ================= */
        .menu-toggle {
            display: none;
            position: fixed;
            top: 15px;
            left: 15px;
            z-index: 101;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            border: 1px solid #333;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            backdrop-filter: blur(5px);
        }

        /* ================= Main Content ================= */
        .main-content {
            margin-left: 250px;
            flex: 1;
            width: calc(100% - 250px);
        }

        /* ================= Header Image ================= */
        .header-hero {
            position: relative;
            background-image: url('img/cover1.webp');
            width: 100%;
            height: 400px;
            background-size: cover;
            background-position: center;
        }
        .header-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        .header-hero h1 {
            font-size: 3.5rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
        }
        .header-hero p {
            font-size: 1.2rem;
            color: #e0e0e0;
        }

        /* ================= Global Section Styles ================= */
        .content-section {
            padding: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .section-title {
            margin-bottom: 30px;
            font-size: 2rem;
            border-bottom: 2px solid #333;
            padding-top: 80px;
            padding-bottom: 10px;
            display: inline-block;
        }

        /* ================= Brand Logos Section ================= */
        .brands-wrapper {
            display: flex;
            flex-wrap: wrap; /* Desktop ให้ปัดบรรทัดใหม่เมื่อเต็ม */
            gap: 20px;
            justify-content: center;
        }
        .brand-circle {
            width: 90px;
            height: 90px;
            border-radius: 50%; /* ทำให้เป็นวงกลม */
            background-color: #ffffff;
            border: 2px solid #444;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            transition: transform 0.3s;
        }
        .brand-circle:hover {
            transform: scale(1.1); /* ขยายเมื่อเอาเมาส์ชี้ */
            border-color: #00d2ff;
        }
        .brand-circle img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* ตัดรูปให้เต็มวงกลมพอดี */
            /* หากโลโก้คุณเป็นพื้นหลังขาว ให้เปลี่ยนเป็น object-fit: contain; แทน */
        }

        /* ================= Portfolio Video Section ================= */
        .video-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }
        .video-card {
            position: relative;
            cursor: pointer;
            width: 100%;
            aspect-ratio: 9 / 16;
            background-color: #222;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0,0,0,0.5);
            transition: transform 0.3s;
        }
        .video-card:hover {
            transform: translateY(-5px);
        }
        .video-card iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        /* ภาพปกวิดีโอ */
        .video-poster {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 2;
            transition: opacity 0.3s ease;
        }

        /* ปุ่ม Play จำลองตรงกลางภาพปก */
        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            background-color: rgba(0, 0, 0, 0.6);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 4;
            cursor: pointer;
            pointer-events: none; /* ให้คลิกทะลุไปโดนตัวภาพปก */
        }

        .play-button::after {
            content: '';
            display: block;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 10px 0 10px 18px;
            border-color: transparent transparent transparent #ffffff;
            margin-left: 4px;
        }

        .video-card:hover .play-button {
            background-color: rgba(255, 0, 0, 0.8);
        }



        /* ================= Footer Section (เพิ่มใหม่) ================= */
        .site-footer {
            background-color: #0a0a0a; /* โทนสีแตกต่างจาก body เล็กน้อย (ดำสนิทขึ้น) */
            border-top: 1px solid #222;
            padding: 30px 40px;
            margin-top: auto; /* ดัน Footer ไปล่างสุดเสมอ */
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }
        .footer-text p {
            color: #999;
            font-size: 1rem;
        }
        .footer-socials {
            display: flex;
            gap: 15px;
        }
        .footer-socials a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: #1a1a1a;
            color: #fff;
            border-radius: 50%;
            text-decoration: none;
            transition: background-color 0.3s, transform 0.3s;
            border: 1px solid #333;
        }
        .footer-socials a:hover {
            background-color: #00d2ff;
            color: #121212;
            transform: translateY(-3px);
        }

        /* ================= Responsive Design ================= */
        
        /* Tablet: 2 คอลัมน์ หรือลดขนาด */
        @media (max-width: 1024px) {
            .video-grid {
                gap: 20px;
            }
            .header-hero h1 {
                font-size: 2.8rem;
            }
            .brand-circle {
                width: 80px;
                height: 80px;
            }
        }

        /* Phone: จัดเรียงแถวเดียว + Horizontal Scroll */
        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }
            .sidebar {
                transform: translateX(-100%);
            }
            .sidebar.open {
                transform: translateX(0);
            }
            .main-content {
                margin-left: 0;
                width: 100%;
            }
            .header-hero {
                height: 300px;
            }

            .content-section {
                padding: 20px 0;
            }
            .section-title {
                margin-left: 20px;
            }

            /* --- Logo Section บนมือถือ (แถวเดียวปัดขวา) --- */
            .brands-wrapper {
                flex-wrap: nowrap; /* ไม่ให้ปัดบรรทัดใหม่ */
                justify-content: flex-start;
                overflow-x: auto; /* เลื่อนแนวนอน */
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                padding: 10px 20px;
                gap: 15px;
            }
            .brand-circle {
                flex: 0 0 auto; /* ป้องกันไม่ให้วงกลมหดตัว */
                width: 70px;
                height: 70px;
                scroll-snap-align: center;
            }

            /* --- Video Section บนมือถือ (แถวเดียวปัดขวา) --- */
            .video-grid {
                display: flex;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                gap: 15px;
                padding: 10px 20px 40px 20px;
            }
            .video-card {
                flex: 0 0 75%;
                scroll-snap-align: center;
            }

            /* ซ่อน Scrollbar แนวนอน (ทั้ง Logo และ Video) */
            .brands-wrapper::-webkit-scrollbar,
            .video-grid::-webkit-scrollbar {
                display: none;
            }
            .brands-wrapper,
            .video-grid {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
        /* Footer บนมือถือ จัดเรียงกึ่งกลางเพื่อความสวยงาม */
            .site-footer {
                flex-direction: column;
                text-align: center;
                padding: 30px 20px;
            }
        }
