/* ── Global Theme Variables ── */
:root {
  --ek-bg: #f4f9ff;
  --ek-card-bg: #ffffff;
  --ek-accent: #1456d9;
  --ek-text: #1a2540;
  --ek-text-dim: #667085;
  --ek-border: rgba(20, 86, 217, 0.12);
}

body, *, input, button, select, textarea {
  font-family: 'Kanit', sans-serif;
}

body {
  background-color: var(--ek-bg);
  color: var(--ek-text);
  overflow-x: hidden;
}

.ek-main {
  padding: 0 5%;
  max-width: 1600px;
  margin: 0 auto;
}

/* ── Header / Nav ── */
#ek-header {
  background-color: #0b1528;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ek-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}
.ek-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.ek-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.ek-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.ek-logo-text .logo-th {
  font-family: 'Kanit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}
.ek-logo-text .logo-en {
  font-family: 'Outfit', 'Kanit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

/* ── Menu container (desktop) ── */
.ek-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.ek-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.ek-nav ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color .2s;
}
.ek-nav ul li a:hover { color: #ffffff; }
.btn-check {
  background: #1877f2;
  color: #fff;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Kanit', sans-serif;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn-check:hover {
  transform: translateY(-2px);
  background: #166fe5;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
}

/* ── Hamburger Button (hidden on desktop) ── */
.ek-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}
.ek-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 4px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
  transform-origin: center;
}
/* Hamburger → X animation */
.ek-hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.ek-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.ek-hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .ek-nav {
    padding: 18px 0;
    position: relative;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .ek-hamburger {
    display: flex;
  }

  .ek-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0b1528;
    flex-direction: column;
    align-items: stretch;
    padding: 90px 28px 40px;
    gap: 0;
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .ek-menu.open {
    right: 0;
  }

  .ek-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .ek-nav ul li a {
    display: block;
    padding: 16px 0;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s, padding-left 0.3s;
  }
  .ek-nav ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
  }
  .ek-nav ul li:last-child a {
    border-bottom: none;
  }

  .ek-menu .btn-check {
    margin-top: 24px;
    width: 100%;
    text-align: center;
    padding: 14px 25px;
    font-size: 1.05rem;
  }

  /* Overlay backdrop */
  .ek-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
  }
  .ek-menu-overlay.show {
    display: block;
  }
}
