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

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

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

.page-g__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-g__section-title--light {
  color: var(--text-main);
}

.page-g__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-g__text-block a {
  color: var(--glow);
  text-decoration: none;
}

.page-g__text-block a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  min-height: 600px;
  overflow: hidden;
  text-align: center;
}

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

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

.page-g__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  color: var(--text-main);
}

.page-g__hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-g__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  color: var(--text-main);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-g__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-g__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background: transparent;
  color: var(--glow);
  border: 2px solid var(--glow);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-g__btn-secondary:hover {
  background: var(--glow);
  color: var(--bg-main);
  transform: translateY(-2px);
}

.page-g__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Card Styles */
.page-g__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

.page-g__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-g__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Dark Section */
.page-g__dark-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

/* Feature Grid */
.page-g__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-g__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-g__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.page-g__feature-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--text-secondary);
}

.page-g__feature-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--glow);
}

/* Game Types Grid */
.page-g__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* How To Play Steps */
.page-g__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-g__step-item .page-g__card-title {
  color: var(--gold);
}

.page-g__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Tips Grid */
.page-g__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* FAQ Section */
.page-g__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-g__faq-item {
  margin-bottom: 20px;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
}

.page-g__faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

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

.page-g__faq-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  flex-grow: 1;
}

.page-g__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow);
  margin-left: 15px;
}

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

.page-g__faq-answer {
  padding-top: 15px;
  border-top: 1px solid var(--divider);
  margin-top: 15px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Final CTA Section */
.page-g__cta-final-section .page-g__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--text-secondary);
}

.page-g__cta-final-section .page-g__cta-buttons {
  margin-top: 30px;
}

/* Variables from custom colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-main: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-g__hero-content {
    padding: 30px 15px;
  }
  .page-g__section-title {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-g {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-g__hero-section {
    min-height: 450px;
    padding-top: 10px !important;
  }
  .page-g__hero-title {
    font-size: clamp(30px, 8vw, 48px);
  }
  .page-g__hero-description {
    font-size: clamp(16px, 3vw, 20px);
  }
  .page-g__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-g__section-padding {
    padding: 40px 0;
  }
  .page-g__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 25px;
  }
  .page-g__text-block {
    font-size: 15px;
  }
  .page-g__card-title {
    font-size: 20px;
  }
  .page-g__feature-grid,
  .page-g__grid-2-cols,
  .page-g__step-by-step,
  .page-g__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-g__container {
    padding: 0 15px;
  }
  .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-content,
  .page-g__hero-cta-buttons,
  .page-g__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-g__hero-section,
  .page-g__introduction-section,
  .page-g__why-choose-section,
  .page-g__game-types-section,
  .page-g__how-to-play-section,
  .page-g__tips-section,
  .page-g__faq-section,
  .page-g__cta-final-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-g__faq-question {
    font-size: 16px;
  }
  .page-g__faq-toggle {
    font-size: 20px;
  }
  .page-g__faq-answer {
    font-size: 14px;
  }
  .page-g__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-g__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}