/* Blog page styles */
.blog-hero {
  color: #fff;
  background: linear-gradient(120deg, #073f32 0%, #0b5944 58%, #98752e 145%);
  padding: 88px 22px;
}
.blog-hero-inner { width: min(1120px, 100%); margin: 0 auto; }
.blog-eyebrow {
  display: inline-block;
  color: #ad853d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.blog-hero .blog-eyebrow { color: #f0d18d; }
.blog-hero h1 {
  max-width: 850px;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.12;
  margin: 0 0 18px;
}
.blog-hero p {
  max-width: 780px;
  color: #f0f4f1;
  font-size: 1.07rem;
  line-height: 1.8;
  margin: 0 0 26px;
}
.blog-hero-button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 13px 21px;
  background: #d5ad62;
  color: #17291f;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 750;
}
.blog-intro { padding: 66px 22px 28px; }
.blog-intro > div { max-width: 850px; margin: 0 auto; text-align: center; }
.blog-intro h2, .blog-section-heading h2 {
  color: #123d30;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 13px;
}
.blog-intro p { color: #48534c; line-height: 1.8; margin: 0; }

.blog-list-section { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 78px; }
.blog-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.blog-section-heading h2 { margin-bottom: 0; }
.blog-search-wrap input {
  width: min(290px, 100%);
  box-sizing: border-box;
  border: 1px solid #cbd5cd;
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
  color: #17251d;
  background: #fff;
}
.blog-search-wrap input:focus { outline: 3px solid rgba(40,115,84,.15); border-color: #287354; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.blog-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 27px; }
.blog-filter {
  border: 1px solid #cbd8ce;
  background: #fff;
  color: #244537;
  border-radius: 30px;
  padding: 9px 15px;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
}
.blog-filter:hover, .blog-filter.active { background: #0d563f; color: #fff; border-color: #0d563f; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.blog-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e8e2;
  border-radius: 10px;
  box-shadow: 0 7px 23px rgba(20,54,39,.055);
  min-width: 0;
}
.blog-card[hidden] { display: none; }
.blog-card-top {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #f7e9c8;
  background: linear-gradient(135deg, #0a4938, #1a6b50);
}
.blog-card-top span { font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: 1px; }
.blog-card-top small { font-size: .68rem; letter-spacing: 2px; color: #e6cb91; font-weight: 750; }
.tajweed-art { background: linear-gradient(135deg, #163d35, #8a6c35); }
.ahlulbayt-art { background: linear-gradient(135deg, #123c35, #285f4b); }
.family-art { background: linear-gradient(135deg, #496044, #b18a4c); }
.tafseer-art { background: linear-gradient(135deg, #263f59, #527b71); }
.imam-art { background: linear-gradient(135deg, #183e36, #806a42); }
.blog-card-body { padding: 22px 22px 23px; }
.blog-category {
  display: inline-block;
  color: #89672d;
  background: #f7f1e5;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 750;
}
.blog-card h3 { color: #183e31; font-size: 1.17rem; line-height: 1.45; margin: 13px 0 9px; }
.blog-card-body > p { color: #4b554f; line-height: 1.7; font-size: .94rem; margin: 0 0 15px; }
.article-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #126044;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.article-toggle:hover { color: #8a682f; }
.article-content { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2e9e3; }
.article-content p { color: #3f4b43; font-size: .93rem; line-height: 1.75; margin: 0 0 12px; }
.article-content p:last-child { margin-bottom: 0; }
.no-articles { padding: 30px; text-align: center; color: #4c574f; background: #f3f6f2; border-radius: 8px; }
.blog-editorial-note { color: #657068; font-size: .85rem; line-height: 1.65; margin: 26px 0 0; }
.blog-cta { text-align: center; background: #f2f6f1; padding: 62px 22px; }
.blog-cta h2 { color: #123d30; font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 0 0 12px; }
.blog-cta p { max-width: 760px; color: #46514a; line-height: 1.75; margin: 0 auto 24px; }
.blog-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; }
.blog-cta-actions a { padding: 12px 20px; border-radius: 5px; text-decoration: none; font-weight: 750; }
.blog-cta-primary { background: #0d563f; color: #fff; }
.blog-cta-secondary { border: 1px solid #0d563f; color: #0d563f; }

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .blog-hero { padding: 65px 20px; }
  .blog-intro { padding: 52px 20px 20px; }
  .blog-list-section { width: min(100% - 28px, 1160px); padding-top: 35px; }
  .blog-section-heading { align-items: stretch; flex-direction: column; }
  .blog-search-wrap input { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-top { min-height: 140px; }
}

/* Keyboard accessibility */

.blog-hero-button:focus-visible,
.blog-filter:focus-visible,
.article-toggle:focus-visible,
.blog-cta-actions a:focus-visible {
    outline: 3px solid #c49a48;
    outline-offset: 4px;
}

.blog-search-wrap input:focus-visible {
    outline: 3px solid #287354;
    outline-offset: 3px;
}