/* style/cockfighting.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #0a0a0a; /* Body background */
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --login-button-color: #EA7C07;
}

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

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--dark-bg-color);
  color: var(--text-on-dark);
  min-height: 600px; /* Ensure hero section has a minimum height */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.3; /* Slightly dim image for text readability */
}

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

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-on-dark);
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-on-dark);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

/* Sections General */
.page-cockfighting__intro-section,
.page-cockfighting__strategies-section,
.page-cockfighting__responsible-gaming-section,
.page-cockfighting__cta-final-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-on-light);
}

.page-cockfighting__game-types-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
  color: var(--text-on-dark);
}

.page-cockfighting__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-cockfighting__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-cockfighting__content-area p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-cockfighting__content-area ul {
  list-style: none;
  padding-left: 0;
}

.page-cockfighting__content-area ul li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-cockfighting__content-area ul li::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-cockfighting__feature-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

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

.page-cockfighting__card,
.page-cockfighting__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  color: var(--text-on-dark);
}

.page-cockfighting__card:hover,
.page-cockfighting__promo-card:hover {
  transform: translateY(-10px);
}

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

.page-cockfighting__card-title,
.page-cockfighting__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__card-text,
.page-cockfighting__promo-text {
  font-size: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.page-cockfighting__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-cockfighting__btn-small:hover {
  background-color: darken(var(--primary-color), 10%);
}

.page-cockfighting__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

/* Strategies Section */
.page-cockfighting__strategy-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__strategy-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-cockfighting__strategy-image {
  width: 40%;
  min-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-cockfighting__strategy-content {
  flex-grow: 1;
}

.page-cockfighting__strategy-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__strategy-text {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Responsible Gaming */
.page-cockfighting__responsibility-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-cockfighting__responsibility-list li {
  background-color: rgba(var(--primary-color), 0.1);
  padding: 20px;
  border-radius: 8px;
  position: relative;
  color: var(--text-on-light);
  padding-left: 45px;
}

.page-cockfighting__responsibility-list li::before {
  content: '⚠️';
  font-size: 1.5rem;
  left: 10px;
  top: 15px;
  color: var(--primary-color);
}

.page-cockfighting__responsibility-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-on-dark);
}

.page-cockfighting__faq-item summary {
  list-style: none;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

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

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
}

/* Final CTA */
.page-cockfighting__cta-final-section .page-cockfighting__section-title,
.page-cockfighting__cta-final-section .page-cockfighting__section-description {
  color: var(--text-on-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-cockfighting__hero-description {
    font-size: 1rem;
  }

  .page-cockfighting__strategy-item {
    flex-direction: column;
    align-items: center;
  }

  .page-cockfighting__strategy-item:nth-child(even) {
    flex-direction: column;
  }

  .page-cockfighting__strategy-image {
    width: 60%;
    min-width: 400px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body handles --header-offset, this is for decor */
    min-height: 450px;
  }

  .page-cockfighting__hero-content {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px;
    margin: 0 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__intro-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__responsible-gaming-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-cockfighting__section-description {
    font-size: 0.95rem;
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__card-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card,
  .page-cockfighting__promo-card {
    padding: 20px;
  }

  .page-cockfighting__card-image,
  .page-cockfighting__promo-image {
    height: 180px;
    margin-bottom: 15px;
  }

  .page-cockfighting__strategy-item {
    gap: 20px;
  }

  .page-cockfighting__strategy-image {
    width: 100% !important;
    min-width: unset;
    height: auto !important;
  }

  .page-cockfighting__strategy-title {
    font-size: 1.4rem;
  }

  .page-cockfighting__content-area p,
  .page-cockfighting__content-area ul li,
  .page-cockfighting__strategy-text,
  .page-cockfighting__faq-answer p {
    font-size: 0.95rem;
  }

  .page-cockfighting__responsibility-list {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  /* Ensure all images are responsive */
  .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-section,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right should be handled by specific containers, not globally */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-section {
    min-height: 350px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-cockfighting__cta-buttons {
    gap: 10px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .page-cockfighting__card-title,
  .page-cockfighting__promo-title {
    font-size: 1.2rem;
  }

  .page-cockfighting__faq-question {
    font-size: 0.9rem;
    padding: 12px 15px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 1.5rem;
  }

  .page-cockfighting__faq-answer {
    padding: 15px 15px;
  }
}