/* --- 1. Import Font --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- 2. Site Footer Base --- */
.site-footer {
    background-color: #37474f;
    /* สีพื้นหลังเทาเข้ม (Dark Slate) */
    color: #ffffff;
    padding: 60px 0 40px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    box-sizing: border-box;
}

/* --- 3. Container & Grid Layout --- */
.footer-container {
    display: grid;
    /* แบ่งสัดส่วนคอลัมน์ตามความยาวเนื้อหา: Social | Nav | Contact | Address */
    grid-template-columns: 0.7fr 0.8fr 1.3fr 1.2fr;
    gap: 30px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 4. Headers (หัวข้อ) --- */
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
}

/* --- 5. Global Text Styles (จัดตัวอักษร) --- */
.footer-col p,
.footer-col a,
.footer-col li,
.footer-col span {
    font-size: 0.85rem;
    color: #eceff1;
    /* สีขาวอมเทา */
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    /* บังคับตัวพิมพ์ใหญ่ตามรูปต้นฉบับ */
    letter-spacing: 0.5px;
}

/* --- 6. Social Media Icons --- */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    width: auto;
    height: auto;
    background: none;
    color: #b0bec5;
    /* สีไอคอนปกติ (เทาอ่อน) */
    font-size: 3rem;
    /* ขนาดไอคอนใหญ่พิเศษ */
    border-radius: 0;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.social-icons a:hover {
    color: #ffffff;
    /* สีตอนเมาส์ชี้ (ขาวสว่าง) */
    transform: scale(1.1);
}

/* --- 7. QR Code --- */
.qr-image {
    width: 110px;
    height: auto;
    background-color: #fff;
    padding: 5px;
    border-radius: 4px;
    display: block;
}

/* --- 8. Navigation Links --- */
.nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-col ul li a {
    transition: 0.3s;
    display: inline-block;
    /* เพื่อให้ขยับได้ตอน Hover */
}

.nav-col ul li a:hover {
    color: #4dd0e1;
    /* สีฟ้าสว่างตอน Hover */
    padding-left: 5px;
    /* ขยับขวาเล็กน้อย */
}

/* --- 9. Contact Items & Icons --- */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item span {
    margin-bottom: 0;
    /* จัดระเบียบข้อความให้ตรงกับไอคอน */
}

/* วงกลมรองหลังไอคอน Contact */
.icon-circle {
    background-color: #cfd8dc;
    /* สีวงกลม (เทาขาว) */
    color: #37474f;
    /* สีไอคอนด้านใน (เทาเข้ม) */
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    /* ป้องกันวงกลมบี้ */
}

/* --- 10. Address Text --- */
.address-col p {
    line-height: 1.8;
}

/* --- 11. Responsive Design --- */

/* Tablet View (ลดเหลือ 2 คอลัมน์) */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile View (เหลือ 1 คอลัมน์กลางจอ) */
@media (max-width: 576px) {
    .site-footer {
        padding: 40px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    /* จัดทุกอย่างกึ่งกลางในมือถือ */
    .social-icons,
    .contact-item {
        justify-content: center;
    }

    .qr-image {
        margin: 0 auto;
    }

    /* ปรับขนาดตัวหนังสือให้อ่านง่ายขึ้นในมือถือ */
    .footer-col p,
    .footer-col a,
    .footer-col span {
        font-size: 0.9rem;
    }
}