/* Read more link styling */
.read-more-link {
  display: block;
  margin-top: 4px;
  color: #2cbfae;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 8px;
}
.read-more-link:hover {
  color: #1a8c7a;
  text-decoration: underline;
}
.page-header {
  background: #2a2c39;
  padding: 120px 0 80px;
  color: var(--contrast-color);
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--contrast-color);
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: var(--contrast-color);
}

.blog-card {
  background: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(45deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #2a2c39 20%));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 600;
}

.blog-content {
  padding: 25px;
}

.blog-date {
  color: grey;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.blog-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-title a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--accent-color);
}

.read-more-btn {
  color: var(--accent-color);
  text-decoration: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.featured-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff6b35;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blogs-hero-container {
  padding-top: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.blogs-hero-text {
  text-align: center;
}

.blogs-page .recent-posts .post-img {
  height: 240px;
}

.blogs-page .recent-posts .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

  .blog-image {
    height: 180px;
    font-size: 20px;
  }

  .blogs-page .recent-posts .post-img {
    height: 200px;
  }

  .page-header h1 {
    font-size: 36px;
  }
}
