/* =========================================================
   Heritage Agastyaa – Blog styles
   Used by blog.php and every blog detail page.
   Plain CSS on top of Bootstrap 5 + css/stylesheet.css
   ========================================================= */

:root {
  --ha-green: #0D4333;
  --ha-green-dark: #082a20;
  --ha-gold: #C99F5B;
  --ha-gold-dark: #b5873c;
  --ha-cream: #faf6ef;
  --ha-sand: #f4ecde;
  --ha-text: #3d3d3d;
  --ha-muted: #6c6f73;
  --ha-radius: 22px;
}

/* ---------- Page hero ---------- */
.blog-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 42, 32, 0.45) 0%, rgba(8, 42, 32, 0.55) 45%, rgba(8, 42, 32, 0.92) 100%);
}
.blog-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 170px;
  padding-bottom: 60px;
}
.blog-hero h1 {
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  max-width: 900px;
  margin: 0 auto 18px;
}
.blog-hero .hero-intro {
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.9rem;
}
.blog-breadcrumb li { color: rgba(255, 255, 255, 0.75); }
.blog-breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ha-gold);
}
.blog-breadcrumb a { color: #fff; text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--ha-gold); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-meta i { color: var(--ha-gold); margin-right: 6px; }

/* ---------- Category chip ---------- */
.blog-chip {
  display: inline-block;
  background: var(--ha-gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  text-decoration: none;
}
.blog-chip.chip-light {
  background: var(--ha-sand);
  color: var(--ha-green);
}

/* ---------- Section label ---------- */
.blog-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ha-gold-dark);
  margin-bottom: 10px;
}
.blog-label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--ha-gold);
  vertical-align: middle;
  margin-right: 10px;
}

/* ---------- Listing page ---------- */
.blog-listing { background: var(--ha-cream); }

.featured-post {
  background: #fff;
  border-radius: var(--ha-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(13, 67, 51, 0.10);
}
.featured-post .featured-img {
  position: relative;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
}
.featured-post .featured-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.featured-post:hover .featured-img img { transform: scale(1.06); }
.featured-post .featured-img .blog-chip {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 1;
}
.featured-post .featured-body { padding: 48px 44px; }
.featured-post h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}
.featured-post h2 a { color: var(--ha-green); text-decoration: none; }
.featured-post h2 a:hover { color: var(--ha-gold-dark); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--ha-muted);
}
.post-meta i { color: var(--ha-gold); margin-right: 5px; }

.post-excerpt {
  color: var(--ha-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ha-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease, gap 0.3s ease;
}
.btn-read:hover { background: var(--ha-gold-dark); color: #fff; gap: 16px; }

.link-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ha-green);
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}
.link-read:hover { color: var(--ha-gold-dark); gap: 14px; }

/* Blog card */
.blog-card {
  background: #fff;
  border-radius: var(--ha-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(13, 67, 51, 0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(13, 67, 51, 0.14);
}
.blog-card .card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.blog-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.blog-card:hover .card-img-wrap img { transform: scale(1.08); }
.blog-card .card-img-wrap .blog-chip {
  position: absolute;
  top: 18px;
  left: 18px;
}
.blog-card .card-content {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}
.blog-card h3 a { color: var(--ha-green); text-decoration: none; }
.blog-card h3 a:hover { color: var(--ha-gold-dark); }
.blog-card .post-excerpt { font-size: 0.95rem; flex-grow: 1; }

/* ---------- CTA band ---------- */
.blog-cta {
  position: relative;
  border-radius: var(--ha-radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 70px 40px;
  text-align: center;
}
.blog-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 42, 32, 0.92), rgba(13, 67, 51, 0.75));
}
.blog-cta > * { position: relative; z-index: 1; }
.blog-cta h2 {
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}
.blog-cta h2 span { color: var(--ha-gold); }
.blog-cta p { color: rgba(255, 255, 255, 0.85); max-width: 640px; margin: 0 auto 28px; }
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ha-gold);
  color: #fff;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-gold:hover { background: #fff; color: var(--ha-green); }
.btn-gold, .btn-outline-light-pill { text-decoration: none !important; }
.article-cta .btn-gold, .article-cta .btn-outline-light-pill { color: #fff; }
.article-cta .btn-gold:hover, .article-cta .btn-outline-light-pill:hover { color: var(--ha-green); }
.btn-outline-light-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-outline-light-pill:hover { background: #fff; color: var(--ha-green); }

/* ---------- Detail page: article ---------- */
.blog-detail { background: #fff; }

.article-body {
  color: var(--ha-text);
  font-size: 1.06rem;
  line-height: 1.9;
}
.article-body p { margin-bottom: 1.4rem; }
.article-body p a {
  color: var(--ha-green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--ha-gold);
  text-underline-offset: 4px;
}
.article-body p a:hover { color: var(--ha-gold-dark); }

.article-body .lead-para::first-letter {
  float: left;
  font-size: 4.2rem;
  line-height: 0.85;
  font-weight: 600;
  color: var(--ha-gold);
  margin: 8px 12px 0 0;
}

.article-body h2 {
  position: relative;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ha-green);
  margin: 3rem 0 1.2rem;
  padding-left: 20px;
  scroll-margin-top: 120px;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: var(--ha-gold);
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ha-green);
  margin: 0 0 0.6rem;
}

.article-cover {
  border-radius: var(--ha-radius);
  overflow: hidden;
  margin-bottom: 2.4rem;
  box-shadow: 0 20px 50px rgba(13, 67, 51, 0.12);
}
.article-cover img { width: 100%; height: 460px; object-fit: cover; display: block; }
@media (max-width: 575.98px) { .article-cover img { height: 260px; } }

.article-figure { margin: 2.2rem 0; }
.article-figure img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--ha-radius);
}
.article-figure figcaption {
  font-size: 0.85rem;
  color: var(--ha-muted);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Suite / highlight box */
.suite-box {
  background: var(--ha-cream);
  border: 1px solid var(--ha-sand);
  border-left: 4px solid var(--ha-gold);
  border-radius: 16px;
  padding: 24px 26px 6px;
  margin-bottom: 1.4rem;
}

/* Closing call-to-action inside article */
.article-cta {
  background: var(--ha-green);
  color: #fff;
  border-radius: var(--ha-radius);
  padding: 36px 34px;
  margin: 2.6rem 0 2rem;
}
.article-cta h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.article-cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; font-size: 1rem; line-height: 1.7; }

/* Tags + share */
.article-footer {
  border-top: 1px solid #eee;
  padding-top: 26px;
  margin-top: 10px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag-list li {
  background: var(--ha-cream);
  border: 1px solid var(--ha-sand);
  color: var(--ha-green);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
}
.share-links { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.share-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ha-sand);
  color: var(--ha-green);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.share-links a:hover { background: var(--ha-green); color: #fff; }

/* ---------- Detail page: sidebar ---------- */
.blog-sidebar { position: sticky; top: 110px; }
.sidebar-widget {
  background: var(--ha-cream);
  border-radius: var(--ha-radius);
  padding: 28px 26px;
  margin-bottom: 26px;
}
.sidebar-widget .widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ha-green);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ha-sand);
}
.toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc-list li { counter-increment: toc; margin-bottom: 12px; }
.toc-list li:last-child { margin-bottom: 0; }
.toc-list a {
  display: flex;
  gap: 12px;
  color: var(--ha-text);
  font-size: 0.92rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.3s ease;
}
.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ha-gold-dark);
  font-weight: 600;
  min-width: 22px;
}
.toc-list a:hover { color: var(--ha-green); }

.recent-post { display: flex; gap: 14px; align-items: center; text-decoration: none; margin-bottom: 18px; }
.recent-post:last-child { margin-bottom: 0; }
.recent-post img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}
.recent-post .rp-title {
  color: var(--ha-green);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}
.recent-post:hover .rp-title { color: var(--ha-gold-dark); }
.recent-post .rp-date { font-size: 0.8rem; color: var(--ha-muted); }

.widget-book {
  background: var(--ha-green) url('../images/outside/outside-8.jpg') center / cover;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.widget-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 42, 32, 0.86);
}
.widget-book > * { position: relative; z-index: 1; }
.widget-book .widget-title { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.15); }
.widget-book p { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.widget-book .phone-link {
  display: block;
  color: var(--ha-gold);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  margin: 16px 0 0;
}

/* ---------- Related posts ---------- */
.related-posts { background: var(--ha-cream); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .blog-sidebar { position: static; margin-top: 30px; }
  .featured-post .featured-body { padding: 34px 28px; }
  .featured-post .featured-img { min-height: 280px; }
}
@media (max-width: 575.98px) {
  .blog-hero { min-height: 400px; }
  .blog-hero .container { padding-top: 140px; padding-bottom: 44px; }
  .article-body { font-size: 1rem; }
  .article-cta, .blog-cta { padding: 30px 22px; }
}
