/* style/cockfighting.css */

:root {
  --page-cockfighting-primary-color: #11A84E;
  --page-cockfighting-secondary-color: #22C768;
  --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-cockfighting-card-bg: #11271B;
  --page-cockfighting-background: #08160F;
  --page-cockfighting-text-main: #F2FFF6;
  --page-cockfighting-text-secondary: #A7D9B8;
  --page-cockfighting-border-color: #2E7A4E;
  --page-cockfighting-glow-color: #57E38D;
  --page-cockfighting-gold-color: #F2C14E;
  --page-cockfighting-divider-color: #1E3A2A;
  --page-cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  background-color: var(--page-cockfighting-background);
  color: var(--page-cockfighting-text-main); /* Light text for dark background */
  line-height: 1.6;
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-cockfighting-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-cockfighting-gold-color);
  border-radius: 2px;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: var(--page-cockfighting-text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--page-cockfighting-primary-color);
  border: 2px solid var(--page-cockfighting-primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--page-cockfighting-primary-color);
  color: var(--page-cockfighting-text-main);
  transform: translateY(-2px);
}

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit height for aesthetic */
  border-radius: 10px;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background-color: rgba(17, 39, 27, 0.9); /* Card BG with opacity */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__main-title {
  font-weight: 800;
  color: var(--page-cockfighting-gold-color);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
  /* No fixed font-size, rely on responsive clamps or relative units */
  font-size: clamp(2em, 5vw, 3.5em);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 30px;
}

/* General Content Sections */
.page-cockfighting__intro-section,
.page-cockfighting__game-types-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-cockfighting__intro-section .page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__feature-card,
.page-cockfighting__promo-card {
  background-color: var(--page-cockfighting-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-cockfighting-border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--page-cockfighting-glow-color);
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--page-cockfighting-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__card-image,
.page-cockfighting__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-cockfighting__guide-item {
  background-color: var(--page-cockfighting-card-bg);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  border-left: 5px solid var(--page-cockfighting-primary-color);
}

.page-cockfighting__guide-step-title {
  font-size: 1.3em;
  color: var(--page-cockfighting-gold-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__guide-item p {
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__guide-item a {
  color: var(--page-cockfighting-primary-color);
  text-decoration: underline;
}

/* Promotions Section */
.page-cockfighting__promotions-section .page-cockfighting__btn-primary {
  margin-top: 40px;
}

/* Tips Section */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__tip-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--page-cockfighting-secondary-color);
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__tip-item strong {
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__tips-section .page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-cockfighting-divider-color);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(var(--page-cockfighting-primary-color), 0.1);
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  color: var(--page-cockfighting-primary-color);
  margin-left: 15px;
  line-height: 1;
}

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.7;
}

/* CTA Section */
.page-cockfighting__cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-cockfighting__cta-section .page-cockfighting__btn-primary {
  margin-top: 30px;
}

/* Floating Buttons */
.page-cockfighting__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-cockfighting__floating-btn {
  background: var(--page-cockfighting-button-gradient);
  color: var(--page-cockfighting-text-main);
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 0.95em;
  min-width: 100px;
  text-align: center;
}

.page-cockfighting__floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 10px var(--page-cockfighting-glow-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 0.95em;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 10px;
  }
  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-cockfighting__intro-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }
  .page-cockfighting__features-grid,
  .page-cockfighting__promos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__feature-card,
  .page-cockfighting__promo-card {
    padding: 20px;
  }
  .page-cockfighting__card-image,
  .page-cockfighting__promo-image {
    height: 200px; /* Adjust height for mobile */
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }
  .page-cockfighting__floating-buttons {
    bottom: 15px;
    right: 15px;
    flex-direction: row;
    gap: 8px;
  }
  .page-cockfighting__floating-btn {
    padding: 10px 15px;
    font-size: 0.9em;
    min-width: 80px;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__guide-item,
  .page-cockfighting__tip-item,
  .page-cockfighting__faq-item,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-cockfighting__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking for buttons */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__hero-content {
    margin-top: -40px;
  }
  .page-cockfighting__floating-buttons {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: var(--page-cockfighting-card-bg);
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  }
  .page-cockfighting__floating-btn {
    flex: 1;
    margin: 0 5px;
  }
}