/* style/-g.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --border-color: #e0e0e0;
}

.page--g {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

.page--g__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page--g__section:nth-of-type(even) {
  background-color: #ffffff;
}

.page--g h1,
.page--g h2,
.page--g h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

.page--g h1 {
  font-size: 3.2em;
  font-weight: bold;
  color: var(--text-light);
}

.page--g h2 {
  font-size: 2.5em;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 15px;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.page--g h3 {
  font-size: 1.8em;
  font-weight: bold;
}

.page--g p {
  font-size: 1.1em;
  margin-bottom: 15px;
  text-align: justify;
}

.page--g strong {
  color: var(--secondary-color);
}

/* Hero Section */
.page--g__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page--g__hero-section .page--g__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page--g__hero-content {
  max-width: 800px;
}

.page--g__hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-align: center;
}

.page--g__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 400px; /* Ensure minimum size */
  min-height: 300px;
  object-fit: cover;
}

.page--g__cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
}

.page--g__cta-button:hover {
  background-color: #e0a800; /* Darker secondary for hover */
  transform: translateY(-3px);
}

/* Features List */
.page--g__features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g__features-list li {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page--g__features-list li:hover {
  transform: translateY(-5px);
}

.page--g__features-list li img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 100px; /* Ensure minimum size */
  min-height: 100px;
}

.page--g__features-list li h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page--g__features-list li p {
  font-size: 1em;
  color: #555;
  text-align: center;
}

/* Game Types Cards */
.page--g__type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g__card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page--g__card:hover {
  transform: translateY(-5px);
}

.page--g__card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  min-width: 280px; /* Ensure minimum size */
  min-height: 220px;
}

.page--g__card h3 {
  font-size: 1.6em;
  margin: 20px 15px 10px;
  text-align: left;
  color: var(--primary-color);
}

.page--g__card p {
  font-size: 1em;
  padding: 0 15px 20px;
  color: #666;
  text-align: left;
}

/* How-To-Play Steps */
.page--g__how-to-play ol {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
}

.page--g__how-to-play ol li {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page--g__how-to-play ol li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: -20px;
  top: 20px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.page--g__how-to-play ol li h3 {
  margin-top: 0;
  margin-left: 40px; /* Adjust for counter */
  text-align: left;
  color: var(--primary-color);
}

.page--g__how-to-play ol li p {
  margin-left: 40px; /* Adjust for counter */
  text-align: justify;
}

.page--g__button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease;
  margin-top: 15px;
  margin-left: 40px;
}

.page--g__button:hover {
  background-color: #0056b3;
}

/* Tips List */
.page--g__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g__tips-list li {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page--g__tips-list li:hover {
  transform: translateY(-5px);
}

.page--g__tips-list li img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 120px; /* Ensure minimum size */
  min-height: 120px;
}

.page--g__tips-list li h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page--g__tips-list li p {
  font-size: 1em;
  color: #555;
  text-align: center;
}

/* Promotions List */
.page--g__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page--g__promo-list li {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 25px;
  text-align: left;
}

.page--g__promo-list li h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: var(--secondary-color);
  text-align: left;
}

.page--g__promo-list li p {
  font-size: 1.1em;
  color: #555;
}

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

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--primary-color);
  text-align: left;
  flex-grow: 1;
}

.faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--bg-light);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin-bottom: 0;
  color: #555;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page--g h1 {
    font-size: 2.8em;
  }
  .page--g h2 {
    font-size: 2em;
  }
  .page--g h3 {
    font-size: 1.6em;
  }
  .page--g__hero-content p {
    font-size: 1.1em;
  }
  .page--g__cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page--g__features-list,
  .page--g__type-cards,
  .page--g__tips-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page--g__how-to-play ol li::before {
    left: 10px;
    top: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
  .page--g__how-to-play ol li h3,
  .page--g__how-to-play ol li p,
  .page--g__button {
    margin-left: 60px;
  }
}

@media (max-width: 768px) {
  .page--g__section {
    padding: 40px 0;
  }
  .page--g h1 {
    font-size: 2.2em;
  }
  .page--g h2 {
    font-size: 1.8em;
  }
  .page--g h3 {
    font-size: 1.4em;
  }
  .page--g__hero-section .page--g__container {
    flex-direction: column;
    gap: 30px;
  }
  .page--g__hero-image img {
    min-width: unset;
    min-height: unset;
    height: auto;
  }
  .page--g__cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page--g__features-list,
  .page--g__type-cards,
  .page--g__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page--g__features-list li,
  .page--g__card,
  .page--g__tips-list li,
  .page--g__promo-list li {
    padding: 20px;
  }
  .page--g__card img {
    height: 180px;
    min-width: unset;
    min-height: unset;
  }
  .page--g__how-to-play ol li::before {
    left: 5px;
    top: 10px;
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }
  .page--g__how-to-play ol li h3,
  .page--g__how-to-play ol li p,
  .page--g__button {
    margin-left: 50px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.8em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page--g h1 {
    font-size: 1.8em;
  }
  .page--g h2 {
    font-size: 1.5em;
  }
  .page--g h3 {
    font-size: 1.2em;
  }
  .page--g p {
    font-size: 0.95em;
  }
  .page--g__hero-content p {
    font-size: 1em;
  }
  .page--g__how-to-play ol li::before {
    left: 0;
    top: 5px;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
  }
  .page--g__how-to-play ol li h3,
  .page--g__how-to-play ol li p,
  .page--g__button {
    margin-left: 40px;
  }
  .page--g__cta-button {
    font-size: 0.95em;
    padding: 8px 20px;
  }
}