/* style/cockfighting-rules.css */

/* Base styles for the page */
.page-cockfighting-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

/* Hero Section */
.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

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

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 1;
  margin-top: -300px; /* Pull content up over the image */
  color: #F2FFF6;
  padding: 0 20px;
  max-width: 900px;
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting-rules__description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting-rules__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-cockfighting-rules__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Border color with opacity */
  transform: translateY(-3px);
}

.page-cockfighting-rules__btn-center {
  display: block;
  margin: 30px auto;
  width: fit-content;
}

/* General Section Styling */
.page-cockfighting-rules__section {
  padding: 60px 0;
  margin-bottom: 20px;
  background-color: #08160F; /* Background */
}

.page-cockfighting-rules__card-bg {
  background-color: #11271B; /* Card BG */
}

.page-cockfighting-rules__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-cockfighting-rules__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-cockfighting-rules__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #57E38D; /* Glow */
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-cockfighting-rules__text-block {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-cockfighting-rules__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* List Styles */
.page-cockfighting-rules__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting-rules__list-item {
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-cockfighting-rules__list-item::before {
  content: '✓';
  color: #2AD16F; /* Green from button gradient */
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  top: -2px;
}

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

.page-cockfighting-rules__card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting-rules__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-cockfighting-rules__card-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #2E7A4E;
}

.page-cockfighting-rules__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
  flex-grow: 1;
}

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

.page-cockfighting-rules__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting-rules__faq-item summary:hover {
  background-color: rgba(34, 199, 104, 0.1);
}

.page-cockfighting-rules__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #2AD16F;
  margin-left: 20px;
}

.page-cockfighting-rules__faq-answer {
  padding: 20px 25px;
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
  border-top: 1px solid #2E7A4E; /* Divider */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-content {
    margin-top: -200px;
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
  }
  .page-cockfighting-rules__description {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  }
  .page-cockfighting-rules__section {
    padding: 40px 0;
  }
  .page-cockfighting-rules__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-cockfighting-rules__sub-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-content {
    margin-top: -150px;
  }
  .page-cockfighting-rules__main-title {
    font-size: 2.2rem !important;
  }
  .page-cockfighting-rules__description {
    font-size: 1rem !important;
  }
  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting-rules__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting-rules__section {
    padding: 30px 0;
  }
  .page-cockfighting-rules__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 1.4rem !important;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-cockfighting-rules__text-block,
  .page-cockfighting-rules__list-item,
  .page-cockfighting-rules__card-text,
  .page-cockfighting-rules__faq-answer {
    font-size: 0.95rem !important;
  }
  .page-cockfighting-rules__image-content,
  .page-cockfighting-rules__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting-rules__card-grid {
    gap: 20px;
  }
  .page-cockfighting-rules__card {
    padding: 20px;
  }
  .page-cockfighting-rules__card-title {
    font-size: 1.3rem !important;
  }
  .page-cockfighting-rules__faq-item summary {
    font-size: 1.1rem !important;
    padding: 15px 20px;
  }
  .page-cockfighting-rules__faq-toggle {
    font-size: 1.5rem !important;
  }
  .page-cockfighting-rules__video-section {
    padding-top: 10px !important;
  }
  .page-cockfighting-rules__hero-image {
    filter: brightness(0.5); /* Increase dimming on mobile for better text contrast */
  }
  /* Ensure all containers with images/videos/buttons are responsive */
  .page-cockfighting-rules__section,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__container,
  .page-cockfighting-rules__hero-section,
  .page-cockfighting-rules__hero-image-wrapper,
  .page-cockfighting-rules__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}