/* ═══════════════════════════════════════════
   BLOG STYLES — grbdigital.com.au
   Used by: blog.html, blog/*.html

   POST PAGE STRUCTURE:
   ┌─────────────────────────────────────────┐
   │  .post-above-card  (dark, above card)   │
   │    ← Back to Blog                       │
   │    CATEGORY TAG                         │
   ├─────────────────────────────────────────┤
   │  .post-card  (light card)               │
   │    h1                                   │
   │    .post-meta  (author · date · read)   │
   │    ── divider ──                        │
   │    article body content                 │
   └─────────────────────────────────────────┘

   FORMATTING COMPONENTS (use inside .post-card):
   ┌─────────────────────────────────────────┐
   │ <p class="post-lead">        large intro │
   │ <div class="post-tip">       green box   │
   │ <div class="post-warning">   orange box  │
   │ <blockquote class="post-quote"> quote    │
   │ <div class="post-cta-box">   CTA box     │
   │ <table class="cost-table">   table       │
   │ <hr class="post-divider">    divider     │
   └─────────────────────────────────────────┘
═══════════════════════════════════════════ */

/* ─────────────────────────────────────────
   BLOG LISTING PAGE
───────────────────────────────────────── */

.blog-index-hero {
  padding: 130px 0 72px;
}
.blog-index-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.blog-index-hero p {
  font-size: 1.1rem;
  color: #9090a8;
  max-width: 520px;
  line-height: 1.7;
}

/* Post cards grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
  padding-bottom: 80px;
}
.post-card-link {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.post-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.13);
}
.post-card-link .post-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-link h2 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.7rem;
  color: #f0f0f5;
}
.post-card-link p {
  font-size: 0.88rem;
  color: #9090a8;
  line-height: 1.65;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: #9090a8;
}
.post-card-footer .read-more {
  color: #63b3ed;
  font-weight: 600;
  font-size: 0.82rem;
}

/* Category tag — used on listing cards and above post card */
.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(99,179,237,0.12);
  color: #63b3ed;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
  width: fit-content;
}

/* ─────────────────────────────────────────
   POST PAGE — ABOVE THE CARD (dark area)
───────────────────────────────────────── */

.post-above-card {
  padding: 120px 0 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.post-above-card .back-link {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #9090a8;
  text-decoration: none;
  margin-bottom: 1.2rem;
  transition: color 0.2s;
}
.post-above-card .back-link:hover { color: #fff; }

/* ─────────────────────────────────────────
   POST CARD — the light reading surface
───────────────────────────────────────── */

.post-card {
  max-width: 820px;
  margin: 0 auto 4rem;
  padding: 3rem 3.5rem 3.5rem;
  background: #fdfdfd;
  border-radius: 20px;
  box-shadow: 0 4px 48px rgba(0,0,0,0.4);
}

/* Title inside card */
.post-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0d0d0d;
  margin-bottom: 1.2rem;
}

/* Meta row: author · date · read time */
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #777;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid #e8e8ec;
  margin-bottom: 2rem;
}
.post-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bbb;
}

/* ─────────────────────────────────────────
   ARTICLE BODY — inside .post-card
───────────────────────────────────────── */

.post-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin: 2.5rem 0 0.8rem;
  line-height: 1.25;
}
.post-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin: 1.8rem 0 0.5rem;
}
.post-card p {
  font-size: 1rem;
  color: #2a2a35;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.post-card ul,
.post-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.post-card li {
  font-size: 1rem;
  color: #2a2a35;
  line-height: 1.8;
  margin-bottom: 0.45rem;
}
.post-card strong {
  color: #0d0d0d;
  font-weight: 600;
}
.post-card a {
  color: #008a6e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-card a:hover { color: #005a48; }
.post-card .btn,
.post-card .btn:hover {
  color: #0a0a0f;
  text-decoration: none;
}

/* Large intro paragraph */
.post-lead {
  font-size: 1.12rem !important;
  color: #1a1a2a !important;
  line-height: 1.85 !important;
}

/* Section divider */
.post-divider {
  border: none;
  border-top: 1px solid #e4e4ea;
  margin: 2rem 0;
}

/* ── Tip box (green) ── */
.post-tip {
  background: #edfaf5;
  border-left: 3px solid #00b87a;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #1a2a22;
  line-height: 1.75;
}
.post-tip strong { color: #007a52; }

/* ── Warning box (orange) ── */
.post-warning {
  background: #fff8ee;
  border-left: 3px solid #e08020;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #2a1a00;
  line-height: 1.75;
}
.post-warning strong { color: #b86010; }

/* ── Pull quote ── */
.post-quote {
  margin: 2rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 3px solid #00b87a;
  background: #f4fdf9;
  border-radius: 0 12px 12px 0;
  font-size: 1.08rem;
  font-style: italic;
  color: #1a2a22;
  line-height: 1.7;
}
.post-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-style: normal;
  color: #778;
}

/* ── Inline CTA box ── */
.post-cta-box {
  background: #f0faf6;
  border: 1px solid rgba(0,184,122,0.25);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
}
.post-cta-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d0d0d;
  margin: 0 0 0.5rem !important;
}
.post-cta-box p {
  font-size: 0.92rem;
  color: #445;
  margin-bottom: 1.2rem;
}
.post-cta-box .btn { margin-top: 0; }

/* ── Comparison table ── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
  border-radius: 10px;
  overflow: hidden;
}
.cost-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: #f0f0f4;
  border-bottom: 1px solid #ddd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555;
}
.cost-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  color: #333;
  vertical-align: top;
  line-height: 1.6;
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr.highlight td {
  background: #edfaf5;
  color: #0d0d0d;
  font-weight: 500;
}
.cost-table tr.highlight td:first-child {
  border-left: 3px solid #00b87a;
}

/* ─────────────────────────────────────────
   MOBILE
───────────────────────────────────────── */

@media (max-width: 640px) {
  .blog-index-hero { padding: 100px 0 48px; }
  .post-above-card { padding: 100px 0 1.2rem; }
  .post-card { padding: 1.6rem 1.2rem 2rem; border-radius: 14px; }
  .post-card h1 { font-size: 1.6rem; }
  .post-card h2 { font-size: 1.2rem; }
  .post-card p,
  .post-card li { font-size: 0.95rem; }
  .cost-table { font-size: 0.8rem; }
  .cost-table th,
  .cost-table td { padding: 0.55rem 0.65rem; }
}
