/* =====================
   Global styles
   =====================*/
:root {
  --primary-color: #005fa3;
  --text-color: #333;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-color);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* =====================
   Header & Branding
   =====================*/
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--primary-color);
  color: #fff;
  position: relative;
  z-index: 1000;
}
.branding { display: flex; align-items: center; }
.branding img.logo { height: 48px; margin-right: 0.75rem; }
.branding h1 { font-size: 1.35rem; margin: 0; }

/* =====================
   Custom Language Dropdown
   =====================*/
.lang-dropdown { position: relative; }
.lang-current {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-current::after { content: "\25BE"; font-size: 0.65rem; line-height: 1; }
.lang-options {
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 140px;
  background: #fff;
  color: var(--text-color);
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  display: none;
}
.lang-options.open { display: block; animation: fadeIn 0.18s ease-out; }
.lang-options li { padding: 0.55rem 1rem; cursor: pointer; font-size: 0.9rem; }
.lang-options li:hover { background: #f0f4f8; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* =====================
   Hamburger Button
   =====================*/
.menu-toggle {
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =====================
   Navigation Links
   =====================*/
nav { position: relative; }
.nav-links {
  position: absolute;
  right: 0;
  top: 100%;
  width: 200px;
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.nav-links.open { transform: scaleY(1); }
.nav-links a {
  padding: 1rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}
.nav-links a:hover { background: #f7f7f7; }

/* =====================
   Main & Footer
   =====================*/
main { flex: 1; padding: 2rem 1rem; max-width: 800px; margin: 0 auto; }
footer {
  background: #f5f5f5;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
  border-top: 1px solid #e0e0e0;
}

/* =====================
   Desktop Styles
   =====================*/
@media (min-width: 600px) {
  .menu-toggle { display: none; }
  .nav-links { position: static; transform: none !important; width: auto; background: none; box-shadow: none; flex-direction: row; }
  .nav-links a { color: #fff; padding: 0 1rem; }
  .nav-links a:hover { background: rgba(255,255,255,0.1); }
  .lang-current { background: #fff; color: var(--primary-color); border: 1px solid var(--primary-color); }
  .lang-current::after { color: var(--primary-color); }
}

