/* Blog listing, article and contact pages */
.content-page {
  background: #f7f5f5;
  padding: 18px 0 64px;
  min-height: 65vh;
}
.content-page .breadcrumb {
  font-size: 13px;
  margin-bottom: 22px;
}
.content-page .breadcrumb a {
  color: #65748a;
  text-decoration: none;
}
.content-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 0 0 26px;
}
.eyebrow {
  display: inline-block;
  color: #1766bd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.content-page-heading h1 {
  font-size: 30px;
  font-weight: 700;
  color: #17243b;
  margin: 0 0 6px;
}
.content-page-heading p {
  font-size: 14px;
  color: #778397;
  margin: 0;
}
.blog-sidebar-note {
  background: #f1f6fd;
  border-radius: 10px;
  padding: 14px;
  margin-top: 20px;
  color: #2569b5;
}
.blog-sidebar-note > i {
  font-size: 20px;
}
.blog-sidebar-note strong {
  display: block;
  font-size: 13px;
  color: #203a5e;
  margin: 8px 0 5px;
}
.blog-sidebar-note p {
  font-size: 11px;
  color: #687991;
  margin: 0 0 9px;
}
.blog-sidebar-note a {
  font-size: 12px;
  font-weight: 700;
  color: #1769c2;
  text-decoration: none;
}
.blog-article {
  max-width: 900px;
}
.article-topline {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #8290a3;
  font-size: 12px;
  margin: 4px 0 15px;
}
.article-category {
  background: #edf5ff;
  color: #1769c2;
  border-radius: 5px;
  padding: 6px 10px;
  font-weight: 700;
}
.blog-article > h1 {
  font-size: 34px;
  line-height: 1.2;
  color: #17243b;
  font-weight: 700;
  max-width: 850px;
  margin: 0 0 12px;
}
.article-intro {
  font-size: 16px;
  line-height: 1.65;
  color: #718097;
  max-width: 820px;
}
.article-author-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #edf0f4;
  padding: 14px 0 18px;
  margin-bottom: 20px;
}
.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf3ff;
  color: #1769c2;
  font-weight: 700;
  font-size: 12px;
}
.article-author-row > div:nth-child(2) {
  display: grid;
  gap: 3px;
}
.article-author-row strong {
  font-size: 12px;
  color: #30415c;
}
.article-author-row span {
  font-size: 11px;
  color: #8a96a8;
}
.article-share {
  margin-left: auto;
  border: 1px solid #e4e9f0;
  background: #fff;
  border-radius: 7px;
  padding: 8px 12px;
  color: #52627a;
  font-size: 12px;
}
.article-cover {
  width: 100%;
  max-height: 410px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}
.article-body {
  font-size: 15px;
  line-height: 1.85;
  color: #5c6b80;
}
.article-body h2 {
  font-size: 22px;
  color: #1c2d48;
  font-weight: 700;
  margin: 28px 0 10px;
}
.article-body p {
  margin-bottom: 15px;
}
.article-callout {
  background: #f0f6ff;
  border: 1px solid #e1edfc;
  border-radius: 12px;
  padding: 20px;
  margin: 26px 0;
}
.article-callout strong {
  font-size: 17px;
  color: #1c3456;
}
.article-callout p {
  font-size: 13px;
  margin: 6px 0 13px;
}
.article-tags {
  border-top: 1px solid #edf0f4;
  padding-top: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.article-tags a {
  background: #f3f6fa;
  border-radius: 20px;
  padding: 6px 10px;
  color: #52647e;
  text-decoration: none;
}
.article-sidebar {
  padding-top: 35px;
}
.article-side-box {
  border: 1px solid #e7ebf1;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
.article-side-box h2 {
  font-size: 15px;
  font-weight: 700;
  color: #20324e;
  margin: 0 0 13px;
}
.article-side-box > a:not(.related-article):not(.all-articles-link) {
  display: block;
  padding: 9px 0;
  border-top: 1px solid #f0f2f5;
  color: #6b7a90;
  font-size: 12px;
  text-decoration: none;
}
.related-article {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #f0f2f5;
  text-decoration: none;
}
.related-article img {
  width: 72px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}
.related-article span {
  display: grid;
  align-content: center;
  gap: 5px;
}
.related-article strong {
  font-size: 11px;
  line-height: 1.4;
  color: #34445d;
}
.related-article small {
  font-size: 10px;
  color: #8995a6;
}
.all-articles-link {
  display: block;
  color: #1769c2;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 10px;
}
.contact-heading {
  margin-bottom: 25px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}
.contact-info {
  border-radius: 14px;
  padding: 30px;
  background: #f0f6ff;
  border: 1px solid #e5eefb;
}
.contact-info h2 {
  font-size: 26px;
  line-height: 1.25;
  color: #1a2c48;
  font-weight: 700;
  margin: 0 0 10px;
}
.contact-info > p {
  font-size: 13px;
  line-height: 1.7;
  color: #738198;
  margin-bottom: 25px;
}
.contact-detail {
  display: flex;
  gap: 13px;
  margin: 20px 0;
}
.contact-detail > span {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 9px;
  background: #fff;
  color: #1769c2;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.contact-detail div {
  display: grid;
  gap: 3px;
}
.contact-detail small {
  font-size: 13px;
}
.contact-detail a,
.contact-detail strong {
  font-size: 15px;
  font-weight: 700;
  color: #263b5a;
  text-decoration: none;
}
.contact-detail p {
  font-size: 13px;
  color: #8290a3;
  margin: 0;
}
.contact-social {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #dfe9f6;
  padding-top: 18px;
  margin-top: 24px;
  color: #344760;
  font-size: 12px;
}
.contact-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: #1769c2;
  text-decoration: none;
}
.contact-form-card {
  border: 1px solid #e7ebf1;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 6px 22px rgba(25, 48, 82, 0.05);
  background: #fff;
}
.contact-form-heading h2 {
  font-size: 21px;
  font-weight: 700;
  color: #1c2d48;
  margin: 0 0 6px;
}
.contact-form-heading p {
  font-size: 12px;
  color: #8190a3;
  margin-bottom: 22px;
}
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #47566d;
  margin-bottom: 7px;
}
.contact-form .form-control,
.contact-form .form-select {
  font-size: 13px;
  min-height: 44px;
  border-color: #e1e6ed;
  border-radius: 8px;
}
.contact-form textarea.form-control {
  height: auto;
  resize: vertical;
}
.contact-submit {
  min-height: 45px;
  padding: 0 22px;
  font-size: 13px;
}
.form-note {
  font-size: 10px;
  color: #8995a5;
  margin: 10px 0 0;
}
.form-note i {
  color: #2b9b70;
  margin-right: 4px;
}
@media (max-width: 991.98px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
  .article-sidebar {
    padding-top: 0;
  }
}
@media (max-width: 767.98px) {
  .content-page {
    padding-top: 13px;
    padding-bottom: 40px;
  }
  .content-page-heading {
    display: block;
  }
  .content-page-heading h1 {
    font-size: 25px;
  }
  .blog-article > h1 {
    font-size: 27px;
  }
  .article-intro {
    font-size: 14px;
  }
  .article-sidebar {
    padding-top: 0;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-info,
  .contact-form-card {
    padding: 22px;
  }
  .contact-info h2 {
    font-size: 23px;
  }
  .article-body {
    font-size: 14px;
  }
  .article-body h2 {
    font-size: 19px;
  }
}

/* ==========================================================================
   Blog listing - mirrors the Explore Schools layout (tokens + sizes from custom.css)
   ========================================================================== */
.blog-search { position: relative; display: block; width: 330px; max-width: 100%; margin: 0; }
.blog-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ez-muted); pointer-events: none; }
.blog-search input { width: 100%; height: 44px; background: #fff; border: 1px solid var(--ez-border); border-radius: 8px; padding: 0 14px 0 40px; font-size: 14px; color: var(--ez-dark); outline: none; font-family: inherit; }
.blog-search input:focus { border-color: var(--ez-primary); box-shadow: 0 0 0 3px rgba(1, 73, 187, .1); }
.blog-top .page-head { align-items: flex-end; }
.blog-sidebar-note { margin: 14px 0 4px; }

.post-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.post-results[hidden], .post-empty[hidden] { display: none; }
.post-results > * { min-width: 0; }
.post-card { background: #fff; border-radius: 16px; padding: 16px; display: flex; gap: 20px; transition: box-shadow .25s ease; }
.post-card:hover { box-shadow: var(--ez-shadow-lg); }
.post-thumb { position: relative; display: block; width: 270px; max-width: 100%; flex-shrink: 0; align-self: flex-start; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9.4; background: var(--ez-primary-soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-cat { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--ez-primary); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ez-muted); margin-bottom: 8px; }
.post-meta i { color: var(--ez-primary); margin-right: 5px; }
.post-body h3 { font-size: 22px; font-weight: 500; margin: 0 0 8px; line-height: 1.3; }
.post-body h3 a { color: inherit; }
.post-body h3 a:hover { color: var(--ez-primary); }
.post-desc { font-size: 14px; color: var(--ez-text); margin: 0 0 12px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.post-tags span { font-size: 12px; color: var(--ez-primary); background: var(--ez-primary-soft); border-radius: 6px; padding: 3px 9px; }
.post-actions { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ez-border); display: flex; flex-wrap: wrap; gap: 10px; }
.post-actions .btn { font-size: 14px; padding: 8px 16px; display: inline-flex; align-items: center; gap: 6px; }

/* Grid view */
.post-results.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-results.is-grid .post-card { flex-direction: column; }
.post-results.is-grid .post-thumb { width: 100%; align-self: stretch; }
.post-results.is-grid .post-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.post-empty { background: #fff; border-radius: 16px; padding: 44px 20px; text-align: center; }
.post-empty i { font-size: 38px; color: var(--ez-primary); }
.post-empty h3 { font-size: 22px; font-weight: 500; margin: 10px 0 6px; }
.post-empty p { font-size: 14px; color: var(--ez-text); max-width: 380px; margin: 0 auto 16px; }
#blogPager:empty { display: none; }

@media (max-width: 1199.98px) {
  .post-thumb { width: 240px; }
  .post-body h3 { font-size: 20px; }
  .post-results.is-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
  .blog-top .page-head { align-items: stretch; }
  .blog-top .page-head-meta { width: 100%; }
  .blog-search { width: 100%; }
}
@media (max-width: 767.98px) {
  .post-card { flex-direction: column; padding: 12px; gap: 14px; }
  .post-thumb { width: 100%; align-self: stretch; }
  .post-body h3 { font-size: 18px; }
  .post-actions .btn { flex: 1 1 100%; justify-content: center; padding: 9px 10px; font-size: 13px; }
  .post-empty { padding: 34px 16px; }
}

/* ==========================================================================
   About Us + 404
   ========================================================================== */
.about-top { padding-bottom: 56px; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.about-hero h1 { font-size: 40px; font-weight: 600; line-height: 1.2; margin: 0 0 14px; letter-spacing: -.3px; }
.about-hero p { font-size: 16px; color: var(--ez-text); margin: 0 0 22px; max-width: 560px; }
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about-hero-media { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10.5; background: var(--ez-primary-soft); box-shadow: var(--ez-shadow); }
.about-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-card { background: #fff; border: 1px solid var(--ez-border); border-radius: var(--ez-radius); padding: 26px 24px; height: 100%; }
.about-card h2 { font-size: 22px; font-weight: 600; margin: 4px 0 8px; }
.about-card p { font-size: 15px; color: var(--ez-text); margin: 0; }
.about-step { position: relative; background: #fff; border: 1px solid var(--ez-border); border-radius: var(--ez-radius); padding: 22px 20px; height: 100%; }
.about-step .step-no { width: 38px; height: 38px; border-radius: 50%; background: var(--ez-primary); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.about-step h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.about-step p { font-size: 14px; color: var(--ez-muted); margin: 0; }
.about-schools { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ez-gray); border-radius: var(--ez-radius-lg); padding: 30px 32px; }
.about-schools h2 { font-size: 26px; font-weight: 500; margin: 0 0 8px; max-width: 620px; }
.about-schools p { font-size: 15px; margin: 0; max-width: 620px; }
.about-schools .btn { white-space: nowrap; }

.error-page { background: var(--ez-gray); padding: 56px 0 80px; min-height: 62vh; display: flex; align-items: center; }
.error-page > .container { width: 100%; }
.error-card { max-width: 640px; margin: 0 auto; text-align: center; }
.error-code { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 120px; line-height: 1; font-weight: 700; color: var(--ez-primary); margin-bottom: 18px; }
.error-zero { width: 104px; height: 104px; border-radius: 50%; background: var(--ez-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 54px; box-shadow: 0 0 0 10px var(--ez-primary-soft); }
.error-card h1 { font-size: 34px; font-weight: 600; margin: 0 0 10px; }
.error-card p { font-size: 16px; color: var(--ez-text); margin: 0 auto 24px; max-width: 480px; }
.error-search { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--ez-border); border-radius: 10px; padding: 5px; max-width: 470px; margin: 0 auto 20px; }
.error-search:focus-within { border-color: var(--ez-primary); box-shadow: 0 0 0 3px rgba(1, 73, 187, .1); }
.error-search i { margin: 0 8px 0 12px; color: var(--ez-muted); }
.error-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; font-family: inherit; color: var(--ez-dark); padding: 8px 0; }
.error-search .btn { font-size: 14px; padding: 8px 18px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.error-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; color: var(--ez-muted); }
.error-links a { color: var(--ez-primary); }
.error-links a:hover { text-decoration: underline; }

@media (max-width: 991.98px) {
  .about-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .about-hero h1 { font-size: 32px; }
}
@media (max-width: 767.98px) {
  .about-top { padding-bottom: 40px; }
  .about-hero h1 { font-size: 27px; }
  .about-hero p { font-size: 14px; }
  .about-hero-actions .btn { flex: 1 1 calc(50% - 6px); }
  .about-card { padding: 20px 18px; }
  .about-card h2 { font-size: 20px; }
  .about-schools { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .about-schools h2 { font-size: 22px; }
  .about-schools .btn { width: 100%; }
  .error-page { padding: 36px 0 56px; min-height: 0; }
  .error-code { font-size: 80px; gap: 6px; }
  .error-zero { width: 72px; height: 72px; font-size: 36px; box-shadow: 0 0 0 7px var(--ez-primary-soft); }
  .error-card h1 { font-size: 26px; }
  .error-card p { font-size: 14px; }
}
/* ==========================================================================
   Enhanced CMS Rich Content Formatting & Mobile Polish
   ========================================================================== */
.article-body h3 { font-size: 19px; color: #1c2d48; font-weight: 600; margin: 24px 0 10px; }
.article-body h4 { font-size: 16px; color: #1c2d48; font-weight: 600; margin: 18px 0 6px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 9px; line-height: 1.75; }
.article-body a { color: var(--ez-primary); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.article-body a:hover { color: var(--ez-primary-dark); }
.article-body blockquote { border-left: 4px solid var(--ez-primary); background: #f8fafc; padding: 14px 20px; border-radius: 0 10px 10px 0; margin: 24px 0; font-style: italic; color: #475569; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 22px 0; display: block; }
.article-body iframe { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; margin: 22px 0; border: 0; }
.article-body .table-responsive-wrapper { width: 100%; overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid #e2e8f0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.article-body th { background: #f1f5f9; color: #1e293b; font-weight: 600; padding: 12px 16px; border-bottom: 2px solid #cbd5e1; text-align: left; }
.article-body td { padding: 12px 16px; border-bottom: 1px solid #e2e8f0; color: #475569; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body tr:nth-child(even) td { background: #f8fafc; }

/* In-Article Table of Contents (TOC) */
.article-toc-box { border: 1px solid #e7ebf1; border-radius: 12px; padding: 18px; margin-bottom: 20px; background: #fff; }
.article-toc-box h2 { font-size: 15px; font-weight: 700; color: #20324e; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.article-toc-box a { display: block; padding: 7px 0; border-top: 1px solid #f0f2f5; color: #52647e; font-size: 13px; text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.article-toc-box a:hover { color: var(--ez-primary); padding-left: 4px; }

/* Mobile Drawer & Backdrop */
@media (max-width: 991.98px) {
  .filter-sidebar.show {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 320px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    z-index: 1055 !important;
    background: #fff !important;
    box-shadow: 0 0 40px rgba(0,0,0,0.3) !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    padding: 16px !important;
  }
  .filter-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 62, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1050;
  }
  .contact-submit { width: 100%; justify-content: center; }
}

@media (max-width: 767.98px) {
  .about-hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
  .about-hero-actions .btn { width: 100%; justify-content: center; }
  .article-cover { max-height: 260px; }
  .article-topline { flex-wrap: wrap; gap: 8px 14px; }
  .article-author-row { flex-wrap: wrap; gap: 12px; }
  .article-share { margin-left: 0; width: 100%; justify-content: center; }
}

