/* style/cockfighting-rules.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --card-bg: #11271B;
  --background-color: #08160F;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-cockfighting-rules {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--background-color);
  line-height: 1.6;
}

.page-cockfighting-rules__hero-section {
  position: relative;
  padding-top: 10px; /* Fixed header spacing */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-cockfighting-rules__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-cockfighting-rules__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-cockfighting-rules__intro-text {
  font-size: 1.3em;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.page-cockfighting-rules__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting-rules__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-cockfighting-rules__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-cockfighting-rules__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-3px);
}

.page-cockfighting-rules__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
}

.page-cockfighting-rules__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-cockfighting-rules__dark-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

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

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-cockfighting-rules__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-rules__card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

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

.page-cockfighting-rules__card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-rules__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting-rules__card-text {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.5;
}

.page-cockfighting-rules__rule-item {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--divider-color);
}

.page-cockfighting-rules__rule-item:last-child {
  border-bottom: none;
}

.page-cockfighting-rules__rule-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-rules__rule-list {
  list-style: none;
  padding-left: 0;
}

.page-cockfighting-rules__rule-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--text-secondary);
}

.page-cockfighting-rules__rule-list li strong {
  color: var(--text-main);
}

.page-cockfighting-rules__rule-list li::before {
  content: '▪';
  color: var(--gold-color);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: 0;
}

.page-cockfighting-rules__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-rules__step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
}

.page-cockfighting-rules__step-icon {
  background: var(--button-gradient);
  color: var(--text-main);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px var(--glow-color);
}

.page-cockfighting-rules__step-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-rules__step-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.page-cockfighting-rules__tips-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.page-cockfighting-rules__tips-list li {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-secondary);
  position: relative;
  padding-left: 45px;
}

.page-cockfighting-rules__tips-list li::before {
  content: '💡';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
}

.page-cockfighting-rules__faq-list {
  margin-top: 40px;
}

.page-cockfighting-rules__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-secondary);
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none;
  outline: none;
}

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

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

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold-color);
}

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

.page-cockfighting-rules__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-cockfighting-rules__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules__main-title {
    font-size: 2.8em;
  }
  .page-cockfighting-rules__intro-text {
    font-size: 1.2em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }
  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* HERO Section */
  .page-cockfighting-rules__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-cockfighting-rules__hero-image-wrapper {
    margin-bottom: 20px;
    max-height: 50vh;
  }
  .page-cockfighting-rules__main-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }
  .page-cockfighting-rules__intro-text {
    font-size: 1em !important;
    margin-bottom: 30px;
  }
  .page-cockfighting-rules__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary,
  .page-cockfighting-rules a[class*="button"],
  .page-cockfighting-rules 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;
  }
  
  /* Generic Image & Container */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting-rules__section,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Section & Titles */
  .page-cockfighting-rules__section {
    padding: 30px 0;
  }
  .page-cockfighting-rules__section-title {
    font-size: 1.8em !important;
    margin-bottom: 25px;
  }
  .page-cockfighting-rules__text-block {
    font-size: 1em;
  }

  /* Grid & Cards */
  .page-cockfighting-rules__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting-rules__card {
    padding: 20px;
  }
  .page-cockfighting-rules__card-title {
    font-size: 1.4em;
  }

  /* Rule Items */
  .page-cockfighting-rules__rule-title {
    font-size: 1.5em;
  }
  .page-cockfighting-rules__rule-list li {
    padding-left: 20px;
    font-size: 0.95em;
  }
  .page-cockfighting-rules__rule-list li::before {
    font-size: 1em;
  }

  /* Guide Steps */
  .page-cockfighting-rules__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting-rules__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
  .page-cockfighting-rules__step-title {
    font-size: 1.3em;
  }

  /* Tips List */
  .page-cockfighting-rules__tips-list li {
    font-size: 1em;
    padding: 15px 15px 15px 40px;
  }
  .page-cockfighting-rules__tips-list li::before {
    left: 10px;
    font-size: 1.2em;
  }

  /* FAQ */
  .page-cockfighting-rules__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-cockfighting-rules__faq-toggle {
    font-size: 1.3em;
  }
  .page-cockfighting-rules__faq-answer {
    padding: 0 15px 15px 15px;
  }
}