:root {
  --page-blog-background: #08160F;
  --page-blog-card-bg: #11271B;
  --page-blog-text-main: #F2FFF6;
  --page-blog-text-secondary: #A7D9B8;
  --page-blog-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-blog-border: #2E7A4E;
  --page-blog-glow: #57E38D;
  --page-blog-gold: #F2C14E;
  --page-blog-divider: #1E3A2A;
  --page-blog-deep-green: #0A4B2C;
  --page-blog-light-bg-text: #333333; /* For contrast on light backgrounds */
  --page-blog-light-bg: #ffffff; /* For sections with light background */
}

.page-blog {
  background-color: var(--page-blog-background);
  color: var(--page-blog-text-main); /* Default text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  background-color: var(--page-blog-background);
  overflow: hidden; /* Ensure no image overflow */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  color: var(--page-blog-text-main);
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-blog-text-main);
}

.page-blog__description {
  font-size: 1.125rem;
  margin-bottom: 30px;
  color: var(--page-blog-text-secondary);
}

/* --- Buttons (General) --- */
.page-blog__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap; /* Prevent text wrap on desktop */
  box-sizing: border-box;
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Primary Button */
.page-blog__cta-button,
.page-blog__btn-primary {
  background: var(--page-blog-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-blog__cta-button:hover,
.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Slightly altered gradient on hover */
}

/* Secondary Button */
.page-blog__cta-button--secondary,
.page-blog__btn-secondary {
  background: transparent;
  color: var(--page-blog-text-main);
  border: 2px solid var(--page-blog-border);
}

.page-blog__cta-button--secondary:hover,
.page-blog__btn-secondary:hover {
  background: rgba(var(--page-blog-text-main), 0.1);
  color: var(--page-blog-text-main);
}

/* --- Section Titles & Descriptions --- */
.page-blog__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-blog-text-main);
}

.page-blog__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--page-blog-text-secondary);
}

/* --- Latest Articles Section --- */
.page-blog__latest-articles {
  padding: 80px 0;
  background-color: var(--page-blog-background);
}

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

.page-blog__article-card {
  background-color: var(--page-blog-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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 25px rgba(0, 0, 0, 0.3);
}

.page-blog__article-thumbnail-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for thumbnails */
  overflow: hidden;
}

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

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

.page-blog__article-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: var(--page-blog-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: var(--page-blog-glow);
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: var(--page-blog-text-secondary);
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: var(--page-blog-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: var(--page-blog-glow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  text-decoration: underline;
  color: var(--page-blog-gold);
}

.page-blog__view-all-button-wrapper {
  text-align: center;
}

/* --- Categories Section --- */
.page-blog__categories-section {
  padding: 80px 0;
  background-color: var(--page-blog-background);
}

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

.page-blog__category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--page-blog-card-bg);
  padding: 30px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--page-blog-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__category-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--page-blog-text-main);
}

.page-blog__category-desc {
  font-size: 0.95rem;
  color: var(--page-blog-text-secondary);
}

/* --- Featured Guide Section --- */
.page-blog__featured-guide {
  padding: 80px 0;
  background-color: var(--page-blog-light-bg); /* Light background for contrast */
  color: var(--page-blog-light-bg-text); /* Dark text for light background */
}

.page-blog__featured-guide .page-blog__section-title {
  color: var(--page-blog-light-bg-text);
  margin-bottom: 40px;
}
.page-blog__featured-guide .page-blog__section-description {
  color: var(--page-blog-light-bg-text);
}


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

.page-blog__feature-text {
  flex: 1;
}

.page-blog__feature-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--page-blog-light-bg-text);
}

.page-blog__feature-image-wrapper {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__feature-image {
  width: 100%;
  height: auto;
  display: block;
}

/* --- FAQ Section --- */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: var(--page-blog-background);
}

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

.page-blog__faq-item {
  background-color: var(--page-blog-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--page-blog-border);
  color: var(--page-blog-text-main);
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-blog__faq-qtext {
  flex-grow: 1;
  color: var(--page-blog-text-main);
}

.page-blog__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-blog-glow);
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--page-blog-text-secondary);
  line-height: 1.7;
}

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

.page-blog__faq-answer a {
  color: var(--page-blog-glow);
  text-decoration: none;
}
.page-blog__faq-answer a:hover {
  text-decoration: underline;
}

/* --- Call to Action Section --- */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-blog-light-bg); /* Light background for contrast */
  color: var(--page-blog-light-bg-text); /* Dark text for light background */
}

.page-blog__cta-section .page-blog__section-title {
  color: var(--page-blog-light-bg-text);
}
.page-blog__cta-section .page-blog__section-description {
  color: var(--page-blog-light-bg-text);
}


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

/* --- Responsive Styles (Mobile First Approach) --- */
@media (max-width: 1024px) {
  .page-blog__feature-content {
    flex-direction: column;
  }
  .page-blog__feature-image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

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

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

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

  .page-blog__description {
    font-size: 1rem;
  }

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

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

  .page-blog__latest-articles,
  .page-blog__categories-section,
  .page-blog__featured-guide,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 50px 0;
  }

  /* Image responsiveness (Mandatory) */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__hero-image-wrapper,
  .page-blog__article-thumbnail-wrapper,
  .page-blog__feature-image-wrapper,
  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__faq-list,
  .page-blog__cta-buttons,
  .page-blog__hero-content,
  .page-blog__feature-content,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure content area images are not too small */
  .page-blog__article-thumbnail-wrapper {
    height: 180px; /* Adjust height for mobile if needed, but still >200px equivalent */
  }
  .page-blog__article-thumbnail {
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__feature-image {
    min-width: 200px;
    min-height: 200px;
  }

  /* Button responsiveness (Mandatory) */
  .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; /* Allow text wrapping */
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-blog__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-blog__faq-toggle {
    font-size: 1.5rem;
  }

  .page-blog__category-item {
    padding: 25px 15px;
  }
  .page-blog__category-icon {
    font-size: 2.5rem;
  }
  .page-blog__category-title {
    font-size: 1.2rem;
  }
  .page-blog__category-desc {
    font-size: 0.9rem;
  }
}

/* Ensure no image filters are used */
.page-blog img {
  filter: none !important;
}

/* Ensure content area image size minimums */
.page-blog__articles-grid img,
.page-blog__feature-image {
  min-width: 200px;
  min-height: 200px;
}