:root {
  --primary: #0d1f3c;
  --accent: #00b341;
  --accent-dark: #009435;
  --highlight: #1e88e5;
  --text: #1a202c;
  --text-light: #f7fafc;
  --bg: #f8f9fa;
  --white: #ffffff;
  --gray: #718096;
  --gray-light: #a0aec0;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #0d1f3c 0%, #1a365d 50%, #0d4a2e 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* Header */
header {
  background: var(--gradient);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
}

header .logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

header .logo .ball {
  width: 32px;
  height: 32px;
}

header .logo span.lg {
  color: var(--accent);
}

header ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

header ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

header ul li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Main */
main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Article */
article h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  line-height: 1.3;
}

article .meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}

article time, article .author {
  color: var(--gray);
  font-size: 0.9rem;
}

article .content {
  margin-top: 1.5rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

article .content h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
  border-bottom: none;
}

article .content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--primary);
}

article .content p {
  margin-bottom: 1rem;
}

article .content a {
  color: var(--highlight);
  text-decoration: underline;
  text-decoration-color: rgba(30,136,229,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

article .content a:hover {
  text-decoration-color: var(--highlight);
}

article .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

article .content th, article .content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

article .content th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

article .content tr:nth-child(even) {
  background: #f7fafc;
}

article .content tr:hover {
  background: #edf2f7;
}

article .content strong {
  color: var(--primary);
}

article .content ol, article .content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

article .content li {
  margin-bottom: 0.5rem;
}

article .content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

article .content em {
  color: var(--gray);
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--gradient);
  border-radius: 16px;
  margin-bottom: 2.5rem;
  color: var(--text-light);
}

.hero-tagline {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.2rem;
  color: var(--text-light);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Section label */
.section-label {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Article list */
.latest h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.latest h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
}

.article-list {
  list-style: none;
}

.article-list li {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  border-left: 3px solid transparent;
}

.article-list li:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
  border-left-color: var(--accent);
}

.article-list a {
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
}

.article-list a:hover {
  color: var(--accent-dark);
}

.article-list time {
  display: block;
  color: var(--gray-light);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.article-list p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin: 0 0.75rem;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Legal pages */
.legal-page {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.75rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--primary);
}

.legal-page p, .legal-page li {
  margin-bottom: 0.75rem;
  color: var(--gray);
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page a {
  color: var(--highlight);
}

/* Contact form */
.contact-form {
  margin-top: 1.5rem;
}

.contact-form .field {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,179,65,0.15);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--accent-dark);
}

/* Responsive */
@media (max-width: 768px) {
  header nav { flex-direction: column; gap: 0.75rem; }
  header ul { gap: 0.25rem; flex-wrap: wrap; justify-content: center; }
  main { padding: 0 1rem; }
  article h1 { font-size: 1.5rem; }
  article .content { padding: 1.25rem; }
  .hero { padding: 1.75rem 1rem; border-radius: 0; margin: 0 -1rem 2rem; }
  .hero h1 { font-size: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-page { padding: 1.5rem; }
}
