/* style/game-guides.css */

/* Variables for custom colors */
:root {
  --page-game-guides-primary-color: #11A84E;
  --page-game-guides-secondary-color: #22C768;
  --page-game-guides-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-game-guides-card-bg: #11271B;
  --page-game-guides-background: #08160F;
  --page-game-guides-text-main: #F2FFF6;
  --page-game-guides-text-secondary: #A7D9B8;
  --page-game-guides-border-color: #2E7A4E;
  --page-game-guides-glow-color: #57E38D;
  --page-game-guides-gold-color: #F2C14E;
  --page-game-guides-divider-color: #1E3A2A;
  --page-game-guides-deep-green: #0A4B2C;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-game-guides-text-main); /* Default text color for dark background */
  background-color: var(--page-game-guides-background); /* Overall page background */
}

/* Color contrast classes */
.page-game-guides__dark-bg {
  background-color: var(--page-game-guides-background);
  color: var(--page-game-guides-text-main);
}

.page-game-guides__light-bg {
  background-color: #ffffff; /* Using white for contrast on light sections */
  color: #333333; /* Dark text for light background */
}

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-game-guides__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  width: 90%;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-game-guides-text-main);
  margin-bottom: 20px;
}

.page-game-guides__description {
  font-size: 1.15rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 30px;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  background: #ffffff;
  color: var(--page-game-guides-primary-color);
  border: 2px solid var(--page-game-guides-primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--page-game-guides-primary-color);
  color: #ffffff;
}

.page-game-guides__section {
  padding: 60px 20px;
  text-align: center;
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-game-guides__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--page-game-guides-gold-color); /* Gold color for section titles */
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.page-game-guides__sub-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--page-game-guides-primary-color); /* Primary color for sub-titles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__text-block {
  font-size: 1.1rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 30px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-game-guides__image-center {
  display: block;
  margin: 30px auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-game-guides__image-margin-top {
  margin-top: 30px;
}

.page-game-guides__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-game-guides__card {
  background-color: var(--page-game-guides-card-bg); /* Card background color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--page-game-guides-text-main);
  border: 1px solid var(--page-game-guides-border-color);
}

.page-game-guides__card-title {
  font-size: 1.4rem;
  color: var(--page-game-guides-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__card p {
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-game-guides__card .page-game-guides__btn-secondary {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-game-guides__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-card-bg);
  border: 1px solid var(--page-game-guides-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--page-game-guides-text-main);
  background-color: var(--page-game-guides-deep-green);
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}

.page-game-guides__faq-qtext {
  color: var(--page-game-guides-text-main);
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-game-guides-gold-color);
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
  border-top: 1px solid var(--page-game-guides-divider-color);
  margin-top: -1px; /* Overlap border */
}

.page-game-guides__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-game-guides__description {
    font-size: 1rem;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-game-guides__sub-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }

  .page-game-guides__hero-content {
    width: 95%;
    padding: 15px;
    top: 55%;
  }

  .page-game-guides__main-title {
    font-size: 2.2rem !important; /* Fixed size for mobile H1 */
    margin-bottom: 15px;
  }

  .page-game-guides__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__section {
    padding: 40px 15px;
  }

  .page-game-guides__container {
    padding: 0;
  }

  .page-game-guides__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

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

  .page-game-guides__text-block {
    font-size: 1rem;
    text-align: left;
    padding: 0 15px;
  }

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size on mobile */
    min-height: 200px !important; /* Ensure min size on mobile */
    box-sizing: border-box !important;
  }

  .page-game-guides__image-full-width,
  .page-game-guides__image-center {
    padding: 0 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-game-guides__cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-guides__card {
    padding: 25px;
  }

  .page-game-guides__card-title {
    font-size: 1.2rem;
  }

  .page-game-guides__card p {
    font-size: 0.95rem;
  }

  .page-game-guides__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

  /* Ensure all content containers are responsive */
  .page-game-guides__section,
  .page-game-guides__container,
  .page-game-guides__cta-bottom,
  .page-game-guides__faq-section,
  .page-game-guides__intro-section,
  .page-game-guides__benefits-section,
  .page-game-guides__strategies-section,
  .page-game-guides__game-specific-tips,
  .page-game-guides__maximize-winnings {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-guides__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
}