/* style/-g.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #222222;
  --border-color: #e0e0e0;
}

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

.page--g h1, .page--g h2, .page--g h3, .page--g h4 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page--g h1 {
  font-size: 3em;
  text-align: center;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page--g h2 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page--g h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  border-radius: 2px;
}

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

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

.page--g a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page--g a:hover {
  color: var(--primary-color);
}

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

/* 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: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 100%); /* Darker background for hero */
}

.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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page--g .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.page--g .hero-image img:hover {
  transform: scale(1.03);
}

.page--g .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page--g .hero-content h1 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 3.5em;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page--g .hero-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 20px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page--g .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
}

.page--g .cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

/* Section Styling */
.page--g section {
  padding: 60px 0;
}

.page--g section:nth-of-type(even) {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page--g section:nth-of-type(even) h2, .page--g section:nth-of-type(even) h3 {
  color: var(--primary-color);
}

.page--g section:nth-of-type(even) a {
  color: var(--primary-color);
}

.page--g section:nth-of-type(even) a:hover {
  color: #fff;
}

.page--g section:nth-of-type(even) .button-small, .page--g section:nth-of-type(even) .button-promo {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page--g section:nth-of-type(even) .button-small:hover, .page--g section:nth-of-type(even) .button-promo:hover {
  background: var(--text-light);
  color: var(--secondary-color);
}

/* Image Text Layout */
.page--g .image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page--g section:nth-of-type(even) .image-text-layout {
  background-color: #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page--g .image-text-layout img {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page--g .image-text-layout div {
  flex: 1;
}

.page--g .image-text-layout h3 {
  margin-top: 0;
}

/* Game List */
.page--g .game-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g .game-list li {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page--g .game-list li:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page--g section:nth-of-type(even) .game-list li {
  background-color: #333;
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page--g section:nth-of-type(even) .game-list li h3 {
  color: var(--primary-color);
}

.page--g .game-list li img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

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

.page--g .feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page--g section:nth-of-type(even) .feature-item {
  background-color: #333;
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page--g section:nth-of-type(even) .feature-item h3 {
  color: var(--primary-color);
}

.page--g .feature-item h3 {
  margin-top: 0;
  font-size: 1.4em;
}

.page--g .text-center {
  text-align: center;
  margin-top: 40px;
}

/* Guide List */
.page--g .guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page--g .guide-list li {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page--g section:nth-of-type(even) .guide-list li {
  background-color: #333;
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page--g section:nth-of-type(even) .guide-list li h3 {
  color: var(--primary-color);
}

.page--g .guide-list li h3 {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page--g .button-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page--g .button-small:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Tips List */
.page--g .tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g .tips-list li {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page--g section:nth-of-type(even) .tips-list li {
  background-color: #333;
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page--g section:nth-of-type(even) .tips-list li h4 {
  color: var(--primary-color);
}

.page--g .tips-list li img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page--g .tips-list li h4 {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

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

.page--g .promo-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page--g section:nth-of-type(even) .promo-item {
  background-color: #333;
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page--g section:nth-of-type(even) .promo-item h3 {
  color: var(--primary-color);
}

.page--g .promo-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page--g .promo-item h3 {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page--g .button-promo {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page--g .button-promo:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.page--g .promo-note {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  color: var(--text-dark);
}

.page--g section:nth-of-type(even) .promo-note {
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page--g .faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fdfdfd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--secondary-color);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.faq-answer p {
  margin: 0;
  padding: 15px 0;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page--g h1 {
    font-size: 2.8em;
  }
  .page--g h2 {
    font-size: 1.8em;
  }
  .page--g h3 {
    font-size: 1.4em;
  }
  .page--g .hero-content p {
    font-size: 1.1em;
  }
  .page--g .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page--g .image-text-layout {
    flex-direction: column;
    text-align: center;
  }
  .page--g .image-text-layout img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page--g h1 {
    font-size: 2.2em;
  }
  .page--g h2 {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page--g h2::after {
    bottom: -10px;
  }
  .page--g h3 {
    font-size: 1.2em;
  }
  .page--g .hero-content p {
    font-size: 1em;
  }
  .page--g .cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page--g .game-list, .page--g .feature-grid, .page--g .tips-list, .page--g .promo-grid {
    grid-template-columns: 1fr;
  }
  .page--g .image-text-layout {
    padding: 20px;
  }
  .page--g .game-list li, .page--g .feature-item, .page--g .guide-list li, .page--g .tips-list li, .page--g .promo-item {
    padding: 20px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page--g h1 {
    font-size: 1.8em;
  }
  .page--g h2 {
    font-size: 1.4em;
  }
  .page--g h3 {
    font-size: 1.1em;
  }
  .page--g .hero-content p {
    font-size: 0.95em;
  }
  .page--g .cta-button {
    padding: 8px 20px;
    font-size: 0.9em;
  }
  .page--g section {
    padding: 40px 0;
  }
  .page--g .container {
    padding: 15px;
  }
}