/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Main text color for dark backgrounds */
  background-color: var(--bg-color); /* Inherit from shared.css, assume dark */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1; /* Ensure good contrast */
}

.page-blog__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #FFF5E1;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: #B71C1C; /* Background for the section */
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #FFF5E1;
}

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF5E1;
  margin-bottom: 20px;
  /* No fixed font-size, rely on weight/line-height for hierarchy */
}

/* Posts Section */
.page-blog__posts-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Main background color for this section */
}

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

.page-blog__post-card {
  background-color: #D32F2F; /* Card background color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1;
}

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

.page-blog__post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-blog__post-title a {
  color: #FFCC66; /* Gold color for titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #F4D34D; /* Lighter gold on hover */
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: rgba(255, 245, 225, 0.7);
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-blog__read-more-link {
  display: inline-block;
  color: #F4D34D; /* Gold color for links */
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #F4D34D;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more-link:hover {
  color: #FFCC66;
  border-color: #FFCC66;
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 80px 0;
  background-color: #7A0E0E; /* Deep Red background */
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: #D32F2F; /* Card background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #FFF5E1;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: #C91F17; /* Main brand color on hover */
}

.page-blog__category-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFCC66;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: rgba(255, 245, 225, 0.8);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #B71C1C;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: #D32F2F; /* Card background */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #FFF5E1;
}

.page-blog__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.15em;
  color: #FFCC66;
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #FFF5E1;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 20px;
  background-color: #C91F17; /* Main brand color */
  text-align: center;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background: #7A0E0E; /* Deep Red background */
  color: #FFF5E1; /* Light text for dark button */
  border: 2px solid #F2B544; /* Gold border */
}

.page-blog__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: #C91F17; /* Main brand color on hover */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Utility classes for background/text color contrast */
.page-blog__dark-section {
  background-color: #B71C1C;
  color: #FFF5E1;
}

.page-blog__light-bg {
  background-color: #D32F2F;
  color: #FFF5E1;
}

.page-blog__card-bg {
  background-color: #D32F2F;
  color: #FFF5E1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
  .page-blog__category-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-blog__main-title {
    font-size: 2.2em;
  }
  .page-blog__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__posts-section, .page-blog__categories-section, .page-blog__faq-section, .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__post-image {
    height: 200px;
  }
  .page-blog__category-card {
    padding: 20px;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image and container responsive styles */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__faq-item,
  .page-blog__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog__hero-section,
  .page-blog__posts-section,
  .page-blog__categories-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding-left: 0;
    padding-right: 0;
  }
}