/* style/game-guides.css */

/* Variables */
:root {
  --a8bet-primary: #11A84E;
  --a8bet-secondary: #22C768;
  --a8bet-card-bg: #11271B;
  --a8bet-bg: #08160F;
  --a8bet-text-main: #F2FFF6;
  --a8bet-text-secondary: #A7D9B8;
  --a8bet-border: #2E7A4E;
  --a8bet-glow: #57E38D;
  --a8bet-gold: #F2C14E;
  --a8bet-divider: #1E3A2A;
  --a8bet-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-game-guides {
  color: var(--a8bet-text-main); /* Light text on dark body background */
  background-color: var(--a8bet-bg); /* Ensure consistent background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-game-guides__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.page-game-guides__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--a8bet-primary);
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__sub-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--a8bet-text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__text-block {
  font-size: 16px;
  color: var(--a8bet-text-secondary);
  margin-bottom: 20px;
  text-align: left;
}

/* Hero Section */
.page-game-guides__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, then larger bottom */
  position: relative;
  overflow: hidden;
  background-color: var(--a8bet-bg);
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the image */
  overflow: hidden;
}

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(17, 40, 27, 0.85); /* Slightly transparent dark background */
  border-radius: 10px;
  margin-top: -100px; /* Pull content up over the image slightly for visual effect */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-game-guides__main-title {
  font-size: clamp(32px, 5vw, 50px);
  color: var(--a8bet-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 700;
}

.page-game-guides__description {
  font-size: 18px;
  color: var(--a8bet-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-game-guides__intro-section {
  background-color: var(--a8bet-bg);
  padding-top: 40px;
}

/* Why Guides Section */
.page-game-guides__why-guides-section {
  background-color: var(--a8bet-card-bg); /* Darker background for contrast */
  color: var(--a8bet-text-main);
}

.page-game-guides__why-guides-section .page-game-guides__section-title {
  color: var(--a8bet-gold);
}

.page-game-guides__why-guides-section .page-game-guides__text-block {
  color: var(--a8bet-text-secondary);
}

.page-game-guides__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
}

.page-game-guides__list-item {
  background: var(--a8bet-deep-green);
  padding: 15px 25px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-align: left;
  color: var(--a8bet-text-main);
  font-size: 17px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--a8bet-primary);
}

.page-game-guides__list-item strong {
  color: var(--a8bet-gold);
}

/* Video Section */
.page-game-guides__video-section {
  padding-top: 10px; /* As per strict rule */
  background-color: var(--a8bet-bg);
}

.page-game-guides__video-container {
  width: 100%; /* Desktop requirement */
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-game-guides__cta-button--video {
  margin-top: 20px;
}

/* Game Types Section */
.page-game-guides__game-types-section {
  background-color: var(--a8bet-bg);
  padding-top: 40px;
}

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

.page-game-guides__card {
  background: var(--a8bet-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  padding-bottom: 20px;
  border: 1px solid var(--a8bet-border);
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-guides__card-title {
  font-size: 22px;
  color: var(--a8bet-gold);
  margin: 0 15px 10px 15px;
  font-weight: 600;
}

.page-game-guides__card-text {
  font-size: 15px;
  color: var(--a8bet-text-secondary);
  margin: 0 15px 20px 15px;
}

.page-game-guides__card-link {
  display: inline-block;
  color: var(--a8bet-primary);
  text-decoration: none;
  font-weight: bold;
  margin-left: 15px;
  padding: 8px 15px;
  border: 1px solid var(--a8bet-primary);
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-game-guides__card-link:hover {
  background-color: var(--a8bet-primary);
  color: #ffffff;
}

/* Detailed Guides Section */
.page-game-guides__detailed-guides-section {
  background-color: var(--a8bet-card-bg);
  color: var(--a8bet-text-main);
  padding-top: 40px;
}

.page-game-guides__detailed-guides-section .page-game-guides__section-title {
  color: var(--a8bet-gold);
}

.page-game-guides__detailed-guides-section .page-game-guides__text-block {
  color: var(--a8bet-text-secondary);
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--a8bet-border);
}

/* Effective Guides Section */
.page-game-guides__effective-guides-section {
  background-color: var(--a8bet-bg);
  padding-top: 40px;
}

/* Expert Tips Section */
.page-game-guides__expert-tips-section {
  background-color: var(--a8bet-card-bg);
  color: var(--a8bet-text-main);
  padding-top: 40px;
}

.page-game-guides__expert-tips-section .page-game-guides__section-title {
  color: var(--a8bet-gold);
}

.page-game-guides__expert-tips-section .page-game-guides__text-block {
  color: var(--a8bet-text-secondary);
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: var(--a8bet-bg);
  padding-top: 40px;
}

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

.page-game-guides__faq-item {
  background: var(--a8bet-deep-green);
  border: 1px solid var(--a8bet-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--a8bet-text-main);
  cursor: pointer;
  background-color: var(--a8bet-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary native styling */
}

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

.page-game-guides__faq-question:hover {
  background-color: var(--a8bet-deep-green);
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--a8bet-primary);
}

.page-game-guides__faq-answer {
  padding: 15px 25px;
  font-size: 16px;
  color: var(--a8bet-text-secondary);
  border-top: 1px solid var(--a8bet-divider);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  background-color: var(--a8bet-deep-green);
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
  background-color: var(--a8bet-card-bg);
  color: var(--a8bet-text-main);
  padding-top: 40px;
  padding-bottom: 80px;
}

.page-game-guides__conclusion-section .page-game-guides__section-title {
  color: var(--a8bet-gold);
}

.page-game-guides__conclusion-section .page-game-guides__text-block {
  color: var(--a8bet-text-secondary);
}

.page-game-guides__cta-button--final {
  margin-top: 40px;
}

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

  .page-game-guides__main-title {
    font-size: clamp(28px, 4.5vw, 45px);
  }

  .page-game-guides__description {
    font-size: 16px;
  }

  .page-game-guides__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

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

  .page-game-guides__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
  }

  .page-game-guides__sub-title {
    font-size: clamp(20px, 2.8vw, 28px);
  }

  .page-game-guides__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-content {
    margin-top: -60px;
    padding: 25px 10px;
  }

  .page-game-guides__hero-image-wrapper {
    max-height: 400px;
  }

  .page-game-guides__main-title {
    font-size: clamp(26px, 6vw, 38px);
  }

  .page-game-guides__description {
    font-size: 15px;
  }

  .page-game-guides__cta-button {
    padding: 10px 20px;
    font-size: 15px;
  }

  .page-game-guides__section {
    padding: 30px 0;
  }

  .page-game-guides__section-title {
    font-size: clamp(22px, 5vw, 32px);
  }

  .page-game-guides__sub-title {
    font-size: clamp(18px, 4.5vw, 24px);
  }

  .page-game-guides__text-block {
    font-size: 15px;
  }

  .page-game-guides__list-item {
    font-size: 15px;
    padding: 12px 20px;
  }

  .page-game-guides__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card-image {
    height: 160px;
  }

  .page-game-guides__card-title {
    font-size: 20px;
  }

  .page-game-guides__card-text {
    font-size: 14px;
  }

  .page-game-guides__card-link {
    padding: 6px 12px;
    font-size: 14px;
  }

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

  .page-game-guides__faq-answer {
    font-size: 14px;
    padding: 12px 20px;
  }

  /* Responsive images */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Responsive videos */
  .page-game-guides video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers with images/videos/buttons are responsive */
  .page-game-guides__section,
  .page-game-guides__container,
  .page-game-guides__card,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .page-game-guides__hero-section,
  .page-game-guides__hero-content,
  .page-game-guides__grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-game-guides__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

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

  /* Specific video section top padding for mobile */
  .page-game-guides__video-section {
    padding-top: 10px !important;
  }

  /* Responsive buttons */
  .page-game-guides__cta-button,
  .page-game-guides__card-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-game-guides__cta-button--video,
  .page-game-guides__cta-button--final {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__card {
    padding-left: 0;
    padding-right: 0;
  }
  .page-game-guides__card-title, .page-game-guides__card-text {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-content {
    margin-top: -40px;
    padding: 20px 10px;
  }

  .page-game-guides__hero-image-wrapper {
    max-height: 300px;
  }

  .page-game-guides__main-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .page-game-guides__description {
    font-size: 14px;
  }

  .page-game-guides__section-title {
    font-size: clamp(20px, 6vw, 28px);
  }

  .page-game-guides__sub-title {
    font-size: clamp(16px, 5vw, 22px);
  }

  .page-game-guides__list-item {
    font-size: 14px;
    padding: 10px 15px;
  }

  .page-game-guides__faq-question {
    font-size: 15px;
    padding: 12px 15px;
  }

  .page-game-guides__faq-answer {
    font-size: 13px;
    padding: 10px 15px;
  }
}