/* style/blog.css */
/* 
  Body background color: #f8f8f8 (light)
  Recommended text color for light backgrounds: #333333
*/

/* Custom colors from prompt */
/* Backgrounds */
/* Card BG: #11271B (dark) */
/* Background: #08160F (very dark) */
/* Buttons */
/* Button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
/* Text */
/* Text Main: #F2FFF6 (light) */
/* Text Secondary: #A7D9B8 (light) */
/* Borders */
/* Border: #2E7A4E */
/* Other */
/* Glow: #57E38D */
/* Gold: #F2C14E */
/* Divider: #1E3A2A */
/* Deep Green: #0A4B2C */

.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #08160F; /* Custom Background color */
  color: #F2FFF6; /* Custom Text Main color */
  overflow: hidden;
  min-height: 500px; /* Ensure visibility */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size constraint */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Custom Text Main color */
}

.page-blog__description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Custom Text Secondary color */
}

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

/* General Section Styling */
.page-blog__section {
  padding: 60px 0;
}

.page-blog__light-bg {
  background-color: #f8f8f8; /* Body background */
  color: #333333; /* Default dark text */
}

.page-blog__background-dark {
  background-color: #08160F; /* Custom Background color */
  color: #F2FFF6; /* Custom Text Main color */
}

.page-blog__section-title {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section, either #333333 or #F2FFF6 */
}

.page-blog__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section */
}

.page-blog p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-blog a {
  color: #13994A; /* A green from the button gradient for links on light bg */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog a:hover {
  color: #2AD16F; /* Lighter green on hover */
  text-decoration: underline;
}

/* Buttons */
.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #ffffff; /* White text for button */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button gradient */
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #F2FFF6; /* Text Main for secondary button on dark bg */
  background-color: transparent;
  border: 2px solid #2E7A4E; /* Custom Border color */
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-blog__btn-secondary:hover {
  background-color: #2E7A4E; /* Border color as background on hover */
  transform: translateY(-2px);
}

/* Lists */
.page-blog__ordered-list,
.page-blog__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-blog__ordered-list li,
.page-blog__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: inherit; /* Inherit from parent section */
}

.page-blog__ordered-list li strong {
  color: inherit; /* Ensure strong text color contrasts */
}


/* Image Styling */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-blog__content-image {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Card Layout for Game Categories */
.page-blog__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-blog__card {
  background-color: #11271B; /* Custom Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px; /* Space for button */
}

.page-blog__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images for consistency */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin: 0; /* Override default img margin */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-blog__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: #F2FFF6; /* Custom Text Main color */
}

.page-blog__card-description {
  font-size: 0.95rem;
  margin: 0 15px 20px;
  flex-grow: 1;
  color: #A7D9B8; /* Custom Text Secondary color */
}

.page-blog__card .page-blog__btn-primary {
  margin: 0 15px;
  width: calc(100% - 30px); /* Adjust button width within card */
  box-sizing: border-box;
}

.page-blog__cta-text {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 30px;
  margin-bottom: 30px;
  color: inherit;
}

/* App Download Section */
.page-blog__app-download {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-blog__download-card {
  background-color: #11271B; /* Custom Card BG color */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  max-width: 400px;
  flex: 1;
  min-width: 280px;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
  margin-bottom: 40px;
  border: 1px solid #2E7A4E; /* Custom Border color */
  border-radius: 12px;
  overflow: hidden;
}

.page-blog__faq-item {
  background-color: #11271B; /* Custom Card BG color */
  border-bottom: 1px solid #2E7A4E; /* Custom Border color */
}

.page-blog__faq-item:last-child {
  border-bottom: none;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Custom Text Main color */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-blog__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green for hover */
}

.page-blog__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: #57E38D; /* Custom Glow color */
}

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary color */
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
  padding-top: 10px;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #0A4B2C; /* Deep Green for open question */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

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

/* Final CTA Section */
.page-blog__final-cta {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Ensure link color contrast on dark backgrounds */
.page-blog__background-dark a {
  color: #57E38D; /* Custom Glow color for links on dark bg */
}
.page-blog__background-dark a:hover {
  color: #F2FFF6; /* Text Main on hover */
}

.page-blog__card-bg a {
  color: #57E38D; /* Custom Glow color for links on card bg */
}
.page-blog__card-bg a:hover {
  color: #F2FFF6; /* Text Main on hover */
}

/* Ensure specific text colors are applied */
.page-blog__background-dark .page-blog__section-title,
.page-blog__background-dark .page-blog__sub-title {
  color: #F2FFF6; /* Ensure titles are light on dark background */
}

.page-blog__light-bg .page-blog__section-title,
.page-blog__light-bg .page-blog__sub-title {
  color: #333333; /* Ensure titles are dark on light background */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-section {
    padding: 60px 20px;
  }

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

  .page-blog__section-title {
    font-size: 2rem;
  }

  .page-blog__sub-title {
    font-size: 1.6rem;
  }
}

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

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__hero-section {
    padding: 40px 15px;
    min-height: 400px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-blog__section {
    padding: 40px 0;
  }

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

  .page-blog__sub-title {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-blog p,
  .page-blog li {
    font-size: 1rem;
  }

  .page-blog__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__card-image {
    height: 180px;
  }

  .page-blog__card-title {
    font-size: 1.3rem;
  }

  .page-blog__card-description {
    font-size: 0.9rem;
  }

  .page-blog__app-download {
    flex-direction: column;
    gap: 20px;
  }

  .page-blog__download-card {
    max-width: 100%;
    padding: 20px;
  }

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

  .page-blog__faq-toggle {
    font-size: 1.2rem;
  }

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

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min-width is respected */
    min-height: 200px !important; /* Ensure min-height is respected */
  }

  /* Mobile container responsiveness */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__cta-buttons,
  .page-blog__app-download,
  .page-blog__download-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  /* Buttons specifically */
  .page-blog__cta-button,
  .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; /* Ensure padding inside button for text */
    padding-right: 15px; /* Ensure padding inside button for text */
  }

  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between stacked buttons */
  }

  /* Video (if any) responsive rules - not present in this HTML, but good to include for robustness */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-blog__video-section {
    padding-top: 10px !important; /* Small top padding for video section on mobile */
  }
}