.elementor-12 .elementor-element.elementor-element-60a0e82{--display:grid;--e-con-grid-template-columns:repeat(1, 1fr);--e-con-grid-template-rows:repeat(1, 1fr);--grid-auto-flow:row;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-theme-builder-content-area{height:400px;}.elementor-location-header:before, .elementor-location-footer:before{content:"";display:table;clear:both;}@media(max-width:1024px){.elementor-12 .elementor-element.elementor-element-60a0e82{--grid-auto-flow:row;}}@media(max-width:767px){.elementor-12 .elementor-element.elementor-element-60a0e82{--e-con-grid-template-columns:repeat(1, 1fr);--e-con-grid-template-rows:repeat(1, 1fr);--grid-auto-flow:row;}}/* Start custom CSS for html, class: .elementor-element-fc21e4f */@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@400;600;700&family=Poppins:wght@600;800&display=swap');

.tfl-header {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-family: 'Noto Sans Lao', sans-serif;
  padding: 12px 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 999;
}

.tfl-header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Brand Logo Area --- */
.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-tfl {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #1a1b4b;
  letter-spacing: -1px;
}

.tfl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #fff;
  border-radius: 4px;
  margin-left: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.brand-divider {
  width: 1px;
  height: 36px;
  background-color: #d1d5db;
}

.logo-lao {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-lao img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.lao-text {
  display: flex;
  flex-direction: column;
}

.lao-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1b4b;
  line-height: 1.1;
}

.lao-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: #e59312;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* --- Content Wrapper (Desktop View) --- */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  margin-left: 30px;
}

/* Nav Menu */
.header-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 22px;
}

.header-nav a {
  text-decoration: none;
  color: #2d3748;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.header-nav li.active a,
.header-nav a:hover {
  color: #7a75e8;
}

.header-nav li.active a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #7a75e8;
  border-radius: 4px;
}

/* Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}

.lang-dropdown:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.flag-icon {
  display: flex;
  align-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.lang-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.btn-register {
  background: linear-gradient(90deg, #f5a623 0%, #e68a00 100%);
  color: #ffffff;
  padding: 10px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(230, 138, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230, 138, 0, 0.45);
}

/* --- Mobile Toggle Button (Default: ซ่อนไว้บนจอใหญ่) --- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.mobile-toggle span {
  width: 100%;
  height: 3px;
  background-color: #1a1b4b;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* เอฟเฟกต์แปลงร่างแฮมเบอร์เกอร์เป็น X เมื่อกดเปิด */
.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ===================================================
   RESPONSIVE STYLES (สำหรับมือถือและแท็บเล็ต < 1024px)
   =================================================== */
@media (max-width: 1024px) {
  .mobile-toggle {
    display: flex; /* แสดงปุ่มแฮมเบอร์เกอร์ */
  }

  .header-content {
    display: none; /* ซ่อนเมนูปกติไว้ก่อน */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    margin-left: 0;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #f1f5f9;
  }

  /* แสดงเมนูแบบสไลด์ลงมาเมื่อกดปุ่ม */
  .header-content.is-open {
    display: flex;
  }

  .header-nav ul {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
  }

  .header-nav a {
    display: block;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
  }

  .header-nav li.active a::after {
    display: none; /* ซ่อนเส้นใต้แบบแนวนอนในมือถือ */
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .lang-dropdown {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  .btn-register {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0;
  }
}

/* ปรับขนาดโลโก้เล็กน้อยสำหรับหน้าจอมือถือเล็กมาก (< 480px) */
@media (max-width: 480px) {
  .logo-tfl {
    font-size: 24px;
  }
  .logo-lao img {
    height: 34px;
  }
  .lao-title {
    font-size: 15px;
  }
  .lao-subtitle {
    font-size: 9px;
  }
  .brand-divider {
    height: 28px;
  }
  .header-brand {
    gap: 10px;
  }
}/* End custom CSS */