/* =====================================================
   Individual Blog Page — Saral Groups
   Professional reading experience with refined typography.
   ===================================================== */

/* ── Page Shell ──────────────────────────────────── */

body {
  background-color: #f4f7fb !important;
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  color: #1e293b;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Blog Content Area ──────────────────────────── */

.blog-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Back Link ───────────────────────────────────── */

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4ebdff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.blog-back:hover {
  gap: 10px;
  color: #1276c6;
}

/* ── Title ───────────────────────────────────────── */

.heading {
  text-align: center;
  color: #0d2137;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Description / Lead ──────────────────────────── */

.description {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #475569;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ── Subheadings ─────────────────────────────────── */

.subheading {
  color: #0d2137;
  font-size: 1.45rem;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  padding-left: 14px;
  border-left: 3px solid #4ebdff;
}

/* ── Body Text ───────────────────────────────────── */

.text-justify {
  text-align: justify;
  margin-bottom: 1.1rem;
  font-size: 1.01rem;
  line-height: 1.8;
  color: #334155;
}

/* ── Lists ───────────────────────────────────────── */

.list {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.list-item {
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  list-style: disc;
  color: #334155;
  line-height: 1.7;
}

/* ── Links ───────────────────────────────────────── */

.link {
  color: #1276c6;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(18,118,198,0.2);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.link:hover {
  color: #0b5d9d;
  border-bottom-color: #1276c6;
}

/* ── Blockquotes ─────────────────────────────────── */

blockquote {
  margin: 2.2rem 0;
  padding: 1.3rem 1.6rem;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f2ff 100%);
  border-left: 4px solid #4ebdff;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #1e3a5f;
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Image + Content Wrappers ────────────────────── */

.image-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 2.2rem 0;
}

.content-container {
  flex: 1;
  min-width: 0;
}

.image-container {
  flex-shrink: 0;
  width: 45%;
}
.image-container img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.08);
}

/* Centered image variant */
.image-center-container {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 2.2rem 0;
}
.image-center-container img {
  max-width: 60%;
  border-radius: 12px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.08);
}

/* ── Tags Section ────────────────────────────────── */

.blog-tags-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.blog-tags-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 6px;
}

.blog-tag-pill {
  display: inline-block;
  padding: 5px 15px;
  background: #eef4fb;
  color: #4ebdff;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.blog-tag-pill:hover {
  background: #4ebdff;
  color: white;
}

/* ── Related Blogs ───────────────────────────────── */

.related-blogs {
  max-width: 1080px;
  margin: 5rem auto 2.5rem;
  padding: 0 1.5rem;
}

.related-blogs h2 {
  text-align: center;
  color: #0d2137;
  font-size: 1.7rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.related-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 8px 28px rgba(0,0,0,0.1);
  border-color: #c0cdd8;
}

.related-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.related-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card-body h3 {
  color: #0d2137;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.35;
  font-weight: 700;
}

.related-card-summary {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}

.related-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4ebdff;
  font-weight: 600;
  font-size: 13px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.related-card:hover .related-card-cta {
  gap: 8px;
  color: #1276c6;
}

/* ── View All Articles CTA ───────────────────────── */

.blog-all-cta {
  text-align: center;
  margin-top: 36px;
}

.blog-all-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: #4ebdff;
  color: white;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 28px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(78,189,255,0.3);
}
.blog-all-cta a:hover {
  background: #1276c6;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(18,118,198,0.35);
}

/* ── Marketing CTA Banner ────────────────────────── */

.blog-marketing-cta {
  max-width: 1080px;
  margin: 4.5rem auto 3.5rem;
  padding: 0 1.5rem;
}

.blog-marketing-cta-inner {
  background: linear-gradient(135deg, #0d2137 0%, #1a3d6e 40%, #173f73 100%);
  border-radius: 18px;
  padding: 52px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.blog-marketing-cta-inner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: rgba(78,189,255,0.06);
  border-radius: 50%;
}
.blog-marketing-cta-inner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -50px;
  width: 200px; height: 200px;
  background: rgba(78,189,255,0.04);
  border-radius: 50%;
}

.blog-marketing-cta-inner h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  color: #fff;
}

.blog-marketing-cta-inner p {
  font-size: 1.03rem;
  line-height: 1.7;
  max-width: 660px;
  margin: 0 auto 24px;
  opacity: 0.88;
  position: relative;
  z-index: 1;
}

.blog-marketing-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: #4ebdff;
  color: white;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(78,189,255,0.3);
}
.blog-marketing-cta-btn:hover {
  background: #3aa8e8;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(78,189,255,0.4);
}

/* ── Related Categories ──────────────────────────── */

.blog-related-cats {
  max-width: 1080px;
  margin: 3.5rem auto 4.5rem;
  padding: 0 1.5rem;
}

.blog-related-cats h2 {
  text-align: center;
  color: #0d2137;
  font-size: 1.7rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.blog-related-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.blog-cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  text-decoration: none;
  color: #0d2137;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.blog-cat-card:hover {
  border-color: #4ebdff;
  box-shadow: 0 2px 8px rgba(78,189,255,0.12), 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.blog-cat-card-icon { color: #4ebdff; flex-shrink: 0; }
.blog-cat-card-label { flex: 1; }
.blog-cat-card-arrow {
  color: #c0cdd8;
  transition: transform 0.2s ease, color 0.2s ease;
}
.blog-cat-card:hover .blog-cat-card-arrow {
  transform: translateX(3px);
  color: #4ebdff;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
  .blog-article { padding: 1.2rem 1rem; }
  .heading { font-size: 1.7rem; }
  .subheading { font-size: 1.22rem; }
  .description { font-size: 1.02rem; }
  .image-content-wrapper { flex-direction: column; }
  .image-container { width: 100%; order: -1; }
  .image-container img { max-height: 240px; }
  .image-center-container img { max-width: 90%; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-marketing-cta-inner { padding: 36px 24px; }
  .blog-marketing-cta-inner h2 { font-size: 1.4rem; }
  .blog-marketing-cta-inner p { font-size: 0.94rem; }
  .blog-related-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .blog-cat-card { padding: 14px 16px; font-size: 13px; }
}
