/* style/g.css */

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

.page-g__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added padding for responsiveness */
  box-sizing: border-box;
}

.page-g__section {
  padding: 60px 0;
  text-align: center;
}

.page-g__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-g__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Text Secondary */
}

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

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

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

.page-g__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
}

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

.page-g__intro-text {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 40px;
  color: #F2FFF6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-g__btn-primary,
.page-g__btn-secondary,
.page-g__btn-inline {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-g__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background: transparent;
  color: #11A84E;
  border: 2px solid #11A84E;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-g__btn-secondary:hover {
  background: #11A84E;
  color: #F2FFF6;
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
  transform: translateY(-2px);
}

.page-g__btn-inline {
  background: #11A84E;
  color: #F2FFF6;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  margin-top: 10px;
}

.page-g__btn-inline:hover {
  background: #22C768;
}

.page-g__btn-large {
  padding: 18px 40px;
  font-size: 20px;
  min-width: 250px;
}

/* About Cockfighting Section */
.page-g__about-cockfighting {
  background-color: #0A4B2C; /* Deep Green */
}

.page-g__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us Section */
.page-g__why-choose-us {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
}

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

.page-g__feature-card {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-g__card-title {
  font-size: 24px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-g__image-card {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

/* How To Play Section */
.page-g__how-to-play {
  background-color: #08160F; /* Background */
}

.page-g__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-g__list-item {
  position: relative;
  text-align: left;
  padding-left: 60px;
  margin-bottom: 40px;
}

.page-g__list-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #11A84E;
  color: #F2FFF6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

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

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

/* Video Section */
.page-g__video-section {
  background-color: #11271B; /* Card BG */
  padding-top: 60px; /* Adjusted to fit overall section padding, small top padding for section itself */
  padding-bottom: 60px;
}

.page-g__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 30px auto;
  max-width: 900px;
  width: 100%; /* Ensure it takes full width of its container */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-g__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

/* Popular Types Section */
.page-g__popular-types {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-g__type-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

/* Betting Tips Section */
.page-g__betting-tips {
  background-color: #08160F; /* Background */
}

.page-g__tip-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-g__tip-list .page-g__list-item {
  padding-left: 0;
  text-align: left;
}

.page-g__tip-list .page-g__list-item::before {
  content: "✓";
  background-color: #F2C14E; /* Gold */
  color: #08160F;
  font-size: 20px;
  width: 30px;
  height: 30px;
  top: 5px;
  left: -40px; /* Adjust as needed for alignment */
}

/* Responsible Gambling Section */
.page-g__responsible-gambling {
  background-color: #11271B; /* Card BG */
}

/* FAQ Section */
.page-g__faq {
  background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
  list-style: none; /* For <details> summary */
}

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

.page-g__faq-question:hover {
  background-color: #1E3A2A; /* Divider */
}

.page-g__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

.page-g__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-g__cta-final {
  background-color: #08160F; /* Background */
  padding: 80px 0;
}

.page-g__cta-content {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-g__section {
    padding: 40px 0;
  }

  .page-g__section-title {
    font-size: clamp(24px, 4vw, 40px);
  }

  .page-g__intro-text {
    font-size: clamp(16px, 2.5vw, 20px);
  }

  .page-g__main-title {
    font-size: clamp(28px, 5vw, 56px);
  }
}

@media (max-width: 768px) {
  .page-g__container {
    padding: 0 15px !important;
  }

  .page-g__section {
    padding: 30px 0 !important;
  }

  .page-g__hero-section {
    min-height: 450px;
    padding-bottom: 40px;
  }

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

  .page-g__intro-text {
    font-size: 16px !important;
  }

  .page-g__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
  }

  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g__btn-inline,
  .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__features-grid,
  .page-g__type-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-g__feature-card,
  .page-g__type-card {
    padding: 20px;
  }

  .page-g__list-item {
    padding-left: 50px;
  }

  .page-g__list-item::before {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .page-g__video-wrapper {
    margin: 20px auto;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-g__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-g__image-content {
    margin: 20px auto;
  }

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

  .page-g__faq-toggle {
    font-size: 20px;
  }

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

  .page-g__cta-final {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .page-g__main-title {
    font-size: 28px !important;
  }

  .page-g__section-title {
    font-size: 24px !important;
  }

  .page-g__btn-large {
    padding: 15px 25px;
    font-size: 18px;
  }
}