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

.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: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Main color for titles */
  line-height: 1.2;
}

.page-blog__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF6D6;
  text-align: center;
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align to top to ensure image is above text */
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* For fixed header */
  background-color: #0A0A0A; /* Fallback */
}

.page-blog__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px; /* Space between image and text */
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

.page-blog__hero-title {
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color for emphasis */
  margin-bottom: 15px;
  line-height: 1.2;
  /* No fixed font-size, rely on clamp if absolutely needed, otherwise responsive behavior */
}

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

.page-blog__hero-button,
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__hero-button {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  margin-top: 20px;
}

.page-blog__hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__featured-articles-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-blog__blog-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

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

.page-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__card-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E; /* Main color for titles */
  line-height: 1.3;
}

.page-blog__card-title:hover {
  color: #FFD36B; /* Auxiliary color on hover */
}

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 15px;
}

.page-blog__card-date {
  font-size: 0.85em;
  color: #FFD36B;
  display: block;
  margin-bottom: 10px;
}

.page-blog__read-more {
  color: #F2C14E;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.page-blog__read-more:hover {
  text-decoration: underline;
  color: #FFD36B;
}

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-blog__category-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 5px;
  padding: 15px 25px;
  text-decoration: none;
  color: #FFF6D6; /* Text Main */
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: rgba(242, 193, 78, 0.1);
  border-color: #F2C14E;
  color: #F2C14E;
}

.page-blog__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.page-blog__category-name {
  font-weight: bold;
  font-size: 1.1em;
}

.page-blog__about-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

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

.page-blog__about-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-blog__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-blog__cta-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG */
  text-align: center;
  border-top: 1px solid #3A2A12;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-blog__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

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

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

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

.page-blog__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: inherit;
}

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

.page-blog__faq-item.active .page-blog__faq-toggle {
  transform: rotate(45deg); /* Change to X or minus */
}

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

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

  .page-blog__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding for fixed header */
    min-height: 400px;
  }

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

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

  .page-blog__hero-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    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;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-blog__about-content-wrapper {
    flex-direction: column;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__about-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__blog-card {
    margin-left: 0;
    margin-right: 0;
  }

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

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

  .page-blog__faq-item.active .page-blog__faq-answer {
    padding: 10px 20px;
  }
}