/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 500px;
}
.hero-section img.hero_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* .hero-section::after { content: ""; position: absolute; top:0; left:0; width:100%; height:100%; background-color: rgba(0,0,0,0.5); z-index:2; } */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  z-index: 3;
}

.EXPERIENCES_BX_line {
  display: -webkit-box;
  -webkit-line-clamp: 6; /* จำนวนบรรทัดสูงสุด */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6em;
  font-weight: 100 !important;
  cursor: pointer;
  white-space: normal;
}

.EXPERIENCES_BX .title {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}
.EXPERIENCES_BX span {
  height: 150px;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Fullscreen Popup แบบ 2 คอลัมน์ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999999999999999999;
}

.popup-content {
  position: relative;
  width: 90%;
  /* max-width: 1200px; */
  height: 80%;
  display: flex;
  background-color: #fff;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.popup-content img {
  width: 50%;
  height: 100%;
  /* object-fit: contain; */
  background-color: #fff;
  transition: all 0.3s ease;
}

.popup-text {
  width: 50%;
  padding: 30px 82px 30px 30px;
  overflow-y: auto;
  color: #000;
  font-size: 18px;
  line-height: 1.6em;
  white-space: normal; /* แสดงข้อความเต็ม */
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
  color: #000;
  font-weight: bold;
  z-index: 20;
}

.popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #000;
  cursor: pointer;
  user-select: none;
  padding: 5px;
  z-index: 20;
  background-color: transparent;
  border-radius: 0;
}
.popup-arrow.left {
  left: 10px;
}
.popup-arrow.right {
  right: 10px;
}
.date-form {
  /* border-bottom:1px solid #000; */
}
@media screen and (max-width: 1300px) {
  .EXPERIENCES_BX span {
    opacity: 1;
  }
  .EXPERIENCES {
    padding: 0 10px;
  }
  .EXPERIENCES_BX.small {
    flex: 0 0 calc(33.333% - 4px);
  }
}
@media screen and (max-width: 1100px) {
  .EXPERIENCES_BX span {
    opacity: 1;
  }
  .EXPERIENCES {
    padding: 0 10px;
  }
  .EXPERIENCES_BX.small {
    flex: 0 0 calc(33.333% - 4px);
  }

  .popup-content {
    flex-direction: column;
    height: calc(100vh - 155px); /* สูงเต็มหน้าจอ เว้นขอบบนล่าง 20px */
    max-width: 95%;
    margin: 20px auto;
    border-radius: 10px;
  }
  .popup-content img {
    width: 100%;
    height: 100%; /* ครึ่งบนของ popup */
    /* object-fit: cover; */
  }
  .popup-text {
    width: 100%;
    padding: 20px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.5em;
    height: 88%;
  }
  .popup-arrow {
    display: none; /* ซ่อนลูกศร */
  }
  .popup-close {
    top: 10px;
    right: 10px;
    font-size: 32px;
  }
}
@media screen and (max-width: 768px) {
  .EXPERIENCES_BX.small {
    flex: 0 0 calc(101.333% - 4px);
    height: 278px;
  }
}
.contact-form-container {
  font-family: "Aparajita", sans-serif;
  background-color: #fff;
  max-width: 1000px;
  margin: 0px auto;
  padding: 40px;
}
.contact-form-title {
  text-align: center;
  color: #b69e7a;
  margin-bottom: 30px;
}
.form-row {
  display: flex;
  gap: 20px;
}
.form-group {
  flex: 1;
  margin-bottom: 20px;
  position: relative;
}
.form-label {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: #555;
  text-align: start;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #b69e7a;
  box-shadow: 0 0 0 2px rgba(182, 158, 122, 0.2);
}
.form-icon {
  position: absolute;
  right: 12px;
  top: 38px;
  color: #b69e7a;
  font-size: 16px;
}
.form-button {
  width: 100%;
  padding: 14px;
  border: none;
  background-color: #b69e7a;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}
.form-button:hover {
  background-color: #a38b68;
}
.message {
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
}
.success {
  color: green;
}
.error {
  color: red;
}
.error-text {
  color: red;
  font-size: 13px;
  margin-top: 4px;
}
.contact1 {
  padding: 100px 0;
  text-align: center;
}
.contact1_text {
  color: #b69e7a;
  font-family: "Aparajita", sans-serif;
  font-size: 60px;
}
.contact2_text {
  font-family: "Aparajita", sans-serif;
  font-size: 20px;
}
.contact2_text_p {
  padding: 10px;
}
