/* style/blog.css */

/* General styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-blog__section-description {
  font-size: 18px;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  display: flex; /* Use flex for image-above-text layout */
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
}

.page-blog__hero-image-container {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-blog__hero-content-wrapper {
  width: 100%;
  padding: 40px 0;
  background-color: #111111; /* Card BG */
  text-align: center;
  border-top: 1px solid #3A2A12; /* Border */
}

.page-blog__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-description {
  font-size: 20px;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for buttons */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E6B02A 100%);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #FFD36B; /* Glow */
  border: 2px solid #FFD36B; /* Glow for border */
}

.page-blog__btn-secondary:hover {
  background-color: #FFD36B; /* Glow */
  color: #111111; /* Dark text for bright button */
  transform: translateY(-2px);
}

.page-blog__read-more-btn {
  background-color: #3A2A12; /* Border color for background */
  color: #FFF6D6; /* Text Main */
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

.page-blog__read-more-btn:hover {
  background-color: #F2C14E; /* Main Color */
  color: #111111;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__post-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12; /* Border */
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-meta {
  font-size: 14px;
  color: #F2C14E; /* Main Color */
  margin-bottom: 15px;
}

.page-blog__post-summary {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__view-all-button-wrapper {
  text-align: center;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG */
}

.page-blog__categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  display: inline-block;
  padding: 12px 25px;
  background-color: #3A2A12; /* Border color for background */
  color: #FFF6D6; /* Text Main */
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #3A2A12;
}