/* Inherit variables from root, but add specific blog overrides */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Article Typography (Readability First) */
.article-body {
  font-family: "Inter", sans-serif; /* Clean sans for body */
  line-height: 1.8;
  font-size: 1.05rem;
  color: #e0d0c0; /* Softer than pure white */
}

.article-body h2 {
  font-family: "Shippori Mincho", serif;
  font-size: 1.8rem;
  color: var(--rich-gold);
  border-bottom: 1px solid rgba(212, 175, 122, 0.3);
  padding-bottom: 0.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.article-body h3 {
  font-family: "Shippori Mincho", serif;
  font-size: 1.4rem;
  color: #fff;
  border-left: 4px solid var(--rich-gold);
  padding-left: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--rich-gold-bright);
}

/* Blog Card (Archive) */
.blog-card {
  background: rgba(31, 26, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 122, 0.3);
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--rich-subtext);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--rich-gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Conversion Block CTA (Matching Top Page .cta-primary) */
.bg-rich-panel a {
  background: linear-gradient(135deg, #f7d7a9, #d9a761) !important;
  color: #2a1a0f !important;
  font-weight: bold;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bg-rich-panel a:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Add shine effect for extra visibility */
.bg-rich-panel a::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: shine-blog 3s infinite;
}

@keyframes shine-blog {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  20% {
    transform: translateX(100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Fixed Footer CTA Override (Mobile) */
.fixed.bottom-0 .grid a:last-child {
  background: linear-gradient(135deg, #f7d7a9, #d9a761) !important;
  color: #2a1a0f !important;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.fixed.bottom-0 .grid a:last-child:hover {
  filter: brightness(1.1);
}

.fixed.bottom-0 .grid a:last-child::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: shine-blog 3s infinite;
}

/* Fix: Horizontal Scroll Prevention & Text Wrapping */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

h1,
h2,
h3,
.blog-card h2,
.article-body h2 {
  overflow-wrap: anywhere;
  word-break: break-word;
}
