/** 
====================================================================
  Blog Listing Section Stylesheet (Option 1 - Classic Editorial)
  Inspired by LezDo TechMed, styled for ZenCorp Healthcare
====================================================================
***/

.blog-banner {
  position: relative;
  padding: 80px 0px;
  background-color: var(--secondary-color, #0A0F20);
  background-image: radial-gradient(circle at 10% 20%, rgba(235, 41, 44, 0.08) 0%, transparent 40%);
  text-align: center;
  color: #ffffff;
}

.blog-banner h1 {
  font-family: var(--title-font, 'Manrope', sans-serif);
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
}

.blog-banner h1 span {
  color: var(--theme-color, #EB292C);
}

.blog-banner p {
  font-family: var(--text-font, 'Inter', sans-serif);
  font-size: 16px;
  color: #a0a5b5;
  max-width: 600px;
  margin: 0 auto;
}

.blog-section {
  position: relative;
  padding: 100px 0px;
  background-color: #F8F9FA;
}

/* Blog Post Cards */
.blog-card {
  position: relative;
  display: block;
  background: #ffffff;
  border: 1px solid #E5E8ED;
  border-radius: 12px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 400ms ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--theme-color, #EB292C);
  box-shadow: 0px 15px 40px rgba(235, 41, 44, 0.08);
}

.blog-card-image {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  background-color: #0A0F20;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
  opacity: 0.9;
}

.blog-card-content {
  position: relative;
  padding: 35px 30px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-family: var(--text-font, 'Inter', sans-serif);
  font-size: 14px;
  color: #888888;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-meta span i {
  color: var(--theme-color, #EB292C);
}

.blog-card-content h2 {
  font-family: var(--title-font, 'Manrope', sans-serif);
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
  color: var(--secondary-color, #0A0F20);
  margin-bottom: 15px;
  transition: all 300ms ease;
}

.blog-card-content h2 a {
  color: inherit;
}

.blog-card-content h2 a:hover {
  color: var(--theme-color, #EB292C);
}

.blog-card-content p {
  font-family: var(--text-font, 'Inter', sans-serif);
  font-size: 15px;
  line-height: 26px;
  color: #555555;
  margin-bottom: 25px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--title-font, 'Manrope', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-color, #EB292C);
  transition: all 300ms ease;
}

.read-more-btn:hover {
  color: var(--secondary-color, #0A0F20);
  gap: 12px;
}

/* Sidebar Styling */
.sidebar-widget {
  position: relative;
  background: #ffffff;
  border: 1px solid #E5E8ED;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.01);
}

.widget-title {
  position: relative;
  font-family: var(--title-font, 'Manrope', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary-color, #0A0F20);
  margin-bottom: 25px;
  padding-bottom: 10px;
}

.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--theme-color, #EB292C);
}

/* Category Widget */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 15px;
}

.category-list li:last-child {
  margin-bottom: 0;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--text-font, 'Inter', sans-serif);
  font-size: 15px;
  color: #555555;
  transition: all 300ms ease;
}

.category-list a:hover {
  color: var(--theme-color, #EB292C);
  padding-left: 5px;
}

.category-list a span.count {
  font-size: 13px;
  background-color: #F8F9FA;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid #E5E8ED;
  color: #888888;
  transition: all 300ms ease;
}

.category-list a:hover span.count {
  background-color: rgba(235, 41, 44, 0.05);
  border-color: rgba(235, 41, 44, 0.15);
  color: var(--theme-color, #EB292C);
}

/* Recent Posts Widget */
.recent-post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post-item {
  display: flex;
  gap: 15px;
  align-items: center;
}

.recent-post-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #0A0F20;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.recent-post-info h5 {
  font-family: var(--title-font, 'Manrope', sans-serif);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--secondary-color, #0A0F20);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 300ms ease;
}

.recent-post-info h5 a {
  color: inherit;
}

.recent-post-info h5 a:hover {
  color: var(--theme-color, #EB292C);
}

.recent-post-info span {
  font-family: var(--text-font, 'Inter', sans-serif);
  font-size: 12px;
  color: #888888;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 20px;
}

.pagination-list {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-list a {
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #E5E8ED;
  background-color: #ffffff;
  color: var(--secondary-color, #0A0F20);
  font-family: var(--title-font, 'Manrope', sans-serif);
  font-weight: 700;
  transition: all 300ms ease;
}

.pagination-list li.active a,
.pagination-list a:hover {
  background-color: var(--theme-color, #EB292C);
  border-color: var(--theme-color, #EB292C);
  color: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
  .blog-section {
    padding: 80px 0px;
  }
  .blog-card-image {
    height: 220px;
  }
  .sidebar-column {
    margin-top: 50px;
  }
}
@media (max-width: 767px) {
  .blog-banner h1 {
    font-size: 32px;
  }
  .blog-card-content {
    padding: 25px 20px;
  }
  .blog-card-content h2 {
    font-size: 20px;
    line-height: 28px;
  }
}
