/* style/blog.css */

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

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

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

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Rely on body for header offset, small padding here */
  overflow: hidden;
  background-color: #111111; /* Card BG */
}

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

.page-blog__hero-content {
  position: relative; /* Changed from absolute to relative to be below image */
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space below image */
  background: rgba(17, 17, 17, 0.8); /* Slightly transparent background for readability */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.page-blog__hero-description {
  font-size: 1.15em;
  color: #FFF6D6;
  max-width: 700px;
  margin: 0 auto;
}

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

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

.page-blog__article-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #F2C14E; /* Main color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #FFD36B; /* Glow color */
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: #AAA;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  color: #0A0A0A;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Main color border */
}

.page-blog__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-blog__read-more-btn {
  background: transparent;
  color: #F2C14E;
  border: 1px solid #F2C14E;
  padding: 8px 15px;
  font-size: 0.9em;
  align-self: flex-start; /* Align to start in flex column */
}

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

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

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

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

.page-blog__category-item {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-blog__category-title {
  font-size: 1.8em;
  color: #FFD36B;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-blog__category-text {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* In-Depth Guides Section */
.page-blog__in-depth-guides-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-blog__guide-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-blog__guide-title {
  font-size: 1.8em;
  color: #FFD36B;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-blog__guide-text {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Promotions Section */
.page-blog__promotions-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__promotions-section .page-blog__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  background-color: #0A0A0A; /* Background */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__promotions-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-blog__promotions-content {
  width: 50%;
  text-align: left;
}

.page-blog__promotions-content .page-blog__section-title,
.page-blog__promotions-content .page-blog__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* Why Choose Section */
.page-blog__why-choose-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-blog__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}

.page-blog__feature-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 5px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #FFF6D6;
  transition: background-color 0.3s ease;
}

.page-blog__feature-item:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

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

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

.page-blog__faq-item {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #0A0A0A; /* Background */
  color: #F2C14E; /* Main color */
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-blog__faq-question-text {
  margin: 0;
  color: #F2C14E; /* Main color */
  font-size: 1.2em;
}

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

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
  background-color: #111111; /* Card BG */
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content, important for override */
  padding: 20px;
}

.page-blog__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Final CTA Section */
.page-blog__cta-final-section {
  padding: 60px 0;
  background-color: #0A0A0A;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__cta-final-section .page-blog__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-blog__cta-content {
  width: 50%;
  text-align: left;
}

.page-blog__cta-content .page-blog__section-title,
.page-blog__cta-content .page-blog__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 30px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

  .page-blog__promotions-section .page-blog__container,
  .page-blog__cta-final-section .page-blog__container {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__promotions-image,
  .page-blog__promotions-content,
  .page-blog__cta-image,
  .page-blog__cta-content {
    width: 100%;
    text-align: center;
  }

  .page-blog__promotions-content .page-blog__section-title,
  .page-blog__promotions-content .page-blog__section-description,
  .page-blog__cta-content .page-blog__section-title,
  .page-blog__cta-content .page-blog__section-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small padding for mobile, rely on body for header offset */
    padding-bottom: 40px;
  }

  .page-blog__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__section-description {
    font-size: 1em;
  }

  /* Images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-articles-section,
  .page-blog__categories-section,
  .page-blog__in-depth-guides-section,
  .page-blog__promotions-section,
  .page-blog__why-choose-section,
  .page-blog__faq-section,
  .page-blog__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Buttons responsive */
  .page-blog__cta-button,
  .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-area,
  .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-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  .page-blog__article-image,
  .page-blog__category-image,
  .page-blog__guide-image,
  .page-blog__promotions-image,
  .page-blog__cta-image {
    height: auto !important; /* Ensure images scale */
  }

  .page-blog__faq-question {
    font-size: 1.1em;
  }

  .page-blog__faq-question-text {
    font-size: 1.1em;
  }
}

/* Ensure no filter on images */
.page-blog img {
  filter: none !important;
}

/* Image width/height consistency for content area */
.page-blog__article-image,
.page-blog__category-image,
.page-blog__guide-image,
.page-blog__promotions-image,
.page-blog__cta-image {
  min-width: 200px; /* Enforce minimum display width */
  min-height: 200px; /* Enforce minimum display height */
  object-fit: cover;
}
@media (max-width: 768px) {
  .page-blog__article-card img,
  .page-blog__category-item img,
  .page-blog__guide-item img,
  .page-blog__promotions-section img,
  .page-blog__cta-final-section img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}