/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#121212), so text should be light */
  background-color: transparent;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles padding-top */
  text-align: center;
  overflow: hidden;
}

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

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  color: #ffffff;
  margin-top: 100px; /* Adjust to push content down from the top */
}

.page-blog__hero-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-blog__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-blog__intro-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
  font-weight: 700;
}

.page-blog__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__section-text a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-blog__featured-articles {
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
}

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

.page-blog__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white card background */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  text-decoration: none;
}

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

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

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

.page-blog__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

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

.page-blog__btn-primary, .page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__btn-primary:hover {
  background-color: #1e87c2;
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__categories-section {
  background-color: #121212; /* Body background color */
  color: #ffffff;
}

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

.page-blog__category-card {
  background-color: rgba(38, 169, 224, 0.15); /* Semi-transparent brand color background */
  border-radius: 10px;
  padding: 25px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

.page-blog__category-card:hover {
  background-color: rgba(38, 169, 224, 0.3);
  transform: translateY(-3px);
}

.page-blog__category-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-blog__faq-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-blog__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

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

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

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

.page-blog__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-blog__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
}

.page-blog__cta-section .page-blog__section-text {
  color: #f0f0f0;
}

.page-blog__cta-section .page-blog__cta-buttons .page-blog__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  border-color: #EA7C07;
}

.page-blog__cta-section .page-blog__cta-buttons .page-blog__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-blog__cta-section .page-blog__cta-buttons .page-blog__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-blog__cta-section .page-blog__cta-buttons .page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: 80px;
  }
  .page-blog__hero-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__hero-content {
    margin-top: 60px;
    padding: 30px 15px;
  }
  .page-blog__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__section {
    padding: 40px 15px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-blog__section-text {
    font-size: 0.95em;
  }

  .page-blog__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__card-title {
    font-size: 1.2em;
  }
  .page-blog__card-meta {
    font-size: 0.85em;
  }
  .page-blog__card-excerpt {
    font-size: 0.95em;
  }

  .page-blog__category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-blog__category-card {
    min-height: 120px;
    padding: 20px;
  }
  .page-blog__category-title {
    font-size: 1.2em;
  }
  .page-blog__category-description {
    font-size: 0.9em;
  }

  .page-blog__faq-list {
    margin-top: 30px;
  }
  .page-blog__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-blog__faq-toggle {
    font-size: 1.2em;
  }
  .page-blog__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95em;
  }

  /* Mobile specific overrides with !important */
  .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__hero-section,
  .page-blog__intro-section,
  .page-blog__featured-articles,
  .page-blog__categories-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-blog__hero-section { /* Reset padding for hero on mobile */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-blog__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .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;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Ensure content area images are not too small */
.page-blog__article-image {
  min-width: 200px;
  min-height: 150px; /* Adjusted to fit common aspect ratios, still > 200px in one dimension */
}

/* WCAG AA Contrast for dark background: #121212 */
/* Main text color is #ffffff (light) for dark body background */
/* Card backgrounds are rgba(255,255,255,0.08) with #ffffff text */
/* Titles use #26A9E0 (brand color) on dark backgrounds, which has sufficient contrast */
/* Buttons use #26A9E0/#EA7C07 with #ffffff text, or #ffffff with #26A9E0 text, ensuring contrast */