/* style/g.css */

:root {
  --page-g-primary-color: #11A84E;
  --page-g-secondary-color: #22C768;
  --page-g-bg-color: #08160F;
  --page-g-card-bg: #11271B;
  --page-g-text-main: #F2FFF6;
  --page-g-text-secondary: #A7D9B8;
  --page-g-border-color: #2E7A4E;
  --page-g-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

/* Hero Section */
.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  background-color: var(--page-g-bg-color);
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-g__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin-top: 30px;
  color: var(--page-g-text-main);
}

.page-g__main-title {
  color: var(--page-g-text-main);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-g__hero-description {
  color: var(--page-g-text-secondary);
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* General Section Styling */
.page-g__section {
  padding: 60px 0;
  background-color: var(--page-g-bg-color);
  color: var(--page-g-text-main);
}

.page-g__section.page-g__dark-section {
  background-color: var(--page-g-card-bg);
}

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

.page-g__section-title {
  text-align: center;
  color: var(--page-g-text-main);
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-g__content-area {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05em;
}

.page-g__content-area p {
  margin-bottom: 1em;
  color: var(--page-g-text-main);
}

.page-g__sub-title {
  color: var(--page-g-secondary-color);
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-g__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--page-g-text-main);
}

.page-g__list-item {
  margin-bottom: 10px;
  color: var(--page-g-text-main);
}

.page-g__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px;
  object-fit: cover;
}

.page-g__image--centered {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-g__btn-primary {
  background: var(--page-g-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-g__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background-color: transparent;
  color: var(--page-g-primary-color);
  border: 2px solid var(--page-g-primary-color);
}

.page-g__btn-secondary:hover {
  background-color: var(--page-g-primary-color);
  color: #ffffff;
}

/* FAQ Section */
.page-g__faq-section {
  background-color: var(--page-g-card-bg);
  color: var(--page-g-text-main);
}

.page-g__faq-list {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-g__faq-item {
  background-color: var(--page-g-bg-color);
  border: 1px solid var(--page-g-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--page-g-text-main);
  font-weight: bold;
  font-size: 1.1em;
  user-select: none;
  list-style: none;
}

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

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

.page-g__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-g-secondary-color);
}

.page-g__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--page-g-text-secondary);
  font-size: 1em;
}

.page-g__faq-item[open] .page-g__faq-question .page-g__faq-toggle {
  content: '−';
}

/* CTA Section */
.page-g__cta-section {
  text-align: center;
  background-color: var(--page-g-bg-color);
}

.page-g__cta-section .page-g__btn-primary {
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-g__main-title {
    font-size: 2.8em;
  }

  .page-g__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-g__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-g__hero-content {
    margin-top: 20px;
  }

  .page-g__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-g__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-g__section {
    padding: 40px 0;
  }

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

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

  .page-g__sub-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-g__content-area {
    font-size: 0.95em;
  }

  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-bottom: 10px; /* Add margin between stacked buttons */
  }

  .page-g__hero-content .page-g__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .page-g__cta-section .page-g__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .page-g__content-area a.page-g__btn-secondary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

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

  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__hero-section,
  .page-g__hero-image-wrapper,
  .page-g__hero-content,
  .page-g__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-g__hero-section,
  .page-g__intro-section,
  .page-g__why-choose-section,
  .page-g__guide-section,
  .page-g__betting-types-section,
  .page-g__tips-section,
  .page-g__responsible-gambling-section,
  .page-g__faq-section,
  .page-g__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-g__main-title {
    font-size: 1.8em;
  }

  .page-g__section-title {
    font-size: 1.5em;
  }

  .page-g__sub-title {
    font-size: 1.3em;
  }
}