.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;
  box-sizing: border-box;
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0D0E12; /* Background */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

.page-blog__hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin-top: 40px; /* Text below image */
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* H1 clamp font size */
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Main color */
  border: 2px solid #A84F0C; /* Border color */
}

.page-blog__btn-secondary:hover {
  background: #0D0E12;
  color: #FFA53A;
  border-color: #FFA53A;
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-blog__article-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #FFF3E6; /* Text Main */
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-image-wrapper {
  width: 100%;
  height: 225px;
  overflow: hidden;
}

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

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

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
  flex-grow: 1;
}

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

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

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

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

.page-blog__read-more {
  color: #FFB04D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #FFA53A;
}

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

.page-blog__popular-categories {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-content: center;
}

.page-blog__category-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #FFF3E6; /* Text Main */
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: #FF8C1A; /* Main color */
}

.page-blog__category-card:hover .page-blog__category-title {
  color: #ffffff;
}

.page-blog__category-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size for category icons */
  min-height: 200px;
  width: 100%; /* Make it responsive within the card */
  height: auto;
}

.page-blog__category-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #FFB04D; /* Glow */
}

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

.page-blog__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-blog__faq-item {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 20px;
  color: #FFF3E6; /* Text Main */
  border: 1px solid #A84F0C; /* Border color */
}

.page-blog__faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFB04D; /* Glow */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-blog__faq-toggle {
  margin-left: 15px;
  font-size: 1.5em;
  line-height: 1;
  color: #FF8C1A;
}

.page-blog__faq-answer {
  padding-top: 15px;
  border-top: 1px solid rgba(168, 79, 12, 0.3); /* Border color with transparency */
  margin-top: 15px;
  color: #FFF3E6;
}

.page-blog__contact-cta {
  padding: 60px 0;
  text-align: center;
  background-color: #17191F; /* Card BG */
}

.page-blog__contact-cta .page-blog__section-title {
  color: #FFB04D;
}

.page-blog__text-block {
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #FFF3E6;
  font-size: 1.1em;
}

.page-blog__footer {
  padding: 20px 0;
  text-align: center;
  background-color: #0D0E12; /* Background */
  border-top: 1px solid #A84F0C; /* Border color */
}

.page-blog__copyright {
  font-size: 0.9em;
  color: #A84F0C; /* Border color */
}

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

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }
  .page-blog__hero-content {
    margin-top: 30px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-blog__intro-text {
    font-size: 1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__article-list {
    grid-template-columns: 1fr;
  }
  .page-blog__article-card {
    margin-bottom: 20px;
  }
  .page-blog__article-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .page-blog__category-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__faq-item {
    padding: 15px;
  }
  .page-blog__faq-question {
    font-size: 1em;
  }
  .page-blog__faq-answer {
    padding-top: 10px;
    margin-top: 10px;
  }
  .page-blog__contact-cta {
    padding: 40px 0;
  }
  .page-blog__text-block {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .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,
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container,
  .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__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Color contrast safety checks */
.page-blog__dark-section {
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-blog__card {
  background-color: #17191F;
  color: #FFF3E6;
}

.page-blog p, .page-blog li {
  color: #FFF3E6;
}