
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h2 {
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  font-weight: 600;
}

header a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

header a:hover {
  opacity: 0.8;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

nav li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

nav a {
  display: block;
  padding: 0.7rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
}

main {
  min-height: 60vh;
}

a {
  transition: color 0.3s;
}

a:hover {
  color: #764ba2;
}

@media (max-width: 768px) {
  header h2 {
    font-size: 1.3rem;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.5rem 0.3rem;
  }

  main {
    padding: 0 0.8rem !important;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 0.75rem;
    padding: 0.4rem 0.2rem;
  }
}

.ui-style-4 main > section > div > div:hover,
.ui-style-4 main > section > article:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s;
}
