/* 🔥 Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* 🎨 Body */
body {
    background-color: white;
    color: rgb(14, 14, 14);
}

/* 🔝 Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #111;
    border-bottom: 2px solid #ffffff;
}

.logo {
    font-size: 22px;
    font-weight: bold;
     color: white;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    position: relative;
    transition: color 0.3s ease;
}

/* 🔥 Hover เป็นสีแดง */
nav a:hover {
    color: #ff0000;
}

/* ✨ เส้นใต้เท่ๆ */
nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #ff0000;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

/* 🔴 ตอน hover เส้นวิ่ง */
nav a:hover::after {
    width: 100%;
}



/* 📦 Content */
.container {
    text-align: center;
    padding: 60px 20px;
}

h1 {
    font-size: 36px;
    color: #000;
}

p {
    margin-top: 10px;
    color: #444;
}

/* 📱 Facebook */
.fb-box {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* 📱 กรอบมือถือ */
.phone-frame {
    width: 320px;
    height: 520px;
    background-color: #000;
    border-radius: 30px;
    padding: 15px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* 🔘 กล้องบน */
.phone-frame::before {
    content: '';
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 10px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* 📘 FB เต็ม */
.phone-frame .fb-page {
    width: 100% !important;
    height: 100% !important;
    border-radius: 20px;
    overflow: hidden;
}

/* 📍 ส่วนล่าง */
.contact-bottom {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 20px;
    flex-wrap: wrap; /* 🔥 ทำให้ลงบรรทัดใหม่ได้ */
}

/* 🔹 ซ้าย */
.contact-left {
    flex: 1 1 300px; /* 🔥 ยืด-หดได้ */
    max-width: 400px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.contact-left:hover {
    transform: scale(1.05);
}

.contact-left h3 {
    color: red;
    margin-bottom: 15px;
}

.contact-left p {
    margin: 10px 0;
    font-size: 16px;
}

.contact-left a {
    color: blue;
    text-decoration: none;
    font-weight: bold;
}

.contact-left a:hover {
    color: red;
}
.contact-left {
     width: 100%;
    max-width: 450px;
    padding: 30px;
    text-align: left;
    background: white;
    border-radius: 15px; /* 🔘 ขอบมน */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* ✨ ตอน hover */
.contact-left:hover {
    transform: scale(1.05); /* ขยาย */
    box-shadow: 0 10px 25px rgba(0,0,0,0.25); /* เงาเข้มขึ้น */
}

/* 🔹 ขวา */
.contact-left {
    width: fit-content; /* 🔥 ให้กว้างตามเนื้อหา */
    max-width: 450px;

    padding: 15px;
    border-radius: 20px;
    background: #f2f2f2;

    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.contact-left:hover {
    transform: scale(1.05);
}

.contact-right img:hover {
    
    transform: scale(1.05);
}

/* 🖼️ Modal พื้นหลัง */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

/* 🖼️ รูปใหญ่ */
.modal-content {
    margin: auto;
    display: block;
    max-width: 50%;
    max-height: 50%;
    border-radius: 10px;
}

/* ❌ ปุ่มปิด */
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: red;
}
/* 🔻 ปุ่มล่างสุด */
.link-btn {
    margin: 40px auto;
    display: block;
    padding: 12px 25px;
    background: linear-gradient(90deg, red, blue);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    width: fit-content;
    transition: 0.3s;
}

.link-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* 🔻 Footer */
footer {
    background-color: #ffffff;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #000000;
}

@media (max-width: 768px) {
    .contact-bottom {
        flex-direction: column; /* 🔥 เรียงลง */
        align-items: center;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        max-width: 90%;
    }

    .contact-left:hover {
        transform: none; /* มือถือไม่ต้องขยาย */
    }
}