/* Blog Page Specific Styles */

/* Blog Page Styling */
.blog-page {
  width: 100%;
  min-height: 100vh;
}

/* Blog Content Section */
.blog-content-section {
  background-color: #d1e8e2;
  padding: 120px 0 80px;
  min-height: 100vh;
}

.blog-hero-image {
  margin: 0 auto 5rem auto;
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-postfeed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

/* Featured/Latest Blog Post - Full Width */
.blog-postfeed .gh-card:first-child {
  grid-column: 1 / -1; /* Span all columns */
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 600px;
  max-height: none;
}

.blog-postfeed .gh-card:first-child .gh-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  grid-template-columns: none;
}

.blog-postfeed .gh-card:first-child .gh-card-picture {
  width: 100%;
  height: 350px;
  order: 0;
  flex-shrink: 0;
}

.blog-postfeed .gh-card:first-child .gh-card-content {
  order: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

.blog-postfeed .gh-card:first-child .gh-card-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.blog-postfeed .gh-card:first-child .gh-card-content p {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.blog-postfeed .gh-card:first-child .gh-card-meta {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.blog-postfeed .gh-card:first-child .gh-card-content strong {
  font-size: 1.6rem;
}

/* Regular Blog Cards */
.blog-postfeed .gh-card {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 2px solid #4CAF50;
  padding: 24px;
}

.blog-postfeed .gh-card:hover {
  border-color: #45a049;
}

.blog-postfeed .gh-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-postfeed .gh-card-picture {
  width: 100%;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-postfeed .gh-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-postfeed .gh-card:hover .gh-card-image {
  transform: scale(1.02);
}

.blog-postfeed .gh-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  max-width: none;
  margin: 0;
  font-size: 1rem;
  background: transparent;
}

.blog-postfeed .gh-card-meta {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 12px;
  font-family: 'Avenir', sans-serif;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.8;
}

.blog-postfeed .gh-card-meta .bull {
  margin: 0 8px;
  color: #4CAF50;
}

.blog-postfeed .gh-card-title {
  font-size: 2rem;
  font-weight: 600;
  color: #4CAF50;
  margin: 0 0 16px 0;
  line-height: 1.3;
  font-family: 'Bauhaus Std', sans-serif;
  transition: color 0.3s ease;
}

.blog-postfeed .gh-card:hover .gh-card-title {
  color: #45a049;
}

.blog-postfeed .gh-card-content p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #333;
  margin: 0 0 20px 0;
  flex-grow: 1;
  padding: 0;
  font-family: 'Avenir', sans-serif;
}

.blog-postfeed .gh-card-content strong {
  font-size: 1.4rem;
  color: #4CAF50;
  font-weight: 600;
  font-family: 'Bauhaus Std', sans-serif;
  box-shadow: none;
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
  display: inline-block;
  padding: 0;
}

.blog-postfeed .gh-card:hover .gh-card-content strong {
  color: #45a049;
}

/* Blog Pagination Styling */
.blog-content .gh-pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.blog-content .gh-pagination .pagination {
  display: flex;
  gap: 16px;
  align-items: center;
}

.blog-content .gh-pagination .pagination a,
.blog-content .gh-pagination .pagination span {
  padding: 12px 20px;
  background: white;
  border: 2px solid #4CAF50;
  border-radius: 8px;
  color: #4CAF50;
  text-decoration: none;
  font-family: 'Bauhaus Std', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-content .gh-pagination .pagination a:hover {
  background: #4CAF50;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.blog-content .gh-pagination .pagination .page-number.current {
  background: #4CAF50;
  color: white;
}

/* Tablet Responsiveness for Blog Page */
@media (max-width: 1024px) and (min-width: 769px) {
  .blog-postfeed {
    grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
    gap: 30px;
  }
}

/* Mobile Responsiveness for Blog Page */
@media (max-width: 768px) {
  .blog-content-section {
    padding: 100px 0 60px;
  }

  .blog-content {
    padding: 0 15px;
  }

  .blog-postfeed {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 24px;
    margin-bottom: 40px;
  }

  /* Featured post mobile layout */
  .blog-postfeed .gh-card:first-child {
    grid-column: 1; /* Reset to single column */
    display: flex;
    flex-direction: column;
    max-height: none;
  }

  .blog-postfeed .gh-card:first-child .gh-card-link {
    display: flex;
    flex-direction: column;
  }

  .blog-postfeed .gh-card:first-child .gh-card-picture {
    height: 250px;
    order: 0;
  }

  .blog-postfeed .gh-card:first-child .gh-card-content {
    order: 1;
    padding: 24px;
  }

  .blog-postfeed .gh-card:first-child .gh-card-title {
    font-size: 2.2rem;
  }

  .blog-postfeed .gh-card:first-child .gh-card-content p {
    font-size: 1.6rem;
  }

  .blog-postfeed .gh-card:first-child .gh-card-meta {
    font-size: 1.4rem;
  }

  .blog-postfeed .gh-card:first-child .gh-card-content strong {
    font-size: 1.4rem;
  }

  .blog-postfeed .gh-card-picture {
    height: 200px;
  }

  .blog-postfeed .gh-card-content {
    padding: 20px;
  }

  .blog-postfeed .gh-card-title {
    font-size: 1.8rem;
  }

  .blog-postfeed .gh-card-content p {
    font-size: 1.4rem;
  }

  .blog-postfeed .gh-card-meta {
    font-size: 1.2rem;
  }

  .blog-postfeed .gh-card-content strong {
    font-size: 1.2rem;
  }
}
