/* ═══════════════════════════════════════════
   Blog Article Styles — MyAirportParking
   Premium editorial layout with crimson accents
   ═══════════════════════════════════════════ */

/* ── Hero image ─────────────────────────── */
.blog-hero-img {
  position: relative;
  height: 420px;
  overflow: hidden;
  margin: 0;
  background: #1a1a2e;
}
.blog-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,.15) 0%, rgba(26,26,46,.7) 100%);
}
.blog-hero-img__caption {
  position: absolute;
  inset: auto 0 12px 0;
  text-align: center;
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  z-index: 2;
}
.blog-hero-img__caption a {
  color: rgba(255,255,255,.7);
  text-decoration: underline;
}

/* ── Dark hero header (title area below image) ── */
.blog-dark-hero {
  background: #1a1a2e;
  padding: 40px 0 48px;
  color: #fff;
}
.blog-dark-hero .container {
  max-width: 820px;
  margin: 0 auto;
}
.blog-dark-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.blog-dark-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}
.blog-breadcrumb {
  margin-bottom: 16px;
  font-size: .875rem;
}
.blog-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}
.blog-breadcrumb a:hover {
  color: rgba(255,255,255,.9);
}
.blog-breadcrumb .sep {
  color: rgba(255,255,255,.3);
  margin: 0 8px;
}
.blog-breadcrumb .current {
  color: rgba(255,255,255,.9);
}

/* ── Article body ───────────────────────── */
.blog-article {
  padding: 0 0 80px;
  background: #fff;
}
.blog-article__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Author meta ────────────────────────── */
.blog-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 0 32px;
  border-bottom: 1px solid #eee;
  margin-bottom: 36px;
}
.blog-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}
.blog-author__name {
  font-weight: 700;
  color: #1a1a2e;
  font-size: .95rem;
}
.blog-author__role {
  color: #888;
  font-size: .85rem;
}
.blog-author__date {
  font-size: .8rem;
  color: #aaa;
  margin-top: 2px;
}

/* ── Reading time + share strip ──────────── */
.blog-meta-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  font-size: .85rem;
  color: #888;
}
.blog-meta-strip__tag {
  display: inline-block;
  background: rgba(192,57,43,.08);
  color: var(--crimson, #C0392B);
  font-weight: 600;
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ── Typography ─────────────────────────── */
.blog-article p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #2c2c3e;
  margin: 0 0 24px;
}
.blog-article .lead-paragraph {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f0f0f0;
}
.blog-article h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 56px 0 20px;
  color: #1a1a2e;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--crimson, #C0392B);
  display: inline-block;
  letter-spacing: -0.01em;
}
.blog-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 40px 0 14px;
  color: #1a1a2e;
}
.blog-article ul, .blog-article ol {
  padding-left: 28px;
  margin: 16px 0 28px;
}
.blog-article li {
  font-size: 1rem;
  line-height: 1.8;
  color: #2c2c3e;
  margin-bottom: 10px;
}
.blog-article a {
  color: var(--crimson, #C0392B);
  text-decoration: underline;
  text-decoration-color: rgba(192,57,43,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.blog-article a:hover {
  text-decoration-color: var(--crimson, #C0392B);
}
.blog-article strong {
  font-weight: 700;
  color: #1a1a2e;
}

/* ── Tip / callout box ──────────────────── */
.tip-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
  border-left: 4px solid #2980b9;
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  font-size: .975rem;
  line-height: 1.75;
}
.tip-box strong {
  color: #2980b9;
}
.tip-box p {
  margin: 0;
  font-size: inherit;
}
.warning-box {
  background: linear-gradient(135deg, #fff8f0 0%, #fef3e8 100%);
  border-left: 4px solid #e67e22;
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
}
.warning-box strong {
  color: #e67e22;
}

/* ── Month blocks (when-to-book article) ── */
.month-block {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}
.month-block:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.month-block h3 {
  margin: 0 0 10px;
  color: var(--crimson, #C0392B);
  font-size: 1.15rem;
}
.demand {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  margin-left: 10px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.demand--low { background: #d4edda; color: #155724; }
.demand--medium { background: #fff3cd; color: #856404; }
.demand--high { background: #f8d7da; color: #721c24; }

/* ── Tables ─────────────────────────────── */
.blog-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0 32px;
  font-size: .95rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}
.blog-table th {
  background: #1a1a2e;
  color: #fff;
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.blog-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  color: #2c2c3e;
}
.blog-table tbody tr:last-child td {
  border-bottom: none;
}
.blog-table tbody tr:nth-child(even) {
  background: #fafafa;
}
.blog-table tbody tr:hover {
  background: #f5f0ef;
}
/* Legacy charger-table support */
.charger-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0 32px;
  font-size: .95rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}
.charger-table th {
  background: #1a1a2e;
  color: #fff;
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
  font-size: .85rem;
}
.charger-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
}
.charger-table tbody tr:nth-child(even) { background: #fafafa; }
.charger-table tbody tr:hover { background: #f5f0ef; }

/* ── Numbered tips ──────────────────────── */
.blog-tips {
  counter-reset: tip-counter;
  margin: 32px 0;
}
.blog-tip {
  counter-increment: tip-counter;
  position: relative;
  padding: 24px 24px 24px 72px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.blog-tip::before {
  content: counter(tip-counter);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 36px;
  height: 36px;
  background: var(--crimson, #C0392B);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
}
.blog-tip h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.blog-tip p {
  margin: 0;
  font-size: .975rem;
}

/* ── CTA banner ─────────────────────────── */
.cta-banner {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2c2c3e 100%);
  border-radius: 20px;
  margin: 56px 0 0;
  color: #fff;
}
.cta-banner h2 {
  border: none;
  margin: 0 0 12px;
  color: #fff;
  display: block;
  font-size: 1.5rem;
}
.cta-banner p {
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.cta-banner .btn {
  display: inline-block;
  background: var(--crimson, #C0392B);
  color: #fff;
  padding: 16px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(192,57,43,.3);
}
.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,.4);
}

/* ── Related articles ───────────────────── */
.blog-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}
.blog-related h3 {
  font-size: 1.1rem;
  margin: 0 0 16px;
  color: #1a1a2e;
}
.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.blog-related__card {
  display: block;
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.4;
  transition: background .15s, transform .15s;
  border: 1px solid transparent;
}
.blog-related__card:hover {
  background: #fff;
  border-color: #e0e0e0;
  transform: translateY(-2px);
}

/* ── FAQ section ────────────────────────── */
.blog-faq {
  margin: 56px 0 0;
  padding: 40px 0 0;
  border-top: 2px solid #f0f0f0;
}
.blog-faq h2 {
  display: block;
  border: none;
  margin: 0 0 24px;
}
.blog-faq .faq-item {
  border: 1px solid #eee;
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}
.blog-faq .faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  text-align: left;
  transition: background .15s;
}
.blog-faq .faq-q:hover {
  background: #fafafa;
}
.blog-faq .faq-q svg {
  flex-shrink: 0;
  transition: transform .2s;
}
.blog-faq .faq-q[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.blog-faq .faq-a {
  padding: 0 22px 18px;
  font-size: .975rem;
  line-height: 1.75;
  color: #555;
}

/* ── Image figures ──────────────────────── */
.article-figure {
  margin: 36px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f8f9fa;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-figure figcaption {
  font-size: .8125rem;
  color: #6c757d;
  padding: 12px 18px;
  text-align: center;
}

/* ── Table of contents ──────────────────── */
.blog-toc {
  background: #f8f9fa;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 0 0 40px;
  border: 1px solid #eee;
}
.blog-toc h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  margin: 0 0 14px;
  font-weight: 700;
}
.blog-toc ol {
  margin: 0;
  padding-left: 20px;
}
.blog-toc li {
  font-size: .925rem;
  margin-bottom: 8px;
  line-height: 1.5;
}
.blog-toc a {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 500;
}
.blog-toc a:hover {
  color: var(--crimson, #C0392B);
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .blog-hero-img { height: 280px; }
  .blog-dark-hero h1 { font-size: 1.75rem; }
  .blog-dark-hero__subtitle { font-size: 1rem; }
  .blog-article__inner { padding: 0 1rem; }
  .blog-article p { font-size: 1rem; }
  .blog-article h2 { font-size: 1.35rem; margin-top: 40px; }
  .blog-tip { padding-left: 64px; }
  .cta-banner { padding: 36px 20px; }
  .blog-related__grid { grid-template-columns: 1fr; }
  .blog-table th, .blog-table td { padding: 10px 12px; font-size: .85rem; }
  .blog-toc { padding: 18px 20px; }
}
@media (max-width: 480px) {
  .blog-hero-img { height: 200px; }
  .blog-dark-hero { padding: 28px 0 36px; }
  .blog-dark-hero h1 { font-size: 1.5rem; }
  .blog-author { gap: 10px; }
  .blog-author__avatar { width: 40px; height: 40px; }
}

/* ── Print styles ───────────────────────── */
@media print {
  .blog-hero-img, .cta-banner, .nav, .footer { display: none; }
  .blog-article { padding: 0; }
  .blog-article h2 { border-bottom: 1px solid #ccc; }
}
