
:root {
  --bg: #f7f9fc;
  --bg-card: #ffffff;
  --primary: #1f4f8b;
  --secondary: #f59e0b;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 12px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo-main {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary);
}

.logo-tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav a {
  margin-left: 12px;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
}

.main-nav a:hover {
  background: #eff6ff;
}

/* Layout */
.page-main {
  padding: 24px 0 40px;
}

.hero {
  background: linear-gradient(135deg, #eff6ff, #fef3c7);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.hero h1 {
  margin-top: 0;
  font-size: 1.6rem;
}

.hero p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Cards & grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* Article pages */
.page-content {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.page-content h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

.page-content h2 {
  margin-top: 1.4rem;
  font-size: 1.1rem;
}

.article-list {
  padding-left: 20px;
}

.article-list li {
  margin-bottom: 6px;
}

/* Ad sections */
.ad-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.ad-section h2 {
  font-size: 1rem;
}

.ad-slot {
  margin-top: 10px;
  min-height: 90px;
  border-radius: 12px;
  border: 1px dashed #d1d5db;
  background: repeating-linear-gradient(
    45deg,
    #f9fafb,
    #f9fafb 10px,
    #f3f4f6 10px,
    #f3f4f6 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
}

.contact-form button {
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  background: radial-gradient(circle at top left, var(--secondary), var(--primary));
  color: white;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.95;
}

.form-info {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-inner {
  padding: 16px 0 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-note {
  margin-top: 4px;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    margin-top: 8px;
  }
  .main-nav a {
    margin-left: 0;
    margin-right: 8px;
  }
}
