/* ==========================================================================
   BLOG BANNER
   ========================================================================== */
.blog-banner {
  height: 40vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('https://source.unsplash.com/1600x600/?plants,garden,reading');
  background-size: cover;
  background-position: center;
  margin-top: 80px;
}

.blog-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--clr-green-forest);
  opacity: 0.6;
}

.blog-banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--clr-white);
  animation: fadeIn 1s ease both;
}

.blog-banner h1 {
  color: var(--clr-white);
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   FEATURED POST
   ========================================================================== */
.featured-post {
  display: flex;
  background: var(--clr-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 4rem;
  transition: var(--transition-fast);
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(45, 106, 79, 0.15);
}

.featured-img-col {
  width: 60%;
  overflow: hidden;
}

.featured-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-post:hover .featured-img-col img {
  transform: scale(1.05);
}

.featured-content-col {
  width: 40%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-badge {
  display: inline-block;
  background: var(--clr-green-light);
  color: var(--clr-green-deep);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.featured-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-excerpt {
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   BLOG LAYOUT (Grid + Sidebar)
   ========================================================================== */
.blog-layout {
  display: flex;
  gap: 3rem;
}

.blog-main {
  width: 70%;
}

.blog-sidebar {
  width: 30%;
}

/* ==========================================================================
   ARTICLES GRID
   ========================================================================== */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.tab-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background: var(--clr-off-white);
  color: var(--clr-text-muted);
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-pill.active {
  background: var(--clr-green-deep);
  color: var(--clr-white);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--clr-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.article-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.article-img img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

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

.article-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.article-excerpt {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.article-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.read-more {
  color: var(--clr-green-deep);
  font-weight: 600;
  font-size: 0.9rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar-widget {
  background: var(--clr-off-white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--clr-border);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: 50px;
  font-family: var(--font-body);
  outline: none;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--clr-white);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  transition: var(--transition-fast);
}

.tag:hover {
  background: var(--clr-green-deep);
  color: var(--clr-white);
}

.recent-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.recent-post:last-child {
  margin-bottom: 0;
}

.recent-post img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.recent-post h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  margin: 0 0 0.25rem 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .featured-post { flex-direction: column; }
  .featured-img-col, .featured-content-col { width: 100%; }
  
  .blog-layout { flex-direction: column; }
  .blog-main, .blog-sidebar { width: 100%; }
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
}
