/* style/g.css */

/* Base styles */
.page-g {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

.page-g__section-spacing {
  padding: 80px 0;
}

.page-g__dark-section {
  background-color: #11271B; /* Card B G */
  color: #F2FFF6;
}

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

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

.page-g__paragraph {
  font-size: 16px;
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-g__paragraph--center {
  text-align: center;
}

.page-g__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-g__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-g__list--ordered {
  list-style: decimal;
  padding-left: 20px;
}

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

/* Buttons */
.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-g__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2E7A4E; /* Border */
}

.page-g__btn-secondary:hover {
  background-color: #2E7A4E;
  color: #F2FFF6;
  transform: translateY(-2px);
}

.page-g__btn--small {
  padding: 8px 18px;
  font-size: 14px;
}

.page-g__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-g__cta-final {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Images */
.page-g img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-g__content-image {
  margin: 30px auto;
}

.page-g__feature-icon {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-g__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

.page-g__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(17, 39, 27, 0.7); /* Card B G with transparency */
  border-radius: 12px;
  margin-top: 100px; /* Space from top */
}

.page-g__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-g__hero-description {
  font-size: 18px;
  color: #A7D9B8;
  margin-bottom: 30px;
}

/* Image-Text Layout */
.page-g__image-text-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-g__image-text-layout .page-g__text-content {
  flex: 1;
}

/* Flex Content */
.page-g__flex-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-g__card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-g__card--dark {
  background-color: #0A4B2C; /* Deep Green */
  border-color: #1E3A2A; /* Divider */
}

.page-g__card-title {
  font-size: 22px;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: 700;
}

/* Betting Tip */
.page-g__betting-tip {
  margin-top: 60px;
  text-align: center;
}

/* Tournament Schedule */
.page-g__tournament-schedule {
  margin-top: 60px;
  text-align: center;
}

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

.page-g__feature-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #1E3A2A; /* Divider */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-g__feature-title {
  font-size: 20px;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-g__feature-description {
  font-size: 15px;
  color: #A7D9B8;
  flex-grow: 1;
}

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

.page-g__promo-card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-g__promo-title {
  font-size: 22px;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-g__promo-description {
  font-size: 16px;
  color: #A7D9B8;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Registration Guide */
.page-g__guide-list {
  list-style: none;
  padding-left: 0;
  margin-top: 40px;
}

.page-g__guide-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #1E3A2A; /* Divider */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-g__guide-title {
  font-size: 24px;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-g__guide-description {
  font-size: 16px;
  color: #A7D9B8;
}

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

.page-g__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #11271B;
  border-bottom: 1px solid #2E7A4E;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-g__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slightly lighter green on hover */
}

.page-g__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #2AD16F;
}

.page-g__faq-item[open] .page-g__faq-question {
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A;
}

.page-g__faq-item[open] .page-g__faq-toggle {
  color: #F2FFF6;
}

.page-g__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #A7D9B8;
  background-color: #0A4B2C;
}

/* Conclusion Section */
.page-g__conclusion-section {
  text-align: center;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-g__image-text-layout {
    flex-direction: row;
    align-items: center;
  }
  .page-g__image-text-layout .page-g__content-image {
    flex: 1;
    margin-right: 30px;
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .page-g__section-spacing {
    padding: 40px 0;
  }

  .page-g__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-g__sub-title {
    font-size: 20px;
  }

  .page-g__hero-content {
    padding: 20px;
    margin-top: 50px;
  }

  .page-g__main-title {
    font-size: 32px;
  }

  .page-g__hero-description {
    font-size: 16px;
  }

  .page-g__cta-buttons,
  .page-g__cta-final {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g a[class*="button"],
  .page-g a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-g__cta-buttons,
  .page-g__cta-final,
  .page-g__button-group,
  .page-g__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
  }

  .page-g__image-text-layout {
    flex-direction: column;
  }

  .page-g__flex-content {
    flex-direction: column;
  }

  .page-g__card {
    min-width: unset;
  }

  .page-g__features-grid,
  .page-g__promotions-grid {
    grid-template-columns: 1fr;
  }

  .page-g__guide-item {
    padding: 20px;
  }

  .page-g__guide-title {
    font-size: 20px;
  }

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

  .page-g__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Ensure all images are responsive on mobile */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images */
  .page-g__hero-image-wrapper,
  .page-g__container,
  .page-g__introduction-section,
  .page-g__rules-betting-section,
  .page-g__tournaments-section,
  .page-g__features-section,
  .page-g__promotions-section,
  .page-g__registration-guide-section,
  .page-g__faq-section,
  .page-g__conclusion-section,
  .page-g__image-text-layout,
  .page-g__flex-content,
  .page-g__betting-tip,
  .page-g__tournament-schedule,
  .page-g__features-grid,
  .page-g__feature-item,
  .page-g__promotions-grid,
  .page-g__promo-card,
  .page-g__guide-list,
  .page-g__guide-item,
  .page-g__faq-list,
  .page-g__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-g__hero-section {
    padding-top: 10px !important;
  }

  .page-g__hero-image {
    border-radius: 0 !important;
  }
}