/* Blog Page CSS  */

.blog-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.blog-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.blog-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
  max-width: 520px;
}
.blog-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  flex: 1 1 120px;
  min-width: 120px;
  color: black;
}
.blog-search-bar button {
  border: none;
  /* background: #4CAF50; */
  /* outline: #059669; */
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
}

/* Blog Section */
.blog-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #22223b;
  margin-bottom: 0.25rem;
}
.blog-section-desc {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* General Card Style */
.blog-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.06); */
  /* display: flex; */
  height: 100%;
  overflow: hidden;
}

/* Featured Article Card */
.blog-card-featured {
  flex-direction: column;
}
.blog-card-featured .blog-img-wrapper {
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 420px;
}
.blog-card-featured .blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-featured .blog-content {
  padding: 2rem 2.5rem 2.5rem;
}
.blog-card-featured .blog-meta {
  display: inline-block;
  background-color: #ecfdf5;
  color: #059669;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.blog-card-featured .blog-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.blog-card-featured .blog-author-info {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 1.5rem;
}



/* Side Articles Card */
.blog-card-row {
  padding: 1rem;
}
.blog-card-row .blog-img-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-right: 1rem;
}

.blog-card-row .blog-meta {
  font-size: 0.85rem;
  font-weight: 500;
  color: #059669;
  margin-bottom: 0.25rem;
}
.blog-card-row .blog-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.blog-card-row .blog-desc {
  font-size: .9rem;
  line-height: 1.7;
  color: #334155;
}
 
.blog-card-row .blog-desc p {
    margin-bottom: 1rem;
}


@media (max-width: 1024px) {
  .blog-hero-title { font-size: 1.5rem; }
  .blog-section-title { font-size: 1.2rem; }
  .blog-card-featured { min-height: 180px; }
  .blog-img-featured { min-height: 140px; }
  .blog-card-featured .blog-content {
    padding: 1.5rem 2rem 2rem;
  }
  .blog-card-featured .blog-title {
    font-size: 1.5rem;
  }
}
@media (max-width: 700px) {
  .blog-hero-content { padding-top: 1rem; padding-bottom: 1rem; }
  .blog-section-title { font-size: 1.1rem; }
  .blog-card-featured { flex-direction: column; min-height: 0; }
  .blog-img-featured { min-height: 120px; }
  .blog-img-side { width: 70px; height: 70px; }
  .blog-card-featured .blog-content {
    padding: 1.5rem;
  }
}
