        
        /* Hero Section - ใช้ภาพพื้นหลังแบบ Animation (ปรับปรุงจากเดิม) */
        .hero-section {
            position: relative;
            background-image: url('/assets/img/home_background.png'); /* ใส่ชื่อไฟล์รูปของคุณ */
            background-size: 110%; /* ขยายรูปภาพเล็กน้อยเพื่อให้มีพื้นที่สำหรับเลื่อน */
            background-position: center center; /* ตำแหน่งเริ่มต้นที่กึ่งกลาง */
            color: white;
            padding: 100px 0;
            text-align: center;
            overflow: hidden;
            min-height: 600px;
            display: flex;
            align-items: center;
            justify-content: center;

            /* **ส่วนสำคัญของ Animation ที่เปลี่ยนไป** */
            animation: backgroundFloat 20s ease-in-out infinite alternate; /* ใช้ animation ที่กำหนดเอง */
        }

        /* Keyframes สำหรับ Animation ของพื้นหลัง */
        /* ปรับชื่อ keyframes และค่าให้เหมาะกับการเคลื่อนที่ของพื้นหลัง */
        @keyframes backgroundFloat {
            0%, 100% { background-position: 50% 50%; } /* Center */
            25% { background-position: 55% 45%; } /* เลื่อนไปขวาบนเล็กน้อย */
            50% { background-position: 45% 55%; } /* เลื่อนไปซ้ายล่างเล็กน้อย */
            75% { background-position: 55% 55%; } /* เลื่อนไปขวาล่างเล็กน้อย */
        }

        /* Overlay สำหรับ Filter พื้นหลัง (เหมือนเดิม) */
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* สีดำโปร่งแสง 50% */
            z-index: 1;
        }

        /* ทำให้เนื้อหา (h1, p, buttons) อยู่เหนือ overlay (เหมือนเดิม) */
        .hero-section .container {
            position: relative;
            z-index: 2;
            max-width: 1200px;
            padding: 20px;
        }

        /* ปรับแต่งข้อความและปุ่ม (เหมือนเดิม) */
        .hero-section h1 {
            color: var(--light2);
            font-size: 3.5em;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            margin-bottom: 20px;
        }

        .hero-section p {
            color: #f0f0f0;
            font-size: 1.3em;
            max-width: 800px;
            margin: 0 auto 30px auto;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        /* Why VOutlook Section */
        .why-voutlook {
            background-color: var(--light);
            padding: 60px 0;
            text-align: center;
        }


        .why-voutlook h2 {
            margin-bottom: 40px;
            position: relative;
            padding-bottom: 10px;
			/* add 20250605*/
			 color: var(--light2);
        }
        .why-voutlook h2::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: #007bff;
            border-radius: 2px;
        }
        
        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        .benefit-item {
            background-color: #f0f8ff; /* Light Blue BG */
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            text-align: left;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        [data-theme="dark"] .benefit-item {
            background: #334155;
            border-color: rgba(71, 85, 105, 0.5);
        }
        .benefit-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.12);
        }
        .benefit-item h3 {
            /*color: #007bff;*/
            color: var(--primary);
            font-size: 1.6em;
            margin-bottom: 10px;
        }
        
        .benefit-item p {
            font-size: 1.05em;
          /*  color: #555; */
		   color:var(--dark);
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--dark);
            position: relative;
        }

        .section-subtitle {
            text-align: center;
            font-size: 1.2rem;
            color: #64748b;
            margin-bottom: 4rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Service Preview */
        .services-preview {
            padding: 6rem 0;
            background-color: var(--light);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .service-card {
            background-color: var(--light);
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        }

        .service-card.si {
            border-left-color: #667eea;
        }

        .service-card.dev {
            border-left-color: #f093fb;
        }

        .service-card.consulting {
            border-left-color: #4facfe;
        }

        .service-card.security {
            border-left-color: #43e97b;
        }

        .service-name {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }

        .service-description {
            color: #64748b;
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .service-features {
            list-style: none;
        }

        .service-features li {
            margin-bottom: 0.5rem;
            padding-left: 1.2rem;
            position: relative;
            color: #64748b;
            font-size: 0.9rem;
        }

        .service-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--success);
            font-weight: bold;
        }

        .view-more {
            text-align: center;
            margin-top: 3rem;
        }

        /* News Section */
        .news {
            padding: 6rem 0;
        }

        [data-theme="dark"] .news {
            background: #334155;
        }

        .news-grid {
            display: grid;
            grid-auto-flow: column; /* Allows horizontal flow */
            grid-auto-columns: minmax(350px, 1fr); /* Each column is at least 350px, but flexes */
            gap: 2rem;
            overflow-x: auto; /* Enable horizontal scrolling */
            scroll-snap-type: x mandatory; /* Smooth snapping to cards */
            -webkit-overflow-scrolling: touch; /* Better scrolling on iOS */
            padding-bottom: 1rem; /* Space for scrollbar */
            scroll-behavior: smooth; /* Smooth scrolling for JS navigation */
            max-width: 100%; /* Ensure it doesn't overflow container */
            margin-bottom: 2rem; /* Space below news grid */
        }

        .news-card {
            background-color: var(--light);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            scroll-snap-align: start; /* Snap to start of card */
            flex-shrink: 0; /* Prevent cards from shrinking */
            width: 350px; /* Fixed width for consistent card size */
        }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        }

        .news-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--light);
        }

        .news-content {
            padding: 2rem;
        }

        .news-date {
            color: #64748b;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .news-title {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--dark);
            font-weight: 600;
            line-height: 1.4;
        }

         .news-excerpt {
            color: #64748b;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .read-more {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
        }

        .read-more:hover {
            color: var(--primary-dark);
        }

        .news-navigation {
            text-align: center;
            margin-top: 1rem;
        }
        .news-navigation button {
            background-color: var(--primary);
            color: var(--light);
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            margin: 0 5px;
            font-size: 1.2rem;
            transition: background-color 0.3s;
        }
        .news-navigation button:hover {
            background-color: var(--primary-dark);
        }

        @media (max-width: 768px) {
            .features-grid, .news-grid {
                grid-template-columns: 1fr;
                grid-auto-flow: row; /* Change to row for mobile */
                overflow-x: visible; /* Disable horizontal scrolling on mobile */
                scroll-snap-type: none;
            }

            .hero-section {
                min-height: 400px;
                padding: 60px 0;
                background-size: 130%; /* อาจต้องขยายรูปภาพมากขึ้นสำหรับ mobile */
                animation: backgroundFloatMobile 20s ease-in-out infinite alternate; /* ใช้ animation ที่ปรับสำหรับ mobile */
            }

            /* Keyframes สำหรับ Mobile ถ้าต้องการให้ต่างกัน */
            @keyframes backgroundFloatMobile {
                0%, 100% { background-position: 50% 50%; }
                25% { background-position: 52% 48%; }
                50% { background-position: 48% 52%; }
                75% { background-position: 52% 52%; }
            }

            .hero-section h1 {
                font-size: 2em;
            }

            .hero-section p {
                font-size: 1em;
                padding: 0 15px;
            }

            .hero-section .hero-buttons {
                flex-direction: column;
                gap: 10px;
            }
            
            .news-card {
                width: auto; /* Allow cards to take full width on mobile */
            }

           
            .section-title {
                font-size: 2rem;
            }

            .feature-card, .service-card {
                padding: 2rem;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .news-navigation {
                display: none; /* Hide navigation buttons on small screens */
            }
        }

        @media (max-width: 500px) {
            .services-grid, .features-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .feature-card, .service-card {
                margin: 0 0.5rem;
            }
        }
		
		 .news-image {
    width: 100%;
    height: 200px; /* กำหนดความสูงที่ต้องการ */
    overflow: hidden; /* ซ่อนส่วนเกินของรูปภาพหากรูปภาพใหญ่กว่าพื้นที่ที่กำหนด */
    border-radius: 8px 8px 0 0; /* เพิ่มถ้าต้องการให้มุมโค้งมน */
    display: flex;
    align-items: center;
    justify-content: center;
    /* ลบคุณสมบัติเหล่านี้ออก:
    background: linear-gradient(45deg, #667eea, #764ba2);
    font-size: 3rem;
    color: var(--light);
    */
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}