/* style/cockfighting.css */

/* Base Styles for the page-cockfighting scope */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: #FFFFFF; /* Default background for content sections */
}

/* Color Palette */
:root {
  --primary-color: #017439; /* Main brand green */
  --secondary-color: #FFFFFF; /* Main brand white */
  --register-btn-bg: #C30808; /* Custom red for register */
  --login-btn-bg: #C30808;    /* Custom red for login */
  --btn-text-color: #FFFF00;  /* Custom yellow for register/login button text */
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --border-light: #e0e0e0;
  --bg-light-grey: #f9f9f9;
}

/* Fixed Header Offset - applied to the hero section */
.page-cockfighting__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* 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 padding as needed */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background for visual appeal */
}

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

.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;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-cockfighting__hero-title {
  font-size: 3.2em;
  color: var(--text-light); /* White text for contrast on gradient */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  color: var(--text-light); /* White text for contrast on gradient */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-cockfighting__section {
  padding: 60px 20px;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll */
}

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

.page-cockfighting__container--center {
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-cockfighting__section-title--light {
  color: var(--text-light); /* For dark background sections */
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__text-block--light {
  color: var(--text-light); /* For dark background sections */
}

.page-cockfighting__highlight {
  font-weight: bold;
  color: var(--primary-color);
}

.page-cockfighting__dark-bg {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Buttons */
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid transparent;
}
.page-cockfighting__btn-primary:hover {
  background: #005a2e; /* Slightly darker green */
}

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

/* Custom button colors for Register/Login */
.page-cockfighting__btn-register,
.page-cockfighting__btn-login {
  background: var(--register-btn-bg); /* #C30808 */
  color: var(--btn-text-color); /* #FFFF00 */
}
.page-cockfighting__btn-register:hover,
.page-cockfighting__btn-login:hover {
  background: #a40707; /* Slightly darker red */
  color: var(--btn-text-color);
}

.page-cockfighting__btn-download {
  background: var(--primary-color); /* Using primary for download */
  color: var(--text-light);
}
.page-cockfighting__btn-download:hover {
  background: #005a2e;
}


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

/* Images within content sections */
.page-cockfighting__image-center {
  text-align: center;
  margin: 40px auto;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.page-cockfighting__image-center--small {
  max-width: 800px; /* Example for a smaller image container */
}
.page-cockfighting__image-center img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Features Grid */
.page-cockfighting__features-grid,
.page-cockfighting__strategy-grid,
.page-cockfighting__promotions-grid,
.page-cockfighting__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-item,
.page-cockfighting__strategy-item,
.page-cockfighting__promotion-card,
.page-cockfighting__support-item {
  background: var(--secondary-color); /* White background for items on dark section */
  color: var(--text-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-cockfighting__dark-bg .page-cockfighting__feature-item,
.page-cockfighting__dark-bg .page-cockfighting__promotion-card {
  background: rgba(255, 255, 255, 0.9); /* Slightly transparent white on dark background */
}


.page-cockfighting__feature-item:hover,
.page-cockfighting__strategy-item:hover,
.page-cockfighting__promotion-card:hover,
.page-cockfighting__support-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__feature-title,
.page-cockfighting__step-title,
.page-cockfighting__bet-type-title,
.page-cockfighting__strategy-title,
.page-cockfighting__promotion-title,
.page-cockfighting__support-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting__feature-description,
.page-cockfighting__promotion-description,
.page-cockfighting__support-description {
  font-size: 1em;
  color: var(--text-dark);
}

/* Guide Steps */
.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.page-cockfighting__guide-step {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.page-cockfighting__guide-step .page-cockfighting__btn-primary {
  margin-top: auto; /* Push button to bottom */
}


/* Bet Types List */
.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-cockfighting__bet-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.page-cockfighting__bet-item:hover {
  transform: translateY(-3px);
}
.page-cockfighting__bet-item p {
  color: var(--text-dark);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--secondary-color);
}

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-light-grey);
  border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border-radius: 5px; /* Adjust if item has border */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: var(--bg-light-grey);
}

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

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign effect */
  color: var(--register-btn-bg); /* Use a different color when active */
}

/* Conclusion CTA Section */
.page-cockfighting__section--cta {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 80px 20px;
}
.page-cockfighting__section--cta .page-cockfighting__section-title {
  color: var(--text-light);
}
.page-cockfighting__section--cta .page-cockfighting__cta-button {
  background: var(--register-btn-bg); /* Use red for final CTA */
  color: var(--btn-text-color);
}
.page-cockfighting__section--cta .page-cockfighting__cta-button:hover {
  background: #a40707;
}

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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