/* --- Blog Header --- */
.blog-header {
  padding: 200px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 35, 26, 0.85) 0%, rgba(15, 49, 37, 0.95) 100%), url('../assets/blog10_photoshoot_1778511084582.png') center/cover no-repeat;
  color: #fff;
}

.blog-header h1 {
  font-size: 4.5rem;
  font-weight: 600;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: #ffffff !important;
  line-height: 1.1;
  position: relative;
  z-index: 5;
}

/* --- Alternating Themes --- */
.blog-section {
  padding: 40px 0;
}

.blog-section.bg-beige {
  background-color: var(--bg-secondary);
  color: var(--bg-color);
}

.blog-section.bg-green {
  background-color: var(--bg-color);
  color: #fff;
}

.bg-beige .section-title {
  color: var(--bg-color);
}

.bg-green .section-title {
  color: #fff;
}

.bg-beige .section-subtitle {
  color: var(--bg-color);
  opacity: 0.6;
}

.bg-green .section-subtitle {
  color: var(--bg-secondary);
}

/* --- Blog Card --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  padding: 20px;
  background: transparent;
}

/* Beige Theme Cards: White Card with Soft Shadow */
.bg-beige .blog-card {
  background-color: #ffffff;
  box-shadow: 0 20px 50px rgba(17, 48, 37, 0.08);
  border: 1px solid rgba(17, 48, 37, 0.03);
}

/* Green Theme Cards: Subtle Darker Card with Shadow */
.bg-green .blog-card {
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(17, 48, 37, 0.15);
}

.bg-green .blog-card:hover {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.blog-thumb {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 25px;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-keywords {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: inline-block;
}

/* Theme specific card text */
.bg-beige .blog-keywords { color: var(--bg-color); opacity: 0.6; }
.bg-green .blog-keywords { color: var(--bg-secondary); opacity: 0.8; }

.blog-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
  font-family: var(--font-body);
}

.bg-beige .blog-card h3 { color: var(--bg-color); }
.bg-green .blog-card h3 { color: #fff; }

.blog-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.8;
  flex-grow: 1;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.bg-beige .read-more { color: var(--bg-color); }
.bg-green .read-more { color: #fff; }

.read-more:hover {
  gap: 15px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .blog-header h1 { font-size: 3rem; }
  .section-title { font-size: 2rem !important; line-height: 1.2; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-thumb { height: 220px; }
  .blog-card { padding: 15px; }
  .category-filter-bar { gap: 10px; margin-bottom: 35px; }
  .filter-pill { padding: 10px 20px; font-size: 0.75rem; }
}

/* --- Category Filter Bar & Animations --- */
.category-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px auto 55px;
  max-width: 1100px;
}

.filter-pill {
  background: transparent;
  color: var(--bg-color);
  border: 1px solid rgba(17, 48, 37, 0.2);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-pill:hover {
  border-color: var(--bg-color);
  background: rgba(17, 48, 37, 0.05);
  transform: translateY(-2px);
}

.filter-pill.active {
  background: var(--bg-color);
  color: var(--bg-secondary);
  border-color: var(--bg-color);
  box-shadow: 0 10px 20px rgba(17, 48, 37, 0.15);
}

/* --- Blog Card Meta --- */
.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bg-color);
  opacity: 0.65;
  margin-bottom: 15px;
  font-family: var(--font-body);
}

.blog-card-meta span {
  display: inline-flex;
  align-items: center;
}

.blog-card-meta .blog-card-author::before {
  content: '•';
  margin-right: 10px;
  font-weight: bold;
  opacity: 0.5;
}

/* --- Category Ribbon Overlay --- */
.blog-thumb {
  position: relative; /* Ensure child absolute positioning works */
}

.category-ribbon {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--bg-color);
  color: var(--bg-secondary);
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 30px;
  z-index: 5;
  box-shadow: 0 10px 25px rgba(17, 48, 37, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .category-ribbon {
  background-color: var(--bg-secondary);
  color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(17, 48, 37, 0.25);
}





