.page-blog {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Fixed header offset */
.page-blog__hero-section {
  padding-top: var(--header-offset, 120px);
}

/* General Section Styles */
.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
}

.page-blog__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Color Contrast Handling */
.page-blog__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

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

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-blog__hero-title {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.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.4); /* Darken image for text readability */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

.page-blog__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Adjust secondary button for light background */
.page-blog__light-bg .page-blog__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

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

/* Latest Articles Section */
.page-blog__latest-articles .page-blog__section-title,
.page-blog__latest-articles .page-blog__section-description {
  color: #333333;
}

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

.page-blog__article-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

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

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

.page-blog__article-title {
  font-size: 1.4rem;
  margin: 15px;
  color: #26A9E0;
  min-height: 60px;
}

.page-blog__article-excerpt {
  font-size: 0.95rem;
  color: #555555;
  margin: 0 15px 15px;
  min-height: 80px;
}

.page-blog__read-more-btn {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 15px 15px;
  transition: background-color 0.3s ease;
}

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

.page-blog__more-articles-cta {
  text-align: center;
  margin-top: 20px;
}

/* Featured Categories Section */
.page-blog__featured-categories .page-blog__section-title,
.page-blog__featured-categories .page-blog__section-description {
  color: #ffffff;
}

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

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

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

.page-blog__category-title {
  font-size: 1.3rem;
  margin: 15px;
  color: #ffffff;
}

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

/* Why Choose Us Section */
.page-blog__why-choose-us .page-blog__section-title,
.page-blog__why-choose-us .page-blog__section-description {
  color: #333333;
}

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

.page-blog__benefit-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-blog__benefit-item:hover {
  transform: translateY(-5px);
}

.page-blog__benefit-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-blog__benefit-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-blog__benefit-text {
  font-size: 0.95rem;
  color: #555555;
}

/* Video Spotlight Section */
.page-blog__video-spotlight .page-blog__section-title,
.page-blog__video-spotlight .page-blog__section-description {
  color: #ffffff;
}

.page-blog__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-blog__video-cta {
  text-align: center;
}

/* CTA Section */
.page-blog__cta-section .page-blog__section-title,
.page-blog__cta-section .page-blog__section-description {
  color: #333333;
}

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

/* FAQ Section */
.page-blog__faq-section .page-blog__section-title,
.page-blog__faq-section .page-blog__section-description {
  color: #ffffff;
}

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

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  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: 15px 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
}

.page-blog__faq-question h3 {
  margin: 0;
  color: inherit;
}

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

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important;
  padding: 15px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8rem;
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__hero-image {
    filter: brightness(0.5);
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__hero-title {
    font-size: 2.2rem;
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
  }
  .page-blog__section-description {
    font-size: 0.95rem;
  }
  .page-blog__container {
    padding: 30px 15px;
  }

  /* Images responsive */
  .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__articles-grid,
  .page-blog__categories-grid,
  .page-blog__benefits-grid,
  .page-blog__video-spotlight,
  .page-blog__cta-section,
  .page-blog__faq-section,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  /* Video responsive */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-wrapper {
    padding-bottom: 56.25% !important;
  }
  .page-blog__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Button responsive */
  .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;
    word-wrap: break-word !important;
  }
  
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
  }

  .page-blog__article-title,
  .page-blog__category-title,
  .page-blog__benefit-title {
    font-size: 1.2rem;
  }
  .page-blog__article-excerpt,
  .page-blog__category-description,
  .page-blog__benefit-text,
  .page-blog__faq-question {
    font-size: 0.9rem;
  }
  .page-blog__faq-item.active .page-blog__faq-answer {
    padding: 10px 15px;
  }
  .page-blog__faq-answer {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8rem;
  }
  .page-blog__section-title {
    font-size: 1.5rem;
  }
  .page-blog__hero-image {
    filter: brightness(0.6);
  }
}