/* style/g.css */

/* Body background from shared.css is #08160F (dark), so text color should be light */
.page-g {
  color: #F2FFF6; /* Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #08160F; /* Background */
}

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

.page-g__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

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

.page-g__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: #57E38D; /* Glow */
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-g__text-block {
  font-size: 17px;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, main offset from body in shared.css */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-g__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual flow */
  padding: 0 20px;
}

.page-g__main-title {
  font-size: clamp(36px, 5vw, 60px);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-g__description {
  font-size: clamp(18px, 2vw, 22px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

.page-g__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-g__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* Content Sections */
.page-g__introduction-section, .page-g__safety-section, .page-g__conclusion-section {
  background-color: #08160F; /* Background */
}

.page-g__history-section {
  background-color: #11271B; /* Card BG */
}

.page-g__image-content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-g__image-content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-g__content-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-g__image-content-wrapper .page-g__text-block {
  width: 50%;
}

.page-g__list {
  list-style: none;
  padding: 0;
  margin-left: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-g__list-item {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-g__list-item::before {
  content: '✓';
  color: #2AD16F; /* Button top color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-g__list-ordered {
  list-style: decimal;
  padding-left: 25px;
  color: #F2FFF6; /* Text Main */
}

.page-g__list-ordered .page-g__list-item {
  padding-left: 0;
}

.page-g__list-ordered .page-g__list-item::before {
  content: none;
}

/* Game Types Section */
.page-g__game-types-section {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-g__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #1E3A2A; /* Divider */
}

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

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

.page-g__card-title {
  font-size: 22px;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-g__card-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* Why Choose Section */
.page-g__why-choose-section {
  background-color: #08160F; /* Background */
}

.page-g__feature-grid .page-g__feature-card {
  text-align: left;
  padding: 20px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-g__feature-grid .page-g__card-title {
  color: #57E38D; /* Glow */
}

.page-g__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

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

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

/* FAQ Section */
.page-g__faq-section {
  background-color: #11271B; /* Card BG */
}

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

.page-g__faq-item {
  background-color: #08160F; /* Background */
  border: 1px solid #1E3A2A; /* Divider */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-g__faq-question:hover {
  background-color: #13994A; /* Darker green from button gradient */
}

.page-g__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-g__faq-question::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-g__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #F2C14E; /* Gold */
  transition: transform 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-toggle {
  transform: rotate(45deg);
}

.page-g__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  background-color: #08160F; /* Background */
  border-top: 1px solid #1E3A2A; /* Divider */
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-g__hero-content {
    margin-top: -100px;
  }
  .page-g__image-content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-g__content-image,
  .page-g__image-content-wrapper .page-g__text-block {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-g__section {
    padding: 40px 0;
  }
  .page-g__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-g__sub-title {
    font-size: 20px;
  }
  .page-g__hero-content {
    margin-top: -80px;
  }
  .page-g__main-title {
    font-size: 32px;
  }
  .page-g__description {
    font-size: 16px;
  }
  .page-g__cta-button {
    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;
    margin-left: 0;
    margin-right: 0;
  }
  .page-g__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
  }
  .page-g__container {
    padding: 0 15px;
  }
  .page-g__card {
    padding: 20px;
  }
  .page-g__card-title {
    font-size: 20px;
  }
  .page-g__text-block, .page-g__list-item, .page-g__card-text, .page-g__faq-answer p {
    font-size: 15px;
  }
  /* Mobile image responsiveness */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-g__hero-image-wrapper,
  .page-g__content-image,
  .page-g__card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Button container mobile adapt */
  .page-g__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-g__grid-container {
    grid-template-columns: 1fr;
  }
  .page-g__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-g__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-g__hero-content {
    margin-top: -60px;
  }
  .page-g__main-title {
    font-size: 28px;
  }
  .page-g__description {
    font-size: 14px;
  }
}