/* style/cockfighting-rules.css */

/* Base styles for the page */
.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for light backgrounds */
  background-color: var(--background); /* Overall page background */
  line-height: 1.6;
}

/* Section spacing and container */
.page-cockfighting-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting-rules__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-cockfighting-rules__text-block {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* 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;
  overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

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

.page-cockfighting-rules__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
}

.page-cockfighting-rules__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Use clamp for responsive H1 */
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting-rules__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-cockfighting-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-rules__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for primary button */
  border: none;
}

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

.page-cockfighting-rules__btn-secondary {
  background: var(--card-bg); /* Darker background from custom colors */
  color: var(--text-main); /* Lighter text for secondary button */
  border: 2px solid var(--border);
  margin-left: 20px;
}

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

.page-cockfighting-rules__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Sections */
.page-cockfighting-rules__introduction-section,
.page-cockfighting-rules__rules-section,
.page-cockfighting-rules__bet-types-section,
.page-cockfighting-rules__betting-guide-section,
.page-cockfighting-rules__tips-section,
.page-cockfighting-rules__safety-section,
.page-cockfighting-rules__faq-section,
.page-cockfighting-rules__cta-section {
  padding: 80px 0;
}

.page-cockfighting-rules__dark-section {
  background-color: var(--card-bg); /* Dark background for sections */
  color: var(--text-main); /* Light text for dark backgrounds */
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__text-block,
.page-cockfighting-rules__dark-section .page-cockfighting-rules__card-text {
  color: var(--text-secondary);
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__section-title,
.page-cockfighting-rules__dark-section .page-cockfighting-rules__card-title {
  color: var(--text-main);
}

/* Content images */
.page-cockfighting-rules__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

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

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

.page-cockfighting-rules__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-cockfighting-rules__card-text {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Bet Types List */
.page-cockfighting-rules__bet-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-cockfighting-rules__bet-item {
  background-color: var(--deep-green);
  padding: 15px 25px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 16px;
  border-left: 5px solid var(--glow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules__bet-item strong {
  color: var(--gold);
}

/* Betting Guide List */
.page-cockfighting-rules__guide-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-cockfighting-rules__guide-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules__guide-step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-cockfighting-rules__guide-item p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Tips List */
.page-cockfighting-rules__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting-rules__tip-item {
  background-color: var(--background);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.page-cockfighting-rules__tip-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-cockfighting-rules__tip-item p {
  font-size: 15px;
  color: var(--text-secondary);
}

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

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

.page-cockfighting-rules__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting-rules__faq-item {
  background-color: var(--background);
  border: 1px solid var(--divider);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting-rules__faq-item summary {
  list-style: none;
}

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

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
  background-color: var(--border);
}

.page-cockfighting-rules__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--glow);
  margin-left: 15px;
}

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
  content: '−';
}

.page-cockfighting-rules__faq-answer {
  padding: 20px 25px;
  font-size: 15px;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-cockfighting-rules__hero-content {
    max-width: 90%;
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-cockfighting-rules__hero-description {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-cockfighting-rules__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-section {
    padding-bottom: 40px;
  }
  .page-cockfighting-rules__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    margin-top: -100px; /* Pull content up over image a bit for mobile */
    background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 100%);
    border-radius: 0 0 10px 10px;
  }
  .page-cockfighting-rules__hero-image {
    filter: brightness(0.4); /* Darken image more on mobile */
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(26px, 6vw, 40px);
    margin-bottom: 15px;
  }
  .page-cockfighting-rules__hero-description {
    font-size: clamp(14px, 3.5vw, 16px);
    margin-bottom: 25px;
  }
  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting-rules__btn-secondary {
    margin-left: 0;
  }
  .page-cockfighting-rules__introduction-section,
  .page-cockfighting-rules__rules-section,
  .page-cockfighting-rules__bet-types-section,
  .page-cockfighting-rules__betting-guide-section,
  .page-cockfighting-rules__tips-section,
  .page-cockfighting-rules__safety-section,
  .page-cockfighting-rules__faq-section,
  .page-cockfighting-rules__cta-section {
    padding: 40px 0;
  }
  .page-cockfighting-rules__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting-rules__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 25px;
  }
  .page-cockfighting-rules__text-block {
    font-size: 15px;
  }
  .page-cockfighting-rules__content-image {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-cockfighting-rules__rules-grid,
  .page-cockfighting-rules__tips-list,
  .page-cockfighting-rules__safety-features {
    gap: 20px;
  }
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__guide-item,
  .page-cockfighting-rules__tip-item,
  .page-cockfighting-rules__feature-card,
  .page-cockfighting-rules__faq-item {
    padding: 20px;
  }
  .page-cockfighting-rules__card-title,
  .page-cockfighting-rules__guide-step-title,
  .page-cockfighting-rules__tip-title {
    font-size: 20px;
  }
  .page-cockfighting-rules__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-cockfighting-rules__faq-answer {
    padding: 15px 20px;
    font-size: 14px;
  }
  .page-cockfighting-rules__cta-button {
    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;
  }
  .page-cockfighting-rules__video-section {
    padding-top: 10px !important;
  }
}