/* =============================================
   blog.css — Public Blog Styles
   ============================================= */

/* ── Blog Hero ────────────────────────────── */
.blog-hero {
  position: relative;
  background: linear-gradient(135deg, #031B2A 0%, #0A3055 50%, #0F172A 100%);
  padding: 80px 0 70px;
  text-align: center;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F2BD4E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.blog-hero-content { position: relative; z-index: 2; }
.bismillah-badge-sm {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(242,189,78,0.35);
  border-radius: 30px;
  color: #F2BD4E;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 18px;
  background: rgba(242,189,78,0.06);
}
.blog-hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}
.blog-hero-sub {
  font-size: 16px;
  color: #94A3B8;
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.blog-search-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.blog-search-input {
  flex: 1;
  height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 10px 0 0 10px;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
}
.blog-search-input::placeholder { color: rgba(255,255,255,0.5); }
.blog-search-btn {
  height: 46px;
  padding: 0 22px;
  background: linear-gradient(135deg, #F2BD4E, #B98120);
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.blog-search-btn:hover { opacity: 0.88; }

/* ── Layout ───────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  padding: 50px 0;
  align-items: start;
}
.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  padding: 40px 0 50px;
  align-items: start;
}

/* ── Filter Label ─────────────────────────── */
.blog-filter-label {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: #F8FAFC;
  border-radius: 8px;
  border-left: 3px solid #F2BD4E;
}
.clear-filter {
  color: #EF4444;
  font-weight: 600;
  text-decoration: none;
}
.clear-filter:hover { text-decoration: underline; }

/* ── Blog Grid ────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.blog-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Blog Card ────────────────────────────── */
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #F1F5F9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(3,27,42,0.12);
}
.blog-card-img-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0A3055, #031B2A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  aspect-ratio: 16/9;
}
.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #F2BD4E, #B98120);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.blog-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.4;
  margin: 0 0 10px;
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: #B98120; }
.blog-card-excerpt {
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}
.blog-card-author { font-size: 12px; color: #94A3B8; }
.read-more-link {
  font-size: 13px;
  font-weight: 600;
  color: #B98120;
  text-decoration: none;
  transition: color 0.2s;
}
.read-more-link:hover { color: #0A3055; }

/* ── Pagination ───────────────────────────── */
.blog-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}
.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid #E2E8F0;
  transition: all 0.2s;
}
.page-btn:hover, .page-btn.active {
  background: linear-gradient(135deg, #F2BD4E, #B98120);
  color: #fff;
  border-color: transparent;
}

/* ── Sidebar ──────────────────────────────── */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }
.blog-widget {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid #F1F5F9;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.widget-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #FEF3C7;
}
.widget-cat-list { list-style: none; padding: 0; margin: 0; }
.widget-cat-list li { margin-bottom: 4px; }
.widget-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.widget-cat-list a:hover, .widget-cat-list .active-cat {
  background: #FEF3C7;
  color: #92400E;
}
.cat-count {
  background: #F1F5F9;
  color: #64748B;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.widget-cat-list .active-cat .cat-count { background: #FDE68A; color: #78350F; }

/* Recent Posts */
.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #F8FAFC;
  text-decoration: none;
  transition: opacity 0.15s;
}
.recent-post-item:last-child { border-bottom: none; }
.recent-post-item:hover { opacity: 0.8; }
.recent-post-item.recent-active { opacity: 0.5; pointer-events: none; }
.recent-post-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.recent-post-thumb-placeholder {
  width: 56px;
  height: 42px;
  background: linear-gradient(135deg, #0A3055, #031B2A);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.recent-post-title {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-post-date { font-size: 11px; color: #94A3B8; margin-top: 4px; }

/* CTA Widget */
.blog-cta-widget {
  background: linear-gradient(135deg, #031B2A, #0A3055) !important;
  border: 1px solid rgba(242,189,78,0.2) !important;
  text-align: center;
}
.blog-cta-widget h4 { color: #F2BD4E; font-size: 17px; margin-bottom: 8px; }
.blog-cta-widget p  { color: #94A3B8; font-size: 13px; line-height: 1.6; }

/* ── Blog Detail Article ─────────────────── */
.blog-breadcrumb-bar {
  background: #F8FAFC;
  border-bottom: 1px solid #F1F5F9;
  padding: 12px 0;
  font-size: 13px;
  color: #94A3B8;
}
.blog-breadcrumb-bar a { color: #64748B; text-decoration: none; }
.blog-breadcrumb-bar a:hover { color: #B98120; }
.bc-sep { margin: 0 6px; }
.bc-current { color: #334155; font-weight: 500; }

.blog-article {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  border: 1px solid #F1F5F9;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.article-header { margin-bottom: 28px; }
.blog-cat-badge-lg {
  display: inline-block;
  background: linear-gradient(135deg, #F2BD4E, #B98120);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.article-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  margin: 0 0 16px;
}
.article-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: #94A3B8;
  flex-wrap: wrap;
}
.article-featured-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
  max-height: 420px;
  object-fit: cover;
}

/* Prose (content) */
.prose {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}
.prose h2 { font-size: 22px; font-weight: 700; color: #0F172A; margin: 28px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 600; color: #0F172A; margin: 22px 0 10px; }
.prose p  { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose a  { color: #B98120; text-decoration: underline; }
.prose strong { color: #0F172A; font-weight: 700; }
.prose em { font-style: italic; color: #64748B; }
.prose blockquote {
  border-left: 4px solid #F2BD4E;
  padding: 16px 20px;
  margin: 20px 0;
  background: #FFFBEB;
  border-radius: 0 8px 8px 0;
  color: #78350F;
  font-style: italic;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
}
.tags-label { font-size: 13px; color: #94A3B8; font-weight: 600; }
.tag-pill {
  padding: 4px 12px;
  background: #F1F5F9;
  color: #334155;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Share Bar */
.share-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 18px 20px;
  background: #F8FAFC;
  border-radius: 10px;
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}
.share-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-wa   { background: #25D366; color: #fff; }
.share-fb   { background: #1877F2; color: #fff; }
.share-copy { background: #E2E8F0; color: #334155; }

/* Related Posts */
.related-posts-section {
  background: #F8FAFC;
  padding: 50px 0;
  border-top: 1px solid #F1F5F9;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .blog-layout, .blog-detail-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: -1; flex-direction: row; flex-wrap: wrap; }
  .blog-widget { flex: 1; min-width: 240px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid-3 { grid-template-columns: 1fr; }
  .blog-article { padding: 24px 18px; }
  .blog-hero { padding: 56px 0 50px; }
}
