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

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

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding for content */
  box-sizing: border-box;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: #0a0a0a; /* Match body background for consistency */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Subtle overlay */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for text readability */
  border-radius: 8px;
  text-align: center;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

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

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

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

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-blog__section-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Introduction Section */
.page-blog__introduction-section {
  background: #0a0a0a;
  color: #ffffff;
  text-align: left;
}

.page-blog__introduction-section .page-blog__section-title {
  color: #FFFFFF;
  text-align: center;
}

.page-blog__introduction-section p {
  margin-bottom: 15px;
  color: #f0f0f0;
  font-size: 1.05rem;
}

/* 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: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-blog__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: brightness(0.8); /* Slightly dim image for text overlay effect */
}

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

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

.page-blog__article-title a {
  color: #26A9E0; /* Brand color for titles */
  text-decoration: none;
}

.page-blog__article-title a:hover {
  text-decoration: underline;
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  background-color: #1a8cc4;
}

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

/* Categories Section */
.page-blog__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-blog__dark-section .page-blog__section-title {
  color: #FFFFFF;
}

.page-blog__dark-section .page-blog__section-description {
  color: #f0f0f0;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item a {
  display: block;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__category-item a:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* FAQ Section */
.page-blog__faq-section {
  background: #0a0a0a;
  color: #ffffff;
}

.page-blog__faq-section .page-blog__section-title {
  color: #FFFFFF;
}

.page-blog__faq-section .page-blog__section-description {
  color: #f0f0f0;
}

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

.page-blog__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0; /* Brand color for FAQ questions */
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

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

/* CTA Section */
.page-blog__cta-section {
  background-color: #0a0a0a;
  color: #FFFFFF;
  padding-bottom: 80px;
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 15px;
  }

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

  .page-blog__hero-description {
    font-size: 1.1rem;
  }

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

  .page-blog__articles-grid {
    gap: 20px;
  }

  .page-blog__article-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
  }

  .page-blog__hero-content {
    max-width: 90%;
  }

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

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

  .page-blog__hero-cta-buttons,
  .page-blog__cta-buttons {
    flex-direction: column;
    align-items: center;
    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 !important;
    padding-right: 15px !important;
  }

  .page-blog__hero-cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container,
  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-blog__section {
    padding: 40px 15px;
  }

  .page-blog__container {
    padding: 0;
  }

  .page-blog__article-image {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 1.2rem;
  }

  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-section {
    padding-top: 10px !important;
  }

  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__category-item a {
    width: 100%;
    max-width: 250px;
  }

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

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

@media (max-width: 480px) {
  .page-blog__hero-section {
    min-height: 350px;
  }

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

  .page-blog__article-image {
    height: 150px;
  }

  .page-blog__article-title {
    font-size: 1.1rem;
  }
}