html {
  scroll-behavior: smooth;
}

:root {
  --primary: #2b59ff;
  --accent: #1f1f1f;
  --muted: #6b6b6b;
  --bg: #fff;
  --radius: 12px;
  font-family: Inter, system-ui, sans-serif;
}

body {
  margin: 0;
  background: #fafafa;
  color: var(--accent);
  line-height: 1.6;
}

.container {
  width: min(92%, 1100px);
  margin: 0 auto;
}

/* NAVBAR */
.topbar {
  background: #ffffffc7;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e5e5e5;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
  font-size: 1.25rem;
}

.nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.nav a.active {
  color: var(--primary);
}

/* HERO */
.hero {
  padding: 60px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
}

/* SUMMARY */
.summary {
  padding: 60px 0;
  background: #fff;
}

.summary .desc {
  max-width: 700px;
  color: var(--muted);
  margin-bottom: 40px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.item {
  padding: 20px;
  background: #f3f4f6;
  border-radius: var(--radius);
}

.item h3 {
  margin-top: 0;
}

/* LATEST ARTICLES */
.latest {
  padding: 60px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body {
  padding: 20px;
}

.btn-outline {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  margin-top: 10px;
}

/* FOOTER */
.footer {
  padding: 30px 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.ads-section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 16px 0;
  box-sizing: border-box;
}

/* RESPONSIVE */
@media (max-width: 850px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}
