/* style/g.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --card-bg-color: #FFFFFF;
  --background-color-page: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

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

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

.page-g__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  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: var(--primary-color);
  border-radius: 2px;
}

.page-g__section-title--white {
  color: #ffffff;
}

.page-g__section-title--white::after {
  background: #ffffff;
}

.page-g__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-g__text-block--white {
  color: #f0f0f0;
}

.page-g__center-button {
  display: block;
  margin: 30px auto 0 auto;
  width: fit-content;
}

/* HERO Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, main offset from body */
  background-color: var(--primary-color);
}

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

.page-g__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-g__main-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-g__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f8ff;
}

.page-g__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-g__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-g__intro-section {
  padding: 80px 0;
  background-color: var(--card-bg-color);
}

/* Advantages Section */
.page-g__advantages-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-g__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-g__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-g__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-g__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-g__card-text {
  font-size: 16px;
  color: var(--text-main-color);
  padding: 0 20px;
}

.page-g__card--dark-section {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-g__card--dark-section .page-g__card-title {
  color: #ffffff;
}

.page-g__card--dark-section .page-g__card-text {
  color: #f0f0f0;
}

/* Game Types Section */
.page-g__game-types-section {
  padding: 80px 0;
  background-color: var(--background-color-page);
}

.page-g__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* How to Play Section */
.page-g__how-to-play-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-g__step-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
}

.page-g__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  position: relative;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-g__step-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-g__step-item:last-child {
  margin-bottom: 0;
}

.page-g__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-g__step-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-g__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-g__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: #ffffff;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary-color);
}

.page-g__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-g__promotions-section {
  padding: 80px 0;
  background-color: var(--card-bg-color);
}

.page-g__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-g__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-g__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-g__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-g__promo-description {
  font-size: 16px;
  color: var(--text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-g__btn-link {
  display: inline-block;
  padding: 10px 25px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.page-g__btn-link:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-g__faq-section {
  padding: 80px 0;
  background-color: var(--background-color-page);
}

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

details.page-g__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-g__faq-item summary.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
details.page-g__faq-item summary.page-g__faq-question::-webkit-details-marker {
  display: none;
}
details.page-g__faq-item summary.page-g__faq-question:hover {
  background: #f8f8f8;
}
.page-g__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-g__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}
details[open] .page-g__faq-toggle {
  transform: rotate(45deg);
}
details.page-g__faq-item .page-g__faq-answer {
  padding: 0 25px 25px;
  background: #fcfdff;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
  color: var(--text-main-color);
}

.page-g__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* Call to Action Bottom Section */
.page-g__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  text-align: center;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-g__section-title {
    font-size: 32px;
  }
  .page-g__hero-description {
    font-size: 17px;
  }
  .page-g__grid-3-cols, .page-g__grid-2-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-g__card-title {
    font-size: 22px;
  }
  .page-g__promo-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-g__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-g__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .page-g__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-g__main-title {
    font-size: clamp(24px, 7vw, 40px);
    margin-bottom: 15px;
  }
  .page-g__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-g__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-g__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-g__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-g__text-block {
    font-size: 15px;
  }
  .page-g__grid-3-cols, .page-g__grid-2-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-g__card, .page-g__promo-card {
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .page-g__card-image {
    height: 180px;
  }
  .page-g__card-title {
    font-size: 20px;
  }
  .page-g__promo-image {
    height: 160px;
  }
  .page-g__promo-title {
    font-size: 18px;
  }
  .page-g__promo-description {
    font-size: 15px;
  }
  .page-g__btn-primary, .page-g__btn-secondary, .page-g__btn-link {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-g__faq-section, .page-g__intro-section, .page-g__advantages-section, .page-g__game-types-section, .page-g__how-to-play-section, .page-g__promotions-section, .page-g__cta-bottom-section {
    padding: 40px 0;
  }
  details.page-g__faq-item summary.page-g__faq-question {
    padding: 15px 15px;
  }
  .page-g__faq-qtext {
    font-size: 16px;
  }
  .page-g__faq-toggle {
    font-size: 24px;
    margin-left: 10px;
    width: 24px;
  }
  details.page-g__faq-item .page-g__faq-answer {
    padding: 0 15px 15px;
  }
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-g__section, .page-g__card, .page-g__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !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;
  }
}

@media (max-width: 480px) {
  .page-g__section-title {
    font-size: 24px;
  }
  .page-g__main-title {
    font-size: clamp(20px, 8vw, 36px);
  }
  .page-g__cta-button {
    font-size: 16px;
    padding: 10px 20px;
  }
  .page-g__card-title {
    font-size: 18px;
  }
  .page-g__promo-title {
    font-size: 16px;
  }
  .page-g__faq-qtext {
    font-size: 15px;
  }
}