:root {
  --green: #1e3a2f;
  --green-light: #2d5243;
  --gold: #c8a96b;
  --cream: #f7f3ee;
  --text: #1f2937;
  --border: rgba(30, 58, 47, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

.blog-card img,
.blog-card-image img,
.featured-image img,
.blog-hero img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* =========================
   HERO
========================= */

.blog-hero {
  padding: 170px 7% 90px;
  background: linear-gradient(rgba(30, 58, 47, 0.82), rgba(30, 58, 47, 0.82)),
    url("images/care-bg.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  color: white;
}

.section-label {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.blog-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  margin-bottom: 24px;
}

.blog-hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.blog-hero p {
  max-width: 760px;
  margin: auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

/* =========================
   BLOG SECTION
========================= */

.blog-section {
  padding: 90px 7%;
}

.blog-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.blog-topbar h2 {
  font-size: 2rem;
  color: var(--green);
  font-family: "Cormorant Garamond", serif;
}

.blog-search {
  width: 340px;
  max-width: 100%;
  position: relative;
}

.blog-search input {
  width: 100%;
  padding: 16px 18px 16px 50px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: white;
  font-size: 0.95rem;
  outline: none;
}

.blog-search i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #6b7280;
}

/* =========================
   BLOG GRID
========================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.blog-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(30, 58, 47, 0.9);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.blog-card-body {
  padding: 30px;
}

.blog-card h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--green);
  margin-bottom: 16px;
  font-family: "Cormorant Garamond", serif;
}

.blog-card p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 22px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 0.9rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 600;
  transition: 0.3s ease;
}

.read-more:hover {
  gap: 14px;
  color: var(--gold);
}

/* =========================
   LOADER
========================= */

.blog-loader {
  display: flex;
  justify-content: center;
  padding: 100px 20px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(30, 58, 47, 0.1);
  border-top: 5px solid var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   EMPTY
========================= */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #6b7280;
}

.empty-state i {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 20px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .blog-section {
    padding: 70px 20px;
  }

  .blog-card-body {
    padding: 24px;
  }

  .blog-card h3 {
    font-size: 1.3rem;
  }
}

/* =========================
TOPBAR ACTIONS
========================= */
.blog-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

#categoryFilter {
  height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: white;
  font-size: 0.95rem;
  color: var(--green);
  outline: none;
  cursor: pointer;
}

/* =========================
PAGINATION
========================= */

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 70px;
  flex-wrap: wrap;
}

.blog-pagination button {
  height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: 16px;
  background: var(--green);
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s ease;
}

.blog-pagination button:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

.blog-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.pagination-info {
  font-weight: 600;
  color: var(--green);
}

/* =========================
LARGE SCREEN
========================= */

@media (min-width: 1400px) {
  .blog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================
TABLET
========================= */

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
MOBILE
========================= */

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: repeat(1, 1fr);

    gap: 18px;
  }

  .blog-card-image {
    height: 160px;
  }

  .blog-card-body {
    padding: 18px;
  }

  .blog-card h3 {
    font-size: 1.05rem;
  }

  .blog-card p {
    font-size: 0.88rem;
    line-height: 1.6;
  }
}

/* =========================
VERY SMALL DEVICES
========================= */

@media (max-width: 380px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
