/* =========================================================
   Blog Page
   File: css/blog.css
   ========================================================= */

.blog-page {
  background: #fffdf8;
}

/* =========================================================
   Hero
   ========================================================= */

.blog-hero-section {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #021d13;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 28%, rgba(213, 173, 88, 0.14), transparent 330px),
    linear-gradient(
      90deg,
      rgba(2, 29, 19, 0.18) 0%,
      rgba(2, 29, 19, 0.58) 45%,
      rgba(2, 29, 19, 0.92) 100%
    );
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  min-height: 430px;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  padding: 54px 0;
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.blog-breadcrumb a {
  color: #ead28a;
  font-weight: 800;
}

.blog-breadcrumb strong {
  color: rgba(255, 255, 255, 0.92);
}

.blog-label,
.blog-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d5ad58;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
}

.blog-label::before,
.blog-section-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: #d5ad58;
}

.blog-hero-content h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.45;
}

.blog-hero-content p {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 2.05;
}

.blog-hero-search {
  width: 100%;
  max-width: 560px;
  height: 56px;
  border: 1px solid rgba(213, 173, 88, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  backdrop-filter: blur(10px);
}

.blog-hero-search i {
  color: #d5ad58;
  font-size: 21px;
}

.blog-hero-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
}

.blog-hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   Featured
   ========================================================= */

.blog-featured-section {
  background: #fffdf8;
  padding: 58px 0 34px;
}

.featured-post-card {
  border: 1px solid #e9dfc9;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(4, 53, 35, 0.10);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}

.featured-post-image {
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 40%, rgba(213, 173, 88, 0.12), transparent 260px),
    #fffdf8;
  display: grid;
  place-items: center;
  padding: 28px;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  max-height: 390px;
  object-fit: contain;
}

.featured-post-content {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  width: fit-content;
  height: 34px;
  border-radius: 999px;
  background: #d5ad58;
  color: #021d13;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
}

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

.post-meta span {
  color: #7a7f78;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-meta i {
  color: #9c762e;
}

.featured-post-content h2 {
  margin: 0 0 14px;
  color: #063522;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.55;
}

.featured-post-content p {
  margin: 0 0 22px;
  color: #5c665f;
  font-size: 15px;
  line-height: 2.1;
}

.featured-post-link {
  width: fit-content;
  height: 46px;
  border-radius: 999px;
  background: #07452e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.featured-post-link:hover {
  background: #d5ad58;
  color: #021d13;
  transform: translateY(-2px);
}

/* =========================================================
   Main Layout
   ========================================================= */

.blog-main-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 173, 88, 0.08), transparent 430px),
    #fffdf8;
  padding: 34px 0 70px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 30px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: 145px;
  display: grid;
  gap: 18px;
}

.blog-sidebar-card,
.blog-toolbar,
.blog-post-card,
.blog-empty-state {
  border: 1px solid #e9dfc9;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.035);
}

.blog-sidebar-card {
  padding: 22px;
}

.blog-sidebar-card h2 {
  margin: 0 0 16px;
  color: #063522;
  font-size: 21px;
  font-weight: 900;
}

.blog-category-list {
  display: grid;
  gap: 9px;
}

.blog-category-list button {
  width: 100%;
  min-height: 45px;
  border: 0;
  border-radius: 12px;
  background: #fffdf8;
  color: #063522;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
  transition: 0.25s ease;
}

.blog-category-list button em {
  min-width: 28px;
  height: 26px;
  border-radius: 999px;
  background: #fff7e4;
  color: #9c762e;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-style: normal;
}

.blog-category-list button:hover,
.blog-category-list button.active {
  background: #07452e;
  color: #ffffff;
}

.blog-category-list button:hover em,
.blog-category-list button.active em {
  background: #d5ad58;
  color: #021d13;
}

.blog-search-box {
  height: 46px;
  border: 1px solid #e0d5be;
  border-radius: 999px;
  background: #fffdf8;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  transition: 0.22s ease;
}

.blog-search-box:focus-within {
  border-color: #d5ad58;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(213, 173, 88, 0.12);
}

.blog-search-box i {
  color: #9c762e;
}

.blog-search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #273027;
  font-size: 13px;
}

.popular-post-list {
  display: grid;
  gap: 14px;
}

.popular-post-list a {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.popular-post-list img {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: #fffdf8;
  object-fit: contain;
  border: 1px solid #eee4cf;
  padding: 7px;
}

.popular-post-list strong {
  color: #063522;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.8;
  display: block;
}

.popular-post-list span {
  color: #8a8a8a;
  font-size: 12px;
}

.blog-newsletter-card {
  text-align: center;
}

.blog-newsletter-card > i {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff7e4;
  color: #9c762e;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 30px;
}

.blog-newsletter-card p {
  margin: 0 0 14px;
  color: #626a63;
  font-size: 13px;
  line-height: 2;
}

.blog-newsletter-card form {
  display: grid;
  gap: 10px;
}

.blog-newsletter-card input {
  height: 44px;
  border: 1px solid #e0d5be;
  border-radius: 999px;
  background: #fffdf8;
  outline: 0;
  padding: 0 14px;
  color: #273027;
  font-size: 13px;
}

.blog-newsletter-card button {
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #07452e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.blog-sidebar-alert {
  display: none;
  margin-top: 12px;
  border-radius: 11px;
  background: rgba(7, 69, 46, 0.08);
  color: #07452e;
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
}

.blog-sidebar-alert.show {
  display: block;
}

/* =========================================================
   Content
   ========================================================= */

.blog-content {
  min-width: 0;
}

.blog-toolbar {
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.blog-toolbar h2 {
  margin: 0;
  color: #063522;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.45;
}

.blog-toolbar select {
  min-width: 170px;
  height: 44px;
  border: 1px solid #e0d5be;
  border-radius: 999px;
  background: #fffdf8;
  color: #063522;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  outline: none;
}

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

.blog-post-card {
  overflow: hidden;
  transition: 0.25s ease;
}

.blog-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(4, 53, 35, 0.12);
  border-color: rgba(213, 173, 88, 0.75);
}

.blog-post-card.is-hidden {
  display: none;
}

.blog-post-image {
  position: relative;
  height: 260px;
  background: #fffdf8;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.3s ease;
}

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

.blog-post-image span {
  position: absolute;
  right: 16px;
  top: 16px;
  height: 32px;
  border-radius: 999px;
  background: #d5ad58;
  color: #021d13;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 900;
}

.blog-post-content {
  border-top: 1px solid #eee4cf;
  padding: 22px;
}

.blog-post-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.7;
}

.blog-post-content h3 a {
  color: #063522;
}

.blog-post-content p {
  margin: 0 0 16px;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.blog-read-more {
  color: #07452e;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.blog-read-more:hover {
  color: #9c762e;
}

/* =========================================================
   Empty / Pagination
   ========================================================= */

.blog-empty-state {
  display: none;
  text-align: center;
  padding: 48px 20px;
}

.blog-empty-state.show {
  display: block;
}

.blog-empty-state i {
  color: #9c762e;
  font-size: 52px;
}

.blog-empty-state h3 {
  margin: 12px 0 8px;
  color: #063522;
  font-size: 24px;
  font-weight: 900;
}

.blog-empty-state p {
  margin: 0;
  color: #626a63;
  font-size: 14px;
}

.blog-pagination-wrap {
  margin-top: 28px;
}

.blog-pagination {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.blog-pagination button {
  min-width: 40px;
  height: 40px;
  border: 1px solid #e0d5be;
  border-radius: 50%;
  background: #ffffff;
  color: #063522;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  transition: 0.25s ease;
}

.blog-pagination button:hover,
.blog-pagination button.active {
  border-color: #07452e;
  background: #07452e;
  color: #ffffff;
}

.blog-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.blog-bottom-cta {
  background: #fffdf8;
  padding: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }

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

  .blog-sidebar {
    position: static;
  }

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

@media (max-width: 767px) {
  .blog-hero-section,
  .blog-hero-content {
    min-height: 460px;
  }

  .blog-hero-content {
    text-align: center;
    padding: 44px 0;
  }

  .blog-breadcrumb {
    justify-content: center;
    flex-wrap: wrap;
  }

  .blog-label,
  .blog-section-label {
    justify-content: center;
  }

  .blog-label::after,
  .blog-section-label::after {
    content: "";
    width: 34px;
    height: 1px;
    background: #d5ad58;
  }

  .blog-hero-content h1 {
    font-size: 31px;
  }

  .blog-hero-content p {
    font-size: 14px;
  }

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

  .blog-featured-section {
    padding: 38px 0 24px;
  }

  .featured-post-image {
    min-height: 310px;
  }

  .featured-post-image img {
    max-height: 280px;
  }

  .featured-post-content {
    padding: 24px;
  }

  .featured-post-content h2 {
    font-size: 25px;
  }

  .blog-main-section {
    padding: 24px 0 48px;
  }

  .blog-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-toolbar h2 {
    font-size: 26px;
  }

  .blog-toolbar select {
    width: 100%;
  }

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

  .blog-post-image {
    height: 240px;
  }
}