@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root { --font: 'Inter', sans-serif; }

html, body {
  font-family: var(--font);
  background: #ffffff;
  color: #0d0d0d;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── BLOG NAV ── */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 24px;
}
.blog-nav__logo { height: 26px; width: auto; }
.blog-nav__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  margin-left: auto;
  transition: color 0.2s;
}
.blog-nav__back:hover { color: #0d0d0d; }
.blog-nav__back svg { width: 14px; height: 14px; }

/* ── BLOG INDEX HERO ── */
.blog-hero {
  padding: 80px 40px 56px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.blog-hero__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
  margin-bottom: 20px;
}
.blog-hero__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #0d0d0d;
  margin-bottom: 16px;
}
.blog-hero__sub {
  font-size: 17px;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
  max-width: 520px;
}

/* ── ARTICLES GRID ── */
.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 40px 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  background: #f4f3f1;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.blog-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
}
.blog-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-card__category {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7B6FD4;
  background: rgba(158,176,240,0.15);
  padding: 4px 10px;
  border-radius: 100px;
}
.blog-card__date {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}
.blog-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0d0d0d;
}
.blog-card__excerpt {
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  line-height: 1.7;
  flex: 1;
}
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0d0d0d;
  margin-top: 8px;
  transition: gap 0.2s;
}
.blog-card__link:hover { gap: 10px; }
.blog-card__link svg { width: 14px; height: 14px; }

/* ── ARTICLE PAGE ── */
.article-hero {
  width: 100%;
  height: 480px;
  overflow: hidden;
  position: relative;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.35) 100%);
}

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px 100px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.article-meta__category {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7B6FD4;
  background: rgba(158,176,240,0.15);
  padding: 4px 10px;
  border-radius: 100px;
}
.article-meta__date {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
}
.article-meta__author {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
}
.article-meta__dot { color: rgba(0,0,0,0.2); }

.article-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #0d0d0d;
  margin-bottom: 32px;
}

.article-body {
  font-size: 16.5px;
  line-height: 1.78;
  color: rgba(0,0,0,0.72);
}
.article-body p { margin-bottom: 24px; }
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0d0d0d;
  margin: 40px 0 16px;
  line-height: 1.25;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0d0d0d;
  margin: 32px 0 12px;
}
.article-body a {
  color: #7B6FD4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: #9EB0F0; }
.article-body ul {
  padding-left: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body li { color: rgba(0,0,0,0.72); }

.article-quote {
  border-left: 3px solid #9EB0F0;
  padding: 20px 28px;
  margin: 36px 0;
  background: #f4f3f1;
  border-radius: 0 12px 12px 0;
}
.article-quote p {
  font-size: 17px;
  font-style: italic;
  color: #0d0d0d;
  line-height: 1.65;
  margin-bottom: 10px !important;
}
.article-quote cite {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.5);
  font-style: normal;
}

.article-img {
  width: 100%;
  border-radius: 16px;
  margin: 36px 0;
  overflow: hidden;
}
.article-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}
.article-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 36px 0;
}
.article-img-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
}
.article-img figcaption,
.article-img-grid figcaption {
  font-size: 12px;
  color: rgba(0,0,0,0.38);
  text-align: center;
  padding-top: 10px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.article-tag {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  background: #f0f0ee;
  padding: 6px 14px;
  border-radius: 100px;
}

/* ── RELATED ARTICLES ── */
.related {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px 80px;
}
.related__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.related__card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: #f4f3f1;
  border-radius: 14px;
  transition: background 0.2s;
}
.related__card:hover { background: #eceae8; }
.related__card img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.related__card-title {
  font-size: 15px;
  font-weight: 600;
  color: #0d0d0d;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 4px;
}
.related__card-date {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}

/* ── BLOG FOOTER ── */
.blog-footer {
  background: #131316;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-footer img { height: 24px; width: auto; }
.blog-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

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

@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px 60px; }
  .blog-hero { padding: 48px 20px 32px; }
  .blog-hero__title { font-size: clamp(28px, 8vw, 44px); }
  .blog-hero__sub { font-size: 15px; }
  .blog-card__img { height: 200px; }
  .blog-card__title { font-size: 17px; }
  .article-img-grid { grid-template-columns: 1fr; }
  .blog-nav { padding: 0 20px; }
  .blog-hero, .article-wrap, .related { padding-left: 20px; padding-right: 20px; }
  .article-hero { height: 280px; }
  .article-title { font-size: clamp(22px, 6vw, 36px); }
  .article-body { font-size: 15px; }
}
