/* style/cockfighting.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --dark-text: #333333;
  --light-text: #ffffff;
  --background-color: #FFFFFF;
  --dark-bg: #0d0d0d; /* Assuming shared.css defines --dark-bg as a dark color */
}

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

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a7fb8 100%); /* Adjusted gradient for better contrast */
  color: var(--light-text);
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

.page-cockfighting__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--light-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light-text);
}

.page-cockfighting__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background-color: var(--login-color); /* Use login color for primary CTA */
  color: var(--light-text);
  border: 2px solid var(--login-color);
}

.page-cockfighting__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

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

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

.page-cockfighting__hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
}

.page-cockfighting__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.page-cockfighting__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

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

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

.page-cockfighting__section-title {
  font-size: 2.8em;
  margin-bottom: 30px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

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

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

.page-cockfighting__intro-section {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.page-cockfighting__intro-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__image--content {
  width: 800px; /* Example width for content image */
  height: 600px; /* Example height for content image */
  object-fit: cover;
}

.page-cockfighting__guide-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background */
  color: var(--light-text);
}

.page-cockfighting__guide-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

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

.page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__step-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__step-description {
  font-size: 1em;
  color: var(--light-text);
  margin-bottom: 20px;
}

.page-cockfighting__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  align-self: flex-start;
}

.page-cockfighting__bet-types-section {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.page-cockfighting__bet-types-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__bet-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__bet-item-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__bet-item-description {
  font-size: 1em;
  color: var(--light-text);
}

.page-cockfighting__advantages-section {
  background: linear-gradient(135deg, #1a7fb8 0%, var(--primary-color) 100%); /* Adjusted gradient for better contrast */
  color: var(--light-text);
}

.page-cockfighting__advantages-section .page-cockfighting__section-title {
  color: var(--light-text);
}

.page-cockfighting__advantages-section .page-cockfighting__section-title::after {
  background-color: var(--light-text);
}

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

.page-cockfighting__advantage-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-cockfighting__advantage-card:hover {
  transform: translateY(-5px);
}

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

.page-cockfighting__advantage-title {
  font-size: 1.8em;
  color: var(--light-text);
  margin-bottom: 15px;
}

.page-cockfighting__advantage-description {
  font-size: 1em;
  color: var(--light-text);
}

.page-cockfighting__faq-section {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-title {
  font-size: 1.2em;
  color: var(--light-text);
  margin: 0;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  color: var(--primary-color);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
  color: var(--login-color);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--light-text);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: var(--light-text);
}

.page-cockfighting__cta-section {
  background: var(--primary-color);
  color: var(--light-text);
  padding: 80px 20px;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: var(--light-text);
}

.page-cockfighting__cta-section .page-cockfighting__section-title::after {
  background-color: var(--light-text);
}

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

.page-cockfighting__btn--large {
  padding: 18px 35px;
  font-size: 1.1em;
}

.page-cockfighting__link-text {
  color: var(--login-color);
  text-decoration: underline;
}

.page-cockfighting__link-text:hover {
  color: #d16b06;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }

  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }

  .page-cockfighting__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-cockfighting__hero-title {
    font-size: 2em;
  }

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

  .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-cockfighting__section-title {
    font-size: 1.8em;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__step-description,
  .page-cockfighting__bet-item-description,
  .page-cockfighting__advantage-description,
  .page-cockfighting__faq-answer p {
    font-size: 0.95em;
    text-align: left;
  }

  .page-cockfighting__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-video-wrapper,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 0 20px;
  }

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

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8em;
  }

  .page-cockfighting__section-title {
    font-size: 1.6em;
  }

  .page-cockfighting__step-title {
    font-size: 1.4em;
  }

  .page-cockfighting__advantage-title {
    font-size: 1.5em;
  }
}