/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-blog__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0a0a0a; /* Ensure a dark background for the hero if image is transparent */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
  text-align: center;
  max-width: 800px;
  color: #ffffff;
  z-index: 1; /* Ensure content is above any background elements */
}

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #26A9E0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-blog__tagline {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

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

.page-blog__btn-primary:hover {
  background-color: #1a7fb4;
  transform: translateY(-2px);
}

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

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Intro Section */
.page-blog__intro-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for contrast */
  color: #ffffff;
}

.page-blog__intro-section .page-blog__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured Articles Section */
.page-blog__featured-articles {
  padding: 80px 0;
  background-color: #0a0a0a; /* Darker background */
  color: #ffffff;
}

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

.page-blog__article-card {
  background-color: #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-blog__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #4ac7ff;
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #4ac7ff;
}

.page-blog__view-all-button {
  text-align: center;
  margin-top: 50px;
}

/* Video Section */
.page-blog__video-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-blog__video-section .page-blog__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-blog__video-link-wrapper {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-decoration: none;
  cursor: pointer;
}

.page-blog__video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-blog__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-blog__category-item:hover {
  background-color: #1a7fb4;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-blog__faq-item {
  background-color: #2c2c2c;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #3a3a3a;
}

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
  cursor: pointer;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c2c2c;
  transition: background-color 0.3s ease;
}

.page-blog__faq-item summary:hover {
  background-color: #3a3a3a;
}

.page-blog__faq-item summary::-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: #ffffff;
}

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

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

/* Newsletter Section */
.page-blog__newsletter-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: center;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 40px auto 0 auto;
  flex-wrap: wrap;
}

.page-blog__newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: 1px solid #26A9E0;
  border-radius: 50px;
  font-size: 1em;
  background-color: #1c1c1c;
  color: #ffffff;
  max-width: 100%;
  box-sizing: border-box;
}

.page-blog__newsletter-input::placeholder {
  color: #cccccc;
}

.page-blog__newsletter-form .page-blog__btn-primary {
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1em;
  cursor: pointer;
  border: none;
  background-color: #EA7C07; /* Login color for newsletter button */
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

.page-blog__newsletter-form .page-blog__btn-primary:hover {
  background-color: #c76706;
}

/* General image sizing for content area */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

  .page-blog__tagline {
    font-size: 1em;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-blog__intro-section,
  .page-blog__featured-articles,
  .page-blog__video-section,
  .page-blog__categories-section,
  .page-blog__faq-section,
  .page-blog__newsletter-section {
    padding: 40px 0;
  }

  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-blog__card-title {
    font-size: 1.2em;
  }

  .page-blog__category-item {
    width: calc(50% - 10px);
    text-align: center;
    box-sizing: border-box;
  }

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

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

  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-blog__newsletter-input,
  .page-blog__newsletter-form .page-blog__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile image/video/button overrides */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller sizes for mobile if needed, but still > 200px for actual image */
    min-height: unset !important;
  }

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

  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog__newsletter-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Ensure min-width 200px for all images except for hero image which is larger */
.page-blog img:not(.page-blog__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Dark background elements */
.page-blog__dark-bg {
  background-color: #1a1a1a; /* Consistent dark background */
  color: #ffffff;
}

/* Light background elements */
.page-blog__light-bg {
  background-color: #0a0a0a; /* Slightly darker to ensure text contrast with white text */
  color: #ffffff;
}