/* blog.css */

.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 160px 0 100px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top:-50%; left:50%; transform:translateX(-50%); width:800px; height:800px; background:radial-gradient(circle, rgba(244,184,200,0.1) 0%, transparent 70%); }
.page-hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

/* ── Layout ── */
.blog-main { background: var(--off-white); }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* ── Featured article ── */
.article-featured {
  margin-bottom: 2.5rem;
}

.article-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.article-featured-inner:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.article-featured-img { min-height: 300px; }

.article-img-placeholder {
  width: 100%; height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.article-img-placeholder.navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.article-img-placeholder.pink { background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink) 100%); }
.article-img-placeholder.soft { background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%); }

.article-featured-text { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.article-featured-text h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem; line-height: 1.3; }
.article-featured-text h2 a { color: inherit; transition: color 0.3s; }
.article-featured-text h2 a:hover { color: var(--pink-mid); }
.article-featured-text p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; }

/* ── Article meta ── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-cat {
  background: var(--pink-light);
  color: var(--pink-mid);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink-mid);
  transition: color 0.3s;
}
.article-link:hover { color: var(--navy); }

/* ── Articles grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.article-card .article-img-placeholder { height: 180px; font-size: 3rem; }

.article-body { padding: 1.8rem; }
.article-body h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.7rem; line-height: 1.35; }
.article-body h3 a { color: inherit; transition: color 0.3s; }
.article-body h3 a:hover { color: var(--pink-mid); }
.article-body p { font-size: 0.87rem; line-height: 1.7; margin-bottom: 1rem; }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.page-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.page-btn:hover, .page-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Sidebar ── */
.blog-sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.category-list { display: flex; flex-direction: column; gap: 0.6rem; }

.category-list a {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.category-list a:hover { color: var(--pink-mid); }
.category-list span { font-size: 0.75rem; font-weight: 600; background: var(--pink-light); color: var(--pink-mid); padding: 2px 8px; border-radius: 50px; }

.popular-list { display: flex; flex-direction: column; gap: 0.8rem; }
.popular-list a { font-size: 0.88rem; color: var(--text-muted); line-height: 1.4; transition: color 0.3s; }
.popular-list a:hover { color: var(--pink-mid); }

.sidebar-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.sidebar-cta h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.8rem; }
.sidebar-cta p { color: rgba(255,255,255,0.65); font-size: 0.88rem; }

@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

@media (max-width: 700px) {
  .article-featured-inner { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
}
