/* Resources dropdown for the main navigation (added 2026-10-28) */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-btn::after {
  content: ""; width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); opacity: .55;
}
.nav-drop-menu {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 70;
  min-width: 288px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(6, 20, 28, .14);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 14px; font-weight: 550; color: #2b3d48; white-space: nowrap;
}
.nav-drop-menu a:hover { background: var(--green-soft); color: var(--green-d); }
.nav-drop-menu .drop-all { font-weight: 700; color: var(--navy); }
.drop-en {
  display: inline-block; margin-left: 6px; padding: 2px 5px;
  font-size: 10px; letter-spacing: .08em; color: #5b7382;
  background: #eef4f1; border-radius: 4px; vertical-align: 1px;
}
.drop-sep { display: block; height: 1px; margin: 6px 8px; background: var(--line); }
html[dir="rtl"] .nav-drop-menu { left: auto; right: 0; }
html[dir="rtl"] .drop-en { margin-left: 0; margin-right: 6px; }

@media (max-width: 1180px) {
  .nav { gap: 2px; }
  .nav a { padding: 9px 9px; font-size: 14px; }
}

@media (max-width: 900px) {
  .nav-drop { display: block; }
  .nav-drop-btn {
    display: flex; justify-content: space-between; padding: 13px 4px;
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .nav-drop-btn::after { display: none; }
  .nav-drop-menu {
    position: static; min-width: 0; padding: 0 0 8px; border: 0;
    background: transparent; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-drop-menu a {
    padding: 9px 4px; border-bottom: 1px dashed var(--line); border-radius: 0;
    font-size: 14px; font-weight: 500; color: #5b7382; white-space: normal;
  }
  .nav-drop-menu a.guide { display: none; }
  .drop-sep { display: none; }
  .nav-drop-menu .drop-all { color: var(--navy); font-weight: 650; border-bottom: 0; }
}
