/* style/cockfighting.css */

/* Base Styles for the Page Content */
.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 from shared.css */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #FFFFFF; /* White for main titles on dark sections */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0; /* Slightly off-white for body text */
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
  overflow: hidden; /* Ensure content doesn't spill */
}

.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 {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

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

.page-cockfighting__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

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

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

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

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

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 1px solid #017439;
}

.page-cockfighting__btn-small:hover {
  background-color: #015c2d;
  border-color: #015c2d;
}

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

/* Dark Section Styling */
.page-cockfighting__dark-section {
  background-color: #1a1a1a; /* Slightly lighter than body background for contrast */
  padding: 60px 0;
}

/* About Section */
.page-cockfighting__about-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
  padding: 60px 0;
  background-color: #222222;
}

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

.page-cockfighting__step-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-title {
  font-size: 1.5em;
  color: #017439; /* Brand primary color for step titles */
  margin-bottom: 15px;
}

.page-cockfighting__step-description {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

/* Betting Types Section */
.page-cockfighting__betting-types-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-cockfighting__option-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

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

.page-cockfighting__option-description {
  color: #f0f0f0;
}

/* Features Section */
.page-cockfighting__features-section {
  padding: 60px 0;
  background-color: #222222;
}

.page-cockfighting__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-cockfighting__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-heading {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__feature-description {
  color: #f0f0f0;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-cockfighting__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-cockfighting__promo-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__promo-description {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__cta-buttons--center {
  justify-content: center;
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 60px 0;
  background-color: #222222;
}

.page-cockfighting__tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-cockfighting__tip-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__tip-heading {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__tip-description {
  color: #f0f0f0;
}

/* Support Section */
.page-cockfighting__support-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-cockfighting__support-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-cockfighting__support-description {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__image-center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

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

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439; /* Brand primary color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1em; /* Adjust font size to be consistent with parent */
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px; /* Give it a fixed width to prevent layout shift */
  text-align: center;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px; /* Initial padding 0 */
  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; /* Sufficiently large to show content */
  padding: 20px; /* Padding when active */
}

.page-cockfighting__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

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

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