@charset "UTF-8";

/* ==========================================================================
   Blog Specific Styles
   ========================================================================== */

/* Layout Overrides */
.blog-container {
  max-width: 800px; /* Readability focused width */
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Article Content Styling
   -------------------------------------------------------------------------- */
.post-content {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-top: 40px;
}

/* Headings within posts */
.post-content h2 {
  background: var(--renewal-navy);
  color: #fff;
  padding: 15px 20px;
  border-radius: 4px;
  margin-top: 60px;
  margin-bottom: 30px;
  font-size: 1.5rem;
  font-weight: 700;
}

.post-content h3 {
  border-left: 5px solid var(--renewal-gold);
  padding-left: 15px;
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 700;
}

.post-content h4 {
  font-size: 1.15rem;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

/* Paragraphs */
.post-content p {
  margin-bottom: 2em;
  text-align: justify;
}

/* Lists */
.post-content ul,
.post-content ol {
  background: #f8fafc;
  padding: 30px 40px;
  border-radius: 8px;
  margin-bottom: 2em;
}

.post-content li {
  margin-bottom: 10px;
}

/* Emphasis */
.post-content strong {
  background: linear-gradient(transparent 60%, rgba(255, 215, 0, 0.4) 60%);
  font-weight: 700;
}

/* Blockquote */
.post-content blockquote {
  background: #f1f5f9;
  padding: 20px;
  border-left: 5px solid #94a3b8;
  margin: 30px 0;
  font-style: italic;
  color: #475569;
}

/* Images in posts */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   Post Header & Footer
   -------------------------------------------------------------------------- */
.post-header {
  text-align: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid #e2e8f0;
}

.post-category {
  display: inline-block;
  background: var(--renewal-navy);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.8rem;
  border-radius: 20px;
  margin-bottom: 15px;
}

.post-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--renewal-navy);
}

.post-meta {
  display: none;
}

/* CTA Box within Article */
.blog-cta-box {
  background: var(--renewal-navy);
  color: #fff;
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  margin: 80px 0;
}

.blog-cta-box h3 {
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 0 15px 0; /* Reduced bottom margin */
  font-size: 1.4rem;
}

.blog-cta-box p {
  text-align: center; /* Override post-content p's text-align: justify */
  margin-bottom: 25px; /* Override post-content p's 2em margin */
}

.blog-cta-box a {
  display: inline-block; /* Allow centering */
  margin-top: 5px; /* Small spacing above button */
}

/* --------------------------------------------------------------------------
   Blog Index Layout
   -------------------------------------------------------------------------- */
/* Increased padding back to original */
.blog-hero {
  background: var(--renewal-navy);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  margin-bottom: 60px;
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid #e2e8f0;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 20px;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--renewal-navy);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  color: var(--renewal-gold);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

/* ==========================================================================
   Blog Layout Variations
   ========================================================================== */

/* --------------------------------------------------------------------------
   Pattern A: Standard Grid (Already defined as .blog-grid)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Pattern B: Horizontal List (Business Style)
   -------------------------------------------------------------------------- */
.blog-list-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-card.list-view {
  display: flex;
  flex-direction: row;
  align-items: center; /* Center vertically */
  min-height: 200px;
}

.blog-card.list-view .blog-card-img {
  width: 35%; /* Fixed width for image */
  height: 100%;
  min-height: 220px; /* Ensure height matches content */
  object-fit: cover;
}

.blog-card.list-view .blog-card-content {
  width: 65%;
  padding: 30px;
}

@media (max-width: 768px) {
  .blog-card.list-view {
    flex-direction: column;
  }
  .blog-card.list-view .blog-card-img {
    width: 100%;
    height: 200px;
  }
  .blog-card.list-view .blog-card-content {
    width: 100%;
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   Pattern C: Hero Card (Magazine Style)
   -------------------------------------------------------------------------- */
.blog-hero-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.blog-hero-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
  transition: transform 0.5s ease;
}

.blog-hero-card:hover img {
  transform: scale(1.05);
}

.blog-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: #fff;
  box-sizing: border-box; /* Fix: Include padding in width calculation */
}

.blog-hero-content .post-category {
  background: var(--renewal-gold);
  color: #000;
  font-weight: 700;
}

.blog-hero-content h2 {
  font-size: 2rem;
  margin: 15px 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 20px;
  max-width: 800px;
}

.blog-hero-content .read-more {
  color: #fff;
  border-bottom: 1px solid #fff;
}

@media (max-width: 768px) {
  .blog-hero-card img {
    height: 350px;
  }
  .blog-hero-content h2 {
    font-size: 1.5rem;
  }
  .blog-hero-content p {
    display: none; /* Hide desc on mobile */
  }
}
