/* โครงสร้างหลัก */
.p-footer {
    line-height: 1.8; /* เพิ่มช่องไฟระหว่างบรรทัด */
    font-size: 16px; /* กำหนดขนาดตัวอักษร */
    color: white; /* สีข้อความ */
}
.p-footer:hover {
    color: yellow;
}
.footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #2c3e50;
    gap: 20px;
    padding: 0px;
    font-family: Arial, sans-serif;
    color: white;
    margin-top: 0;
}

/* คอลัมน์ */
.footer .column {
    flex: 1;
    max-width: 350px;
    padding: 20px;
    align-items: center;
}



.footer h3 {
    color: white;
    font-size: 1.2em;
    margin-bottom: 10px;
    
}

.footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin: 5px 0;
    padding-bottom: 10px;
    
    
}

.footer ul li a {
    font-size: 16px;
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

/* ตั้งค่าไอคอนหรือลิงก์ */
.column ul li {
    list-style: none; /* ลบจุด Bullet */
    border-bottom: 1px solid #657f8a; /* เส้นบรรทัดระหว่างข้อความ */
}

.footer ul li a:hover, span:hover {
    color: yellow;
}


/* สำหรับไอคอน */
.icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}


/* โซเชียลไอคอน */
.footer .social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ปรับแต่งพื้นที่ล่าง */
.footer-bottom {
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #ccc; /* เส้นบรรทัดล่าง */
    
   
}

/* ปรับการแสดงผลของไอคอนและข้อความให้เรียงกัน */
.contact-info ul li {
    display: flex;
    align-items: center;
    gap: 10px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
    padding: 5px 0;
}

/* ปรับขนาดของไอคอน */
.contact-info .icon img {
    width: 24px; /* กำหนดขนาดให้เท่ากัน */
    height: 24px;
    display: block;
}

/* ปรับไอคอนของโซเชียลมีเดีย */
.contact-info .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

/* กำหนดขนาดของไอคอนโซเชียล */
.contact-info .social-icons .icon img {
    width: 30px;
    height: 30px;
}

.underline-footer {
    width: 90px;
    height: 2px;
    background-color: #FFD700; /* ใช้สีเหลือง */
    }

.underline-footer2 {
    width: 275px;
    height: 2px;
    background-color: #FFD700; /* ใช้สีเหลือง */
    }

@media (max-width: 768px) {
  .footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;         /* ให้ column เต็มกว้างแต่ไม่ชิดซ้าย/ขวาเกินไป */
    padding: 15px 10px;
    text-align: left;             /* ค่าเริ่มต้นเป็นซ้าย */
  }

  .footer .column {
    width: 100%;
    padding: 5px 0;
  }

  .footer .column h3 {
    text-align: center;           /* เฉพาะหัวข้อให้จัดกลาง */
    font-size: 16px;
    margin: 2px 0 4px;
  }

  .footer ul,
  .footer p,
  .footer a {
    margin: 0 0 2px;
    padding: 0;
    font-size: 14px !important;
  }

  .footer li {
    margin: 3px 0;
  }

  .p-footer {
    font-size: 14px;
    line-height: 1.4em;
    text-indent: 1.5em;
  }

  .underline-footer,
  .underline-footer2 {
    display: none;
  }
}
