/* style/cockfighting.css */

/* --- Base Styles --- */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set body background as light */
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Primary color for titles */
}

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

.page-cockfighting__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__section-description--white {
  color: #f0f0f0;
}

.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__content-image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust as needed */
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  background: linear-gradient(135deg, #017439, #FFFFFF); /* Blended background */
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background-color: #FFFFFF; /* Explicitly light background */
}

.page-cockfighting__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #017439; /* Primary color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 20px;
  color: #333333;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-cockfighting__btn-register,
.page-cockfighting__btn-login {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting__btn-register {
  background: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-register:hover {
  background: #e00b0b;
  border-color: #e00b0b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-login {
  background: #C30808; /* Custom Login color */
  color: #FFFF00; /* Custom Login font color */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-login:hover {
  background: #e00b0b;
  border-color: #e00b0b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Introduction Section --- */
.page-cockfighting__introduction-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-cockfighting__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-cockfighting__image-text-block img {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__image-text-block p {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
}

/* --- Betting Types Section --- */
.page-cockfighting__betting-types-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF;
}

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

.page-cockfighting__betting-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-cockfighting__betting-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFFFF; /* White text on dark background */
}

.page-cockfighting__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* --- Guide Section --- */
.page-cockfighting__guide-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__step-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-cockfighting__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);;
}

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

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

.page-cockfighting__cta-buttons--center {
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 15px 35px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting__btn-primary:hover {
  background: #005a2d;
  border-color: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  background: #ffffff;
  color: #017439;
  text-decoration: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting__btn-secondary:hover {
  background: #f0f0f0;
  color: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Promotions Section --- */
.page-cockfighting__promotions-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF;
}

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

.page-cockfighting__promo-card {
  background-color: #FFFFFF; /* Light background for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent look */
  object-fit: cover;
  display: block;
}

.page-cockfighting__promo-card .page-cockfighting__card-title--dark {
  color: #017439; /* Primary color for card titles on light background */
  padding: 20px 25px 0;
  text-align: left;
}

.page-cockfighting__promo-card .page-cockfighting__card-text {
  color: #555555;
  padding: 10px 25px 20px;
  text-align: left;
  flex-grow: 1; /* Push button to bottom */
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary {
  margin: 0 25px 25px;
  width: calc(100% - 50px);
}

/* --- Security & Support Section --- */
.page-cockfighting__security-support-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-cockfighting__feature-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);;
}

.page-cockfighting__feature-icon {
  width: 200px; /* Min size 200x200 */
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-cockfighting__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #017439;
  transform: rotate(45deg); /* Changed from '-' to rotate '+' */
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Ensure it expands sufficiently */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 5px 5px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-cockfighting__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  /* Hero Section Mobile */
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    padding: 30px 20px;
    border-radius: 8px;
  }

  .page-cockfighting__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

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

  .page-cockfighting__btn-register,
  .page-cockfighting__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Introduction Section Mobile */
  .page-cockfighting__introduction-section {
    padding: 50px 0;
  }

  .page-cockfighting__image-text-block {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }

  .page-cockfighting__image-text-block img {
    max-width: 100%;
  }

  /* Betting Types Section Mobile */
  .page-cockfighting__betting-types-section {
    padding: 50px 0;
  }

  .page-cockfighting__betting-grid {
    gap: 20px;
    margin-top: 30px;
  }

  .page-cockfighting__betting-card {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 20px;
  }

  /* Guide Section Mobile */
  .page-cockfighting__guide-section {
    padding: 50px 0;
  }

  .page-cockfighting__guide-steps {
    gap: 20px;
    margin-top: 30px;
  }

  .page-cockfighting__step-item {
    padding: 25px;
  }

  .page-cockfighting__step-title {
    font-size: 20px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
    width: 100%;
  }
  
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Promotions Section Mobile */
  .page-cockfighting__promotions-section {
    padding: 50px 0;
  }

  .page-cockfighting__promo-grid {
    gap: 20px;
    margin-top: 30px;
  }

  .page-cockfighting__promo-image {
    height: 180px;
  }

  .page-cockfighting__promo-card .page-cockfighting__card-title--dark {
    font-size: 20px;
    padding: 15px 20px 0;
  }

  .page-cockfighting__promo-card .page-cockfighting__card-text {
    font-size: 15px;
    padding: 8px 20px 15px;
  }

  .page-cockfighting__promo-card .page-cockfighting__btn-primary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Security & Support Section Mobile */
  .page-cockfighting__security-support-section {
    padding: 50px 0;
  }

  .page-cockfighting__feature-grid {
    gap: 20px;
    margin-top: 30px;
  }

  .page-cockfighting__feature-item {
    padding: 25px;
  }

  .page-cockfighting__feature-title {
    font-size: 20px;
  }

  /* FAQ Section Mobile */
  .page-cockfighting__faq-section {
    padding: 50px 0;
  }

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

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

  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }

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

  /* General image and container rules for mobile */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-container,
  .page-cockfighting__betting-card,
  .page-cockfighting__step-item,
  .page-cockfighting__promo-card,
  .page-cockfighting__feature-item,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Adding horizontal padding to all main content containers */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Override specific elements that already have padding in desktop */
  .page-cockfighting__hero-content,
  .page-cockfighting__betting-card,
  .page-cockfighting__step-item,
  .page-cockfighting__feature-item {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .page-cockfighting__promo-card .page-cockfighting__card-title--dark,
  .page-cockfighting__promo-card .page-cockfighting__card-text {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .page-cockfighting__promo-card .page-cockfighting__btn-primary {
    margin-left: 20px !important;
    margin-right: 20px !important;
    width: calc(100% - 40px) !important;
  }

  .page-cockfighting__hero-buttons,
  .page-cockfighting__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color contrast fixes */
.page-cockfighting__dark-bg {
  background: #017439;
  color: #ffffff;
}
.page-cockfighting__dark-bg h2, .page-cockfighting__dark-bg h3 {
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background: #ffffff;
  color: #333333;
}
.page-cockfighting__light-bg h2, .page-cockfighting__light-bg h3 {
  color: #017439;
}