/* style/cockfighting.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-text-color: #FFFF00; /* For register/login buttons */
  --body-bg: #0a0a0a; /* From shared.css, body background is dark */
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--body-bg);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 600px;
  overflow: hidden;
  color: var(--text-color-dark-bg);
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background-color: var(--button-register-bg);
  color: var(--button-text-color);
  border: 2px solid var(--button-register-bg);
}

.page-cockfighting__btn-primary:hover {
  background-color: #a40707;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: var(--button-login-bg);
  color: var(--button-text-color);
  border: 2px solid var(--button-login-bg);
}

.page-cockfighting__btn-secondary:hover {
  background-color: #a40707;
  transform: translateY(-2px);
}

.page-cockfighting__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-cockfighting__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  background-size: cover;
  filter: brightness(0.4); /* Darken video for better text contrast */
  cursor: pointer;
}

/* General Section Styles */
.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--secondary-color);
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* About Section */
.page-cockfighting__about-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-cockfighting__about-section .page-cockfighting__section-title {
  color: var(--secondary-color);
}

.page-cockfighting__about-section .page-cockfighting__section-description {
  color: var(--secondary-color);
}

.page-cockfighting__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-cockfighting__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
  background-color: var(--body-bg);
  color: var(--text-color-dark-bg);
}

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

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Min height 200px */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}