/* style/blog.css */

/* Base 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; /* Default body background is white */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  background-color: #f8f9fa;
  overflow: hidden; /* Ensure content doesn't overflow */
  box-sizing: border-box;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for large screens */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text content */
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1; /* Ensure text is above any potential background elements */
  color: #333333;
}

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

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

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

.page-blog__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive font size for H2 */
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for H2 */
}

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

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  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 6px 16px rgba(0, 0, 0, 0.12);
}

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

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

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

.page-blog__article-title a {
  color: #26A9E0; /* Brand color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #1a7bbd; /* Slightly darker on hover */
}

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

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

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

.page-blog__read-more-btn:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

/* Why Choose Section */
.page-blog__why-choose {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark brand color background */
  color: #ffffff; /* White text for dark background */
}

.page-blog__why-choose .page-blog__section-title,
.page-blog__why-choose .page-blog__section-intro {
  color: #ffffff; /* Ensure white text */
}

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

.page-blog__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

/* Game Guides Section */
.page-blog__game-guides {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-blog__content-text-block {
  font-size: 1.05em;
  color: #333333;
}

.page-blog__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for sub-titles */
}

/* Promotions & News Section */
.page-blog__promotions-news {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark brand color background */
  color: #ffffff; /* White text for dark background */
}

.page-blog__promotions-news .page-blog__section-title,
.page-blog__promotions-news .page-blog__section-intro {
  color: #ffffff;
}

.page-blog__news-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__news-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-blog__news-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-blog__news-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__news-title a:hover {
  color: #f0f0f0;
}

.page-blog__news-date {
  font-size: 0.9em;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-blog__news-excerpt {
  font-size: 1em;
  color: #f0f0f0;
}

.page-blog__cta-group {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

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

.page-blog__faq-list {
  margin-top: 40px;
}

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

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

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

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

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

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

/* Final CTA Section */
.page-blog__cta-final {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark brand color background */
  color: #ffffff; /* White text */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__cta-final .page-blog__section-title,
.page-blog__cta-final .page-blog__section-intro {
  color: #ffffff;
}

.page-blog__cta-image {
  width: 100%;
  max-width: 800px; /* Limit image size */
  height: auto;
  display: block;
  margin: 0 auto 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-blog__cta-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* 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;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-blog__feature-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  /* Ensure all images are responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers/sections containing images/videos/buttons are responsive */
  .page-blog__hero-section,
  .page-blog__latest-articles,
  .page-blog__why-choose,
  .page-blog__game-guides,
  .page-blog__promotions-news,
  .page-blog__faq-section,
  .page-blog__cta-final,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__feature-item,
  .page-blog__news-item,
  .page-blog__faq-item,
  .page-blog__cta-buttons,
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Specific override for hero section top padding (body handles global offset) */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px !important;
  }

  .page-blog__main-title {
    font-size: 2em; /* Adjust H1 for mobile */
  }

  .page-blog__section-title {
    font-size: 1.8em; /* Adjust H2 for mobile */
  }

  .page-blog__hero-description,
  .page-blog__section-intro,
  .page-blog__feature-text,
  .page-blog__article-excerpt,
  .page-blog__news-excerpt,
  .page-blog__faq-answer p {
    font-size: 1em; /* Standardize body text size */
  }

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

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

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

  /* Buttons mobile adaptation */
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    margin-bottom: 10px; /* Space between stacked buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__cta-group,
  .page-blog__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

  .page-blog__hero-image,
  .page-blog__content-image,
  .page-blog__cta-image,
  .page-blog__article-image {
    min-width: 200px !important; /* Enforce minimum size for content images */
    min-height: 200px !important;
  }
}

/* Color Contrast Fixes (as per prompt) */
.page-blog__dark-bg {
  color: #ffffff; /* Deep blue background, white text */
}

.page-blog__light-bg {
  color: #333333; /* Light background, dark text */
}

/* Ensure content area text is readable */
.page-blog__content-area,
.page-blog__text-block {
  color: #333333;
  background: transparent; /* Assuming container has a background */
}

.page-blog p,
.page-blog li {
  color: #333333;
}

.page-blog__article-card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

/* Ensure images do not have filters */
.page-blog img {
  filter: none; /* Explicitly remove any potential filters */
}

/* Content area image CSS dimensions lower bound */
.page-blog__latest-articles img,
.page-blog__game-guides img,
.page-blog__promotions-news img,
.page-blog__article-card img {
  min-width: 200px;
  min-height: 200px;
}