/* style/blog.css */

/* Base styles for the blog page, ensuring light text on dark body background */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body handles the main background color */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for hero content */
}

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

.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: 1;
  max-width: 800px;
  color: #ffffff;
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* No fixed font-size, rely on responsive scaling */
  font-size: clamp(2.5rem, 5vw, 4.5rem); 
}

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

/* Content Area */
.page-blog__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* Light background for main content for contrast */
  color: #333333; /* Dark text for light background */
}

.page-blog__section-title {
  font-size: 2.2rem;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-blog__sub-title {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333333; /* Dark text for light background */
}

.page-blog__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333; /* Dark text for light background */
}

.page-blog__ordered-list {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333; /* Dark text for light background */
}

.page-blog__list-item {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 8px;
  color: #333333; /* Dark text for light background */
}

.page-blog__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

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

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

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

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

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-blog__inline-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-blog__inline-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
}

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

.page-blog__faq-item details > summary {
  list-style: none;
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #eaf7fd; /* Light background for FAQ question */
  color: #26A9E0; /* Brand color for question */
  border-bottom: 1px solid #e0e0e0;
}

.page-blog__faq-question:hover {
  background-color: #dbeeff;
}

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

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

.page-blog__faq-answer {
  padding: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  background-color: #ffffff;
  color: #333333;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }

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

  .page-blog__intro-text {
    font-size: 1rem;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
  }

  .page-blog__sub-title {
    font-size: 1.5rem;
  }

  .page-blog__paragraph,
  .page-blog__list-item {
    font-size: 1rem;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    margin-top: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-blog__hero-content .page-blog__btn-primary {
    display: block;
  }

  .page-blog__image-full-width,
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-blog__content-area,
  .page-blog__hero-section,
  .page-blog__faq-list,
  .page-blog__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-blog__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

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

  .page-blog__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Ensure images do not have color filters */
.page-blog img {
  filter: none; /* Remove any potential color filters */
}

/* Specific color overrides */
.page-blog__login-button {
  background-color: #EA7C07;
  color: #FFFFFF;
  border-color: #EA7C07;
}

.page-blog__login-button:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-blog__background-element {
  background-color: #FFFFFF;
}

.page-blog__text-black {
  color: #000000;
}