/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--background-color, #08160F); /* Default background color from custom palette */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 20px; /* Space for content below image */
}

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

.page-blog__hero-content {
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg, #11271B);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-top: -60px; /* Overlap with the image slightly */
  position: relative;
  z-index: 1;
}

.page-blog__main-title {
  color: var(--text-main, #F2FFF6);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  font-size: clamp(2rem, 5vw, 2.5rem); /* Responsive H1 font size */
}

.page-blog__hero-description {
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* Video Section */
.page-blog__video-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: var(--background-color, #08160F);
}

.page-blog__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-blog__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.page-blog__video-caption {
  text-align: center;
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95em;
}

/* Content Sections */
.page-blog__content-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-blog__dark-section {
  background-color: var(--card-bg, #11271B);
}

.page-blog__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__section-title {
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 30px;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: bold;
}

.page-blog__section-description {
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.05em;
}

/* Article Grid */
.page-blog__article-grid,
.page-blog__game-categories-grid,
.page-blog__promotion-grid,
.page-blog__support-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__article-card,
.page-blog__game-card,
.page-blog__promotion-card,
.page-blog__info-card {
  background: var(--card-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__article-body,
.page-blog__game-body,
.page-blog__promotion-body,
.page-blog__info-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title,
.page-blog__game-title,
.page-blog__promotion-title,
.page-blog__info-title {
  font-size: 1.35em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__article-title a,
.page-blog__game-title a,
.page-blog__promotion-title a,
.page-blog__info-title a {
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__game-title a:hover,
.page-blog__promotion-title a:hover,
.page-blog__info-title a:hover {
  color: var(--gold, #F2C14E);
}

.page-blog__article-meta {
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.85em;
  margin-bottom: 15px;
}

.page-blog__article-excerpt,
.page-blog__game-description,
.page-blog__promotion-excerpt,
.page-blog__info-description {
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link,
.page-blog__game-link,
.page-blog__info-link {
  color: var(--glow, #57E38D);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push link to bottom */
}

.page-blog__read-more-link:hover,
.page-blog__game-link:hover,
.page-blog__info-link:hover {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

/* Call to Action Buttons */
.page-blog__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-blog__cta-button,
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--deep-green, #0A4B2C), 0.5);
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-blog__btn-secondary:hover {
  background: var(--glow, #57E38D);
  color: var(--card-bg, #11271B);
  transform: translateY(-2px);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
}

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

.page-blog__faq-item {
  background: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-item[open] {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-qtext {
  flex-grow: 1;
  color: var(--text-main, #F2FFF6);
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1em;
}

.page-blog__faq-answer p {
  margin: 0;
  color: var(--text-secondary, #A7D9B8);
}

/* Conclusion Section */
.page-blog__conclusion-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__article-grid,
  .page-blog__game-categories-grid,
  .page-blog__promotion-grid,
  .page-blog__support-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-blog__hero-content {
    margin-top: -40px;
    padding: 15px;
  }

  .page-blog__main-title {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

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

  .page-blog__video-section,
  .page-blog__content-section,
  .page-blog__conclusion-section {
    padding: 40px 0;
  }

  .page-blog__video-section {
    padding-top: 10px !important;
  }

  .page-blog__content-area {
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 20px;
  }

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

  .page-blog__article-grid,
  .page-blog__game-categories-grid,
  .page-blog__promotion-grid,
  .page-blog__support-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__article-image,
  .page-blog__game-image,
  .page-blog__promotion-image,
  .page-blog__info-image {
    height: 180px;
  }

  .page-blog__article-title,
  .page-blog__game-title,
  .page-blog__promotion-title,
  .page-blog__info-title {
    font-size: 1.2em;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__cta-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-blog__card {
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  /* Ensure content area images are not too small */
  .page-blog__article-card img,
  .page-blog__game-card img,
  .page-blog__promotion-card img,
  .page-blog__info-card img {
    min-width: 200px;
    min-
    height: auto; /* Allow height to adjust */
  }
}

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

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

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

  .page-blog__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
}

/* Contrast Fixes */
.page-blog__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}