/* Shared layout & components (Tailwind handles utilities via CDN) */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.tonal-layer-1 {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(11, 18, 32, 0.05);
}

.module-card {
  transition: all 0.3s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 55, 122, 0.15);
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

#mobile-menu-panel {
  display: none;
}

#mobile-menu-panel.is-open {
  display: block;
}

@media (min-width: 768px) {
  #mobile-menu-panel {
    display: none !important;
  }

  #mobile-menu-panel.is-open {
    display: none !important;
  }
}

/* Desktop nav: underline active bằng ::after (không border/padding → không lệch với lang select) */
.site-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
}

.site-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 1px;
  background-color: transparent;
  transition: background-color 0.15s ease;
}

.site-nav-link.is-nav-active::after {
  background-color: #06b6d4;
}

/* Products dropdown — shared across all pages */
.site-nav-products {
  position: relative;
  flex-shrink: 0;
}

.site-nav-products-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 13rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #c3c6d4;
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.12);
  z-index: 60;
}

.site-nav-products.is-open .site-nav-products-panel,
.site-nav-products:hover .site-nav-products-panel,
.site-nav-products:focus-within .site-nav-products-panel {
  display: block;
}

.site-nav-products-link {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #151b2a;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav-products-link:hover {
  background: #f1f3ff;
  color: #00377a;
}

.site-nav-products-link.is-nav-active {
  color: #06b6d4;
  font-weight: 600;
}

.product-coming-soon {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ngôn ngữ: ẩn mũi tên hệ thống của <select>, chỉ dùng chevron SVG (tránh chồng với icon font) */
.site-lang-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 0.875rem;
  text-align: center;
}

.site-lang-select::-ms-expand {
  display: none;
}

/* Một font mặc định toàn site (bổ sung cho Tailwind) */
body {
  font-family: "Space Grotesk", system-ui, sans-serif;
}
