/* Base styles for the blog page */
.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: 20px;
}

.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2C14E; /* Main Color */
  line-height: 1.2;
}

.page-blog__section-subtitle {
  font-size: 18px;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  margin-top: 80px; /* Adjust based on hero image height and content */
}

.page-blog__hero-title {
  font-size: 56px;
  font-weight: 800;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-blog__hero-description {
  font-size: 20px;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 216, 106, 0.6);
}

/* Featured Articles Grid */
.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__article-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 211, 107, 0.2);
}

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

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

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

.page-blog__article-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E; /* Main Color */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 15px;
}

.page-blog__article-meta {
  font-size: 14px;
  color: #FFD36B; /* Glow */
}

.page-blog__view-all-button-wrapper {
  margin-top: 50px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: #F2C14E; /* Main Color */
  color: #111111;
  font-size: 18px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__view-all-button:hover {
  background: #FFD36B; /* Auxiliary Color */
}

/* Categories Grid */
.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__category-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

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

.page-blog__category-title {
  font-size: 20px;
  font-weight: 700;
  color: #F2C14E; /* Main Color */
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog__category-description {
  font-size: 15px;
  color: #FFF6D6; /* Text Main */
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* SEO Content Section */
.page-blog__seo-content {
  background: #0A0A0A; /* Background */
  padding: 80px 0;
  text-align: left;
}

.page-blog__article-body {
  max-width: 900px;
  margin: 0 auto;
  color: #FFF6D6; /* Text Main */
}

.page-blog__article-body h2,
.page-blog__article-body h3 {
  color: #F2C14E; /* Main Color */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.page-blog__article-body h2 {
  font-size: 32px;
}

.page-blog__article-body h3 {
  font-size: 26px;
}

.page-blog__article-body p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-blog__article-body a {
  color: #FFD36B; /* Glow */
  text-decoration: none;
  border-bottom: 1px solid #FFD36B;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__article-body a:hover {
  color: #F2C14E; /* Main Color */
  border-color: #F2C14E;
}

.page-blog__highlight {
  color: #FFD36B;
  font-weight: bold;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background: #0A0A0A;
}

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

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

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2C14E; /* Main Color */
}

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

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

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8);
  border-radius: 0 0 10px 10px;
  color: #FFF6D6; /* Text Main */
  text-align: left;
}

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

/* CTA Section */
.page-blog__cta-section {
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%); /* Dark gradient background */
  padding: 80px 0;
}

.page-blog__cta-section .page-blog__section-title,
.page-blog__cta-section .page-blog__section-subtitle {
  color: #FFF6D6; /* Text Main */
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111;
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 216, 106, 0.6);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E; /* Main Color */
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-blog__btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(242, 193, 78, 0.1);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 48px;
  }
  .page-blog__hero-description {
    font-size: 18px;
  }
  .page-blog__section-title {
    font-size: 34px;
  }
  .page-blog__article-title {
    font-size: 20px;
  }
  .page-blog__article-excerpt {
    font-size: 15px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-blog__hero-content {
    margin-top: 40px;
  }
}

@media (max-width: 849px) {
  .page-blog__hero-image {
    object-fit: contain !important; /* Prevents cropping on smaller screens for hero image */
    aspect-ratio: unset !important; /* Allows natural aspect ratio */
    position: relative; /* Adjust positioning for contain */
    height: auto;
    max-height: 400px; /* Limit height to prevent excessive size */
  }
  .page-blog__hero-image-wrapper {
    position: relative;
    height: auto;
  }
  .page-blog__hero-section {
    padding-bottom: 30px;
  }
  .page-blog__hero-content {
    margin-top: 0;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
  }
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-blog__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-blog__hero-title {
    font-size: 36px;
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 18px;
  }
  
  /* General images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  /* Image containers */
  .page-blog__hero-image-wrapper,
  .page-blog__article-thumbnail,
  .page-blog__category-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Featured Articles Grid */
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Categories Grid - 2 columns */
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .page-blog__category-image {
    height: 150px;
  }

  /* SEO Content Section */
  .page-blog__seo-content {
    padding: 40px 0;
  }
  .page-blog__article-body {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}