/* style/cockfighting.css */

/* Base styles for the page */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: var(--background-color, #f0f2f5); /* Shared body background */
}

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

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

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

.page-cockfighting__section-title--white {
  color: #FFFFFF;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-cockfighting__text-block--white {
  color: #FFFFFF;
}

.page-cockfighting__inline-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-cockfighting__inline-link--white {
  color: #FFFF00; /* Yellow text for links on dark background */
}

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

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

.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: -1;
}

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

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

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

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

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

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom red for register/login */
  color: #FFFF00; /* Custom yellow for register/login text */
  border: 2px solid #C30808;
}

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

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom yellow for secondary text */
  border: 2px solid #FFFF00;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

/* Section specific styles */
.page-cockfighting__introduction .page-cockfighting__image-content,
.page-cockfighting__game-types .page-cockfighting__image-content,
.page-cockfighting__betting-tips .page-cockfighting__image-content,
.page-cockfighting__security .page-cockfighting__image-content,
.page-cockfighting__faq .page-cockfighting__image-content {
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__dark-section {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #FFFFFF;
}

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

.page-cockfighting__card {
  background-color: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__card--dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__card--dark .page-cockfighting__card-title {
  color: #FFFF00;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-cockfighting__card-description {
  font-size: 1em;
  line-height: 1.5;
}

.page-cockfighting__numbered-list,
.page-cockfighting__bullet-list {
  text-align: left;
  max-width: 900px;
  margin: 20px auto;
  list-style-position: inside;
  font-size: 1.1em;
  color: #333333;
}

.page-cockfighting__numbered-list li,
.page-cockfighting__bullet-list li {
  margin-bottom: 10px;
  padding-left: 10px;
}

.page-cockfighting__numbered-list--white li,
.page-cockfighting__bullet-list--white li {
  color: #FFFFFF;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.page-cockfighting__faq-question:hover {
  background-color: #f0f0f0;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

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

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

/* Copyright */
.page-cockfighting__copyright {
  background-color: #017439;
  color: #FFFFFF;
  padding: 20px 0;
  font-size: 0.9em;
  text-align: center;
}

/* Image styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Responsive Styles */
@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__advantage-grid,
  .page-cockfighting__game-type-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@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.2em;
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-cockfighting__text-block {
    font-size: 1em;
  }

  .page-cockfighting__advantage-grid,
  .page-cockfighting__game-type-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 1.3em;
  }

  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  /* Mobile image responsiveness */
  .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 {
    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 .page-cockfighting__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__cta-buttons,
  .page-cockfighting__hero-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
  }
}

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

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

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