/* ==========================================================
   Blog styles - G.D. Goenka Public School, Dakshineswar
   All rules are scoped under .blog-page so the main site
   stylesheet cannot override them.
   ========================================================== */
:root {
  --hdr: 125px;            /* fixed header height - re-measured by JS */
  --g-red: #ed1c24;
  --g-blue: #104D7C;
  --g-navy: #0f3885;
  --g-ink: #27303f;
  --g-text: #374151;
  --g-muted: #6b7280;
  --g-soft: #f3f6fb;
  --g-line: #e3e9f1;
  --g-shadow: 0 10px 34px rgba(16, 77, 124, .10);
}
@media (max-width: 991px) {
  :root { --hdr: 90px; }
}

.blog-page { font-family: 'Poppins', sans-serif; color: var(--g-ink); }

/* ---------- Reading progress ---------- */
.blog-page #blogProgress {
  position: fixed; left: 0; top: var(--hdr); height: 3px; width: 0;
  background: linear-gradient(90deg, var(--g-red), #ff7a59); z-index: 90;
}

/* ---------- Hero ---------- */
.blog-page .blog-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--hdr) + 46px) 0 120px;
  background: linear-gradient(135deg, #0f3885 0%, #104D7C 58%, #0a2a63 100%);
}
.blog-page .blog-hero:before {
  content: ""; position: absolute; right: -120px; top: -140px;
  width: 460px; height: 460px; border-radius: 50%; background: rgba(237, 28, 36, .20);
}
.blog-page .blog-hero:after {
  content: ""; position: absolute; left: -90px; bottom: -160px;
  width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.blog-page .blog-hero .container { position: relative; z-index: 1; }

.blog-page .blog-breadcrumb { font-size: 13px; margin-bottom: 18px; color: rgba(255, 255, 255, .8); }
.blog-page .blog-breadcrumb a { color: #fff; text-decoration: none; opacity: .9; }
.blog-page .blog-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.blog-page .blog-breadcrumb i { margin: 0 7px; opacity: .7; }

.blog-page .hero-chip {
  display: inline-block; background: var(--g-red); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 30px; margin-bottom: 16px;
}
.blog-page .hero-chip i { margin-right: 6px; }
.blog-page .blog-hero h1 {
  font-family: 'Poppins', sans-serif; color: #fff; font-weight: 700;
  font-size: 40px; line-height: 1.25; max-width: 860px; margin: 0 0 20px; letter-spacing: -.2px;
}
.blog-page .hero-meta span { display: inline-block; margin: 0 24px 6px 0; font-size: 14px; color: rgba(255, 255, 255, .92); }
.blog-page .hero-meta i { margin-right: 7px; color: #ffb3b6; }
.blog-page .hero-meta b { font-weight: 500; }
.blog-page .hero-sub { max-width: 780px; font-size: 17px; line-height: 1.8; color: rgba(255, 255, 255, .92); margin: 0; }
.blog-page .hero-sub a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ---------- Layout (cards overlap the hero) ---------- */
.blog-page .blog-layout {
  position: relative; z-index: 2; margin-top: -64px; padding: 0 0 70px;
  background: linear-gradient(to bottom, transparent 64px, var(--g-soft) 64px);
}

/* ---------- Article card ---------- */
.blog-page .blog-article {
  background: #fff; border-radius: 16px; box-shadow: var(--g-shadow); padding: 46px 50px 34px;
}
.blog-page .blog-body h2 {
  font-family: 'Poppins', sans-serif; font-size: 27px; font-weight: 700; line-height: 1.35;
  color: var(--g-navy); margin: 48px 0 18px; padding: 0 0 14px; position: relative; border: 0;
  scroll-margin-top: calc(var(--hdr) + 24px);
}
.blog-page .blog-body h2:first-child { margin-top: 0; }
.blog-page .blog-body h2:after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--g-red), #ff7a59);
}
.blog-page .blog-body h3 {
  font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; color: var(--g-blue); margin: 0;
}
.blog-page .blog-body p {
  font-size: 16.5px; line-height: 1.9; color: var(--g-text); margin: 0 0 18px;
}
.blog-page .blog-body p.lead-p {
  font-size: 18.5px; line-height: 1.85; font-weight: 500; color: var(--g-ink);
  padding-left: 18px; border-left: 4px solid var(--g-red); margin-bottom: 26px;
}
.blog-page .blog-body a {
  color: var(--g-red); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(237, 28, 36, .35);
}
.blog-page .blog-body a:hover { color: var(--g-blue); border-bottom-color: var(--g-blue); }

/* Check-mark bullet list */
.blog-page .blog-body ul { list-style: none; padding: 0; margin: 0 0 24px; }
.blog-page .blog-body ul li {
  position: relative; padding: 11px 16px 11px 50px; margin-bottom: 9px;
  background: var(--g-soft); border-radius: 10px; font-size: 16px; line-height: 1.7; color: var(--g-text);
}
.blog-page .blog-body ul li:before {
  content: "\f00c"; font-family: FontAwesome; position: absolute; left: 14px; top: 12px;
  width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%;
  background: var(--g-red); color: #fff; font-size: 11px;
}
/* Numbered step list */
.blog-page .blog-body ol { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; }
.blog-page .blog-body ol li {
  counter-increment: step; position: relative; padding: 13px 16px 13px 58px; margin-bottom: 10px;
  background: var(--g-soft); border-radius: 10px; font-size: 16px; line-height: 1.7; color: var(--g-text);
}
.blog-page .blog-body ol li:before {
  content: counter(step); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px;
  line-height: 30px; text-align: center; border-radius: 50%; background: var(--g-navy); color: #fff;
  font-weight: 600; font-size: 14px;
}

/* Table */
.blog-page .tbl-wrap { overflow-x: auto; margin: 24px 0 30px; border-radius: 12px; box-shadow: 0 0 0 1px var(--g-line); }
.blog-page .blog-body table { width: 100%; min-width: 540px; border-collapse: separate; border-spacing: 0; margin: 0; }
.blog-page .blog-body th {
  background: linear-gradient(90deg, var(--g-navy), var(--g-blue)); color: #fff; padding: 15px 18px;
  font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; text-align: left; border: 0;
}
.blog-page .blog-body td {
  padding: 15px 18px; border: 0; border-top: 1px solid var(--g-line); font-size: 15px; color: var(--g-text);
}
.blog-page .blog-body tbody tr:nth-child(even) td { background: #f8fafd; }
.blog-page .blog-body tbody tr:hover td { background: #eef4fa; }
.blog-page .blog-body td:first-child { font-weight: 600; color: var(--g-navy); }

/* FAQ accordion */
.blog-page .faq-list { margin: 8px 0 10px; }
.blog-page .faq-item {
  background: #fff; border: 1px solid var(--g-line); border-radius: 12px; margin-bottom: 12px; overflow: hidden;
  transition: box-shadow .2s;
}
.blog-page .faq-item[open] { box-shadow: 0 6px 20px rgba(16, 77, 124, .10); border-color: #cfdbe9; }
.blog-page .faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; outline: none;
}
.blog-page .faq-item summary::-webkit-details-marker { display: none; }
.blog-page .faq-item summary h3 { display: inline; font-size: 16.5px; line-height: 1.5; color: var(--g-navy); }
.blog-page .faq-item summary:after {
  content: "\f067"; font-family: FontAwesome; position: absolute; right: 18px; top: 50%; margin-top: -13px;
  width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%;
  background: var(--g-soft); color: var(--g-red); font-size: 11px;
}
.blog-page .faq-item[open] summary:after { content: "\f068"; background: var(--g-red); color: #fff; }
.blog-page .faq-a { padding: 0 20px 6px; }
.blog-page .faq-a p { margin-bottom: 14px; }

/* Share row */
.blog-page .blog-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--g-line);
}
.blog-page .blog-share span { font-size: 14px; font-weight: 600; color: var(--g-muted); margin-right: 4px; }
.blog-page .blog-share a, .blog-page .blog-share button {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; min-width: 38px; padding: 0 14px;
  border: 0; border-radius: 30px; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.blog-page .blog-share i { font-size: 16px; }
.blog-page .blog-share .sh-fb { background: #1877f2; }
.blog-page .blog-share .sh-wa { background: #25d366; }
.blog-page .blog-share .sh-cp { background: var(--g-navy); }
.blog-page .blog-share .sh-cp i { margin-right: 7px; }
.blog-page .blog-share a:hover, .blog-page .blog-share button:hover { opacity: .88; color: #fff; }

/* ---------- Related posts ---------- */
.blog-page .related { margin-top: 30px; }
.blog-page .related-title { font-size: 20px; font-weight: 700; color: var(--g-navy); margin: 0 0 14px; }
.blog-page .related-card {
  display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--g-shadow); text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.blog-page .related-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(16, 77, 124, .16); }
.blog-page .rc-icon {
  flex: 0 0 54px; height: 54px; line-height: 54px; text-align: center; border-radius: 14px; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--g-red), #ff7a59);
}
.blog-page .rc-text { flex: 1; }
.blog-page .rc-text small { display: block; font-size: 12.5px; color: var(--g-muted); text-transform: uppercase; letter-spacing: .4px; }
.blog-page .rc-text strong { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.45; color: var(--g-navy); }
.blog-page .rc-arrow { color: var(--g-red); }

/* ---------- Sidebar ---------- */
.blog-page .aside-sticky { position: sticky; top: calc(var(--hdr) + 22px); }
.blog-page .aside-card { background: #fff; border-radius: 16px; box-shadow: var(--g-shadow); padding: 24px; margin-bottom: 22px; }
.blog-page .aside-card h4 {
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--g-navy); margin: 0 0 14px;
}
.blog-page .aside-card h4 i { color: var(--g-red); margin-right: 6px; }
.blog-page #toc {
  list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 140px;
  max-height: calc(100vh - var(--hdr) - 340px);
}
.blog-page #toc li { margin: 0; padding: 0; }
.blog-page #toc a {
  display: block; padding: 7px 10px 7px 14px; font-size: 13.5px; line-height: 1.5; color: #4b5563; text-decoration: none;
  border-left: 3px solid var(--g-line); transition: all .15s;
}
.blog-page #toc a:hover, .blog-page #toc a.active {
  color: var(--g-red); border-left-color: var(--g-red); background: #fff5f5; font-weight: 600;
}

.blog-page .cta-card { background: linear-gradient(145deg, var(--g-navy), var(--g-blue)); color: #fff; position: relative; overflow: hidden; }
.blog-page .cta-card:after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 140px; height: 140px; border-radius: 50%;
  background: rgba(237, 28, 36, .28);
}
.blog-page .cta-card > * { position: relative; z-index: 1; }
.blog-page .cta-tag {
  display: inline-block; background: var(--g-red); font-size: 11.5px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.blog-page .cta-card h4 { color: #fff; font-size: 18px; line-height: 1.4; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.blog-page .cta-card p { font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .88); margin-bottom: 14px; }
.blog-page .cta-call {
  display: block; padding: 9px 14px; margin-bottom: 8px; border-radius: 10px; background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
}
.blog-page .cta-call i { margin-right: 8px; color: #ffb3b6; }
.blog-page .cta-call:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.blog-page .cta-apply {
  display: block; text-align: center; margin-top: 12px; padding: 11px 14px; border-radius: 10px;
  background: var(--g-red); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
}
.blog-page .cta-apply:hover { background: #fff; color: var(--g-red); }
.blog-page .cta-apply i { margin-left: 6px; }

/* ---------- Bottom CTA band ---------- */
.blog-page .blog-cta-band { background: linear-gradient(120deg, var(--g-navy), var(--g-blue)); padding: 38px 0; }
.blog-page .cta-band-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.blog-page .cta-band-inner h2 { color: #fff; font-size: 26px; font-weight: 700; margin: 0 0 6px; font-family: 'Poppins', sans-serif; }
.blog-page .cta-band-inner p { color: rgba(255, 255, 255, .9); margin: 0; font-size: 15.5px; }
.blog-page .cta-band-inner p a { color: #fff; font-weight: 600; text-decoration: underline; }
.blog-page .btn-cta {
  display: inline-block; background: var(--g-red); color: #fff; padding: 13px 32px; border-radius: 40px;
  font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transition: all .2s;
}
.blog-page .btn-cta:hover { background: #fff; color: var(--g-red); }
.blog-page .btn-cta i { margin-left: 8px; }

/* ---------- Blog listing (index) ---------- */
.blog-page .post-card {
  display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--g-shadow); transition: transform .25s, box-shadow .25s;
}
.blog-page .post-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(16, 77, 124, .18); }
.blog-page .pc-media {
  position: relative; height: 170px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 62px;
  background: linear-gradient(135deg, var(--g-navy), var(--g-blue)); overflow: hidden;
}
.blog-page .pc-media:before {
  content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: rgba(237, 28, 36, .28);
}
.blog-page .pc-media i { position: relative; z-index: 1; }
.blog-page .pc-chip {
  position: absolute; left: 18px; top: 18px; z-index: 1; background: var(--g-red); color: #fff; font-size: 11.5px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
}
.blog-page .pc-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 24px; }
.blog-page .pc-meta { font-size: 13px; color: var(--g-muted); margin-bottom: 10px; }
.blog-page .pc-meta i { color: var(--g-red); margin-right: 5px; }
.blog-page .pc-meta span { margin-right: 16px; }
.blog-page .pc-body h2 { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; line-height: 1.45; margin: 0 0 10px; }
.blog-page .pc-body h2 a { color: var(--g-navy); text-decoration: none; }
.blog-page .pc-body h2 a:hover { color: var(--g-red); }
.blog-page .pc-body p { font-size: 15px; line-height: 1.75; color: var(--g-text); margin: 0 0 18px; }
.blog-page .read-more { margin-top: auto; color: var(--g-red); font-weight: 600; font-size: 15px; text-decoration: none; }
.blog-page .read-more i { margin-left: 6px; transition: margin .2s; }
.blog-page .post-card:hover .read-more i { margin-left: 12px; }
.blog-page .blog-layout--index .row > [class*="col-"] { margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .blog-page .blog-hero h1 { font-size: 32px; }
  .blog-page .blog-article { padding: 34px 30px 26px; }
  .blog-page .aside-sticky { position: static; margin-top: 26px; }
  .blog-page .toc-card { display: none; }
}
@media (max-width: 575px) {
  .blog-page .blog-hero { padding: calc(var(--hdr) + 28px) 0 100px; }
  .blog-page .blog-hero h1 { font-size: 26px; }
  .blog-page .hero-meta span { margin-right: 14px; font-size: 13px; }
  .blog-page .blog-article { padding: 26px 18px 20px; border-radius: 12px; }
  .blog-page .blog-body h2 { font-size: 22px; margin-top: 38px; }
  .blog-page .blog-body p { font-size: 15.5px; }
  .blog-page .blog-body p.lead-p { font-size: 16.5px; }
  .blog-page .blog-body ul li, .blog-page .blog-body ol li { font-size: 15px; }
  .blog-page .cta-band-inner h2 { font-size: 21px; }
  .blog-page .btn-cta { width: 100%; text-align: center; }
}