/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-bottom: 50px;
}

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

.page-blog__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main color gradient */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  text-align: center;
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: #0A0A0A; /* Dark text for light background */
  padding-bottom: 30px;
}

.page-blog__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0A0A0A; /* Dark text for light background */
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-blog__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #0A0A0A; /* Dark text for light background */
}

.page-blog__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog__hero-image-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.page-blog__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Main color */
}

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-blog__button--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-blog__button--secondary:hover {
  background: #F2C14E;
  color: #0A0A0A; /* Dark text for light background */
}

.page-blog__button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-blog__button-group--center {
  margin-top: 40px;
}

.page-blog__latest-articles-section, .page-blog__categories-section, .page-blog__about-community-section, .page-blog__faq-section, .page-blog__final-cta-section {
  padding: 60px 0;
}

.page-blog__latest-articles-section {
  background-color: #0A0A0A; /* Background */
}

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

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

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

.page-blog__article-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  overflow: hidden;
}

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

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

.page-blog__article-date {
  font-size: 0.9rem;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
}

.page-blog__article-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  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 */
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-blog__read-more-link:hover {
  text-decoration: underline;
}

.page-blog__categories-section {
  background-color: #0A0A0A; /* Background */
  text-align: center;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-blog__category-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #FFF6D6; /* Text Main */
  transition: all 0.3s ease;
}

.page-blog__category-card:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  filter: brightness(1.2); /* Slightly brighten icons for visibility */
}

.page-blog__category-card:hover .page-blog__category-icon {
  filter: brightness(0.8); /* Darken icons on hover for contrast */
}

.page-blog__category-name {
  font-weight: bold;
  font-size: 1rem;
}

.page-blog__about-community-section {
  background-color: #0A0A0A; /* Background */
}

.page-blog__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-blog__content-text {
  flex: 1;
  min-width: 300px;
}

.page-blog__content-text p {
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-blog__content-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.page-blog__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__faq-section {
  background-color: #0A0A0A; /* Background */
}

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

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

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

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

.page-blog__faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  flex-grow: 1;
}

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

.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 */
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px;
}

.page-blog__faq-answer p {
  margin: 0;
}

.page-blog__final-cta-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main color gradient */
  padding: 80px 0;
  text-align: center;
}

.page-blog__final-cta-section .page-blog__section-title, .page-blog__final-cta-section .page-blog__section-description {
  color: #0A0A0A; /* Dark text for light background */
}

.page-blog__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-blog__cta-content {
  flex: 1;
  min-width: 300px;
}

.page-blog__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.page-blog__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-blog__content-flex {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__content-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }

  .page-blog__container--flex {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__cta-image-wrapper {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media query */
    padding-bottom: 40px;
  }

  .page-blog__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
  }

  .page-blog__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-blog__latest-articles-section, .page-blog__categories-section, .page-blog__about-community-section, .page-blog__faq-section, .page-blog__final-cta-section {
    padding: 40px 0;
  }

  .page-blog__article-card {
    margin-bottom: 20px;
  }

  .page-blog__article-title {
    font-size: 1.2rem;
  }

  .page-blog__article-excerpt {
    font-size: 0.9rem;
  }

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

  .page-blog__category-card {
    padding: 15px 10px;
  }

  .page-blog__category-name {
    font-size: 0.9rem;
  }

  .page-blog__faq-question h3 {
    font-size: 1rem;
  }

  .page-blog__faq-toggle {
    font-size: 1.2rem;
  }

  /* Force responsive images and containers */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__content-flex,
  .page-blog__faq-list,
  .page-blog__button-group,
  .page-blog__cta-content,
  .page-blog__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__button-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

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

  .page-blog__button-group--center {
    padding: 0 15px;
  }
}

/* Ensure no CSS filter on images */
.page-blog img {
  filter: none; /* Explicitly disable any filters */
}

/* Ensure contrast for text on brand colors */
.page-blog__hero-section .page-blog__hero-title,
.page-blog__hero-section .page-blog__hero-description {
  color: #0A0A0A; /* Dark text for light gradient background */
}

.page-blog__final-cta-section .page-blog__section-title,
.page-blog__final-cta-section .page-blog__section-description {
  color: #0A0A0A; /* Dark text for light gradient background */
}

.page-blog__button--primary {
  color: #0A0A0A; /* Dark text for light gradient button */
}

.page-blog__category-card:hover {
  color: #0A0A0A; /* Dark text for light background on hover */
}

.page-blog__button--secondary:hover {
  color: #0A0A0A; /* Dark text for light background on hover */
}