/* style/cockfighting.css */

/* Base styles for the page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-cockfighting__inline-link {
  color: #FFFF00; /* Yellow for links */
  text-decoration: underline;
}

.page-cockfighting__inline-link:hover {
  color: #FFFFFF;
}

/* Color contrast specific classes */
.page-cockfighting__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-cockfighting__dark-bg {
  color: #ffffff; /* Deep dark background, text must be light */
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333; /* Light background, text must be dark */
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

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

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom Red */
  color: #FFFF00; /* Custom Yellow */
  border: 2px solid #C30808;
}

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

.page-cockfighting__btn-secondary {
  background-color: #FFFFFF; /* White */
  color: #C30808; /* Custom Red */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #a00606;
  border-color: #a00606;
}

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

/* Image styles */
.page-cockfighting__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-cockfighting__image-full {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element for max-width */
  margin: 0 auto;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
  padding: 60px 20px;
}

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

.page-cockfighting__bet-type-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__bet-type-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__card-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Benefits Section */
.page-cockfighting__benefits-section {
  padding: 60px 20px;
}

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

.page-cockfighting__benefit-card {
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-cockfighting__benefit-card:hover {
  transform: translateY(-10px);
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 60px 20px;
}

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

.page-cockfighting__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-cockfighting__guide-step-title {
  font-size: 1.6em;
  color: #FFFF00;
  font-weight: bold;
}

.page-cockfighting__guide-step-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 60px 20px;
}

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

.page-cockfighting__tips-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__tips-title {
  font-size: 1.6em;
  color: #017439;
  font-weight: bold;
  margin-bottom: 10px;
}

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

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 20px;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

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

.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: #FFFFFF;
  margin: 0;
  font-weight: bold;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  color: #FFFF00;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

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

.page-cockfighting__cta-title {
  font-size: 2.8em;
  color: #017439; /* Dark text for light background */
  margin-bottom: 20px;
}

.page-cockfighting__cta-description {
  font-size: 1.2em;
  color: #333333; /* Dark text for light background */
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__cta-title {
    font-size: 2.2em;
  }
}

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

  .page-cockfighting__hero-section {
    height: auto;
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    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;
  }
  
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-cockfighting__content-area,
  .page-cockfighting__dark-section,
  .page-cockfighting__light-bg,
  .page-cockfighting__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__card-title {
    font-size: 1.5em;
  }
  .page-cockfighting__guide-step-title,
  .page-cockfighting__tips-title {
    font-size: 1.4em;
  }
  .page-cockfighting__faq-title {
    font-size: 1.1em;
  }
  .page-cockfighting__cta-title {
    font-size: 1.8em;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__image-wrapper,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  /* Video section specific padding for mobile */
  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-description {
    font-size: 0.9em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__cta-title {
    font-size: 1.6em;
  }
  .page-cockfighting__bet-type-grid,
  .page-cockfighting__benefits-grid {
    grid-template-columns: 1fr;
  }
}