/* style/cockfighting.css */

/* Body background is handled by shared.css var(--background-color) */
/* Assuming --background-color is dark, using light text */
.page-cockfighting {
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color); /* Ensure consistency with body */
}

.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;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: var(--background-color);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px; /* Space between image and content */
  color: var(--text-main);
}

.page-cockfighting__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-cockfighting__section {
  padding: 80px 0;
  background-color: var(--background-color);
}

.page-cockfighting__dark-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-cockfighting__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: var(--text-main);
}

.page-cockfighting__section-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__dark-section .page-cockfighting__section-text {
  color: var(--text-secondary);
}

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

.page-cockfighting__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: justify;
}

/* Step-by-Step Guide */
.page-cockfighting__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-cockfighting__step-icon {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  box-shadow: 0 0 15px var(--glow);
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__step-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: justify;
}

/* Betting Types */
.page-cockfighting__betting-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__bet-type-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-cockfighting__bet-type-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

.page-cockfighting__bet-type-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: justify;
}

/* Tips Section */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__tips-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-cockfighting__tips-item:last-child {
  margin-bottom: 0;
}

.page-cockfighting__tips-subtitle {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__tips-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: justify;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

.page-cockfighting__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
}

.page-cockfighting__faq-answer {
  padding: 0 30px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: justify;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--gold);
  color: var(--deep-green);
  border-color: var(--gold);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 0 20px;
  }
}

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

  .page-cockfighting__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-cockfighting__hero-description {
    font-size: 1rem;
  }

  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__conclusion-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__section-text {
    font-size: 1rem;
  }

  .page-cockfighting__card-grid,
  .page-cockfighting__step-by-step,
  .page-cockfighting__betting-types-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting__card,
  .page-cockfighting__step-item,
  .page-cockfighting__bet-type-card,
  .page-cockfighting__tips-item,
  .page-cockfighting__faq-item {
    padding: 20px;
  }

  .page-cockfighting__card-image {
    height: 200px;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__bet-type-title,
  .page-cockfighting__tips-subtitle {
    font-size: 1.3rem;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image specific rules */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-cockfighting__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-cockfighting__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Custom Colors based on provided palette */
:root {
  --primary-color: #11A84E;
  --primary-color-rgb: 17, 168, 78;
  --secondary-color: #22C768;

  --card-bg: #11271B;
  --background-color: #08160F;

  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;

  --border-color: #2E7A4E;

  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Ensure contrast for general text on custom dark backgrounds */
.page-cockfighting p,
.page-cockfighting li,
.page-cockfighting__section-text,
.page-cockfighting__card-text,
.page-cockfighting__step-description,
.page-cockfighting__bet-type-description,
.page-cockfighting__tips-description,
.page-cockfighting__faq-answer {
  color: var(--text-secondary);
}

.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4,
.page-cockfighting h5,
.page-cockfighting h6,
.page-cockfighting__hero-title,
.page-cockfighting__section-title,
.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__bet-type-title,
.page-cockfighting__tips-subtitle,
.page-cockfighting__faq-question {
  color: var(--text-main);
}

/* Override specific element colors if needed for contrast */
.page-cockfighting__hero-title {
  color: var(--text-main);
}

.page-cockfighting__step-icon {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
}