/* การตั้งค่าพื้นฐาน */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    color: white; /* ตั้งค่าสีตัวอักษรเริ่มต้นเป็นสีขาว */
}

/* 1. สไตล์สำหรับคอนเทนเนอร์วิดีโอ */
.video-container {
    position: fixed; /* ยึดตำแหน่งไว้เต็มจอ */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* **สำคัญมาก** ส่งวิดีโอไปอยู่ข้างหลังสุด */
    overflow: hidden; /* ซ่อนส่วนที่ล้นออกไป */
}

/* 1.1 สไตล์สำหรับตัววิดีโอ */
.video-container video {
    width: 100%;
    height: 100%;
    /* ทำให้วิดีโอเต็มจอและคงสัดส่วนเดิม 
      (คล้าย background-size: cover)
    */
    object-fit: cover; 
}

/* 2. สไตล์สำหรับเนื้อหา (Content) */
.content {
    /* จัดเนื้อหาให้อยู่กึ่งกลางหน้าจอ */
    height: 100vh; /* สูงเต็ม 100% ของหน้าจอ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* เพื่อให้แน่ใจว่าอยู่ทับวิดีโอ */
    position: relative;
    z-index: 1;

    text-align: center;
    padding: 20px;
}

.content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    /* เพิ่มเงาให้ตัวอักษร ให้อ่านง่ายขึ้น */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.content p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* 2.1 สไตล์ปุ่ม (ตัวอย่าง) */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.4); /* พื้นหลังโปร่งแสง */
    border: 2px solid white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: white;
    color: black;
}