/* style/-g.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #001f4d;
  --border-color: #e0e0e0;
}

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

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

.page--g .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  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-color: var(--secondary-color);
  border-radius: 2px;
}

.page--g .sub-section-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page--g .section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page--g .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.page--g .cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
  color: var(--text-color-dark);
}

/* 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-color: var(--bg-dark);
}

.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;
}

.page--g .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page--g .hero-title {
  font-size: 3.5em;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page--g .hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

/* General Section Styling */
.page--g .introduction-section,
.page--g .game-types-section,
.page--g .how-to-play-section,
.page--g .rules-bets-section,
.page--g .advantages-section,
.page--g .promotions-section,
.page--g .security-support-section,
.page--g .faq-section,
.page--g .blog-news-section {
  padding: 80px 0;
}

.page--g .introduction-section, .page--g .rules-bets-section, .page--g .security-support-section {
  background-color: var(--bg-light);
}

/* Content Image Wrapper */
.page--g .content-image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page--g .content-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Game Cards */
.page--g .game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g .game-card {
  background-color: var(--text-color-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page--g .game-card .card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

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

.page--g .game-card .card-title a:hover {
  color: var(--secondary-color);
}

.page--g .game-card .card-text {
  padding: 0 20px 20px;
  color: var(--text-color-dark);
  flex-grow: 1;
}

/* How-To-Play Steps */
.page--g .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g .step-item {
  background-color: var(--text-color-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page--g .step-item:hover {
  transform: translateY(-5px);
}

.page--g .step-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page--g .step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page--g .step-text {
  color: var(--text-color-dark);
  margin-bottom: 20px;
}

.page--g .step-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* Rules and Bets Section */
.page--g .content-block {
  background-color: var(--text-color-light);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page--g .list-unstyled {
  list-style: none;
  padding-left: 0;
}

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

.page--g .list-unstyled li::before {
  content: '✔';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page--g .list-highlight {
  color: var(--primary-color);
}

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

.page--g .advantage-item {
  background-color: var(--text-color-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page--g .advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page--g .advantage-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page--g .advantage-text {
  color: var(--text-color-dark);
}

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

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

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

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

.page--g .promo-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

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

.page--g .promo-title a:hover {
  color: var(--secondary-color);
}

.page--g .promo-text {
  padding: 0 20px 20px;
  color: var(--text-color-dark);
}

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

.page--g .security-item {
  background-color: var(--text-color-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page--g .security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page--g .security-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page--g .security-text {
  color: var(--text-color-dark);
}

/* FAQ Section */
.page--g .faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page--g .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page--g .faq-question:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-color-dark);
}

.page--g .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
}

.page--g .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page--g .faq-question:hover .faq-toggle {
  color: var(--text-color-dark);
}

.page--g .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  color: var(--text-color-dark);
}

.page--g .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
}

.page--g .faq-item.active .faq-question {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-color-dark);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page--g .faq-item.active .faq-toggle {
  transform: rotate(45deg); /* Plus becomes an X */
  color: var(--text-color-dark);
}

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

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

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

.page--g .blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page--g .blog-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--primary-color);
  flex-grow: 1;
}

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

.page--g .blog-title a:hover {
  color: var(--secondary-color);
}

.page--g .blog-excerpt {
  padding: 0 20px;
  color: var(--text-color-dark);
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page--g .read-more-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page--g .read-more-link:hover {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page--g .section-title {
    font-size: 2em;
  }
  .page--g .hero-title {
    font-size: 2.8em;
  }
  .page--g .hero-description {
    font-size: 1.1em;
  }
  .page--g .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page--g .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page--g .section-title::after {
    width: 60px;
  }
  .page--g .hero-section {
    padding: 40px 15px;
  }
  .page--g .hero-title {
    font-size: 2.2em;
  }
  .page--g .hero-description {
    font-size: 1em;
  }
  .page--g .cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page--g .introduction-section, .page--g .game-types-section, .page--g .how-to-play-section, .page--g .rules-bets-section, .page--g .advantages-section, .page--g .promotions-section, .page--g .security-support-section, .page--g .faq-section, .page--g .blog-news-section {
    padding: 60px 0;
  }
  .page--g .game-cards, .page--g .steps-grid, .page--g .advantages-grid, .page--g .promo-grid, .page--g .security-items, .page--g .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page--g .game-card .card-image, .page--g .promo-image, .page--g .blog-image {
    height: 180px;
  }
  .page--g .faq-question {
    padding: 15px 20px;
  }
  .page--g .faq-question h3 {
    font-size: 1.1em;
  }
  .page--g .faq-answer {
    padding: 0 20px;
  }
  .page--g .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page--g .section-title {
    font-size: 1.5em;
  }
  .page--g .hero-title {
    font-size: 1.8em;
  }
  .page--g .hero-description {
    font-size: 0.9em;
  }
  .page--g .cta-button {
    padding: 8px 20px;
    font-size: 14px;
  }
  .page--g .game-card .card-title, .page--g .step-title, .page--g .advantage-title, .page--g .promo-title, .page--g .security-title, .page--g .blog-title {
    font-size: 1.2em;
  }
  .page--g .faq-question h3 {
    font-size: 1em;
  }
}