/* =====================================================================
   Green City SEZ — Blog Details Stylesheet
   File: blog-details.css / css/blog-details.css
   Color Theme: Emerald Deep (#08362A / #082d22) & Luxury Rose Gold (#E8B4A8)
   Ultra-Compact Layout & Fully Responsive (Zero Unwanted Gaps/Spaces)
   ===================================================================== */

/* ---------- Color Tokens & Variables ---------- */
:root {
  --color-rose: #E8B4A8;
  --color-rose-light: #f7ded8;
  --color-rose-dark: #c48b7e;
  --color-rose-border: rgba(232, 180, 168, 0.45);
  --color-rose-glow: rgba(232, 180, 168, 0.2);
  --color-rose-bg: rgba(232, 180, 168, 0.08);
  --emerald-deep: #08362A;
  --emerald-dark: #05241c;
  --emerald-mid: #125C46;
  --cream-bg: #F6EFDD;
  --cream-alt: #FBF7EC;
  --text-dark: #20231F;
  --text-muted: #4a4f46;
}

/* ---------- Global Page Base & Compact Section Spacing ---------- */
body.page-blog-details {
  background: var(--cream-bg, #F6EFDD);
  color: var(--text-dark, #20231F);
}

.page-blog-details main {
  background: var(--cream-bg, #F6EFDD);
}

/* Remove excessive spacing and gaps everywhere */
.page-blog-details section,
.page-blog-details .section,
.page-blog-details .blog-content-section {
  padding-block: clamp(0.9rem, 1.4vw, 1.6rem) !important;
  margin: 0 !important;
}

/* ---------------------------------------------------------
   01. HERO SECTION (Compact & Brand Aligned)
   --------------------------------------------------------- */
.blog-hero {
  position: relative;
  width: 100%;
  min-height: clamp(170px, 18vw, 230px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #082d22;
  border-bottom: 1px solid rgba(232, 180, 168, 0.4);
  padding: clamp(1.2rem, 2.2vw, 2rem) 0 clamp(1rem, 1.8vw, 1.5rem);
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.blog-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  opacity: 0.35;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(6, 38, 29, 0.5) 0%, rgba(6, 38, 29, 0.88) 100%),
    linear-gradient(180deg, rgba(5, 36, 28, 0.7) 0%, rgba(5, 36, 28, 0.4) 50%, rgba(5, 36, 28, 0.85) 100%);
  z-index: 2;
}

.blog-hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

/* Breadcrumbs in Hero */
.blog-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-rose-light);
  margin-bottom: 0.2rem;
}

.blog-breadcrumb a {
  color: var(--color-rose);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.blog-breadcrumb .sep {
  opacity: 0.6;
}

.blog-breadcrumb span[data-crumb-title] {
  color: rgba(255, 255, 255, 0.9);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero Title */
.blog-hero__title {
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.15rem);
  font-weight: 700;
  color: var(--cream-alt, #FAF8F5);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

/* Meta Bar under Title */
.blog-hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.blog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(232, 180, 168, 0.16);
  border: 1px solid var(--color-rose-border);
  color: var(--color-rose);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px !important;
}

.blog-hero__date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(250, 248, 245, 0.8);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Disclaimer Tag */
.blog-hero__disclaimer {
  display: inline-flex;
  align-items: center;
  background: rgba(8, 54, 42, 0.7);
  border: 1px solid rgba(232, 180, 168, 0.35);
  border-radius: 999px !important;
  padding: 0.25rem 0.85rem;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: #d1ded6;
}

.blog-hero__disclaimer strong {
  color: var(--color-rose);
  margin-right: 0.35rem;
}

/* ---------------------------------------------------------
   02. MAIN CONTENT LAYOUT (Tight 2-Column Grid / 0 Gaps)
   --------------------------------------------------------- */
.blog-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0.9rem;
  align-items: start;
}

/* Primary Article Container */
.blog-main-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blog-article-card {
  background: #FFFFFF;
  border: 1px solid var(--color-rose-border);
  border-radius: 12px !important;
  padding: clamp(0.9rem, 1.6vw, 1.4rem);
  box-shadow: 0 4px 18px rgba(8, 54, 42, 0.06);
}

/* Compact Featured Image Banner */
.blog-featured-media {
  width: 100%;
  margin: 0 0 0.85rem;
  border-radius: 10px !important;
  overflow: hidden;
  border: 1px solid var(--color-rose-border);
  background: #082d22;
}

.blog-featured-media img {
  width: 100%;
  aspect-ratio: 16 / 7.8;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* Article Typography */
.blog-lead {
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.04rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--emerald-deep);
  border-left: 3.5px solid var(--color-rose);
  padding-left: 0.85rem;
  margin-bottom: 0.85rem;
  background: var(--color-rose-bg);
  padding-block: 0.45rem;
  border-radius: 0 8px 8px 0 !important;
}

.blog-article-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-article-card h1 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.28rem, 1.15rem + 0.8vw, 1.65rem);
  font-weight: 700;
  color: var(--emerald-deep);
  margin: 1.1rem 0 0.55rem;
  line-height: 1.3;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(232, 180, 168, 0.35);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.blog-article-card h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.18rem, 1.05rem + 0.5vw, 1.45rem);
  font-weight: 700;
  color: var(--emerald-deep);
  margin: 1.1rem 0 0.55rem;
  line-height: 1.3;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(232, 180, 168, 0.35);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.blog-article-card h2::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--color-rose);
  display: inline-block;
  border-radius: 1px   !important;
}

.blog-article-card h3 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--emerald-deep);
  margin: 0.9rem 0 0.4rem;
}

/* 1 Row 2 Cards Checkpoint Grid (Reference Format) */
.blog-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin: 0.75rem 0 0.9rem;
}

.blog-check-card {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  background: var(--cream-alt, #FBF7EC);
  border: 1px solid var(--color-rose-border);
  border-radius: 8px !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-check-card:hover {
  border-color: var(--color-rose);
  transform: translateY(-2px);
}

.blog-check-ico {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50% !important;
  background: rgba(232, 180, 168, 0.2);
  border: 1px solid var(--color-rose);
  color: var(--emerald-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 2px;
}

.blog-check-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-dark);
  margin: 0;
  font-weight: 500;
}

/* Blockquote */
.blog-quote {
  position: relative;
  margin: 0.85rem 0;
  padding: 0.75rem 1rem 0.75rem 1.2rem;
  background: linear-gradient(135deg, rgba(8, 54, 42, 0.04) 0%, rgba(232, 180, 168, 0.12) 100%);
  border-left: 3.5px solid var(--color-rose);
  border-radius: 0 8px 8px 0 !important;
  font-family: var(--font-display, Georgia, serif);
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--emerald-deep);
}

/* Action & Share Footer within Card */
.blog-footer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(232, 180, 168, 0.35);
}

.btn-blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--emerald-deep);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.5rem 1.15rem;
  border-radius: 6px !important;
  text-decoration: none;
  border: 1px solid var(--color-rose-border);
  transition: all 0.2s ease;
}

.btn-blog-back:hover {
  background: #125C46;
  border-color: var(--color-rose);
  transform: translateX(-2px);
  box-shadow: 0 3px 10px rgba(8, 54, 42, 0.2);
}

.blog-share-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-share-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-share-icon {
  width: 30px;
  height: 30px;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 54, 42, 0.06);
  color: var(--emerald-deep);
  text-decoration: none;
  border: 1px solid var(--color-rose-border);
  transition: all 0.2s ease;
  font-size: 0.82rem;
}

.btn-share-icon:hover {
  background: var(--emerald-deep);
  color: var(--color-rose);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------
   03. SIDEBAR SECTION (Fills Right-Side Whitespace Cleanly)
   --------------------------------------------------------- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 80px;
}

.blog-side-card {
  background: #FFFFFF;
  border: 1px solid var(--color-rose-border);
  border-radius: 10px !important;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 3px 12px rgba(8, 54, 42, 0.04);
}

.blog-side-card--dark {
  background: linear-gradient(135deg, #08362A 0%, #062b21 100%);
  color: #fff;
  border-color: var(--color-rose-border);
}

.blog-side-card__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--emerald-deep);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(232, 180, 168, 0.3);
}

.blog-side-card--dark .blog-side-card__head {
  color: var(--color-rose);
}

.blog-side-card__head i {
  color: var(--color-rose);
  font-size: 0.88rem;
}

.blog-side-card p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.blog-side-card--dark p {
  color: #cdd9d2;
}

/* Quick Takeaway List */
.blog-takeaways {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.blog-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-dark);
}

.blog-takeaways li i {
  color: var(--color-rose-dark);
  font-size: 0.72rem;
  margin-top: 3px;
}

/* Quick Action Callout */
.blog-side-cta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.btn-side-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-side-action.btn-wa {
  background: #25D366;
  color: #fff;
}

.btn-side-action.btn-wa:hover {
  background: #1eb956;
  color: #fff;
  transform: translateY(-2px);
}

.btn-side-action.btn-gold {
  background: linear-gradient(135deg, #f6cdc4 0%, #E8B4A8 50%, #d8988a 100%);
  color: #08362A;
  border: 1px solid var(--color-rose);
}

.btn-side-action.btn-gold:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Related Mini Posts */
.blog-related-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.blog-related-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  padding: 0.4rem;
  border-radius: 6px !important;
  background: var(--cream-alt);
  border: 1px solid rgba(232, 180, 168, 0.25);
  transition: all 0.2s ease;
}

.blog-related-item:hover {
  background: rgba(232, 180, 168, 0.15);
  border-color: var(--color-rose);
  transform: translateX(2px);
}

.blog-related-thumb {
  width: 52px;
  height: 42px;
  min-width: 52px;
  border-radius: 4px !important;
  overflow: hidden;
  background: #082d22;
}

.blog-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-related-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
}

.blog-related-info strong {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--emerald-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-related-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   04. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   --------------------------------------------------------- */
@media (max-width: 991px) {
  .blog-layout-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-check-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .blog-article-card {
    padding: 0.85rem;
  }
  .blog-footer-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-blog-back {
    justify-content: center;
  }
  .blog-share-group {
    justify-content: center;
  }
}
