/* style/-g.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --accent-color: #DC143C;
  --text-light: #F0F2F5;
  --text-dark: #333333;
  --bg-dark: #0A192F;
  --bg-light: #ffffff;
  --bg-grey: #f9f9f9;
  --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: 20px;
}

.page--g__section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page--g__section:nth-of-type(even) {
  background-color: var(--bg-grey);
}

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

.page--g h1 {
  font-size: 2.8em;
  color: var(--secondary-color);
}

.page--g h2 {
  font-size: 2.2em;
  color: var(--primary-color);
}

.page--g h3 {
  font-size: 1.6em;
  color: var(--primary-color);
}

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

.page--g__internal-link,
.page--g__card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page--g__internal-link:hover,
.page--g__card-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.page--g__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--accent-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-align: center;
}

.page--g__cta-button:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page--g__cta-button--small {
  padding: 10px 20px;
  font-size: 1em;
}

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

/* 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 20px;
  background-color: var(--bg-dark);
}

.page--g__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page--g__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page--g__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page--g__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page--g__hero-content h1 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page--g__hero-content p {
  color: var(--text-light);
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Introduction and other text sections */
.page--g__introduction img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  object-fit: cover;
}

.page--g ol,
.page--g ul {
  margin-bottom: 15px;
  padding-left: 25px;
}

.page--g li {
  margin-bottom: 8px;
}

.page--g .page--g__betting-rules img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  object-fit: cover;
}

/* Card Grid */
.page--g__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g__card {
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page--g__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page--g__card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page--g__card h3 {
  padding: 15px 20px 10px;
  margin-bottom: 0;
  text-align: left;
  font-size: 1.4em;
  flex-grow: 1;
}

.page--g__card p {
  padding: 0 20px 20px;
  text-align: left;
  font-size: 0.95em;
}

/* FAQ Section */
.page--g__faq {
  background-color: var(--bg-grey);
}

.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: 15px;
  background: var(--bg-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.faq-toggle {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #fefefe;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 15px;
  border-top: 1px solid var(--border-color);
}

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

/* Conclusion Section */
.page--g__conclusion {
  text-align: center;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page--g__conclusion h2 {
  color: var(--secondary-color);
}

.page--g__conclusion p {
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 20px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page--g h1 {
    font-size: 2.4em;
  }
  .page--g h2 {
    font-size: 2em;
  }
  .page--g h3 {
    font-size: 1.5em;
  }
  .page--g__hero-content p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page--g__section {
    padding: 40px 0;
  }
  .page--g h1 {
    font-size: 2em;
  }
  .page--g h2 {
    font-size: 1.8em;
  }
  .page--g h3 {
    font-size: 1.3em;
  }
  .page--g__card-grid {
    grid-template-columns: 1fr;
  }
  .page--g__card img {
    height: 200px;
  }
  .page--g__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page--g__hero-section {
    padding: 40px 15px;
  }
  .page--g__hero-image {
    margin-bottom: 20px;
  }
  .page--g__hero-content p {
    margin-bottom: 20px;
  }
  .faq-question {
    padding: 12px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page--g h1 {
    font-size: 1.8em;
  }
  .page--g h2 {
    font-size: 1.6em;
  }
  .page--g h3 {
    font-size: 1.2em;
  }
  .page--g__hero-content p {
    font-size: 0.95em;
  }
  .page--g__cta-button {
    width: 100%;
    box-sizing: border-box;
  }
  .page--g__card h3 {
    font-size: 1.2em;
  }
  .page--g__card p {
    font-size: 0.9em;
  }
}