:root {
  --primary: #2f80ed;
  --muted: #6b7280;
  --bg: linear-gradient(180deg, #e6f3ff 0%, #f9fcff 100%);
  --card: #ffffff;
  --radius: 12px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: #0f1724;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}
.brand {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}
.controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.btn-lang {
  background: transparent;
  border: 1px solid var(--primary);
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--primary);
  cursor: pointer;
}
.btn-lang[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
}
.btn-small {
  background: transparent;
  border: 1px solid var(--muted);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(15, 23, 36, 0.04);
}
.nav-link {
  color: #0f1724;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
}
.nav-link.active {
  background: var(--primary);
  color: #fff;
}

.hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0;
}
.hero-left {
  flex: 1;
}
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero h1 {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}
.lead {
  color: var(--muted);
  margin: 0 0 1rem;
}

button,
.btn-primary,
.btn-outline {
  background-color: #2f80ed;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

button:hover,
.btn-primary:hover,
.btn-outline:hover {
  background-color: #1c5fd4;
}

.btn-logout {
  background-color: #e63946; /* Red */
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}
.btn-logout:hover {
  background-color: #c92a34;
}

.hero img {
  max-width: 360px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 36, 0.08);
}

.problem,
.features,
.resource-intro,
.ment-list {
  padding: 1.2rem 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.06);
}
.card h3 {
  margin: 0 0 0.5rem;
}
.callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  margin: 1.2rem 0;
}

.resource-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.res-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  padding: 0.6rem;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}
.res-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.res-card:hover img {
  transform: scale(1.05);
}

.res-card:nth-child(1):hover {
  transform: translateY(-5px);
  background-color: #e8f9e9;
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}
.res-card:nth-child(2):hover {
  transform: translateY(-5px);
  background-color: #fff6e5;
  box-shadow: 0 8px 20px rgba(241, 196, 15, 0.3);
}
.res-card:nth-child(3):hover {
  transform: translateY(-5px);
  background-color: #eaf3ff;
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.3);
}

.form-wrap {
  margin: 1rem 0;
}
form.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 12px;
}
form label {
  font-size: 0.85rem;
  color: var(--muted);
}
form input,
form textarea,
select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 36, 0.08);
  font-size: 0.95rem;
}
.form-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-top: 0.4rem;
}

.site-footer {
  background: #fff;
  padding: 1rem 0;
  border-top: 1px solid rgba(15, 23, 36, 0.04);
  margin-top: 2rem;
}
.footer-grid {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    gap: 1rem;
  }
  .hero img {
    max-width: 100%;
  }
  .callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

.nav-right {
  margin-left: auto;
}

.settings-emoji {
  font-size: 36px;
  text-decoration: none;
  margin-left: 15px;
  display: inline-block;
  cursor: pointer;
}

.settings-emoji:hover {
  opacity: 0.8;
}
