/* style/index-game-guides.css */

/* Custom Colors */
:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-index-game-guides {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index-game-guides__dark-bg {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
}

.page-index-game-guides__light-bg {
  background-color: #f8f8f8; /* A light background for contrast sections */
  color: #333333;
}

.page-index-game-guides__card-bg {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

/* General Section Styling */
.page-index-game-guides__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

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

.page-index-game-guides__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--gold-color);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-index-game-guides__section p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.8;
}

.page-index-game-guides__section-title + p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 20px;
  color: var(--text-secondary-color);
}

/* Hero Section */
.page-index-game-guides__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding-top: 10px; /* Small top padding for visual separation */
}

.page-index-game-guides__hero-image-wrapper {
  width: 100%;
  position: relative;
  order: 1; /* Image on top */
}

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

.page-index-game-guides__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  order: 2; /* Content below image */
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual flow */
  background: rgba(8, 22, 15, 0.9); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-index-game-guides__main-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-index-game-guides__hero-description {
  font-size: 20px;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

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

/* Buttons */
.page-index-game-guides__btn-primary,
.page-index-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-index-game-guides__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-index-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  opacity: 0.9;
}

.page-index-game-guides__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-index-game-guides__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--page-bg-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-index-game-guides__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-index-game-guides__button-center {
  margin-top: 40px;
}

/* Content Flex Layout */
.page-index-game-guides__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-index-game-guides__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-index-game-guides__text-block {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index-game-guides__text-block h3 {
  font-size: 28px;
  color: var(--gold-color);
  margin-bottom: 20px;
}

.page-index-game-guides__image-block {
  flex: 1;
  min-width: 300px;
}

.page-index-game-guides__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  display: block;
}

/* Ordered/Unordered Lists */
.page-index-game-guides__ordered-list,
.page-index-game-guides__unordered-list {
  text-align: left;
  margin: 20px 0 20px 20px;
  padding: 0;
  list-style-position: outside;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary-color);
}

.page-index-game-guides__ordered-list li,
.page-index-game-guides__unordered-list li {
  margin-bottom: 10px;
}

.page-index-game-guides__ordered-list li strong,
.page-index-game-guides__unordered-list li strong {
  color: var(--text-main-color);
}

/* Game Categories Grid */
.page-index-game-guides__games-section {
  background-color: var(--page-bg-color);
}

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

.page-index-game-guides__category-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-game-guides__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.page-index-game-guides__category-image {
  width: 100%;
  max-width: 400px;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-game-guides__category-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-index-game-guides__category-title a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-game-guides__category-title a:hover {
  color: var(--glow-color);
}

.page-index-game-guides__category-card p {
  font-size: 16px;
  color: var(--text-secondary-color);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-index-game-guides__faq-section {
  background-color: #f8f8f8;
  color: #333333;
}

.page-index-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-index-game-guides__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.page-index-game-guides__faq-item[open] {
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.page-index-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-index-game-guides__faq-qtext {
  flex-grow: 1;
}

.page-index-game-guides__faq-toggle {
  font-size: 28px;
  line-height: 1;
  margin-left: 15px;
  color: var(--deep-green-color);
}

.page-index-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 17px;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

.page-index-game-guides__faq-answer p {
  margin-bottom: 0;
}

/* CTA Bottom Section */
.page-index-game-guides__cta-bottom {
  padding: 80px 20px;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-index-game-guides__cta-bottom .page-index-game-guides__section-title {
  color: var(--gold-color);
}

.page-index-game-guides__cta-bottom p {
  font-size: 20px;
  color: var(--text-secondary-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

  .page-index-game-guides__main-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }

  .page-index-game-guides__hero-description {
    font-size: 18px;
  }

  .page-index-game-guides__section-title {
    font-size: clamp(26px, 3.5vw, 40px);
  }

  .page-index-game-guides__content-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-index-game-guides__content-flex--reverse {
    flex-direction: column;
  }
}

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

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

  .page-index-game-guides__hero-section {
    min-height: auto;
    padding-top: 10px !important;
  }

  .page-index-game-guides__hero-image-wrapper {
    order: 1;
  }

  .page-index-game-guides__hero-content {
    margin-top: -40px; /* Adjusted overlap */
    padding: 25px 15px;
    order: 2;
    width: 100%;
    box-sizing: border-box;
  }

  .page-index-game-guides__main-title {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 15px;
  }

  .page-index-game-guides__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-index-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-index-game-guides__btn-primary,
  .page-index-game-guides__btn-secondary,
  .page-index-game-guides a[class*="button"],
  .page-index-game-guides 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: 12px 20px;
    font-size: 16px;
  }

  .page-index-game-guides__section-title {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 25px;
  }

  .page-index-game-guides p {
    font-size: 16px;
  }

  .page-index-game-guides__content-flex {
    margin-top: 20px;
  }

  .page-index-game-guides__text-block h3 {
    font-size: 24px;
  }

  .page-index-game-guides__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-game-guides__category-card {
    padding: 20px;
  }

  .page-index-game-guides__category-image {
    height: 200px; /* Adjusted height for mobile consistency */
  }

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

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

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

  .page-index-game-guides__faq-toggle {
    font-size: 24px;
  }

  .page-index-game-guides__ordered-list,
  .page-index-game-guides__unordered-list {
    font-size: 16px;
    margin-left: 15px;
  }

  /* Ensure all image containers are responsive */
  .page-index-game-guides__section,
  .page-index-game-guides__card,
  .page-index-game-guides__container,
  .page-index-game-guides__text-block,
  .page-index-game-guides__image-block,
  .page-index-game-guides__game-categories,
  .page-index-game-guides__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override padding for specific elements that have it internally */
  .page-index-game-guides__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-index-game-guides__intro-section .page-index-game-guides__container,
  .page-index-game-guides__guide-section .page-index-game-guides__container,
  .page-index-game-guides__deposit-section .page-index-game-guides__container,
  .page-index-game-guides__games-section .page-index-game-guides__container,
  .page-index-game-guides__tips-section .page-index-game-guides__container,
  .page-index-game-guides__promotions-section .page-index-game-guides__container,
  .page-index-game-guides__faq-section .page-index-game-guides__container,
  .page-index-game-guides__cta-bottom .page-index-game-guides__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

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

  .page-index-game-guides__main-title {
    font-size: clamp(26px, 8vw, 36px);
  }

  .page-index-game-guides__hero-description {
    font-size: 15px;
  }

  .page-index-game-guides__btn-primary,
  .page-index-game-guides__btn-secondary {
    padding: 10px 15px;
    font-size: 15px;
  }

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

  .page-index-game-guides__faq-question {
    font-size: 16px;
  }

  .page-index-game-guides__faq-answer {
    font-size: 15px;
  }
}