/* style/g.css */

/* Base styles for page-g */
.page-g {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main from custom palette */
  background-color: #0a0a0a; /* Body background color */
}

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

.page-g__section-title {
  font-size: 2.5em;
  color: #FFD86A;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-g__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD86A 0%, #E6B800 100%);
  border-radius: 2px;
}

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

.page-g__text-link {
  color: #F2B544;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-g__text-link:hover {
  color: #FFD86A;
  text-decoration: underline;
}

.page-g__list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-g__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-g__list-item::before {
  content: '★'; /* Star bullet point */
  position: absolute;
  left: 0;
  color: #F2B544;
  font-weight: bold;
}

.page-g__list--ordered {
  list-style-type: decimal;
  padding-left: 25px;
}

.page-g__list--ordered .page-g__list-item::before {
  content: none;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-g__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-g__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-g__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-g__main-title {
  color: #FFD86A; /* Gold color for title */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-g__hero-description {
  color: #FFF5E1;
  font-size: 1.3em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-g__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__cta-button:hover {
  background: linear-gradient(180deg, #FFE082 0%, #FBC02D 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-g__cta-button--large {
  font-size: 1.5em;
  padding: 18px 35px;
}

/* Content Sections */
.page-g__intro-section,
.page-g__game-types-section,
.page-g__strategy-section,
.page-g__benefits-section,
.page-g__guide-section,
.page-g__faq-section,
.page-g__cta-final-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background color for sections */
  margin-bottom: 20px;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.page-g__intro-section .page-g__container,
.page-g__game-types-section .page-g__container,
.page-g__strategy-section .page-g__container,
.page-g__benefits-section .page-g__container,
.page-g__guide-section .page-g__container,
.page-g__faq-section .page-g__container,
.page-g__cta-final-section .page-g__container {
  background-color: #D32F2F; /* Card BG for inner container */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid #F2B544; /* Border color */
}

.page-g__content-image {
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 800px; /* HTML attribute width */
  height: 600px; /* HTML attribute height */
  max-width: 100%;
  height: auto;
}

/* FAQ Section */
.page-g__faq-list {
  margin-top: 30px;
}

.page-g__faq-item {
  background-color: #7A0E0E; /* Deep Red for FAQ item background */
  border: 1px solid #F2B544;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD86A;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-g__faq-item[open] .page-g__faq-question {
  background-color: #C91F17; /* Main color when open */
}

.page-g__faq-qtext {
  flex-grow: 1;
}

.page-g__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #F2B544;
}

.page-g__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #FFF5E1;
  text-align: justify;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-g {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-g__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-g__hero-content {
    padding: 15px;
  }

  .page-g__main-title {
    font-size: 1.8em;
  }

  .page-g__hero-description {
    font-size: 1em;
  }

  .page-g__cta-button {
    font-size: 1em;
    padding: 12px 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-g__cta-button--large {
    font-size: 1.2em;
    padding: 15px 25px;
  }

  .page-g__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-g__intro-section,
  .page-g__game-types-section,
  .page-g__strategy-section,
  .page-g__benefits-section,
  .page-g__guide-section,
  .page-g__faq-section,
  .page-g__cta-final-section {
    padding: 40px 0;
  }

  .page-g__intro-section .page-g__container,
  .page-g__game-types-section .page-g__container,
  .page-g__strategy-section .page-g__container,
  .page-g__benefits-section .page-g__container,
  .page-g__guide-section .page-g__container,
  .page-g__faq-section .page-g__container,
  .page-g__cta-final-section .page-g__container {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsiveness */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsiveness (if any) */
  .page-g video,
  .page-g__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-g__video-section,
  .page-g__video-container,
  .page-g__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsiveness */
  .page-g__cta-button,
  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g a[class*="button"],
  .page-g 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;
    padding-right: 15px;
  }
  
  .page-g__cta-buttons,
  .page-g__button-group,
  .page-g__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-g__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-g__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-g__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }
}