/* style/g.css */

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

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

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

.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__main-title {
  font-size: clamp(32px, 5vw, 54px);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-g__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-g__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-g__text-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
}

.page-g__text-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding-top: 10px; /* Small 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: -1;
}

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

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

/* CTA Button */
.page-g__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-g__cta-button--centered {
  display: block;
  margin: 40px auto 0 auto;
}

.page-g__cta-button--small {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 20px;
}

.page-g__cta-button--large {
  padding: 18px 35px;
  font-size: 20px;
  margin-top: 40px;
}

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

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

/* Card Styles */
.page-g__card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

.page-g__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.3);
}

.page-g__card-title {
  font-size: 22px;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
  font-weight: 700;
}

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

/* Image within content */
.page-g__image-wrapper {
  margin: 40px auto;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.page-g__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Step-by-step guide */
.page-g__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-g__step-title {
  font-size: 20px;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-g__step-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* List styles */
.page-g__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-g__list-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: #F2FFF6;
}

.page-g__list-title {
  font-size: 20px;
  color: #57E38D; /* Glow */
  margin-bottom: 10px;
  font-weight: 700;
}

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

/* 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;
  color: #F2FFF6;
}

.page-g__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  transition: background-color 0.3s ease;
}

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

.page-g__faq-item summary:hover {
  background-color: rgba(34, 199, 104, 0.1);
}

.page-g__faq-qtext {
  color: #F2FFF6; /* Text Main */
}

.page-g__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-toggle {
  transform: rotate(45deg);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-g__grid-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-g__step-by-step {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-g__hero-section {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-g {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-g__section {
    padding: 40px 0;
  }
  .page-g__container {
    padding: 0 15px;
  }
  .page-g__main-title {
    font-size: clamp(28px, 6vw, 42px);
  }
  .page-g__hero-description {
    font-size: clamp(15px, 2.5vw, 18px);
  }
  .page-g__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }
  .page-g__text-block, .page-g__card-text, .page-g__step-text, .page-g__list-text, .page-g__faq-answer p {
    font-size: 15px;
  }
  .page-g__card-title, .page-g__step-title, .page-g__list-title {
    font-size: 18px;
  }
  .page-g__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }
  .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-left: 15px;
    padding-right: 15px;
    font-size: 16px;
  }
  .page-g__cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-g__hero-section {
    min-height: 400px;
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-g__content-image, .page-g__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-g__image-wrapper,
  .page-g__card,
  .page-g__step-item,
  .page-g__list-item,
  .page-g__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-g__grid-container,
  .page-g__step-by-step {
    flex-wrap: wrap;
    gap: 20px;
    display: flex;
    flex-direction: column;
  }
  .page-g__step-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-g__section {
    padding: 30px 0;
  }
  .page-g__cta-button {
    font-size: 15px;
    padding: 12px 20px;
  }
  .page-g__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-g__hero-description {
    font-size: clamp(14px, 3vw, 16px);
  }
}