/* style/blog.css */

/* --- General Page Styles --- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #FF8C1A; /* Main Color */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog__intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6; /* Text Main */
}

/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #0D0E12; /* Background */
}

.page-blog__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

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

.page-blog__description {
  font-size: 1.2em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
}

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #FF8C1A; /* Main Color */
  border: 2px solid #FF8C1A; /* Border */
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.2);
}

.page-blog__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.4);
  transform: translateY(-2px);
}

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

/* --- Latest Articles Section --- */
.page-blog__latest-articles {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

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

.page-blog__article-card {
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

.page-blog__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

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

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-title a {
  color: #FFB04D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #FFA53A; /* Auxiliary Color */
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Border */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FF8C1A; /* Main Color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #FFA53A; /* Auxiliary Color */
  text-decoration: underline;
}

.page-blog__view-all {
  text-align: center;
  margin-top: 50px;
}

/* --- Guide Section --- */
.page-blog__guide-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
}

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

.page-blog__guide-item {
  background-color: #0D0E12; /* Background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding-bottom: 20px;
  border: 1px solid #A84F0C; /* Border */
}

.page-blog__guide-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-blog__guide-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-blog__guide-description {
  font-size: 0.95em;
  color: #FFF3E6; /* Text Main */
  padding: 0 20px;
}

/* --- CTA Section --- */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #FF8C1A; /* Main Color */
  color: #ffffff;
  text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-blog__cta-section .page-blog__intro-text {
  color: #ffffff;
  margin-bottom: 40px;
}

/* --- FAQ Section --- */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

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

.page-blog__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFB04D; /* Glow */
  background-color: #17191F; /* Card BG */
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
  background-color: #2a2d34;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FF8C1A; /* Main Color */
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
  content: "−"; /* Visually change to minus */
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__hero-image {
    margin-bottom: 20px;
  }

  .page-blog__hero-content {
    padding: 0 15px;
  }

  .page-blog__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em) !important; /* Smaller H1 for mobile */
  }

  .page-blog__description {
    font-size: 1em;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-blog__latest-articles,
  .page-blog__guide-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 50px 0;
  }

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__article-grid,
  .page-blog__guide-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-blog__article-card,
  .page-blog__guide-item {
    margin-left: 0;
    margin-right: 0;
  }

  .page-blog__card-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-blog__card-content,
  .page-blog__guide-title,
  .page-blog__guide-description {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-blog__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Image responsiveness for all images */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsiveness (if any, though not explicitly in HTML for blog page) */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-blog__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }
}

/* Ensure content area images are not too small */
.page-blog__latest-articles img,
.page-blog__guide-section img {
  min-width: 200px;
  min-height: 200px;
}