:root {
  --blue: #0a4dd8;
  --blue-dark: #083a9c;
  --gray-bg: #f4f6f8;
  --gray-light: #e6e8eb;
  --gray-text: #2c2c2c;
  --gray-muted: #6b7280;
  --white: #ffffff;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  margin-right: 48px;
}

.main-nav a {
  margin-right: 22px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-text);
}

.main-nav a:hover {
  color: var(--blue);
}

/* Layout */
.page-wrapper {
  max-width: 1440px;
  margin: 0 auto;
}

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

.content-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  padding: 40px;
}

/* Hero */
.hero-main {
  background: var(--white);
  overflow: hidden;
}

.hero-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-content {
  padding: 28px;
}

.hero-content h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 12px 0;
}

.category-tag {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

/* Hero Side */
.hero-side article {
  background: var(--white);
  padding: 22px;
  margin-bottom: 20px;
}

.hero-side h3 {
  font-size: 18px;
  line-height: 1.4;
}

/* Category Section */
.category-section {
  background: var(--white);
  padding: 28px;
  margin-bottom: 40px;
}

.category-section header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gray-light);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.category-section h2 {
  font-size: 22px;
  font-weight: 800;
}

.category-section a {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.category-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.featured img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.featured h3 {
  font-size: 20px;
  margin-top: 12px;
}

.category-list li {
  list-style: none;
  margin-bottom: 12px;
}

.category-list a {
  text-decoration: none;
  font-weight: 500;
  color: var(--gray-text);
}

.category-list a:hover {
  color: var(--blue);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.sidebar-box {
  background: var(--white);
  padding: 22px;
  margin-bottom: 28px;
}

.sidebar-box h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.ad-placeholder {
  height: 600px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Footer */
footer {
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  padding: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--gray-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .hero-main img {
    height: 260px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .page-wrapper {
    padding: 0;
  }
}
