@import url("../styles.css");

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
  scroll-margin-top: 70px;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.page-hero__content {
  position: relative;
  max-width: 640px;
}

.page-section {
  padding: 90px 0;
}

body[data-theme="light"] .page-section {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

/* Blog Card Styles */
.blog-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.blog-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(70, 130, 255, 0.2));
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 16px;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-primary);
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 16px 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  margin-top: auto;
  border-top: 1px solid var(--stroke);
  font-size: 12px;
}

.blog-meta small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 280px;
    padding: 70px 0 40px;
  }

  .blog-card h3 {
    font-size: 16px;
  }

  .blog-card p {
    font-size: 13px;
  }
}
