/* style/cockfighting.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --card-bg: #2A1212;
  --background-dark: #140C0C;
  --text-light: #FFF1E8;
  --gold-color: #F3C54D;
  --border-color: #6A1E1E;
  --deep-red: #7E0D0D;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Dark background, so light text */
  background-color: var(--background-dark); /* Using custom background color */
}

.page-cockfighting__section {
  padding: 60px 0;
  position: relative;
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__main-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 60px;
  background-color: var(--background-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-cockfighting__hero-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-dark);
  transform: translateY(-2px);
}

.page-cockfighting__btn-large {
  min-width: 220px;
  padding: 18px 35px;
  font-size: 20px;
}

.page-cockfighting__btn-small {
  padding: 12px 25px;
  font-size: 16px;
}

.page-cockfighting__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

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

/* Image content */
.page-cockfighting__image-content {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Lists */
.page-cockfighting__betting-list,
.page-cockfighting__guide-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-cockfighting__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  position: relative;
  padding-left: 50px;
}

.page-cockfighting__list-item::before {
  content: '✓';
  color: var(--gold-color);
  font-weight: bold;
  font-size: 24px;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.page-cockfighting__guide-list .page-cockfighting__list-item::before {
  content: counter(list-item);
  counter-increment: list-item;
  background-color: var(--gold-color);
  color: var(--background-dark);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  left: 10px;
  top: 20px;
  transform: none;
}

/* Dark sections */
.page-cockfighting__dark-section {
  background-color: var(--deep-red);
  color: var(--text-light);
}

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

/* Tables */
.page-cockfighting__table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.page-cockfighting__table-subtitle {
  font-size: 24px;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  margin-top: 20px;
  padding: 0 20px;
}

.page-cockfighting__data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  min-width: 600px; /* Ensure table is scrollable on small screens */
}

.page-cockfighting__data-table th,
.page-cockfighting__data-table td {
  border: 1px solid var(--border-color);
  padding: 15px;
  text-align: left;
  font-size: 16px;
}

.page-cockfighting__data-table th {
  background-color: var(--deep-red);
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
}

.page-cockfighting__data-table tr:nth-child(even) {
  background-color: rgba(42, 18, 18, 0.7);
}

.page-cockfighting__data-table tr:hover {
  background-color: rgba(42, 18, 18, 1);
}

.page-cockfighting__text-small {
  font-size: 14px;
  color: rgba(255, 241, 232, 0.7);
  text-align: center;
  padding: 10px 20px;
}

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

.page-cockfighting__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-color);
  margin: 20px 15px 10px;
  line-height: 1.3;
}

.page-cockfighting__card-description {
  font-size: 16px;
  color: var(--text-light);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: rgba(var(--deep-red), 0.5);
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-light);
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--card-bg), 0.8);
  border-radius: 0 0 8px 8px;
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(28px, 4vw, 48px);
  }
  .page-cockfighting__hero-description {
    font-size: 17px;
  }
  .page-cockfighting__btn-large {
    font-size: 18px;
    padding: 15px 30px;
  }
  .page-cockfighting__card-title {
    font-size: 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* General */
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 16px;
  }

  /* Hero Section */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-cockfighting__hero-cta-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-cockfighting__hero-cta-group .page-cockfighting__btn-primary,
  .page-cockfighting__hero-cta-group .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
    max-height: 300px;
  }

  /* Images */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
  }
  .page-cockfighting__image-content {
    margin: 20px auto;
  }

  /* Lists */
  .page-cockfighting__list-item {
    font-size: 16px;
    padding: 15px 15px 15px 45px;
  }
  .page-cockfighting__list-item::before {
    font-size: 20px;
    left: 10px;
    top: 15px;
    transform: none;
  }
  .page-cockfighting__guide-list .page-cockfighting__list-item::before {
    width: 28px;
    height: 28px;
    font-size: 16px;
    left: 10px;
    top: 15px;
  }

  /* Tables */
  .page-cockfighting__table-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .page-cockfighting__table-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 15px;
  }
  .page-cockfighting__data-table {
    min-width: unset; /* Allow table to shrink */
  }
  .page-cockfighting__data-table th,
  .page-cockfighting__data-table td {
    padding: 10px;
    font-size: 14px;
  }
  .page-cockfighting__text-small {
    font-size: 13px;
    padding: 8px 15px;
  }

  /* Promotions */
  .page-cockfighting__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-cockfighting__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }
  .page-cockfighting__card-title {
    font-size: 20px;
    margin: 15px 10px 8px;
  }
  .page-cockfighting__card-description {
    font-size: 15px;
    padding: 0 10px 15px;
  }
  .page-cockfighting__promo-card .page-cockfighting__btn-primary {
    margin: 0 10px 15px;
    width: calc(100% - 20px);
  }

  /* Buttons (general mobile adaptations) */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 16px;
  }
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container,
  .page-cockfighting__final-cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Force column for button groups */
    gap: 15px !important;
  }
  .page-cockfighting__btn-large {
    min-width: unset;
  }

  /* FAQ */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }
}