/* style/blog.css */

/* General styles for the Blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for clarity, though body is default white */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #26A9E0; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

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

.page-blog__btn-primary:hover {
  background-color: #1a8cc4; /* Slightly darker primary */
  border-color: #1a8cc4;
}

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color for text */
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f8ff; /* Light hover background */
  color: #1a8cc4; /* Slightly darker primary */
  border-color: #1a8cc4;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 60px;
  background-color: #f8f8f8; /* Light background for hero */
}

.page-blog__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 60px 0;
}

.page-blog__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

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

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

.page-blog__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-blog__hero-visual {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Blog List Section */
.page-blog__blog-list-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-blog__blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__blog-card-media {
  width: 100%;
  height: 220px; /* Fixed height for consistent card images */
  overflow: hidden;
}

.page-blog__blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-blog__blog-card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-blog__read-more {
  display: inline-block;
  color: #26A9E0;
  font-weight: 600;
  text-decoration: none;
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #f0f5f8; /* Light blue background */
}

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

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

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  font-weight: 600;
  font-size: 1.15em;
  color: #333333;
  outline: none;
  user-select: none;
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-question {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eeeeee;
}

.page-blog__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
}


/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary brand color background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-blog__cta-content {
  max-width: 800px;
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff; /* White title for dark background */
  margin-bottom: 25px;
}

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-blog__cta-section .page-blog__cta-buttons {
  justify-content: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-container {
    padding: 40px 16px;
    flex-direction: column;
  }

  .page-blog__hero-content,
  .page-blog__hero-image {
    flex: 1 1 100%;
  }

  .page-blog__main-title {
    text-align: center;
  }

  .page-blog__hero-description {
    text-align: center;
  }

  .page-blog__cta-buttons {
    justify-content: center;
  }

  .page-blog__blog-card-media {
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* 1. HERO Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body padding for header offset */
    padding-bottom: 40px;
  }

  .page-blog__hero-container {
    padding: 30px 15px;
    gap: 30px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

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

  /* 2. No __icon-box-media and __game-tabs as per non-homepage rule */

  /* 3. Content Modules: Blog List, FAQ, CTA Sections */
  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-blog__blog-list-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 60px 0;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr; /* Single column for blog cards */
    gap: 20px;
  }

  .page-blog__blog-card-media {
    height: 160px; /* Adjust card image height */
  }

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

  .page-blog__blog-card-content {
    padding: 20px;
  }

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

  .page-blog__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  .page-blog__cta-description {
    font-size: 1.05em;
    margin-bottom: 30px;
  }

  /* 4. General Images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of container */
    height: auto !important;
    display: block !important;
  }

  .page-blog__container,
  .page-blog__card,
  .page-blog__hero-content,
  .page-blog__hero-image,
  .page-blog__blog-card,
  .page-blog__faq-item,
  .page-blog__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 5. Buttons and Button Containers */
  .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 !important;
    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-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }
}