/* style/g.css */

:root {
  --page-g-primary-color: #113B7A;
  --page-g-secondary-color: #1D5FD1;
  --page-g-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --page-g-card-bg: #10233F;
  --page-g-text-main: #F3F8FF;
  --page-g-text-secondary: #AFC4E8;
  --page-g-border-color: #244D84;
  --page-g-glow-color: #4FA8FF;
  --page-g-gold-color: #F2C14E;
  --page-g-divider-color: #1B3357;
  --page-g-deep-navy: #08162B;
}

.page-g {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f8f8; /* A light background for the page content */
}

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

/* --- HERO Section --- */
.page-g__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  padding-bottom: 40px;
  overflow: hidden;
  color: var(--page-g-text-main);
  background-color: var(--page-g-deep-navy); /* Use a dark background for contrast */
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-g__hero-content {
  position: relative;
  z-index: 1;
  padding-top: 20px;
}

.page-g__main-title {
  font-weight: bold;
  line-height: 1.2;
  color: var(--page-g-gold-color);
  margin-bottom: 15px;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-g__hero-description {
  font-size: 1.1em;
  color: var(--page-g-text-secondary);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* --- General Sections --- */
.page-g__about-section, .page-g__live-matches-section, .page-g__promotions-section, .page-g__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for default text */
  color: #333333;
}

.page-g__features-section, .page-g__betting-types-section, .page-g__guide-section, .page-g__final-cta-section {
  padding: 60px 0;
  background-color: var(--page-g-primary-color); /* Dark background for sections */
  color: var(--page-g-text-main);
}

.page-g__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-g-gold-color); /* Gold for titles on dark background */
}
.page-g__about-section .page-g__section-title, 
.page-g__live-matches-section .page-g__section-title, 
.page-g__promotions-section .page-g__section-title, 
.page-g__faq-section .page-g__section-title {
  color: var(--page-g-primary-color); /* Primary color for titles on light background */
}

.page-g__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

/* --- Buttons --- */
.page-g__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-g__cta-buttons--center {
  text-align: center;
}

.page-g__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-g__btn-primary {
  background: var(--page-g-button-gradient);
  color: var(--page-g-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-g__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-g__btn-secondary {
  background: #ffffff;
  color: var(--page-g-primary-color);
  border: 2px solid var(--page-g-primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* --- Features Grid --- */
.page-g__features-grid, .page-g__betting-types-grid, .page-g__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-g__feature-item, .page-g__betting-item, .page-g__guide-step-item {
  background-color: var(--page-g-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: var(--page-g-text-main);
  border: 1px solid var(--page-g-border-color);
}

.page-g__feature-title, .page-g__betting-title, .page-g__guide-step-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-g-gold-color);
}

.page-g__feature-description, .page-g__betting-description, .page-g__guide-step-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-g-text-secondary);
}

/* --- Images within content --- */
.page-g__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-g__image-margin-top {
  margin-top: 40px;
}

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

.page-g__faq-item {
  background-color: #fcfcfc;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-g-primary-color);
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-question {
  background-color: #f0f5ff;
}

.page-g__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-g-secondary-color);
}

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

.page-g__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #555555;
  background-color: #fcfcfc;
}

.page-g__faq-item summary {
  list-style: none;
}

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

/* --- Copyright Section --- */
.page-g__copyright-section {
  padding: 20px 0;
  text-align: center;
  background-color: #ffffff;
  color: #666666;
  border-top: 1px solid #eeeeee;
  font-size: 0.9em;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-g__container {
    padding: 15px;
  }

  .page-g__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-g__section-title {
    font-size: 2em;
  }

  .page-g__features-grid, .page-g__betting-types-grid, .page-g__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-g__feature-item, .page-g__betting-item, .page-g__guide-step-item {
    padding: 25px;
  }

  .page-g__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-g__hero-image-wrapper {
    max-height: 450px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-g {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section Mobile */
  .page-g__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-g__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em) !important;
    margin-bottom: 10px;
  }

  .page-g__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-g__hero-image-wrapper {
    max-height: 300px;
  }

  /* General Sections Mobile */
  .page-g__about-section, .page-g__live-matches-section, .page-g__promotions-section, .page-g__faq-section,
  .page-g__features-section, .page-g__betting-types-section, .page-g__guide-section, .page-g__final-cta-section {
    padding: 40px 0;
  }

  .page-g__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
  }

  .page-g__text-block {
    font-size: 0.95em;
    text-align: left;
  }

  /* Features/Betting/Guide Grids Mobile */
  .page-g__features-grid, .page-g__betting-types-grid, .page-g__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-g__feature-item, .page-g__betting-item, .page-g__guide-step-item {
    padding: 20px;
  }

  .page-g__feature-title, .page-g__betting-title, .page-g__guide-step-title {
    font-size: 1.4em;
  }

  /* Universal Images Mobile */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-g__hero-image,
  .page-g__image-full-width {
    border-radius: 8px !important;
    margin: 20px auto !important;
  }

  /* Buttons Mobile */
  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .page-g__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
  }

  /* FAQ Section Mobile */
  .page-g__faq-item {
    margin-bottom: 10px;
    border-radius: 6px;
  }

  .page-g__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-g__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  /* Container for general content to prevent overflow */
  .page-g__container,
  .page-g__about-section,
  .page-g__features-section,
  .page-g__live-matches-section,
  .page-g__betting-types-section,
  .page-g__promotions-section,
  .page-g__guide-section,
  .page-g__faq-section,
  .page-g__final-cta-section,
  .page-g__copyright-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}