/* ==========================================================================
   BlissMoney Dedicated Blog Stylesheet (blog.css)
   Recreates the exact old site structure with modern polish
   ========================================================================== */

/* ---------- 1. Top Wave Hero Banner (.top-banner-section) ---------- */
.top-banner-section {
  position: relative;
  background: linear-gradient(135deg, #071D17 0%, #0D2D24 55%, #051813 100%);
  color: #FFFFFF;
  padding: clamp(65px, 7vw, 105px) 0 clamp(95px, 10vw, 140px);
  overflow: hidden;
  box-sizing: border-box;
}

.top-banner-section .banner-box {
  position: relative;
  z-index: 4;
  max-width: var(--container-max-width, 1280px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.top-banner-section .banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 175, 128, 0.15);
  border: 1px solid rgba(12, 175, 128, 0.35);
  color: #0CAF80;
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.top-banner-section h1 {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 16px 0;
  max-width: 950px;
}

.top-banner-section ul.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.top-banner-section ul.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.top-banner-section ul.breadcrumb-list li a {
  color: #0CAF80;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-banner-section ul.breadcrumb-list li a:hover {
  color: #2EE6B3;
  text-decoration: underline;
}

.top-banner-section ul.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.4);
}

/* Animated SVG Waves at bottom of banner */
.wave-container {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 85px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  background-position: 0 bottom;
  transform-origin: center bottom;
}

.wave.wave1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,90 350,-40 500,40 C650,120 900,10 1200,45 L1200,120 L0,120 Z' fill='%23F4F7F6' fill-opacity='0.4'%3E%3C/path%3E%3C/svg%3E");
  background-size: 1200px 85px;
  animation: waveAnim 14s linear infinite;
  opacity: 0.5;
  z-index: 1;
}

.wave.wave2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C200,110 450,10 650,70 C850,130 1050,40 1200,80 L1200,120 L0,120 Z' fill='%23F4F7F6' fill-opacity='0.7'%3E%3C/path%3E%3C/svg%3E");
  background-size: 1200px 85px;
  animation: waveAnimReverse 10s linear infinite;
  opacity: 0.7;
  z-index: 2;
}

.wave.wave3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C300,120 600,20 900,80 C1050,110 1150,60 1200,70 L1200,120 L0,120 Z' fill='%23F4F7F6'%3E%3C/path%3E%3C/svg%3E");
  background-size: 1200px 85px;
  animation: waveAnim 7s linear infinite;
  opacity: 1;
  z-index: 3;
}

@keyframes waveAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes waveAnimReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ---------- 2. Main Blog Section Layout (.main-section.blog_section) ---------- */
.blog-main-section {
  position: relative;
  background-color: #F4F7F6;
  padding: clamp(40px, 5vw, 65px) 0 clamp(70px, 7vw, 100px);
  width: 100%;
  box-sizing: border-box;
}

.blog-detail-container {
  max-width: var(--container-max-width, 1280px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.blog-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 4vw, 56px);
  align-items: flex-start;
}

/* ---------- 3. Left Article Detail Card (.post-detail) ---------- */
.post-detail {
  background: #FFFFFF;
  border-radius: 14px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 4px 20px rgba(11, 37, 30, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.post-detail-header {
  margin-bottom: 24px;
}

.post-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.post-meta-tag {
  background-color: #E6F7F2;
  color: #0A8762;
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.post-meta-date {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.88rem;
  color: #64746E;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-meta-readtime {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.88rem;
  color: #64746E;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-detail-title {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 800;
  color: #0F2A21;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 0;
}

.view_img {
  width: 100%;
  margin: 24px 0 32px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.view_img img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article Formatted Body (.info) */
.post-detail .info {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 1.04rem;
  color: #2D3D36;
  line-height: 1.82;
  word-break: break-word;
}

.post-detail .info p {
  margin: 0 0 1.35em 0;
}

.post-detail .info h2,
.post-detail .info h3,
.post-detail .info h4,
.post-detail .info h5 {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-weight: 700;
  color: #0B251E;
  margin: 1.8em 0 0.6em 0;
  line-height: 1.3;
}

.post-detail .info h2 { font-size: 1.55rem; border-bottom: 2px solid #E3ECE8; padding-bottom: 8px; }
.post-detail .info h3 { font-size: 1.32rem; }
.post-detail .info h4 { font-size: 1.15rem; }

.post-detail .info strong {
  color: #0B251E;
  font-weight: 700;
}

.post-detail .info ul,
.post-detail .info ol {
  margin: 0 0 1.5em 0;
  padding-left: 24px;
}

.post-detail .info li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.post-detail .info table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.post-detail .info table th {
  background-color: #0D251E;
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #0D251E;
}

.post-detail .info table td {
  padding: 11px 16px;
  border: 1px solid #DCE3DF;
  color: #2D3D36;
  vertical-align: top;
}

.post-detail .info table tr:nth-child(even) {
  background-color: #F8FAF9;
}

.post-detail .info blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background-color: #EBF8F4;
  border-left: 4px solid #0CAF80;
  border-radius: 0 8px 8px 0;
  color: #0E3E30;
  font-style: italic;
}

/* ---------- 4. Social Media Share Widget (.social-media-share) ---------- */
.social-media-share {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #E5EBE8;
}

.social-media-share h4 {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0B251E;
  margin: 0 0 14px 0;
}

.social-media-share .social-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #D5DDD8;
  background-color: #FFFFFF;
  color: #384A42;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.social-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.social-share-btn.fb:hover { background-color: #1877F2; border-color: #1877F2; color: #FFFFFF; }
.social-share-btn.tw:hover { background-color: #000000; border-color: #000000; color: #FFFFFF; }
.social-share-btn.in:hover { background-color: #0A66C2; border-color: #0A66C2; color: #FFFFFF; }
.social-share-btn.tg:hover { background-color: #229ED9; border-color: #229ED9; color: #FFFFFF; }
.social-share-btn.wa:hover { background-color: #25D366; border-color: #25D366; color: #FFFFFF; }
.social-share-btn.mail:hover { background-color: #EA4335; border-color: #EA4335; color: #FFFFFF; }
.social-share-btn.copy:hover { background-color: #0CAF80; border-color: #0CAF80; color: #FFFFFF; }

/* Copy Toast */
.copy-feedback-toast {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: #0CAF80;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.copy-feedback-toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- 5. Right Sidebar & Related Posts (.related-section-content) ---------- */
.blog-sidebar-sticky {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(11, 37, 30, 0.05);
  margin-bottom: 28px;
}

.sidebar-title {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0B251E;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #E6ECE8;
  position: relative;
}

.sidebar-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 44px;
  height: 2px;
  background-color: #0CAF80;
}

.latest-blog-loop {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-post-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.related-post-item:hover {
  background-color: #F2F7F5;
  transform: translateX(3px);
}

.related-post-img-wrap {
  width: 90px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #DDE3E0;
}

.related-post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-img-wrap img {
  transform: scale(1.06);
}

.related-post-content {
  flex-grow: 1;
  min-width: 0;
}

.related-post-date {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: #0CAF80;
  margin-bottom: 4px;
  display: block;
}

.related-post-title {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: #112820;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.related-post-item:hover .related-post-title {
  color: #0CAF80;
}

/* Sidebar Advisory CTA */
.sidebar-cta-box {
  background: linear-gradient(135deg, #092019 0%, #0F362B 100%);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.sidebar-cta-box h4 {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #FFFFFF;
}

.sidebar-cta-box p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.sidebar-cta-btn {
  display: inline-block;
  background-color: #0CAF80;
  color: #0B251E;
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sidebar-cta-btn:hover {
  background-color: #08D499;
  transform: translateY(-2px);
}

/* ---------- 6. Dedicated Blog Index Page Grid (blog.html) ---------- */
.blog-archive-section {
  background-color: #F4F7F6;
  padding: clamp(40px, 5vw, 65px) 0 clamp(80px, 8vw, 110px);
}

.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.blog-category-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  border: 1px solid #D0DBD5;
  background-color: #FFFFFF;
  color: #2F4239;
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover,
.cat-pill.active {
  background-color: #0D251E;
  border-color: #0D251E;
  color: #FFFFFF;
}

.cat-pill.active {
  background-color: #0CAF80;
  border-color: #0CAF80;
  color: #0B251E;
  font-weight: 700;
}

.blog-search-box {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.blog-search-box input {
  width: 100%;
  padding: 9px 38px 9px 16px;
  border: 1px solid #D0DBD5;
  border-radius: 999px;
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.88rem;
  background-color: #FFFFFF;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search-box input:focus {
  border-color: #0CAF80;
  box-shadow: 0 0 0 3px rgba(12, 175, 128, 0.15);
}

.blog-search-box svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6E7E77;
  pointer-events: none;
}

/* 3-Column Grid for blog.html */
.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(20px, 2.5vw, 32px);
  row-gap: clamp(36px, 4vw, 56px);
}

.blog-card-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Old site card compatibility (.blogcontent) */
.blogcontent {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11, 37, 30, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.blogcontent:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(11, 37, 30, 0.12);
}

.blogcontent .images {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #DDE3E0;
}

.blogcontent .images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.blogcontent:hover .images img {
  transform: scale(1.05);
}

.blogcontent .client-info {
  padding: 20px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blogcontent .blog-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.blogcontent .blog-card-meta-top span.category {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.76rem;
  font-weight: 700;
  color: #0CAF80;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blogcontent .blog-card-meta-top span.date {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.8rem;
  color: #7B8B84;
}

.blogcontent h6.text-line {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0D251E;
  line-height: 1.38;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.blogcontent:hover h6.text-line {
  color: #0CAF80;
}

.blogcontent p.excerpt {
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.88rem;
  color: #556760;
  line-height: 1.5;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blogcontent .read-more-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  color: #0CAF80;
  transition: gap 0.2s ease, color 0.2s ease;
}

.blogcontent:hover .read-more-link {
  color: #07A376;
  gap: 10px;
}

/* ---------- 7. Responsive Breakpoints ---------- */
@media (max-width: 1040px) {
  .blog-detail-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar-sticky {
    position: static;
    margin-top: 20px;
  }

  .blog-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .top-banner-section {
    padding: 55px 0 85px;
  }

  .top-banner-section h1 {
    font-size: 1.65rem;
  }

  .blog-archive-grid {
    grid-template-columns: 1fr;
  }

  .post-detail {
    padding: 22px 18px;
  }

  .post-detail-title {
    font-size: 1.45rem;
  }

  .blog-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-box {
    max-width: 100%;
  }
}

/* ==========================================================================
   7. Blog Detail - Brand Guideline Layer
   Brand book: green #0CAF80, black #1E1E1E, white; dark aurora backgrounds;
   glowing "B" logomark; bold headline / light sub-head / quiet body copy.
   Scoped to .blog-detail-page so the blog index keeps its own hero.
   ========================================================================== */

/* ---------- Hero ---------- */
.blog-detail-page .article-hero {
  background:
    radial-gradient(ellipse 40% 70% at 0% 55%, rgba(0, 77, 58, 0.55), transparent 70%),
    radial-gradient(ellipse 55% 60% at 40% -10%, rgba(0, 62, 30, 0.65), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(0, 72, 58, 0.6), transparent 70%),
    #03211A;
  padding: clamp(120px, 11vw, 168px) 0 clamp(110px, 10vw, 150px);
}

.blog-detail-page .article-hero .banner-box {
  z-index: 3;
}

.blog-detail-page .article-hero ul.breadcrumb-list {
  margin-bottom: 28px;
  flex-wrap: nowrap;
  max-width: 760px;
}

.blog-detail-page .article-hero ul.breadcrumb-list li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.blog-detail-page .article-hero ul.breadcrumb-list li.text-truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.blog-detail-page .article-hero .banner-badge {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.blog-detail-page .article-hero h1 {
  max-width: 860px;
  font-size: clamp(2rem, 3.7vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.banner-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
}

.banner-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-base, 'Raleway', sans-serif);
  font-size: 0.92rem;
  font-weight: 500;
  color: #AAAAAA;
}

.banner-meta i {
  color: #0CAF80;
}

/* Glowing logomark bleeding off the right edge (brand book cover) */
.article-hero-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: max(-60px, calc((100vw - 1280px) / 2 - 120px));
  width: clamp(300px, 34vw, 540px);
  aspect-ratio: 1;
  transform: translateY(-46%);
  pointer-events: none;
  opacity: 0.6;
}

.article-hero-mark::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 175, 128, 0.32), transparent 65%);
}

.article-hero-mark img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(12, 175, 128, 0.45));
}

/* ---------- Layout: cards rise over the hero ---------- */
.blog-detail-page .blog-main-section {
  display: flow-root; /* keep the grid's negative margin from collapsing through */
  background-color: #F4F7F6;
  padding-top: 0;
}

.blog-detail-page .blog-detail-grid {
  position: relative;
  z-index: 5;
  margin-top: -72px;
}

.blog-detail-page .post-detail,
.blog-detail-page .sidebar-card {
  border-radius: 20px;
  border: 1px solid #E3EBE7;
  box-shadow: 0 18px 40px rgba(3, 33, 26, 0.06);
}

.blog-detail-page .post-detail {
  padding: clamp(24px, 4vw, 56px);
}

.blog-detail-page .view_img {
  margin: 0 0 clamp(28px, 4vw, 44px);
  border-radius: 14px;
  box-shadow: none;
  background: #03211A;
}

.blog-detail-page .view_img img {
  max-height: none;
  aspect-ratio: 3 / 2;
}

/* ---------- Article typography ---------- */
.blog-detail-page .post-detail .info {
  font-size: 1.06rem;
  font-weight: 500;
  color: #3D4B46;
  line-height: 1.85;
}

.blog-detail-page .post-detail .info p {
  margin: 0 0 1.1em;
}

.blog-detail-page .post-detail .info p.lead {
  font-size: clamp(1.12rem, 1.5vw, 1.26rem);
  font-weight: 500;
  color: #0D251E;
  line-height: 1.65;
  margin-bottom: 1.4em;
}

.blog-detail-page .post-detail .info > h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  font-weight: 800;
  color: #0D251E;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 2.2em 0 0.75em;
  border: 0;
  padding: 0;
}

.blog-detail-page .post-detail .info > h3::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #0CAF80;
  margin-bottom: 16px;
}

.blog-detail-page .post-detail .info h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0D251E;
  line-height: 1.35;
  margin: 1.6em 0 0.5em;
}

.blog-detail-page .post-detail .info h4 .h-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 8px;
  background: #1E1E1E;
  color: #0CAF80;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.blog-detail-page .post-detail .info strong {
  color: #0D251E;
}

.blog-detail-page .post-detail .info a {
  color: #0A9C72;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bullets: small rounded squares, echoing the logomark geometry */
.blog-detail-page .post-detail .info ul {
  list-style: none;
  padding-left: 0;
}

.blog-detail-page .post-detail .info ul li {
  position: relative;
  padding-left: 26px;
}

.blog-detail-page .post-detail .info ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #0CAF80;
}

.blog-detail-page .post-detail .info ol {
  padding-left: 26px;
}

.blog-detail-page .post-detail .info ol li::marker {
  color: #0CAF80;
  font-weight: 800;
}

/* Imported newsletter tables: brand font, no overflow on phones */
.blog-detail-page .post-detail .info [style*="font-family"] {
  font-family: inherit !important;
}

.blog-detail-page .post-detail .info .table-scroll {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 14px;
}

.blog-detail-page .post-detail .info table[width="700"] {
  width: 100% !important;
  max-width: 100% !important;
}

.blog-detail-page .post-detail .info .table-scroll > table {
  margin: 0;
  box-shadow: none;
}

.blog-detail-page .post-detail .info .table-scroll ul li {
  padding-left: 0;
}

.blog-detail-page .post-detail .info .table-scroll ul li::before {
  content: none;
}

/* ---------- Share ---------- */
.blog-detail-page .social-media-share {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #E3EBE7;
}

.blog-detail-page .social-share-btn {
  border-color: #D9E3DE;
  color: #0D251E;
}

/* ---------- Sidebar ---------- */
.blog-detail-page .blog-sidebar-sticky {
  top: 110px;
}

.blog-detail-page .related-post-img-wrap {
  border-radius: 10px;
  background-color: #03211A;
}

.blog-detail-page .sidebar-cta-box {
  position: relative;
  overflow: hidden;
  text-align: left;
  border-radius: 20px;
  padding: 32px 28px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(12, 175, 128, 0.28), transparent 65%),
    #03211A;
}

.blog-detail-page .sidebar-cta-box::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 170px;
  height: 170px;
  background: url("../images/bliss_money_logo.png") center / contain no-repeat;
  opacity: 0.35;
  filter: drop-shadow(0 0 18px rgba(12, 175, 128, 0.5));
  pointer-events: none;
}

.blog-detail-page .sidebar-cta-box h4,
.blog-detail-page .sidebar-cta-box p,
.blog-detail-page .sidebar-cta-btn {
  position: relative;
  z-index: 1;
}

.blog-detail-page .sidebar-cta-box h4 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 10px;
  max-width: 220px;
}

.blog-detail-page .sidebar-cta-box p {
  color: #AAAAAA;
  max-width: 250px;
  margin-bottom: 22px;
}

.blog-detail-page .sidebar-cta-btn {
  color: #FFFFFF;
  border-radius: 999px;
  padding: 12px 26px;
  box-shadow: 0 8px 22px rgba(12, 175, 128, 0.3);
}

.blog-detail-page .sidebar-cta-btn::after {
  content: " \2192";
}

.blog-detail-page .sidebar-cta-btn:hover {
  background-color: #0A9C72;
}

@media (max-width: 1040px) {
  .blog-detail-page .blog-detail-grid {
    margin-top: -56px;
  }

  .article-hero-mark {
    right: -90px;
    opacity: 0.35;
  }
}

@media (max-width: 650px) {
  .blog-detail-page .article-hero {
    padding: 104px 0 96px;
  }

  .blog-detail-page .article-hero h1 {
    font-size: 1.75rem;
  }

  .article-hero-mark {
    width: 240px;
    right: -100px;
    top: 34%;
    opacity: 0.22;
  }

  .blog-detail-page .blog-detail-grid {
    margin-top: -48px;
  }

  .blog-detail-page .post-detail {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .blog-detail-page .post-detail .info > h3 {
    font-size: 1.28rem;
  }

  /* Newsletter layout tables: stack cells instead of squeezing columns */
  .blog-detail-page .post-detail .info .table-scroll tr,
  .blog-detail-page .post-detail .info .table-scroll td {
    display: block;
    width: auto !important;
  }

  .blog-detail-page .post-detail .info .table-scroll td[align="right"] {
    text-align: left !important;
  }
}
