/* style/cockfighting.css */

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

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-cockfighting-text-main); /* Default text color for dark background */
  background-color: var(--page-cockfighting-background); /* Body background from shared.css is dark */
}

.page-cockfighting__dark-section {
  background-color: var(--page-cockfighting-background);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  min-height: 500px;
}

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

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 1.1em;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-cockfighting__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--page-cockfighting-glow);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--page-cockfighting-primary);
  color: #ffffff;
}

.page-cockfighting__btn-text {
  background: none;
  border: none;
  color: var(--page-cockfighting-primary);
  padding: 0;
  text-decoration: underline;
}

.page-cockfighting__btn-text:hover {
  color: var(--page-cockfighting-secondary);
}

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

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

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--page-cockfighting-text-main);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__card-title {
  color: #333333;
}

.page-cockfighting__section-intro {
  font-size: 1.1em;
  color: var(--page-cockfighting-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-cockfighting__light-bg .page-cockfighting__section-intro,
.page-cockfighting__light-bg .page-cockfighting__card-description {
  color: #555555;
}

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

.page-cockfighting__card {
  background-color: var(--page-cockfighting-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__light-bg .page-cockfighting__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__feature-icon,
.page-cockfighting__game-image,
.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__feature-icon {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 10px;
}

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

.page-cockfighting__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
  background: var(--page-cockfighting-deep-green);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--page-cockfighting-gold);
}

.page-cockfighting__tip-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
}

.page-cockfighting__tip-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--page-cockfighting-primary);
}

.page-cockfighting__tip-item .page-cockfighting__card-title {
  color: #333333;
  margin-top: 0;
  font-size: 1.3em;
}

.page-cockfighting__tip-item .page-cockfighting__card-description {
  color: #555555;
}

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

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--page-cockfighting-deep-green);
  color: var(--page-cockfighting-text-main);
  border-bottom: 1px solid var(--page-cockfighting-border);
  list-style: none; /* For details/summary */
}

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

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

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

.page-cockfighting__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: var(--page-cockfighting-text-secondary);
  background-color: var(--page-cockfighting-card-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 500px; /* Adjust as needed */
  transition: max-height 0.4s ease-in;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid transparent;
}

/* Ensure light-bg content has dark text */
.page-cockfighting__light-bg p,
.page-cockfighting__light-bg li,
.page-cockfighting__light-bg a {
  color: #333333;
}

.page-cockfighting__light-bg .page-cockfighting__btn-secondary {
  color: var(--page-cockfighting-primary);
  border-color: var(--page-cockfighting-primary);
}

.page-cockfighting__light-bg .page-cockfighting__btn-secondary:hover {
  background-color: var(--page-cockfighting-primary);
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-cockfighting__hero-content {
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-cockfighting__description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-text {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__feature-grid,
  .page-cockfighting__game-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__feature-icon,
  .page-cockfighting__game-image,
  .page-cockfighting__promo-image {
    height: auto;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }
  .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__faq-section,
  .page-cockfighting__why-choose,
  .page-cockfighting__game-types,
  .page-cockfighting__guide,
  .page-cockfighting__promotions,
  .page-cockfighting__tips,
  .page-cockfighting__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-cockfighting__faq-answer {
    padding: 10px 20px;
  }
  .page-cockfighting__tip-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.3em, 7vw, 2em);
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
  }
  .page-cockfighting__description,
  .page-cockfighting__section-intro,
  .page-cockfighting__card-description {
    font-size: 0.9em;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 10px 20px;
  }
  .page-cockfighting__step-number {
    font-size: 2em;
    width: 50px;
    height: 50px;
  }
}