/* ========================================
   YASHADA EARTHSONG — BLOG
   Loaded after styles.css on blog pages.
   ======================================== */

/* Offset content below the fixed nav-pill */
.blog-page { padding-top: 104px; background: var(--cream); }

/* Breadcrumb + TOC must never inherit fixed positioning */
.blog-breadcrumb,
.blog-toc {
  position: static;
  top: auto;
  left: auto;
  transform: none;
}

/* ===== PAGE HEADER ===== */
.blog-header { text-align: center; padding: 48px 0 36px; }
.blog-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-header h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  color: var(--deep-forest);
  font-weight: 600;
  line-height: 1.15;
}
.blog-header p {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--gray-500);
  font-size: 15px;
}

/* ===== CARD GRID (blog index) ===== */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding-bottom: 80px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { display: block; overflow: hidden; }
.blog-card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-meta {
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}
.blog-card-body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--deep-forest);
  margin-bottom: 8px;
  line-height: 1.25;
}
.blog-card-body h3 a:hover { color: var(--emerald); }
.blog-card-body p { font-size: 14px; color: var(--gray-500); margin-bottom: 14px; }
.blog-card-link { font-size: 13px; font-weight: 600; color: var(--emerald); }
.blog-card-link:hover { color: var(--gold); }

/* ===== ARTICLE LAYOUT ===== */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding-bottom: 80px;
  align-items: start;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.blog-breadcrumb a:hover { color: var(--emerald); }
.blog-breadcrumb .sep { color: var(--gray-300); margin: 0 2px; }
.blog-breadcrumb .current { color: var(--gray-600); }

.blog-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}
.blog-article h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.2;
  color: var(--deep-forest);
  margin-bottom: 10px;
  font-weight: 600;
}
.blog-article .blog-date { font-size: 13px; color: var(--gray-400); margin-bottom: 18px; }
.blog-article .blog-date strong { color: var(--gold); font-weight: 600; }
.blog-article .lead { font-size: 17px; color: var(--gray-500); font-style: italic; }
.blog-article h2 {
  font-family: var(--font-serif);
  font-size: 27px;
  color: var(--deep-forest);
  margin: 34px 0 12px;
  line-height: 1.25;
  scroll-margin-top: 110px;
}
.blog-article h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--deep-forest);
  margin: 24px 0 10px;
}
.blog-article p { font-size: 15.5px; color: var(--gray-600); margin-bottom: 14px; }
.blog-article ul, .blog-article ol { margin: 0 0 16px 22px; font-size: 15.5px; color: var(--gray-600); }
.blog-article li { margin-bottom: 6px; }
.blog-article ul li { list-style: disc; }
.blog-article ol li { list-style: decimal; }
.blog-article a { color: var(--emerald); font-weight: 500; }
.blog-article a:hover { color: var(--gold); text-decoration: underline; }
.blog-article table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14.5px; }
.blog-article th, .blog-article td { border: 1px solid var(--gray-300); padding: 10px 12px; text-align: left; }
.blog-article th { background: var(--deep-forest); color: var(--white); font-weight: 600; }
.blog-article tr:nth-child(even) td { background: var(--cream); }
.blog-article .blog-note {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--gray-500);
  margin: 18px 0;
}
.blog-article .blog-cta {
  background: var(--deep-forest);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 26px 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.blog-article .blog-cta p { color: rgba(255,255,255,0.85); margin: 0; font-size: 15px; }
.blog-article .blog-cta a {
  color: var(--deep-forest);
  background: var(--gold);
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.blog-article .blog-cta a:hover { background: var(--gold-light); text-decoration: none; }

/* ===== TOC ===== */
.blog-toc {
  background: var(--cream);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
}
.blog-toc h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
}
.blog-toc ul { margin: 0 0 0 18px; }
.blog-toc li { list-style: disc; margin-bottom: 6px; }
.blog-toc a { color: var(--gray-600); }
.blog-toc a:hover { color: var(--emerald); }

/* ===== SIDEBAR ===== */
.blog-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; }
.blog-side-widget { background: var(--white); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); }
.blog-side-widget h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
}
.blog-side-widget .nap-line { font-size: 13.5px; color: var(--gray-600); margin-bottom: 8px; line-height: 1.6; }
.blog-side-widget .nap-line strong { color: var(--deep-forest); }
.blog-side-phone { font-size: 20px; font-weight: 700; color: var(--deep-forest); display: block; margin: 6px 0; }
.blog-side-phone:hover { color: var(--emerald); text-decoration: none; }
.blog-side-btn { display: block; text-align: center; padding: 11px 16px; border-radius: 40px; font-weight: 600; font-size: 14px; margin-top: 8px; }
.blog-side-btn-wa { background: var(--emerald); color: var(--white); }
.blog-side-btn-wa:hover { background: var(--emerald-light); color: var(--white); }
.blog-side-btn-call { background: var(--gold); color: var(--deep-forest); }
.blog-side-btn-call:hover { background: var(--gold-light); }
.blog-side-list a { display: block; font-size: 14px; color: var(--gray-600); padding: 6px 0; border-bottom: 1px dashed var(--gray-300); }
.blog-side-list a:last-child { border-bottom: 0; }
.blog-side-list a:hover { color: var(--emerald); }

/* ===== SIDEBAR ENQUIRE FORM ===== */
.blog-enq .blog-enq-sub { font-size: 13.5px; color: var(--gray-600); margin: -6px 0 14px; line-height: 1.5; }
.blog-enq .form-field { margin-bottom: 10px; }
.blog-enq .btn { margin-top: 2px; }

/* ===== RELATED POSTS ===== */
.blog-related { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--gray-300); }
.blog-related h3 { font-family: var(--font-serif); font-size: 24px; color: var(--deep-forest); margin-bottom: 18px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.blog-related-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.blog-related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-related-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-related-card div { padding: 14px 16px; }
.blog-related-card h4 { font-size: 15px; font-family: var(--font-serif); color: var(--deep-forest); line-height: 1.3; }
.blog-related-card h4 a:hover { color: var(--emerald); }

/* ===== THANK-YOU PAGE ===== */
.thankyou-section { min-height: calc(100vh - 200px); display: flex; align-items: center; padding: 64px 24px; }
.thankyou-card { max-width: 560px; margin: 0 auto; text-align: center; background: var(--white); border-radius: var(--radius-md); padding: 48px 40px; box-shadow: var(--shadow-md); }
.thankyou-check { width: 64px; height: 64px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.thankyou-card h1 { font-family: var(--font-serif); font-size: 34px; color: var(--deep-forest); margin-bottom: 10px; }
.thankyou-desc { color: var(--gray-600); line-height: 1.7; margin-bottom: 28px; }
.thankyou-btns { display: flex; flex-direction: column; gap: 12px; }
.thankyou-btns .btn { width: 100%; }
.thankyou-outline { background: var(--deep-forest); color: var(--white); }
.thankyou-outline:hover { background: var(--emerald); color: var(--white); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-header h1 { font-size: 34px; }
  .blog-article h1 { font-size: 30px; }
  .blog-article { padding: 24px 20px; }
  .blog-article h2 { font-size: 23px; }
  .blog-article table { font-size: 13px; }
  .blog-cards { grid-template-columns: 1fr; }
}
