/* ==========================
   FONT IMPORT
========================== */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Prompt', sans-serif; /* ใช้ฟอนต์ Prompt เป็นค่าเริ่มต้น */
}

body {
  font-family: 'Prompt', sans-serif;
  background: #d3e6ff85;
  color: #1f2937;
  
}

/* TOP BAR */
.top-bar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.btn-back {
  background: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  color: #0a3d62;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-switch button {
  padding: 10px 22px;
  background: linear-gradient(135deg, #0a3d62, #1e90ff);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

/* PAGE */
.company-bg {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 140px 20px 80px;
}

.company-page {
  max-width: 900px;
  width: 100%;
}

.company-card {
  background: #fff;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 30px 80px rgba(30,64,175,.15);
  text-align: center;
  
}

/* IMAGE */
.company-image img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 30px;
}

/* TEXT */
.company-title {
  font-family: 'Prompt', sans-serif;
  font-size: 38px;
  color: #0a3d62;
  font-weight: 700;
  margin-bottom: 25px;
}

.company-subtitle {
  font-family: 'Prompt', sans-serif;
  font-size: 22px;
  color: #930a00;
  font-weight: 500;
  margin: 35px 0 15px;
}

.company-desc {
  font-family: 'Prompt', sans-serif;
  font-size: 16.5px;
  line-height: 1.9;
  color: #4b5563;
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
  font-weight: 400;
}

/* CONTACT + MAP */
.company-info {
  max-width: 860px;
  margin: 60px auto 0;
  display: flex;
  gap: 32px;
  padding: 36px;
  background: #930a00;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(30,64,175,.12);
  align-items: center;
}

.company-text {
  flex: 1;
  text-align: left;
}

.company-text h3 {
  font-family: 'Prompt', sans-serif;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 16px;
}

.company-text p {
  font-family: 'Prompt', sans-serif;
  font-size: 16.5px;
  line-height: 1.8;
  margin-bottom: 10px;
  font-weight: 400;
    color: #fff;

}

/* MAP */
.company-map {
  flex: 1;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 45px rgba(255, 255, 255, 0.15);
}

.company-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* MOBILE */
@media (max-width: 768px) {

  /* พื้นหลังทั้งหน้า */
  .company-bg {
    min-height: 100svh;
    padding: 100px 16px 24px;
    align-items: stretch;     /* 🔑 สำคัญมาก */
  }

  /* การ์ดหลัก = เต็มจอ */
  .company-card {
    width: 100%;
    min-height: calc(100svh - 140px);
    padding: 28px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
  }

  /* ส่วน info + map */
  .company-info {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    margin-top: auto; /* 🔑 ดันลงล่างเมื่อเนื้อหาน้อย */
  }

  /* Map */
  .company-map {
    width: 100%;
    height: 220px;
  }

  /* Text */
  .company-text {
    text-align: center;
  }

  .company-title {
    font-size: 28px;
  }

  .company-subtitle {
    font-size: 18px;
  }

  .company-desc {
    font-size: 15.5px;
    line-height: 1.8;
  }
}
