/* Container & Toolbar */
.blog-page-section {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Search Box */
.search-box {
  position: relative;
  flex: 1;
  max-width: 620px;
}

.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  font-size: 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #ffffff;
  color: #1e293b;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-box input::placeholder {
  color: #94a3b8;
}

/* Category Filter Buttons */
.blog-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: #475569;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* 3-Column Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
}

/* Article Cards */
.article-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

/* Card Image */
.article-media {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background-color: #0b1120;
}

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

/* Card Content Area */
.article-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Metadata Row (Author, Date, Reading Time) */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-item svg {
  width: 14px;
  height: 14px;
  stroke: #94a3b8;
}

.meta-time {
  margin-left: auto;
  color: #64748b;
}

/* Titles & Descriptions */
.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 0.75rem 0;
}

.article-excerpt {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 1.5rem 0;
}

/* Read More Link */
.read-more-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0d9488 !important; /* Teal link color matching the design */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.read-more-link:hover {
  color: #0f766e !important;
  gap: 0.5rem;
}
