/* style/blog.css */

/* --- Base Styles & Layout --- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

/* Ensure body padding-top is handled by shared.css */
/* .page-blog { padding-top: var(--header-offset); } - DO NOT ADD THIS HERE */

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: #08160F;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width */
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-blog__hero-content {
  max-width: 900px;
  width: 100%; /* Added for flex item */
  text-align: center;
  padding: 20px 20px 0;
  box-sizing: border-box;
  z-index: 1; /* Ensure content is above any potential background layers */
}

.page-blog__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  padding: 0 15px; /* Add padding to prevent overflow */
  box-sizing: border-box;
  width: 100%; /* Ensure it takes full width of parent */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  text-align: center;
}

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

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Match primary button highlight */
  border: 2px solid #2AD16F;
}

.page-blog__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__sub-section-title {
  font-size: 1.8em;
  color: #2AD16F; /* Main brand color */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-blog__content-section p,
.page-blog__content-section li {
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-blog__content-section ul {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-blog__content-section strong {
  color: #F2C14E; /* Gold */
}

/* --- Featured Posts Section --- */
.page-blog__featured-posts-section {
  background-color: #11271B; /* Card BG */
  padding: 60px 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-blog__post-card {
  background-color: #08160F; /* Background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

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

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

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  min-height: 70px; /* Ensure consistent title height */
}

.page-blog__post-title a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #2AD16F; /* Main brand color */
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__read-more-link {
  display: inline-block;
  color: #2AD16F; /* Main brand color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
  color: #F2C14E; /* Gold */
  text-decoration: underline;
}

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

/* --- About Us Summary --- */
.page-blog__about-us-summary .page-blog__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.page-blog__image-right {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-left: auto;
  display: block; /* Ensure it's a block element */
}

.page-blog__about-us-summary .page-blog__content-wrapper p {
  flex: 1;
  min-width: 300px; /* Allow text to wrap */
}

/* --- Steps Grid --- */
.page-blog__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-blog__step-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__step-title {
  font-size: 1.5em;
  color: #2AD16F; /* Main brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* --- Games Overview --- */
.page-blog__games-overview {
  background-color: #08160F; /* Background */
}

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

.page-blog__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__game-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin: 15px 20px 10px;
  font-weight: bold;
}

.page-blog__game-card p {
  color: #F2FFF6; /* Text Main */
  padding: 0 20px;
  flex-grow: 1; /* Make paragraphs take available space */
}

.page-blog__game-card .page-blog__read-more-link {
  margin: 15px 20px 20px;
}

/* --- Promotions Section --- */
.page-blog__promotions {
  background-color: #11271B; /* Card BG */
}

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

.page-blog__promo-card {
  background-color: #08160F; /* Background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

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

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

.page-blog__promo-content {
  padding: 20px;
}

.page-blog__promo-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin: 0 0 10px; /* Adjusted margin */
  font-weight: bold;
}

.page-blog__promo-card p {
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px; /* Adjusted margin */
}

.page-blog__promo-card .page-blog__read-more-link {
  margin-top: auto; /* Push link to bottom */
  display: block;
}

/* --- Tips & Strategies Section --- */
.page-blog__strategy-list {
  list-style-type: none; /* Remove default bullet */
  padding-left: 0;
  margin-top: 30px;
}

.page-blog__strategy-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-blog__strategy-list li::before {
  content: "✓"; /* Custom bullet point */
  position: absolute;
  left: 0;
  color: #2AD16F; /* Main brand color */
  font-weight: bold;
  font-size: 1.2em;
}

/* --- Why Choose Us Section --- */
.page-blog__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-blog__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__feature-icon {
  width: 200px; /* Minimum size requirement */
  height: 150px; /* Minimum size requirement */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__feature-title {
  font-size: 1.5em;
  color: #2AD16F; /* Main brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__feature-item p {
  color: #F2FFF6; /* Text Main */
}

/* --- Full Width CTA Section --- */
.page-blog__full-width-cta {
  background: linear-gradient(90deg, #0A4B2C 0%, #11A84E 100%); /* Deep Green to Main brand color */
  text-align: center;
  padding: 80px 20px;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 40px;
}

/* --- FAQ Section --- */
.page-blog__faq-section {
  background-color: #08160F; /* Background */
}

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

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-blog__faq-question:hover {
  background-color: #1e3a2a; /* Slightly darker */
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Main brand color */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0; /* Default for non-details version, handled by JS */
  overflow: hidden; /* Default for non-details version, handled by JS */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For non-details version */
}

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 1000px; /* Arbitrarily large for details/summary, will be ignored by JS */
  padding-top: 15px;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__image-right {
    max-width: 400px;
  }
}

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

  .page-blog__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-bottom: 40px;
  }

  .page-blog__hero-content {
    padding-top: 15px;
    padding-bottom: 0;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em) !important;
    margin-bottom: 15px;
  }

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

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 20px; /* Adjust padding for mobile buttons */
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  
  /* All images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* All image containers responsive */
  .page-blog__hero-image-wrapper,
  .page-blog__posts-grid,
  .page-blog__post-card,
  .page-blog__content-wrapper,
  .page-blog__steps-grid,
  .page-blog__step-card,
  .page-blog__games-grid,
  .page-blog__game-card,
  .page-blog__promo-grid,
  .page-blog__promo-card,
  .page-blog__feature-grid,
  .page-blog__feature-item,
  .page-blog__full-width-cta,
  .page-blog__faq-list,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific sections that might have their own padding/margin */
  .page-blog__featured-posts-section,
  .page-blog__content-section,
  .page-blog__faq-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

  .page-blog__sub-section-title {
    font-size: 1.5em !important;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-blog__about-us-summary .page-blog__content-wrapper {
    flex-direction: column;
  }

  .page-blog__image-right {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
  }

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

  .page-blog__post-title {
    font-size: 1.2em;
    min-height: auto;
  }

  .page-blog__game-title,
  .page-blog__promo-title,
  .page-blog__feature-title {
    font-size: 1.3em;
  }

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

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

  .page-blog__cta-title {
    font-size: 2em !important;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__full-width-cta {
    padding: 60px 15px;
  }
}