/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  scroll-behavior: smooth;
}

/* Hero Section */
.page-blog__hero-section {
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: #0D0E12; /* Ensure a background for the section */
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block; /* Ensure it behaves as a block element */
}

.page-blog__hero-content {
  position: relative; /* Remove absolute/fixed positioning that would overlay the image */
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 30px; /* Add some margin between image and text */
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow color for main title */
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

.page-blog__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFF3E6;
}

/* General Sections */
.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* Responsive font size for H2 */
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 30px;
  color: #FFA53A; /* Auxiliary color for section titles */
  text-align: center;
}

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

.page-blog__dark-section {
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

.page-blog__light-bg {
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
}

.page-blog__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-blog__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.page-blog__list-item {
  margin-bottom: 10px;
  color: #FFF3E6;
}

/* Buttons */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Lighter gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #FF8C1A; /* Primary color for secondary button text */
  border: 2px solid #FF8C1A; /* Border color */
}

.page-blog__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1); /* Light background on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.2);
}

.page-blog__cta-container {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Article Cards */
.page-blog__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__article-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border 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: #FFF3E6;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
}

.page-blog__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__card-title a {
  color: #FFA53A; /* Auxiliary color for card titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #FFB04D; /* Glow color on hover */
}

.page-blog__card-meta {
  font-size: 0.9rem;
  color: #D96800; /* Deep Orange for meta info */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to grow */
}

.page-blog__read-more {
  display: inline-block;
  color: #FF8C1A; /* Primary color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-blog__read-more:hover {
  color: #FFB04D; /* Glow color on hover */
  text-decoration: underline;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 30px;
}

.page-blog__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF3E6;
}

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary color for question */
  transition: background-color 0.3s ease;
}

.page-blog__faq-item summary:hover {
  background-color: rgba(255, 165, 58, 0.1);
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #FF8C1A; /* Primary color for toggle */
}

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #FFF3E6;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-blog__hero-image-wrapper {
    height: 450px; /* Example fixed height for desktop image wrapper */
  }
  .page-blog__hero-image {
    height: 100%; /* Make image fill wrapper height */
    width: 100%; /* Make image fill wrapper width */
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-blog__hero-image-wrapper {
    max-height: 300px; /* Adjust height for mobile */
  }
}