/* ============================================================
   BLOG STYLESHEET — Australian School Finder
   ============================================================ */

/* ── Blog Hub ───────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #003087 0%, #0050BB 100%);
  padding: 7rem 0 4rem;
  text-align: center;
  color: #fff;
  position: relative;
  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='%23ffffff' 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");
}
.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #FFCD00;
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}
.blog-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
  line-height: 1.15;
}
.blog-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ── Category Filter Bar ─────────────────────────────────── */
.blog-filter-bar {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  padding: 1rem 0;
  position: sticky;
  top: 70px;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.blog-filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
}
.blog-filter-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: .4rem 1.1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: #003087;
  border-color: #003087;
  color: #fff;
}

/* ── Blog Grid ───────────────────────────────────────────── */
.blog-section {
  padding: 4rem 0 6rem;
  background: #F8FAFC;
}
.blog-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ── Blog Card ───────────────────────────────────────────── */
.blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,48,135,.14);
  border-color: transparent;
}
.blog-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-cat {
  position: absolute;
  top: .85rem; left: .85rem;
  background: #003087;
  color: #FFCD00;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .25rem .75rem;
  border-radius: 50px;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  color: #94A3B8;
  margin-bottom: .6rem;
}
.blog-card-meta i { font-size: .7rem; }
.blog-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.4;
  margin-bottom: .6rem;
}
.blog-card-excerpt {
  font-size: .87rem;
  color: #64748B;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  color: #003087;
  transition: gap .2s;
}
.blog-card:hover .blog-card-cta { gap: .65rem; }

/* ── Blog Sidebar ────────────────────────────────────────── */
.blog-sidebar {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-blog-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
}
.sidebar-blog-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar-blog-card h3 i { color: #003087; }
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.sidebar-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .85rem;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  font-size: .85rem;
  color: #334155;
  font-weight: 500;
  transition: all .2s;
  text-decoration: none;
}
.sidebar-cat-list a:hover { background: #003087; color: #fff; border-color: transparent; }
.sidebar-cat-list .cat-count {
  background: #E2E8F0;
  border-radius: 50px;
  padding: .1rem .55rem;
  font-size: .72rem;
  font-weight: 700;
}
.sidebar-cat-list a:hover .cat-count { background: rgba(255,255,255,.2); color: #fff; }
.sidebar-recent-post {
  display: flex;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid #E2E8F0;
  text-decoration: none;
}
.sidebar-recent-post:last-child { border-bottom: none; }
.sidebar-recent-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-title {
  font-size: .82rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
  transition: color .2s;
}
.sidebar-recent-post:hover .sidebar-recent-title { color: #003087; }
.sidebar-recent-date { font-size: .72rem; color: #94A3B8; margin-top: .2rem; }

/* ── Pagination ──────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}
.blog-page-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #334155;
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.blog-page-btn:hover,
.blog-page-btn.active {
  background: #003087;
  border-color: #003087;
  color: #fff;
}

/* ── Single Post ─────────────────────────────────────────── */
.post-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.post-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
}
.post-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.post-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #FFCD00;
  color: #003087;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.post-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
  max-width: 800px;
}

/* ── Post Layout ─────────────────────────────────────────── */
.post-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #64748B;
  padding: 1.5rem 0;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 2rem;
}
.post-meta-bar i { color: #003087; }
.post-meta-bar strong { color: #334155; }

/* ── Post Content Typography ─────────────────────────────── */
.post-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #0F172A;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.post-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F172A;
  margin: 2rem 0 .75rem;
}
.post-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 1.5rem 0 .5rem;
}
.post-content p {
  font-size: .975rem;
  color: #334155;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.post-content ul, .post-content ol {
  margin: .75rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.post-content li {
  font-size: .95rem;
  color: #334155;
  line-height: 1.65;
}
.post-content a {
  color: #003087;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover { color: #0050BB; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: .9rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.post-content table thead tr { background: linear-gradient(135deg,#003087,#0050BB); color: #fff; }
.post-content table th { padding: .9rem 1.1rem; text-align: left; font-weight: 600; font-size: .85rem; }
.post-content table td { padding: .8rem 1.1rem; color: #334155; border-bottom: 1px solid #E2E8F0; }
.post-content table tbody tr:nth-child(even) { background: #F8FAFC; }
.post-content table tbody tr:last-child td { border-bottom: none; }
.post-content img {
  width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

/* ── Callout Boxes ───────────────────────────────────────── */
.callout {
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.callout-tip {
  background: linear-gradient(135deg,rgba(0,166,81,.08),rgba(0,166,81,.04));
  border-left: 4px solid #00A651;
}
.callout-fact {
  background: linear-gradient(135deg,rgba(0,48,135,.07),rgba(0,48,135,.03));
  border-left: 4px solid #003087;
}
.callout-quote {
  background: linear-gradient(135deg,rgba(255,205,0,.15),rgba(255,205,0,.06));
  border-left: 4px solid #FFCD00;
}
.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.callout-tip .callout-icon { color: #00A651; }
.callout-fact .callout-icon { color: #003087; }
.callout-quote .callout-icon { color: #B8860B; }
.callout-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}
.callout-tip .callout-label { color: #00A651; }
.callout-fact .callout-label { color: #003087; }
.callout-quote .callout-label { color: #B8860B; }
.callout-body p {
  font-size: .93rem;
  color: #334155;
  line-height: 1.7;
  margin: 0;
}

/* ── Social Share ────────────────────────────────────────── */
.post-share {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-share-label {
  font-size: .82rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
.post-share-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.share-btn-fb  { background: #1877F2; color: #fff; }
.share-btn-tw  { background: #000; color: #fff; }
.share-btn-li  { background: #0A66C2; color: #fff; }
.share-btn-wa  { background: #25D366; color: #fff; }
.share-btn-em  { background: #64748B; color: #fff; }
.share-btn:hover { opacity: .88; transform: translateY(-2px); }

/* ── Post TOC (Table of Contents) ───────────────────────── */
.post-toc {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.35rem;
  margin-bottom: 1.5rem;
}
.post-toc h4 {
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.post-toc h4 i { color: #003087; }
.post-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: flex; flex-direction: column; gap: .35rem; }
.post-toc li { counter-increment: toc; }
.post-toc a {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  color: #475569;
  text-decoration: none;
  padding: .35rem .55rem;
  border-radius: 8px;
  transition: all .2s;
  font-weight: 500;
}
.post-toc a::before {
  content: counter(toc);
  background: #F1F5F9;
  color: #64748B;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.post-toc a:hover { background: rgba(0,48,135,.06); color: #003087; }
.post-toc a:hover::before { background: #003087; color: #fff; }

/* ── Post FAQ ────────────────────────────────────────────── */
.post-faq { margin: 2.5rem 0; }
.post-faq h2 { margin-top: 0 !important; }

/* ── Related Posts ───────────────────────────────────────── */
.related-posts {
  border-top: 1px solid #E2E8F0;
  padding-top: 3rem;
  margin-top: 3rem;
}
.related-posts h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Post CTA ────────────────────────────────────────────── */
.post-cta-box {
  background: linear-gradient(135deg,#003087 0%,#0050BB 100%);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  text-align: center;
  margin: 2.5rem 0;
  color: #fff;
}
.post-cta-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFCD00;
  margin-bottom: .6rem;
}
.post-cta-box p { font-size: .9rem; color: rgba(255,255,255,.88); margin-bottom: 1.25rem; }
.post-cta-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #FFCD00;
  color: #003087;
  font-weight: 700;
  font-size: .9rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all .3s;
}
.post-cta-link:hover {
  background: #fff;
  color: #003087;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* ── Homepage Blog Preview Section ──────────────────────── */
.home-blog-section {
  padding: 5rem 0;
  background: #F8FAFC;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .post-hero { height: 320px; }
  .post-hero-content { padding: 1.5rem; }
  .post-layout { padding: 2rem 1.25rem 3.5rem; gap: 2rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-share { flex-direction: column; gap: .75rem; }
}
