/* Blog Page Styles */
body {
  padding-top: 64px;
}

.blog-main {
  min-height: 100vh;
}

/* Blog Header */
.blog-header {
  background: linear-gradient(135deg, #5E8C2C 0%, #7BA53A 100%);
  color: white;
  padding: 80px 0 60px 0;
  text-align: center;
}

.blog-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-header__title {
  font-family: 'Baloo 2', 'Kalam', cursive;
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #5E3517;
}

.blog-header__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
  opacity: 0.9;
}

/* Blog Categories */
.blog-categories {
  background: #fff;
  padding: 32px 0;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 64px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-categories__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-categories__scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
}

.blog-categories__scroll::-webkit-scrollbar {
  display: none;
}

.blog-category {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #6c757d;
  padding: 12px 24px;
  border-radius: 25px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-category:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.blog-category.active {
  background: #5E3517;
  border-color: #5E3517;
  color: white;
  box-shadow: 0 2px 8px rgba(205, 92, 77, 0.25);
}

/* Blog Grid */
.blog-grid {
  background: #fff;
  padding: 60px 0 80px 0;
}

.blog-grid__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Blog grid layout adjustments */
.blog-grid .home-back-btn {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  padding: 0 24px;
  display: flex;
}

.blog-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.blog-row:last-child {
  margin-bottom: 0;
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.blog-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__title {
  font-family: 'Baloo 2', 'Kalam', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.blog-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #a0aec0;
}

.blog-card__date,
.blog-card__read-time {
  display: flex;
  align-items: center;
}

.blog-card__date::before {
  content: "📅";
  margin-right: 4px;
}

.blog-card__read-time::before {
  content: "⏱️";
  margin-right: 4px;
}

.blog-card__link {
  font-family: 'Inter', sans-serif;
  color: #CD5C4D;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px dotted #CD5C4D;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.blog-card__link:hover {
  color: #b54a35;
  border-bottom-color: #b54a35;
}

/* Featured cards (larger in the first row) */
.blog-card--featured .blog-card__title {
  font-size: 1.6rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-header {
    padding: 60px 0 40px 0;
  }
  
  .blog-header__title {
    font-size: 2.5rem;
  }
  
  .blog-header__subtitle {
    font-size: 1.1rem;
  }
  
  .blog-categories {
    padding: 20px 0;
  }
  
  .blog-categories__scroll {
    gap: 12px;
    padding: 4px 0;
  }
  
  .blog-category {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .blog-grid {
    padding: 40px 0 60px 0;
  }
  
  .blog-row {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }
  
  .blog-card__content {
    padding: 20px;
  }
  
  .blog-card__title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .blog-header__title {
    font-size: 2rem;
  }
  
  .blog-header__subtitle {
    font-size: 1rem;
  }
  
  .blog-card__content {
    padding: 16px;
  }
  
  .blog-card__title {
    font-size: 1.1rem;
  }
  
  .blog-card__excerpt {
    font-size: 13px;
  }
}

/* Animation for category switching */
.blog-card {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state */
.blog-grid--loading .blog-card {
  opacity: 0.6;
  pointer-events: none;
}

/* Category filter animations */
.blog-category {
  position: relative;
  overflow: hidden;
}

.blog-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.blog-category:hover::before {
  left: 100%;
}

/* Article View Styles */
.article-view {
  background: #fff;
  padding: 80px 0 0 0;
  min-height: 100vh;
}

.article-view__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

.article-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #6c757d;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
  margin-bottom: 32px;
  transition: all 0.2s ease;
}

.article-back-btn:hover {
  color: #CD5C4D;
}

.article-back-icon {
  font-size: 18px;
  font-weight: bold;
}

/* Home back button */
.home-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #6c757d;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
  margin-bottom: 30px;
  transition: all 0.2s ease;
  text-decoration: none;
  align-self: flex-start;
}

.home-back-btn:hover {
  color: #CD5C4D;
  transform: translateX(-2px);
}

.home-back-icon {
  font-size: 18px;
  font-weight: bold;
}

.article-content {
  margin-bottom: 60px;
}

.article-title {
  font-family: 'Baloo 2', 'Kalam', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.article-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: #718096;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.article-author,
.article-date,
.article-read-time {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #a0aec0;
  margin: 0;
}

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

.article-date::before {
  content: "📅 ";
  margin-right: 4px;
}

.article-read-time::before {
  content: "⏱️ ";
  margin-right: 4px;
}

.article-image-container {
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.article-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2d3748;
}

.article-body p {
  margin: 0 0 24px 0;
}

.article-body h3 {
  font-family: 'Baloo 2', 'Kalam', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin: 40px 0 20px 0;
}

.article-body ol, .article-body ul {
  margin: 20px 0 28px 24px;
  padding-left: 8px;
}

.article-body li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-body strong {
  color: #CD5C4D;
  font-weight: 600;
}

.article-body em {
  color: #5E8C2C;
  font-style: italic;
}

.article-image-inline {
  margin: 32px 0;
  text-align: center;
}

.article-inline-image {
  max-width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.image-caption {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #718096;
  text-align: center;
  margin: 12px 0 0 0;
  font-style: italic;
}

/* Related Articles */
.related-articles {
  border-top: 1px solid #e2e8f0;
  padding-top: 40px;
}

.related-articles__title {
  font-family: 'Baloo 2', 'Kalam', cursive;
  font-size: 1.75rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 24px 0;
  text-align: center;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.related-article {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.related-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.related-article__image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-article__content {
  padding: 16px;
}

.related-article__title {
  font-family: 'Baloo 2', 'Kalam', cursive;
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.related-article__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #718096;
  line-height: 1.4;
  margin: 0;
}

/* Responsive Design for Article View */
@media (max-width: 768px) {
  .article-view__inner {
    padding: 20px 16px 60px 16px;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-subtitle {
    font-size: 1.1rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .article-main-image {
    height: 250px;
  }
  
  .article-inline-image {
    height: 200px;
  }
  
  .related-articles__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.75rem;
  }
  
  .article-subtitle {
    font-size: 1rem;
  }
  
  .article-body {
    font-size: 15px;
  }
  
  .article-main-image {
    height: 200px;
  }
}