 /* Style for header, nav, footer, logo positioning */

/* .header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} */

/* header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
} */

/* Burger menu */

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
  }

  .nav a {
    padding: 14px 24px;
    border-bottom: 1px solid #eee;
  }
}

/* New header */

/* header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-page)
} */

.nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  display: flex;
  gap: 6px;
  align-items: center;
  text-decoration: none;
}

.nav-link.active {
  font-weight: bold;
  color: #ff6f61;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
}

.burger span {
  width: 22px;
  height: 2px;
  background: #333;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 260px;
  height: 100%;
  background: #fff;
  padding: 24px;
  transition: right 0.3s ease;
}

.mobile-drawer.open {
  right: 0;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .burger {
    display: flex;
  }
}

/* Newest header */

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  padding: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: 90vw;
  margin: auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ================= MOBILE MENU ================= */
.mobile-only {
  display: none;
}

.desktop-only {
  display: inline-flex;
}

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.mobile-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  padding: 1rem;
  transition: right 0.3s ease;
  z-index: 1001;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  /* margin-bottom: 1rem; */
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero {
    height: 20vh !important;
    min-height: 200px !important;
  }

  .desktop-nav,
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-flex;
  }

  nav.mobile-nav {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    line-height: 2;
    margin: 10px;
  }
  nav.mobile-nav a {
    text-decoration: none;
    color: #333;
  }

  nav.mobile-nav a.active {
    color: var(--color-primary);
    /* color: var(--color-primary); */
  }

  button#langBtnMobile {
    position: fixed;
    margin-left: 10px;
    bottom: 50px;
}
}

/* Notice */
/* .notice-section {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1rem;
} */

/* contact */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Language button */

/* .lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
} */

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0f0f0;
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  /* bottom: 50px;
  position: fixed;
  margin-left: 10px; */
}

.lang-btn:hover {
  background: #e0e0e0;
}

/* latest css */

.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* ================= NAV ================= */

.nav a {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-primary);
}

.nav a.active {
  background: var(--color-primary);
  color: white;
}

/* Footer */

footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: 4rem; /* will double-check to fix layout issue */
  /* padding: 2rem 10vw; */
}

/* .footer-inner {
  max-width: 1200px;
  max-width: 80vw;
  margin: auto;
  padding: 3rem 1rem 2rem;
  padding-top: var(--space-xl);
} */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-grid h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-list a {
  color: inherit;
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.no-bullets li {
  list-style: none;
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.social-icons a {
  color: #e5e7eb;
}

.social-icons a:hover {
  color: #38bdf8;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* facebook widget */
.fb-wrapper {
  position: relative;
  min-height: 420px;
}

.fb-content {
  position: relative;
  z-index: 1;
}

.fb-skeleton-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: white;
  transition: opacity 0.3s ease;
}

.fb-skeleton-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* big desktop */
@media (min-width: 1280px) {
  .header-inner {
    /* width: 70vw; */
    max-width: 1200px;
  }
}