/* style/blog.css */

/* Body background from shared.css: #121212 (dark), so use light text */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Rely on body background */
}

.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;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #1a1a1a;
  overflow: hidden;
}

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

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

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
  color: #ffffff;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for title */
  line-height: 1.2;
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-blog__btn-primary,
.page-blog__cta-button {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
}

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

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

.page-blog__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
}

/* Section Titles */
.page-blog__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-blog__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #ffffff;
}

/* Introduction Section */
.page-blog__introduction-section {
  padding: 60px 0;
  background-color: #121212;
  color: #ffffff;
}

.page-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .page-blog__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-blog__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-blog__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-blog__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: #f0f0f0;
}

.page-blog__list li {
  margin-bottom: 10px;
}

/* Topics Section */
.page-blog__topics-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-blog__topic-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-blog__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for card titles */
}

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

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

.page-blog__topic-card p {
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-blog__card-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #cccccc;
}

.page-blog__card-list li::before {
  content: '✓ ';
  color: #26A9E0;
  font-weight: bold;
  margin-right: 5px;
}

/* Why Follow Section */
.page-blog__why-follow-section {
  padding: 60px 0;
  background-color: #121212;
  color: #ffffff;
}

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

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

.page-blog__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__feature-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-blog__feature-item p {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: #26A9E0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #121212;
  text-align: center;
  color: #ffffff;
}

.page-blog__cta-section .page-blog__description {
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-image-wrapper {
    max-height: 500px;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-blog__section-title {
    font-size: clamp(1.6em, 3.8vw, 2.5em);
  }
  .page-blog__sub-title {
    font-size: clamp(1.2em, 2.8vw, 1.8em);
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-image-wrapper {
    max-height: 400px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-blog__description {
    font-size: 1em;
  }
  .page-blog__btn-primary, .page-blog__btn-secondary, .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 0.95em;
  }
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__introduction-section, .page-blog__topics-section, .page-blog__why-follow-section, .page-blog__faq-section, .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__grid {
    grid-template-columns: 1fr;
  }
  .page-blog__topic-card-grid, .page-blog__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-blog__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Mobile Responsive Image/Video/Button Adaptation (MUST INCLUDE !important) */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog video,
  .page-blog__video {
    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__introduction-section,
  .page-blog__topics-section,
  .page-blog__why-follow-section,
  .page-blog__faq-section,
  .page-blog__cta-section,
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-blog__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .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;
    margin-bottom: 10px; /* Spacing for stacked buttons */
    padding-left: 15px !important; /* Ensure button text has internal padding */
    padding-right: 15px !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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    align-items: center;
  }
}