.page-cockfighting-rules-history {
  color: #FFFFFF;
  background-color: #100224;
  font-family: Arial, sans-serif;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-cockfighting-rules-history__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #017439;
}

.page-cockfighting-rules-history__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/5;
}

.page-cockfighting-rules-history__hero-content {
  max-width: 900px;
  padding: 20px;
  margin-top: 20px;
}

.page-cockfighting-rules-history__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-cockfighting-rules-history__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 30px;
  color: #FFFFFF;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting-rules-history__hero-cta {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
}

.page-cockfighting-rules-history__hero-cta:hover {
  background-color: #9e0606;
}

.page-cockfighting-rules-history__section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting-rules-history__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-cockfighting-rules-history__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 40px;
  color: #017439; /* Use primary color for section titles */
  background: linear-gradient(90deg, #ff9500, #ff5e3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.page-cockfighting-rules-history__paragraph {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-cockfighting-rules-history__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-cockfighting-rules-history__text-block {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting-rules-history__image {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting-rules-history__image--centered {
  margin: 40px auto 20px auto;
}

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

.page-cockfighting-rules-history__rule-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
}

.page-cockfighting-rules-history__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ff9500;
}

.page-cockfighting-rules-history__card-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #E0E0E0;
}

.page-cockfighting-rules-history__type-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-cockfighting-rules-history__list-item {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #FFFFFF;
  position: relative;
  padding-left: 25px;
}

.page-cockfighting-rules-history__list-item::before {
  content: '▶';
  color: #ff9500;
  position: absolute;
  left: 0;
  font-size: 0.9em;
  line-height: 1.8;
}

.page-cockfighting-rules-history__cta-section {
  background-color: #017439;
  padding: 80px 20px;
}

.page-cockfighting-rules-history__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-cockfighting-rules-history__cta-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-cockfighting-rules-history__cta-text {
  font-size: 1.2rem;
  color: #E0E0E0;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-cockfighting-rules-history__cta-button {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
  margin: 5px;
}

.page-cockfighting-rules-history__cta-button:hover {
  background-color: #9e0606;
}

.page-cockfighting-rules-history__cta-button--secondary {
  background-color: #83a1f2;
  color: #FFFFFF;
}

.page-cockfighting-rules-history__cta-button--secondary:hover {
  background-color: #688cec;
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-cockfighting-rules-history__hero-image {
    aspect-ratio: 4/3;
  }
  .page-cockfighting-rules-history__content-wrapper {
    flex-direction: column;
  }
  .page-cockfighting-rules-history__text-block, .page-cockfighting-rules-history__image {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-history__hero-content {
    padding: 15px;
  }
  .page-cockfighting-rules-history__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-cockfighting-rules-history__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  .page-cockfighting-rules-history__section {
    padding: 40px 15px;
  }
  .page-cockfighting-rules-history__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  .page-cockfighting-rules-history__paragraph, .page-cockfighting-rules-history__list-item {
    font-size: 1rem;
  }
  .page-cockfighting-rules-history__image {
    max-width: 100%;
    height: auto;
  }
  .page-cockfighting-rules-history__rules-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting-rules-history__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-cockfighting-rules-history__cta-text {
    font-size: 1.1rem;
  }
  .page-cockfighting-rules-history__cta-button {
    width: 100%;
    margin: 5px 0;
  }
}

@media (max-width: 549px) {
  .page-cockfighting-rules-history__hero-image {
    aspect-ratio: 16/9;
  }
  .page-cockfighting-rules-history__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-cockfighting-rules-history__hero-description {
    font-size: 0.9rem;
  }
  .page-cockfighting-rules-history__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .page-cockfighting-rules-history__rule-card {
    padding: 20px;
  }
  .page-cockfighting-rules-history__card-title {
    font-size: 1.3rem;
  }
  .page-cockfighting-rules-history__cta-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-cockfighting-rules-history__cta-text {
    font-size: 1rem;
  }
}