/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or shared */
  line-height: 1.6;
  padding-bottom: 60px; /* Space above footer */
}

/* Container for main content */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure no content overflow */
}

.page-cockfighting__section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

/* Headings */
.page-cockfighting__heading {
  font-size: 2.5em;
  color: #FFD700; /* Gold main color for headings */
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: bold;
}

.page-cockfighting__sub-heading {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cockfighting__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Links within content */
.page-cockfighting__paragraph a {
  color: #FFD700;
  text-decoration: underline;
}

.page-cockfighting__paragraph a:hover {
  color: #8B0000;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
  overflow: hidden;
}

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

.page-cockfighting__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  padding: 20px;
  z-index: 2;
}

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

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* 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.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box; /* Ensure padding doesn't affect width calculation */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button does not overflow */
}

.page-cockfighting__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #000000; /* Dark text for contrast on gold */
  border-color: #FFD700;
}

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

.page-cockfighting__btn-secondary {
  background-color: #8B0000; /* Dark red background */
  color: #ffffff; /* White text for contrast on dark red */
  border-color: #8B0000;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #6a0000;
  border-color: #6a0000;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Images */
.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover; /* Ensure images fill their space nicely */
}

.page-cockfighting__guide-image {
  margin-top: 0;
  margin-bottom: 0;
}

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

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #ffffff;
}

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

.page-cockfighting__card-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Guide Section */
.page-cockfighting__guide-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__ordered-list {
  list-style: none; /* Remove default list style */
  counter-reset: guide-step; /* Initialize counter */
  padding: 0;
  margin: 0;
  flex: 1;
}

.page-cockfighting__list-item {
  position: relative;
  padding-left: 60px; /* Space for the custom counter */
  margin-bottom: 30px;
}

.page-cockfighting__list-item::before {
  counter-increment: guide-step; /* Increment counter */
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FFD700; /* Gold background for numbers */
  color: #000000; /* Dark text for numbers */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
}

.page-cockfighting__list-title {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
}

/* Schedule Table */
.page-cockfighting__table-wrapper {
  overflow-x: auto; /* Enable horizontal scrolling for small screens */
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__schedule-table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.08);
  min-width: 600px; /* Ensure table is not too narrow on small screens */
}

.page-cockfighting__schedule-table th,
.page-cockfighting__schedule-table td {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  color: #f0f0f0;
}

.page-cockfighting__schedule-table th {
  background-color: #8B0000; /* Dark red for table headers */
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.95em;
}

.page-cockfighting__schedule-table tbody tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__schedule-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__status-live {
  color: #FFD700; /* Gold for live status */
  font-weight: bold;
}

.page-cockfighting__status-upcoming {
  color: #f0f0f0; /* Light gray for upcoming status */
}

/* Feature Cards (Why Choose Us) */
.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__feature-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #ffffff;
}

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

.page-cockfighting__feature-title {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  text-align: left;
}

.page-cockfighting__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.8em;
  color: #FFD700;
  font-weight: bold;
  margin-left: 20px;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }

  .page-cockfighting__heading {
    font-size: 2em;
  }

  .page-cockfighting__guide-content {
    flex-direction: column;
  }

  .page-cockfighting__guide-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Ensure mobile content doesn't overflow */
  .page-cockfighting__container,
  .page-cockfighting__section,
  .page-cockfighting__card-grid,
  .page-cockfighting__feature-grid,
  .page-cockfighting__hero-actions,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Adjust for mobile header */
    min-height: 50vh;
  }

  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-cockfighting__heading {
    font-size: 1.8em;
  }

  .page-cockfighting__sub-heading {
    font-size: 1.5em;
  }

  .page-cockfighting__paragraph {
    font-size: 1em;
  }

  /* Images responsive on mobile */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Video responsive on mobile */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Buttons responsive on mobile */
  .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: 12px 20px; /* Adjust padding for smaller screens */
    font-size: 1em;
  }

  .page-cockfighting__hero-actions,
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-cockfighting__card,
  .page-cockfighting__feature-card {
    padding: 20px;
  }

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

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

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 10px 20px 20px;
  }

  .page-cockfighting__table-wrapper {
    margin-left: -15px; /* Adjust for container padding */
    margin-right: -15px; /* Adjust for container padding */
    width: calc(100% + 30px); /* Fill full width */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8em;
  }

  .page-cockfighting__heading {
    font-size: 1.5em;
  }
}