/* Blog Page Styles */

/* Hero Section */
.blog-hero-section {
  padding: 75px 160px 0;
  background: #f8f7ec;
}

.blog-hero-container {
  max-width: 503px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.blog-hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hide badge on desktop */
@media (min-width: 769px) {
  .blog-hero-badge {
    display: none;
  }
}

.blog-hero-badge-icon {
  width: 10px;
  height: 10px;
  background: #ffcc29;
  border-radius: 2px;
}

.blog-hero-badge-text {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #1f1f1f;
}

.blog-hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: #1f1f1f;
  margin: 0;
  max-width: 379px;
}

.blog-hero-description {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #484848;
  margin: 0;
}

/* Blog Content Section */
.blog-content-section {
  padding: 72px 160px 0;
  background: #f8f7ec;
}

.blog-content-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Category Filter Pills */
.blog-category-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-category-pill {
  padding: 12px 16px;
  border-radius: 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #484848;
  background: transparent;
  color: #484848;
  min-width: 72px;
}

.blog-category-pill:hover {
  background: #e7e5dc;
  border-color: #e7e5dc;
}

.blog-category-pill.active {
  background: #ffcc29;
  border-color: #ffcc29;
  color: #1f1f1f;
  font-weight: 600;
}

/* Blog Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

/* Blog Post Card */
.blog-post-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-post-image-link {
  display: block;
  text-decoration: none;
}

.blog-post-image-wrapper {
  width: 100%;
  height: 219px;
  overflow: hidden;
  border-radius: 4px;
}

.blog-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image {
  transform: scale(1.05);
}

.blog-post-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 230px;
}

.blog-post-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* Post Categories */
.blog-post-categories {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.blog-post-category-tag {
  background: #e7e5dc;
  color: #1f1f1f;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 30px;
}

/* Post Title */
.blog-post-title {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f1f1f;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-title a:hover {
  color: #8e2929;
}

/* Post Excerpt */
.blog-post-excerpt {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #484848;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More Link */
.blog-post-read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1f1f1f;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  transition: gap 0.3s ease;
}

.blog-post-read-more:hover {
  gap: 12px;
}

.blog-post-arrow {
  width: 24px;
  height: 24px;
  background: #ffcc29;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Load More Button */
.blog-load-more-wrapper {
  display: flex;
  justify-content: center;
  padding: 56px 0 72px;
}

.blog-load-more-btn {
  padding: 16px 40px;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  background: transparent;
  color: #1f1f1f;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 2.842px 7.105px 0px rgba(20, 20, 43, 0.04);
}

.blog-load-more-btn:hover {
  background: #1f1f1f;
  color: #f8f7ec;
}

.blog-load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading State */
.blog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #484848;
}

/* No Posts */
.blog-no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #484848;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-hero-section {
    padding: 100px 60px 0;
  }

  .blog-content-section {
    padding: 60px 60px 0;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero-section {
    padding: 75px 32px 0;
  }

  .blog-hero-container {
    max-width: 100%;
  }

  .blog-hero-title {
    font-size: 32px;
    max-width: 100%;
  }

  .blog-content-section {
    padding: 72px 32px 0;
  }

  .blog-content-container {
    gap: 48px;
  }

  .blog-category-filter {
    justify-content: center;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .blog-post-card {
    max-width: 100%;
  }

  .blog-post-image-wrapper {
    height: 219px;
  }

  .blog-post-content {
    min-height: 250px;
  }

  .blog-load-more-wrapper {
    padding: 48px 0 72px;
  }
}

@media (max-width: 480px) {
  .blog-hero-title {
    font-size: 24px;
  }

  .blog-category-filter {
    gap: 8px;
  }

  .blog-category-pill {
    font-size: 12px;
    padding: 10px 14px;
  }
}
