/* style/gaming-guides.css */

/* Base styles for the Gaming Guides page */
.page-gaming-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Inherit from body */
}

.page-gaming-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-gaming-guides__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-gaming-guides__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-gaming-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Minimal top padding, body handles --header-offset */
  overflow: hidden;
}

.page-gaming-guides__hero-image-container {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

.page-gaming-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-gaming-guides__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  max-width: 800px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
}

.page-gaming-guides__main-title {
  color: #FFD700;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: clamp(2.5em, 5vw, 3.5em);
}

.page-gaming-guides__hero-description {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-gaming-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-gaming-guides__btn-primary,
.page-gaming-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-gaming-guides__btn-primary {
  background-color: #FFD700;
  color: #2A004A;
  border: 2px solid #FFD700;
}

.page-gaming-guides__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-gaming-guides__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-gaming-guides__btn-secondary:hover {
  background-color: #FFD700;
  color: #2A004A;
}

/* Introduction Section */
.page-gaming-guides__introduction-section {
  padding: 60px 20px;
  background-color: #1a0033; /* Dark background for good contrast with light text */
  color: #ffffff;
}

.page-gaming-guides__introduction-section .page-gaming-guides__section-title {
  color: #FFD700;
}

.page-gaming-guides__introduction-section .page-gaming-guides__text-block {
  color: #f0f0f0;
}

.page-gaming-guides__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  object-fit: cover;
  min-height: 200px;
  min-width: 200px;
}

/* Game Strategy Section */
.page-gaming-guides__game-strategy-section {
  padding: 60px 20px;
  background-color: #2A004A; /* Deep purple background */
  color: #ffffff;
}

.page-gaming-guides__game-strategy-section .page-gaming-guides__section-title {
  color: #FFD700;
}

.page-gaming-guides__game-strategy-section .page-gaming-guides__text-block {
  color: #f0f0f0;
}

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

.page-gaming-guides__guide-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px;
}

.page-gaming-guides__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-gaming-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-gaming-guides__card-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-gaming-guides__card-description {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-gaming-guides__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #2A004A;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gaming-guides__card-button:hover {
  background-color: #e6c200;
}

/* Responsible Gaming Section */
.page-gaming-guides__responsible-gaming-section {
  padding: 60px 20px;
  background-color: #1a0033;
  color: #ffffff;
}

.page-gaming-guides__responsible-gaming-section .page-gaming-guides__section-title {
  color: #FFD700;
}

.page-gaming-guides__responsible-gaming-section .page-gaming-guides__text-block {
  color: #f0f0f0;
}

/* CTA Section */
.page-gaming-guides__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #2A004A;
  color: #ffffff;
}

.page-gaming-guides__cta-section .page-gaming-guides__section-title {
  color: #FFD700;
}

.page-gaming-guides__cta-section .page-gaming-guides__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-gaming-guides__faq-section {
  padding: 60px 20px;
  background-color: #1a0033;
  color: #ffffff;
}

.page-gaming-guides__faq-section .page-gaming-guides__section-title {
  color: #FFD700;
}

.page-gaming-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gaming-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-gaming-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-gaming-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-gaming-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-gaming-guides__faq-item.active .page-gaming-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-gaming-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-gaming-guides__faq-item.active .page-gaming-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

/* Global image styles */
.page-gaming-guides img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gaming-guides__hero-content {
    max-width: 90%;
  }
  .page-gaming-guides__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }
  .page-gaming-guides__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-gaming-guides__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Ensure minimal top padding on mobile */
  }
  .page-gaming-guides__hero-content {
    padding: 15px;
  }
  .page-gaming-guides__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-gaming-guides__hero-description {
    font-size: 1em;
  }
  .page-gaming-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-gaming-guides__btn-primary,
  .page-gaming-guides__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-gaming-guides__section-title {
    font-size: 1.8em;
  }
  .page-gaming-guides__text-block {
    font-size: 1em;
  }
  .page-gaming-guides__guide-cards-grid {
    grid-template-columns: 1fr;
  }
  .page-gaming-guides__guide-card {
    padding: 20px;
  }
  .page-gaming-guides__card-title {
    font-size: 1.2em;
  }
  .page-gaming-guides__card-description {
    font-size: 0.9em;
  }

  /* Mobile image and container responsive styles */
  .page-gaming-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gaming-guides__container,
  .page-gaming-guides__introduction-section,
  .page-gaming-guides__game-strategy-section,
  .page-gaming-guides__responsible-gaming-section,
  .page-gaming-guides__cta-section,
  .page-gaming-guides__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-gaming-guides__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-gaming-guides__faq-answer {
    padding: 0 20px;
  }
  .page-gaming-guides__faq-item.active .page-gaming-guides__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Content area images minimum size enforcement */
  .page-gaming-guides__image-content,
  .page-gaming-guides__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Contrast emergency fix */
  .page-gaming-guides__dark-bg {
    color: #ffffff;
  }
  .page-gaming-guides__light-bg {
    color: #333333;
  }
}