/* ============================================
   HIJIR Blog — Styles
   ============================================ */

/* Blog listing */
.blog-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.blog-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.blog-header h1 { margin-bottom: 16px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-body { padding: 28px; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.blog-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
}
.blog-date {
  font-size: 12px;
  color: var(--cream-muted);
  letter-spacing: 0.04em;
}

.blog-card h2 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--white);
}
.blog-card p {
  font-size: 14px;
  color: var(--cream-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.blog-read {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* Article page */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.article-back {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
  transition: color 0.3s ease;
}
.article-back:hover { color: var(--gold); }

.article-header { margin-bottom: 40px; }
.article-header h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  margin: 16px 0;
}
.article-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

.article-hero-img {
  margin-bottom: 48px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--cream-muted);
}
.article-body p { margin-bottom: 20px; }

.article-body h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--white);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.article-body h3 {
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--cream);
  margin: 32px 0 10px;
}
.article-body strong { color: var(--cream); font-weight: 600; }
.article-body em { color: var(--gold); }

.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
.article-body li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.article-body li::marker { color: var(--gold); }

/* Article CTA box */
.article-cta-box {
  margin: 48px 0;
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--gold);
  border-radius: 12px;
  text-align: center;
}
.article-cta-box p {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 20px;
  font-style: italic;
}
.article-cta-box .btn-primary { margin: 0 auto; }

/* Share section */
.share-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.share-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 16px;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--sans);
}
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.share-wa {
  background: #25D366;
  color: #fff;
}
.share-wa:hover { background: #1da855; }

.share-fb {
  background: #1877F2;
  color: #fff;
}
.share-fb:hover { background: #0d65d8; }

.share-copy {
  background: var(--bg-elev);
  color: var(--cream);
  border: 1px solid var(--line-soft);
}
.share-copy:hover { border-color: var(--gold); color: var(--gold); }

/* Article prev/next nav */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-main { padding: 100px 20px 60px; }
  .article-wrap { padding: 90px 20px 60px; }
  .share-buttons { flex-direction: column; }
  .share-btn { justify-content: center; }
  .article-nav { flex-direction: column; }
}
