/* style/blog.css */

/* Base styles for page-blog */
.page-blog {
  font-family: 'Arial', 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 (#121212) */
}

.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: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-blog__text-content {
  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;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: #1a1a1a; /* Slightly lighter dark background for contrast */
  box-sizing: border-box;
}

.page-blog__hero-content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

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

.page-blog__hero-text-content {
  text-align: center;
  color: #ffffff;
}

.page-blog__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #26A9E0;
  max-width: 900px; /* Constrain H1 width */
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

.page-blog__button-container {
  text-align: center;
  margin-top: 40px;
}

/* Intro Section */
.page-blog__intro-section {
  padding: 80px 20px;
  background: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for light background */
  box-sizing: border-box;
}

.page-blog__intro-section .page-blog__section-title {
  color: #26A9E0;
}

.page-blog__intro-section .page-blog__text-content {
  color: #333333;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Topics Section */
.page-blog__topics-section {
  padding: 80px 20px;
  background: #121212; /* Dark background */
  color: #ffffff; /* Light text */
  box-sizing: border-box;
}

.page-blog__topics-section .page-blog__section-title {
  color: #26A9E0;
}

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

.page-blog__card {
  background: #ffffff; /* Light card background */
  color: #333333; /* Dark text for card */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: #26A9E0;
}

.page-blog__card-description {
  font-size: 0.95em;
  padding: 0 20px 20px;
  color: #555555;
  flex-grow: 1;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 80px 20px;
  background: #f8f8f8; /* Very light background */
  color: #333333; /* Dark text */
  box-sizing: border-box;
}

.page-blog__latest-posts .page-blog__section-title {
  color: #26A9E0;
}

.page-blog__grid--posts {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-blog__post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-blog__post-title-link {
  text-decoration: none;
}

.page-blog__post-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-blog__post-title:hover {
  text-decoration: underline;
}

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

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

.page-blog__read-more {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

/* Why Follow Section */
.page-blog__why-follow-section {
  padding: 80px 20px;
  background: #121212; /* Dark background */
  color: #ffffff; /* Light text */
  box-sizing: border-box;
}

.page-blog__why-follow-section .page-blog__section-title {
  color: #26A9E0;
}

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

.page-blog__benefit-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-blog__benefit-item .page-blog__text-content {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 20px;
  background: #ffffff; /* Light background */
  color: #333333; /* Dark text */
  box-sizing: border-box;
}

.page-blog__faq-section .page-blog__section-title {
  color: #26A9E0;
}

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

.page-blog__faq-item {
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background: #e9e9e9;
  border-bottom: 1px solid #dddddd;
  transition: background 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background: #e0e0e0;
}

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

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

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

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

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background: #ffffff;
}

/* Conclusion Section */
.page-blog__conclusion-section {
  padding: 80px 20px;
  background: #26A9E0; /* Brand color background */
  color: #ffffff; /* White text */
  text-align: center;
  box-sizing: border-box;
}

.page-blog__conclusion-section .page-blog__section-title {
  color: #ffffff;
}

.page-blog__conclusion-section .page-blog__text-content {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }

  .page-blog__hero-title {
    font-size: 2em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-bottom: 10px; /* Add spacing for stacked buttons */
  }

  .page-blog__button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

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

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

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

  .page-blog__intro-section,
  .page-blog__topics-section,
  .page-blog__latest-posts,
  .page-blog__why-follow-section,
  .page-blog__faq-section,
  .page-blog__conclusion-section {
    padding: 40px 15px;
  }

  .page-blog__container {
    padding: 0 15px;
  }

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

  .page-blog__text-content {
    font-size: 1em;
  }

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

  .page-blog__post-title {
    font-size: 1.1em;
  }

  /* Mobile responsive for all images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-content-wrapper,
  .page-blog__post-card,
  .page-blog__benefit-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Specific padding for sections in mobile to avoid content touching edges */
  .page-blog__intro-section > .page-blog__container,
  .page-blog__topics-section > .page-blog__container,
  .page-blog__latest-posts > .page-blog__container,
  .page-blog__why-follow-section > .page-blog__container,
  .page-blog__faq-section > .page-blog__container,
  .page-blog__conclusion-section > .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Video section top padding */
  .page-blog__hero-section {
    padding-top: 10px !important;
  }

  /* Ensure text within card/post is also responsive */
  .page-blog__card-description,
  .page-blog__post-excerpt {
    font-size: 0.9em;
  }

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

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