/* style/cockfighting.css */

/* --- Base Styles & Layout --- */
.page-cockfighting {
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  background-color: transparent; /* Main content background is transparent to show body background */
}

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

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

.page-cockfighting__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* H1 font size constraint applied to H2 for consistency */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background-color: #017439; /* Fallback background color */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure minimum size */
}

.page-cockfighting__hero-content {
  position: relative; /* Ensure content is above any background elements */
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.2em); /* H1 font size constraint */
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__intro-text {
  font-size: 1.3em;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to width */
  white-space: normal;
  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: #e02020;
  border-color: #e02020;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

/* --- Features Grid (Why Choose) --- */
.page-cockfighting__why-choose {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-cockfighting__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit for aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-cockfighting__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1; /* Make text fill available space */
}

/* --- How to Bet Section --- */
.page-cockfighting__how-to-bet {
  background-color: transparent;
}

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

.page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__step-number {
  width: 50px;
  height: 50px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-cockfighting__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

/* --- Video Section --- */
.page-cockfighting__video-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%; /* Ensure width is 100% on desktop */
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
}

.page-cockfighting__video-link {
    display: block; /* Make the anchor block-level to wrap the video */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Ensure link is clickable */
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  max-width: 100%;
  min-width: 200px;
  min-height: 200px;
}

/* --- Popular Types Section --- */
.page-cockfighting__popular-types {
  background-color: transparent;
}

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

.page-cockfighting__type-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__type-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit for aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
}

.page-cockfighting__type-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-cockfighting__type-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

/* --- Betting Tips Section --- */
.page-cockfighting__betting-tips {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-cockfighting__tip-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__tip-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-cockfighting__tip-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

/* --- FAQ Section --- */
.page-cockfighting__faq {
  background-color: transparent;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: "−";
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* --- Conclusion Section --- */
.page-cockfighting__conclusion {
  background-color: #017439; /* Use primary brand color for conclusion for strong emphasis */
  padding-bottom: 80px;
}

.page-cockfighting__conclusion .page-cockfighting__section-title {
    color: #ffffff;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-cockfighting__main-title {
    font-size: 2.2em; /* Adjusted for mobile H1 constraint */
  }

  .page-cockfighting__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

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