/* Blog-specific styles */

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #1a9e7e 0%, #1a7a66 100%);
  color: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.blog-hero .subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  background: #f5f5f5;
  padding: 1rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: inline;
}

.breadcrumbs a {
  color: #1a9e7e;
  text-decoration: none;
  font-size: 0.9rem;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 0.5rem;
  color: #999;
}

/* Articles Grid */
.blog-list {
  padding: 3rem 1rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Article Card */
.article-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 4px 12px rgba(26, 158, 126, 0.15);
  transform: translateY(-2px);
}

.article-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #2d3436;
}

.article-card-title a {
  color: #2d3436;
  text-decoration: none;
}

.article-card-title a:hover {
  color: #1a9e7e;
}

.article-card-excerpt {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #999;
}

.article-card-author {
  font-weight: 600;
}

.article-card-date {
  color: #999;
}

.article-card-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #1a9e7e;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.article-card-link:hover {
  text-decoration: underline;
}

/* Article Container (Detail Page) */
.article-container {
  background: #ffffff;
}

.article-header {
  background: #f9f9f9;
  padding: 3rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #2d3436;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #666;
}

.article-author,
.article-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-image {
  width: 100%;
  margin: 2rem 0;
}

.article-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Article Content Styling */
.article-content {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: #2d3436;
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem 0;
  color: #2d3436;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  color: #333;
}

.article-content a {
  color: #1a9e7e;
  text-decoration: underline;
}

.article-content a:hover {
  color: #0d6e5f;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem 2rem;
  padding: 0;
  line-height: 1.7;
  color: #333;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid #1a9e7e;
  padding: 1rem 0 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f9f9f9;
  color: #666;
  font-style: italic;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 8px;
}

/* Article Footer */
.article-footer {
  padding: 2rem 1rem;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

.related-articles {
  max-width: 900px;
  margin: 0 auto;
}

.related-articles h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #2d3436;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.related-articles li {
  background: #ffffff;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #1a9e7e;
}

.related-articles a {
  color: #2d3436;
  text-decoration: none;
  font-weight: 600;
}

.related-articles a:hover {
  color: #1a9e7e;
}

/* Responsive Design */
@media (min-width: 768px) {
  .blog-hero h1 {
    font-size: 3rem;
  }

  .blog-hero .subtitle {
    font-size: 1.5rem;
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .article-header h1 {
    font-size: 3rem;
  }

  .article-meta {
    gap: 2rem;
  }

  .article-content h2 {
    font-size: 2rem;
  }

  .article-content h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .blog-hero {
    padding: 4rem 1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-image {
    max-width: 800px;
    margin: 2rem auto;
  }
}

/* Accessibility: Focus Styles */
.article-card:focus-within,
.breadcrumbs a:focus,
.article-card-link:focus {
  outline: 2px solid #1a9e7e;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .breadcrumbs,
  .footer,
  .article-footer {
    display: none;
  }

  .article-content {
    padding: 0;
  }
}
