/* ===== BLOG HERO ===== */
.blog-hero {
  position: relative;
  background-image: url("/images/home-hero.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.blog-hero * {
  position: relative;
  z-index: 2;
}

/* ===== BLOG SECTION ===== */
.blog-section {
  background: #161616;
  padding: 80px 60px;
  font-family: "DM Sans", sans-serif;
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---- Card ---- */
.blog-card {
  width: 500px;
  height: auto;
  background: #555;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 8px #c0873f, 0 0 20px #a8722f, 0 0 40px #a06828;
}

.blog-card-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-text {
  font-size: 0.9rem;
  color: #ede9e9;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card-btn-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

.blog-card-meta i {
  color: #c0873f;
  font-size: 12px;
}

.blog-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #e19845;
  color: black;
  font-size: large;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, gap 0.25s ease;
  align-self: flex-start;
  margin-top: auto;
}

.blog-card-btn:hover {
  background: #e19845;
  color: white;
}

.blog-card-btn i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

/* ==============================
   BLOG MODAL PAGE
============================== */

.blog-modal-section {
  min-height: 100vh;
  background: #f7f5f2;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  font-family: "DM Sans", sans-serif;
}

.back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c0873f;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.back-btn:hover {
  gap: 12px;
  color: #a8722f;
}
.back-btn i {
  font-size: 12px;
}

.blog-modal {
  width: 100%;
  max-width: 780px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.blog-modal-img {
  position: relative;
  width: 100%;
  height: 420px;
}

.blog-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-modal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 60%);
}

.blog-modal-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #c0873f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
}

.blog-modal-txt {
  padding: 36px 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-modal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #aaa;
}

.blog-modal-meta i {
  color: #c0873f;
}

.blog-modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.25;
}

.blog-modal-script {
  font-size: 1rem;
  color: #555;
  line-height: 1.9;
  font-weight: 400;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .blog-section {
    padding: 60px 30px;
  }
}

@media (max-width: 768px) {
  .blog-modal-section {
    padding: 40px 20px;
  }
  .blog-modal-img {
    height: 260px;
  }
  .blog-modal-txt {
    padding: 24px 22px 36px;
  }
  .blog-modal-title {
    font-size: 1.7rem;
  }
  .blog-card {
    width: 100%;
    height: auto;
  }
  .blog-card-img {
    height: 200px;
  }
  .blog-card-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 500px) {
  .blog-section {
    padding: 50px 16px;
  }
  .blog-card-img {
    height: 180px;
  }
  .blog-card-body {
    padding: 18px 16px;
  }
  .blog-card-title {
    font-size: 1.1rem;
  }
  .blog-card-text {
    font-size: 0.85rem;
  }
}
