.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Body background is dark (#0a0a0a), so text should be light */
.page-blog__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-blog__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* Light text for dark hero background */
}

.page-blog__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for description */
}

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

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

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

.page-blog__latest-posts {
  padding: 80px 0;
}

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

.page-blog__post-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

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

.page-blog__post-info {
  padding: 20px;
}

.page-blog__post-category {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.page-blog__post-date {
  font-size: 0.9rem;
  color: #777777;
  margin-left: 10px;
}

.page-blog__post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 15px 0 10px;
  color: #333333;
  line-height: 1.4;
}

.page-blog__post-excerpt {
  font-size: 0.95rem;
  color: #555555;
}

.page-blog__cta-container {
  text-align: center;
  margin-top: 50px;
}

.page-blog__categories-section {
  padding: 80px 0;
}

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  text-align: center;
}

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 30px 20px;
  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;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-blog__category-card:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

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

.page-blog__category-description {
  font-size: 0.9rem;
  color: #f0f0f0;
}

.page-blog__featured-article {
  padding: 80px 0;
}

.page-blog__featured-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-blog__featured-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  display: block;
}

.page-blog__featured-content {
  padding: 30px;
}

.page-blog__featured-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.3;
}

.page-blog__featured-excerpt {
  font-size: 1.1rem;
  color: #444444;
  margin-bottom: 30px;
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

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

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

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

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

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

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

.page-blog__faq-section {
  padding: 80px 0;
}

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

.page-blog__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-item[open] {
  background-color: #f0f8ff; /* Light blue background when open */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: #26A9E0;
}

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

.page-blog__faq-answer p {
  margin: 0;
}

.page-blog__explore-more {
  padding: 80px 0;
}

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

.page-blog__explore-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 30px 20px;
  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: 160px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-blog__explore-card:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

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

.page-blog__explore-description {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-blog__hero-section {
    padding: 40px 20px;
    padding-top: 10px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__featured-card {
    flex-direction: column;
  }
  .page-blog__featured-content {
    padding: 20px;
  }
  .page-blog__featured-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }
  .page-blog__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-blog__container {
    padding: 0 15px !important;
  }
  .page-blog__post-grid,
  .page-blog__category-grid,
  .page-blog__explore-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 1.15rem;
  }
  .page-blog__post-excerpt {
    font-size: 0.9rem;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__featured-title {
    font-size: 1.4rem;
  }
  .page-blog__featured-excerpt {
    font-size: 1rem;
  }
  .page-blog__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  .page-blog__category-card,
  .page-blog__explore-card {
    min-height: 120px;
    padding: 20px 15px;
  }
  .page-blog__category-title,
  .page-blog__explore-title {
    font-size: 1.2rem;
  }
  
  /* Force responsive images */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure content containers don't overflow */
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__categories-section,
  .page-blog__featured-article,
  .page-blog__cta-section,
  .page-blog__faq-section,
  .page-blog__explore-more,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__explore-card,
  .page-blog__featured-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Override padding-left/right for container itself if needed */
  .page-blog__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-blog__section-title {
    font-size: 1.6rem;
  }
  .page-blog__post-info {
    padding: 15px;
  }
  .page-blog__post-category {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  .page-blog__post-date {
    font-size: 0.85rem;
  }
  .page-blog__post-title {
    font-size: 1.1rem;
  }
  .page-blog__featured-title {
    font-size: 1.25rem;
  }
  .page-blog__cta-description {
    font-size: 1rem;
  }
}