/* Base styles for the cockfighting page */
.page-cockfighting {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background: #FFFFFF; /* Explicitly setting for clarity, though shared.css defines body background */
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-cockfighting__section-description--center {
  text-align: center;
}

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

.page-cockfighting__cta-buttons--center {
  margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-promo,
.page-cockfighting__btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

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

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

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

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

.page-cockfighting__btn-promo {
  background: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 16px;
  min-width: unset;
}

.page-cockfighting__btn-promo:hover {
  background: #005a2e;
  border-color: #005a2e;
}

.page-cockfighting__btn-download {
  background: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  padding: 12px 24px;
  font-size: 16px;
  margin-top: 20px;
  min-width: unset;
}

.page-cockfighting__btn-download:hover {
  background: #005a2e;
  border-color: #005a2e;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Adjust height as needed */
  overflow: hidden;
  position: relative;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 40px auto 60px; /* Separated from image */
  padding: 0 15px;
  text-align: center;
  color: #333333;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for H1 font-size */
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
}

.page-cockfighting__list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
}

.page-cockfighting__list li {
  margin-bottom: 10px;
  color: #333333;
}

.page-cockfighting__list li strong {
  color: #017439;
}

.page-cockfighting__image-block {
  text-align: center;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

/* How to Play Section */
.page-cockfighting__dark-bg {
  background: #017439;
  color: #FFFFFF;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__section-description,
.page-cockfighting__dark-bg .page-cockfighting__sub-title,
.page-cockfighting__dark-bg p,
.page-cockfighting__dark-bg li {
  color: #FFFFFF;
}

.page-cockfighting__how-to-play-section {
  padding: 60px 0;
}

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

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

.page-cockfighting__step-item h3 {
  font-size: 22px;
  color: #FFFF00; /* Highlight step titles */
  margin-bottom: 15px;
}

.page-cockfighting__step-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-cockfighting__step-item a {
  color: #FFFF00;
  text-decoration: underline;
  font-weight: bold;
}

.page-cockfighting__step-item a:hover {
  color: #fff;
}

/* Tournaments Section */
.page-cockfighting__tournaments-section {
  padding: 60px 0;
}

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

.page-cockfighting__tournament-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-cockfighting__tournament-card .page-cockfighting__card-title {
  font-size: 22px;
  color: #017439;
  margin: 20px 20px 10px;
  font-weight: 700;
}

.page-cockfighting__tournament-card .page-cockfighting__card-text {
  font-size: 16px;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1; /* Push content to bottom */
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  padding: 60px 0;
}

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

.page-cockfighting__strategy-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-cockfighting__strategy-card .page-cockfighting__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-cockfighting__strategy-card .page-cockfighting__card-title {
  font-size: 20px;
  color: #FFFF00;
  margin: 20px 20px 10px;
  font-weight: 700;
}

.page-cockfighting__strategy-card .page-cockfighting__card-text {
  font-size: 16px;
  color: #f0f0f0;
  padding: 0 20px 20px;
  flex-grow: 1;
}

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

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