/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Body background is dark */
}

.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;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #26A9E0; /* Primary brand color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  order: 1; /* Image first in DOM order */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__hero-content {
  order: 2; /* Content after image in DOM order */
  max-width: 800px;
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

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

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

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

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

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

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

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

/* Articles Section */
.page-blog__articles-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for article cards */
  color: #ffffff;
}

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

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

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

.page-blog__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__article-image-wrapper {
  width: 100%;
  height: 225px;
  overflow: hidden;
}

.page-blog__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__article-image {
  transform: scale(1.05);
}

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

.page-blog__article-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-blog__article-title a:hover {
  color: #ffffff;
}

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

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

.page-blog__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

.page-blog__view-all-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-blog__view-all-btn {
  display: inline-block;
  padding: 15px 35px;
  background-color: #EA7C07;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-blog__view-all-btn:hover {
  background-color: #d16b05;
}

/* Main Content Area */
.page-blog__content-area {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for content */
  color: #ffffff;
}

.page-blog__content-area .page-blog__container {
  max-width: 900px; /* Narrower for readability */
}

.page-blog__sub-title {
  font-size: 2em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 25px;
  color: #26A9E0;
  line-height: 1.3;
}

.page-blog__content-area p {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-blog__content-area p strong {
  color: #ffffff;
}

.page-blog__content-area a {
  color: #26A9E0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-blog__content-area a:hover {
  color: #EA7C07;
}

.page-blog__image-with-text {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-blog__image-with-text.page-blog__image-text-reverse {
  flex-direction: row-reverse;
}

.page-blog__image-with-text img {
  flex: 1 1 400px; /* Allow image to grow/shrink, min 400px */
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-blog__image-with-text p {
  flex: 1 1 45%;
  margin-bottom: 0;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 30px;
  background-color: rgba(255, 255, 255, 0.08); /* Card-like background for FAQ */
  border-radius: 10px;
  padding: 20px;
}

.page-blog__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  color: #ffffff;
}

.page-blog__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0;
  color: #26A9E0;
  list-style: none; /* For <details> summary */
}

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

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

.page-blog__faq-item[open] .page-blog__faq-toggle, /* For <details> */
.page-blog__faq-item.active .page-blog__faq-toggle { /* For div-based FAQ */
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  font-size: 1em;
  color: #e0e0e0;
  padding: 10px 0 5px 0;
  /* For div-based FAQ, these would be controlled by max-height/overflow */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-blog__hero-content {
    padding: 0 10px;
  }
  .page-blog__image-with-text {
    flex-direction: column;
  }
  .page-blog__image-with-text.page-blog__image-text-reverse {
    flex-direction: column;
  }
  .page-blog__image-with-text img {
    max-width: 100%;
  }
  .page-blog__image-with-text p {
    flex: 1 1 100%;
  }
}

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

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

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

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

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

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__articles-section,
  .page-blog__content-area {
    padding: 40px 0;
  }

  .page-blog__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__article-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

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

  .page-blog__article-image,
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-blog__image-with-text img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container,
  .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;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding: 30px 10px;
  }

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

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

  .page-blog__sub-title {
    font-size: 1.3em;
  }
}