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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1100px;
  height: 62px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  color: var(--text);
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
}

.logo-image {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  vertical-align: middle;
}

.logo span,
.blog-hero h1 span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

.page {
  max-width: 1100px;
  margin: auto;
  padding: 3rem 1.5rem;
}

.blog-hero {
  margin-bottom: 3rem;
  text-align: center;
}

.blog-hero h1 {
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.blog-hero p {
  max-width: 580px;
  margin: auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.articles,
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-card {
  position: relative;
  display: flex;
  gap: 1.25rem;
  overflow: hidden;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.article-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  content: "";
  opacity: 0;
  transition: opacity 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.article-card:hover::before {
  opacity: 1;
}

.article-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  font-size: 1.6rem;
}

.article-body {
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.article-cat {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f8fafc;
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-date,
.article-read {
  color: var(--muted);
  font-size: 0.72rem;
}

.article-body h2,
.featured-card h2 {
  margin-bottom: 0.5rem;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-body p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-footer,
.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  padding: 0.1rem 0.42rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.67rem;
}

.read-more {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.featured-card {
  display: block;
  margin-bottom: 1.25rem;
  padding: 1.75rem;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fffbeb;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.featured-label {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-card h2 {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.35;
}

.featured-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.widget {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.widget-header {
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.widget-body {
  padding: 0.85rem 1.15rem;
}

.widget-body--topics {
  padding-bottom: 0.65rem;
}

.quick-tip {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.quick-tip:last-child {
  margin-bottom: 0;
}

.sidebar-article {
  display: flex;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-article:last-child {
  border-bottom: none;
}

.sidebar-article:hover {
  color: var(--accent);
}

.sa-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 1rem;
}

.sa-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
}

.sa-meta {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.topic-chip {
  display: inline-block;
  margin: 0.2rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
}

.topic-chip:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.ad-banner {
  min-height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1.2rem;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.ad-banner--spaced {
  margin-top: 0.5rem;
}

.adsbygoogle {
  display: block;
}

.ad-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer {
  margin-top: 2rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  text-align: center;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.77rem;
}

.footer-copy a {
  color: var(--accent2);
  text-decoration: none;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav-menu {
    display: none;
  }

  .article-card {
    flex-direction: column;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .page {
    padding: 2rem 1rem;
  }

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