/* style/blog.css */
.page-blog {
  color: #ffffff; /* Body background is dark (#000000), so text should be light */
  background-color: transparent; /* Rely on body background from shared.css */
}

.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 */
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

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

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-blog__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-blog__section {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for sections on dark body */
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: 600;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__text-block {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
  text-align: justify;
  margin-bottom: 30px;
}

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

.page-blog__feature-item, .page-blog__topic-item, .page-blog__post-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__feature-item:hover, .page-blog__topic-item:hover, .page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__feature-image, .page-blog__topic-image, .page-blog__post-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__feature-title, .page-blog__topic-title, .page-blog__post-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0;
  padding: 15px 20px 10px;
  margin: 0;
}

.page-blog__post-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-blog__feature-description, .page-blog__topic-description, .page-blog__post-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-blog__post-meta {
  font-size: 0.85em;
  color: #999999;
  padding: 0 20px;
  margin-bottom: 10px;
}

.page-blog__read-more {
  display: inline-block;
  color: #EA7C07; /* Login color for read more links */
  text-decoration: none;
  font-weight: 500;
  padding: 0 20px 20px;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

.page-blog__faq-section {
  background: rgba(255, 255, 255, 0.08); /* Slightly different background for FAQ */
}

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

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

.page-blog__faq-item[open] {
  background: rgba(255, 255, 255, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 500;
  color: #FFFFFF;
  cursor: pointer;
  list-style: none;
  outline: none;
}

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

.page-blog__faq-qtext {
  flex-grow: 1;
}

.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: 0.95em;
  line-height: 1.6;
  color: #cccccc;
}

.page-blog__cta-section {
  text-align: center;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-blog__btn-primary {
  background: #EA7C07; /* Login color for primary CTA */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.5em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
}

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

  .page-blog img, .page-blog video {
    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__feature-item,
  .page-blog__topic-item,
  .page-blog__post-card,
  .page-blog__faq-item,
  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog__hero-section {
    min-height: 350px;
    padding-top: 10px !important; /* Ensure small padding */
  }

  .page-blog__hero-content {
    padding: 15px;
  }

  .page-blog__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-blog__section-title {
    font-size: 1.5em;
    margin-bottom: 30px;
  }

  .page-blog__feature-grid, .page-blog__topic-grid, .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__feature-image, .page-blog__topic-image, .page-blog__post-image {
    height: 200px;
  }

  .page-blog__feature-title, .page-blog__topic-title, .page-blog__post-title {
    font-size: 1.2em;
    padding: 10px 15px 5px;
  }

  .page-blog__feature-description, .page-blog__topic-description, .page-blog__post-excerpt,
  .page-blog__post-meta, .page-blog__read-more {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.5em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.3em;
  }
  .page-blog__faq-question {
    font-size: 0.95em;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    font-size: 0.95em;
  }
}