/* ====== BLOG LISTING PAGE ====== */

/* --- Hero --- */
.blog-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  background: #fdf6f0;
  text-align: center;
  padding: 120px 24px 60px;
}

.blog-hero-center {
  max-width: 680px;
}

.blog-hero-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 52px;
  font-weight: 400;
  color: #8b4f4f;
  margin: 0 0 16px;
  line-height: 1.15;
}

.blog-hero-subtitle {
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: #5a4a40;
  line-height: 1.6;
  margin: 0;
}

/* --- Category Filters --- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 40px 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-filter {
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 22px;
  border: 1.5px solid #d4b8a0;
  border-radius: 40px;
  background: transparent;
  color: #5a4a40;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.blog-filter:hover {
  background: #f5e6da;
  border-color: #c49a7c;
}

.blog-filter.active {
  background: #f0ddd0;
  border-color: #b46746;
  color: #8b4f4f;
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px 60px;
}

/* --- Blog Card --- */
.blog-card {
  background: #fff;
  border: 1px solid #f0ddd0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(139, 79, 79, 0.08);
}

/* --- Card Image --- */
.blog-card-img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

/* --- Card Body --- */
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* --- Category Tag --- */
.blog-card-tag {
  display: inline-block;
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b4f4f;
  background: #fdf6f0;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  align-self: flex-start;
}

/* --- Date --- */
.blog-card-date {
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #a08e82;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: block;
}

/* --- Title --- */
.blog-card-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px;
}

.blog-card-title a {
  color: #8b4f4f;
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-card-title a:hover {
  color: #b46746;
}

/* --- Excerpt --- */
.blog-card-excerpt {
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #5a4a40;
  line-height: 1.65;
  margin: 0 0 18px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Read More Link --- */
.blog-card-link {
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #b46746;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  margin-top: auto;
}

.blog-card-link:hover {
  color: #8b4f4f;
}

/* --- Newsletter Section --- */
.blog-newsletter {
  background: #fdf6f0;
  padding: 70px 24px;
  text-align: center;
}

.blog-newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.blog-newsletter-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: #8b4f4f;
  margin: 0 0 14px;
}

.blog-newsletter-text {
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #5a4a40;
  line-height: 1.6;
  margin: 0 0 30px;
}

.blog-newsletter-form .formkit-form {
  max-width: 100%;
}

.blog-newsletter-form .formkit-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-newsletter-form .formkit-input {
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  padding: 12px 18px;
  border: 1px solid #d4b8a0;
  border-radius: 8px;
  background: #fff;
  color: #3a2e28;
  min-width: 180px;
}

.blog-newsletter-form .formkit-input:focus {
  outline: none;
  border-color: #b46746;
}

.blog-newsletter-form .formkit-submit {
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  background: #b46746;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.blog-newsletter-form .formkit-submit:hover {
  background: #8b4f4f;
}

.blog-newsletter-form .formkit-guarantee {
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: #a08e82;
  margin-top: 12px;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .blog-hero-title {
    font-size: 42px;
  }
}

@media (max-width: 600px) {
  .blog-hero {
    min-height: 32vh;
    padding: 100px 20px 40px;
  }

  .blog-hero-title {
    font-size: 34px;
  }

  .blog-hero-subtitle {
    font-size: 15px;
  }

  .blog-filters {
    gap: 8px;
    padding: 28px 16px 16px;
  }

  .blog-filter {
    font-size: 12px;
    padding: 8px 16px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px 40px;
  }

  .blog-card {
    padding: 22px;
  }

  .blog-card-title {
    font-size: 20px;
  }

  .blog-newsletter {
    padding: 50px 20px;
  }

  .blog-newsletter-title {
    font-size: 28px;
  }

  .blog-newsletter-form .formkit-fields {
    flex-direction: column;
    align-items: center;
  }

  .blog-newsletter-form .formkit-input,
  .blog-newsletter-form .formkit-submit {
    width: 100%;
    max-width: 320px;
  }
}

/* ============================================
   BLOG POST PAGE
   ============================================ */
.blog-post {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-post-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b4f4f;
  background: #fdf6f0;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.blog-post-title {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  color: #8b4f4f;
  line-height: 1.2;
  margin: 0 0 16px;
}

.blog-post-excerpt {
  font-size: 18px;
  color: #5a4a40;
  line-height: 1.6;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 20px;
}

.blog-post-meta {
  font-size: 14px;
  color: #a08e82;
}

.blog-post-meta time { margin-right: 12px; }
.blog-post-author { color: #b46746; }

.blog-post-image {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article body */
.blog-post-body h2 {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: #8b4f4f;
  margin: 48px 0 16px;
}

.blog-post-body h3 {
  font-family: 'Mulish', 'Mulish Fallback', 'Helvetica Neue', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #8b4f4f;
  margin: 32px 0 12px;
}

.blog-post-body p {
  font-size: 17px;
  color: #5a4a40;
  line-height: 1.8;
  margin: 0 0 20px;
}

.blog-post-body ul {
  margin: 0 0 24px 20px;
  color: #5a4a40;
}

.blog-post-body ul li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.blog-post-body blockquote {
  margin: 40px 0;
  padding: 24px 30px;
  background: #fdf6f0;
  border-left: 4px solid #b46746;
  border-radius: 0 12px 12px 0;
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  color: #8b4f4f;
  line-height: 1.6;
}

/* CTA */
.blog-post-cta {
  background: linear-gradient(to left, #FEF4EF, #FFFAF8);
  border: 1px solid #f0ddd0;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 50px 0;
}

.blog-post-cta h3 {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 24px;
  color: #8b4f4f;
  margin: 0 0 12px;
}

.blog-post-cta p {
  font-size: 16px;
  color: #5a4a40;
  margin: 0 0 24px;
}

.blog-post-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #b46746, #8b4f4f);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.blog-post-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(180, 103, 70, 0.3);
  color: white;
}

/* Related Posts */
.blog-post-related {
  margin: 60px 0 40px;
}

.blog-post-related h3 {
  font-family: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  font-size: 24px;
  color: #8b4f4f;
  text-align: center;
  margin: 0 0 30px;
}

.blog-post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-post-related .blog-card {
  font-size: 14px;
}

.blog-post-related .blog-card-title {
  font-size: 18px;
}

/* Back link */
.blog-post-back {
  text-align: center;
  margin-bottom: 40px;
}

.blog-post-back a {
  color: #b46746;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}

.blog-post-back a:hover { color: #8b4f4f; }

@media (max-width: 768px) {
  .blog-post-related-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
