/* 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 backgrounds */
  background-color: var(--background-color, #f8f8f8); /* Inherit from shared or default light */
}

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

.page-blog__section-title {
  font-size: clamp(24px, 4vw, 36px);
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-blog__sub-title {
  font-size: clamp(20px, 3vw, 28px);
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-blog__link {
  color: #017439;
  text-decoration: underline;
}

.page-blog__link:hover {
  color: #005f2e;
}

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background-color: #017439; /* Ensure dark background for hero image */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-blog__hero-content {
  background-color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: -60px; /* Overlap slightly for design */
  position: relative;
  z-index: 1;
  color: #333333;
}

.page-blog__main-title {
  font-size: clamp(28px, 5vw, 48px);
  color: #017439;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-blog__description {
  font-size: clamp(16px, 2.5vw, 18px);
  margin-bottom: 30px;
  color: #333333;
}

.page-blog__description--white {
  color: #ffffff;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-blog__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

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

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #017439;
}

.page-blog__btn-secondary--login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-blog__btn-secondary--login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

/* Intro Section */
.page-blog__intro-section,
.page-blog__gaming-guide {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-blog__intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__intro-content .page-blog__image {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  height: auto;
  display: block;
}

.page-blog__intro-content .page-blog__text-block {
  flex: 1;
}

/* Why Choose Us Section */
.page-blog__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-blog__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-blog__feature-title {
  font-size: clamp(20px, 3vw, 24px);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Gaming Guide Section */
.page-blog__gaming-guide .page-blog__guide-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-direction: row-reverse; /* Image on right, text on left */
}

.page-blog__gaming-guide .page-blog__image {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  height: auto;
  display: block;
}

.page-blog__gaming-guide .page-blog__text-block {
  flex: 1;
}

/* Latest News Section */
.page-blog__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__news-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

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

.page-blog__news-title {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

.page-blog__news-meta {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-blog__news-excerpt {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
}

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

.page-blog__view-all-button-wrapper {
  text-align: center;
}

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

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

.page-blog__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

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

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

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

.page-blog__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-blog__cta-section .page-blog__description {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -40px;
    padding: 30px 15px;
  }

  .page-blog__intro-content,
  .page-blog__gaming-guide .page-blog__guide-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-blog__intro-content .page-blog__image,
  .page-blog__gaming-guide .page-blog__image {
    max-width: 80%;
  }

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

@media (max-width: 768px) {
  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

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

  .page-blog__section-title {
    margin-bottom: 30px;
  }

  .page-blog__intro-content .page-blog__image,
  .page-blog__gaming-guide .page-blog__image {
    max-width: 100%;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-blog__image,
  .page-blog__hero-image,
  .page-blog__feature-image,
  .page-blog__news-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__intro-section,
  .page-blog__why-choose-us,
  .page-blog__gaming-guide,
  .page-blog__latest-news,
  .page-blog__faq-section,
  .page-blog__cta-section,
  .page-blog__hero-image-wrapper,
  .page-blog__hero-content,
  .page-blog__features-grid,
  .page-blog__feature-item,
  .page-blog__news-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

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

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