/* ==========================================================================
   1. RESET & BASE STYLES (ตั้งค่าเริ่มต้นและฟอนต์)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: #0b0f19; /* พื้นหลังสีมืด-เกือบดำ ล้อตามหน้าแรกของคุณ */
    color: #ffffff;
    min-height: 100vh;
    padding-top: 80px; /* เว้นระยะด้านบนไม่ให้โดน Navbar ทับ */
    overflow-x: hidden;
}




/* ตั้งค่ากรอบของลิงก์โลโก้ให้อยู่กึ่งกลาง */
.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ควบคุมขนาดรูปโลโก้ไม่ให้ล้นแถบเมนู */
.navbar-logo img {
    height: 70px; /* สามารถเพิ่ม-ลดตัวเลขนี้เพื่อให้โลโก้ใหญ่หรือเล็กลงได้ */
    width: auto; 
    object-fit: contain;
    display: block;
}




.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: 100px; /* เพิ่มระยะห่างจากขอบจอซ้าย 20 พิกเซล (ปรับตัวเลขได้ตามต้องการ) */
}



/* ==========================================================================
   2. NAVIGATION BAR (แถบเมนูด้านบน)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(253, 253, 253, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    backdrop-filter: blur(10px); /* ทำขอบหลังคาเบลอเพิ่มความหรูหรา */
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
}

.logo-text span {
    color: #10b981; /* ไฮไลต์สีเขียวเรืองแสง */
}

.nav-links a {
    color: #050505;
    text-decoration: none;
    margin: 0 15px;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #10b981; /* เปลี่ยนเป็นสีเขียวเมื่อเมาส์ชี้ หรือหน้าปัจจุบัน */
}

/* ปุ่มประเมินราคาฟรีด้านบนขวา ขอบโค้งมน */
.btn-nav-free {
    background-color: #10b981;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-nav-free:hover {
    background-color: #059669;
    transform: scale(1.05);
}

/* ==========================================================================
   3. HERO SECTION (ส่วนหัวข้อหลักกลางหน้าเว็บ)
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

.sub-title {
    color: #10b981;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.main-title {
    font-size: 36px;
    margin: 12px 0;
    color: #f3f4f6;
    font-weight: 600;
}

.description {
    color: #9ca3af;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   4. VIDEO GRID & REVIEW CARDS (ส่วนจัดวางกล่องการ์ดรีวิว)
   ========================================================================== */
.video-grid {
    display: grid;
    /* แบ่งคอลัมน์อัตโนมัติ ขนาดขั้นต่ำ 350px ถ้าหน้าจอพอจะขยายเพิ่มเอง */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* ตัวกล่องการ์ดแต่ละใบ */
.review-card {
    background: #111827; /* สีเทาเข้มให้อ่อนกว่าพื้นหลังเว็บเล็กน้อยเพื่อให้การ์ดลอยเด่น */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* เอฟเฟกต์ตอนเอาเมาส์ไปวางบนการ์ด */
.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.4); /* ขอบเรืองแสงสีเขียวจางๆ */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ตัวคุมคลิปวิดีโอ YouTube iframe ให้เป็นสัดส่วน 16:9 และพอดีกล่องเสมอ */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* อัตราส่วน 16:9 */
    height: 0;
    background-color: #000000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.card-content {
    padding: 24px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
    color: #f9fafb;
}

/* ==========================================================================
   5. SPECS BOX & CALL TO ACTION (กล่องสเปคเครื่องและปุ่มทักไลน์)
   ========================================================================== */
/* กล่องสีเหลี่ยมเก็บรายละเอียดสเปคคอม */
.specs-box {
    background: #1f2937;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 22px;
    line-height: 1.7;
}

/* สีข้อความหัวข้อสเปค CPU, GPU, RAM */
.specs-box strong {
    color: #fbbf24; /* สีเหลืองทอง ดึงดูดสายตาให้อ่านง่าย */
    font-weight: 600;
    margin-right: 4px;
}

/* ปุ่มทักไลน์เพื่อปิดการขายด้านล่างสุดการ์ด */
.btn-card-cta {
    display: block;
    text-align: center;
    background: transparent;
    color: #10b981;
    border: 1px solid #10b981;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-card-cta:hover {
    background-color: #10b981;
    color: #ffffff; /* เปลี่ยนเป็นปุ่มสีเขียวทึบตัวอักษรขาวเมื่อชี้เมาส์ */
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (ปรับแต่งหน้าจอสำหรับมือถือ)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .nav-links {
        display: none; /* ซ่อนแถบเมนูกลางบนมือถือเพื่อไม่ให้ทับซ้อน */
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .video-grid {
        grid-template-columns: 1fr; /* ปรับให้แสดงผลเป็น 1 คอลัมน์ แถวเดียวยาวลงไป */
        gap: 20px;
    }
    
    .card-content {
        padding: 16px;
    }
}
