/* style/cockfighting-rules-explained.css */

/* Variables for brand colors */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #ffffff;
  --background-dark: #0A192F;
}

/* Base styles for the page content */
.page-cockfighting-rules-explained {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-cockfighting-rules-explained__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--secondary-color); /* Use accent color for titles */
}

.page-cockfighting-rules-explained__text-block {
  font-size: 18px;
  margin-bottom: 25px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting-rules-explained__hero-section {
  position: relative;
  padding: 80px 0;
  background: var(--background-dark);
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
  padding-top: calc(var(--header-offset, 120px) + 80px); /* Add header offset here for the first section */
}

.page-cockfighting-rules-explained__main-title {
  font-size: 52px;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting-rules-explained__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-cockfighting-rules-explained__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting-rules-explained__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.page-cockfighting-rules-explained__cta-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules-explained__cta-button--secondary {
  background: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-cockfighting-rules-explained__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-cockfighting-rules-explained__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Content Sections */
.page-cockfighting-rules-explained__content-section {
  padding: 60px 0;
}

.page-cockfighting-rules-explained__dark-bg {
  background: var(--background-dark);
  color: var(--text-light);
}

.page-cockfighting-rules-explained__light-bg {
  background: var(--background-light);
  color: var(--text-dark);
}

.page-cockfighting-rules-explained__light-bg .page-cockfighting-rules-explained__section-title {
  color: var(--primary-color); /* Dark title on light background */
}

.page-cockfighting-rules-explained__light-bg .page-cockfighting-rules-explained__text-block {
  color: var(--text-dark);
}

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

.page-cockfighting-rules-explained__grid-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark bg */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-cockfighting-rules-explained__light-bg .page-cockfighting-rules-explained__grid-item {
  background: #f9f9f9;
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
}

.page-cockfighting-rules-explained__grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules-explained__grid-item-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-cockfighting-rules-explained__light-bg .page-cockfighting-rules-explained__grid-item-title {
  color: var(--primary-color);
}

.page-cockfighting-rules-explained__grid-item p {
  font-size: 16px;
  line-height: 1.7;
}

/* Rule blocks */
.page-cockfighting-rules-explained__rule-block {
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules-explained__light-bg .page-cockfighting-rules-explained__rule-block {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.page-cockfighting-rules-explained__rule-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-cockfighting-rules-explained__light-bg .page-cockfighting-rules-explained__rule-title {
  color: var(--primary-color);
}

.page-cockfighting-rules-explained__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 17px;
}

.page-cockfighting-rules-explained__list li {
  margin-bottom: 10px;
}

.page-cockfighting-rules-explained__list-highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-cockfighting-rules-explained__light-bg .page-cockfighting-rules-explained__list-highlight {
  color: var(--primary-color);
}

.page-cockfighting-rules-explained__image-full {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting-rules-explained__image-half {
  width: 100%;
  max-width: 600px; /* Example max-width for smaller image */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto 40px auto;
  display: block;
}

/* Bottom CTA Section */
.page-cockfighting-rules-explained__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background: var(--background-dark);
  color: var(--text-light);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .page-cockfighting-rules-explained__main-title {
    font-size: 44px;
  }

  .page-cockfighting-rules-explained__description {
    font-size: 18px;
  }

  .page-cockfighting-rules-explained__section-title {
    font-size: 30px;
  }

  .page-cockfighting-rules-explained__rule-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-explained__hero-section {
    padding-top: calc(var(--header-offset, 120px) + 40px) !important; /* Adjust for mobile header offset */
    padding-bottom: 40px;
  }
  
  .page-cockfighting-rules-explained__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting-rules-explained__main-title {
    font-size: 36px;
  }

  .page-cockfighting-rules-explained__description {
    font-size: 16px;
  }

  .page-cockfighting-rules-explained__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
  }

  .page-cockfighting-rules-explained__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal !important; /* Allow text to wrap */
    word-wrap: break-word !important;
  }

  .page-cockfighting-rules-explained__hero-image,
  .page-cockfighting-rules-explained__image-full,
  .page-cockfighting-rules-explained__image-half {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    border-radius: 8px;
  }

  .page-cockfighting-rules-explained__content-section {
    padding: 40px 0;
  }

  .page-cockfighting-rules-explained__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-explained__text-block {
    font-size: 15px;
  }

  .page-cockfighting-rules-explained__grid {
    gap: 20px;
  }

  .page-cockfighting-rules-explained__grid-item {
    padding: 20px;
  }

  .page-cockfighting-rules-explained__grid-item-title {
    font-size: 20px;
  }

  .page-cockfighting-rules-explained__rule-block {
    padding: 20px;
    margin-bottom: 30px;
  }

  .page-cockfighting-rules-explained__rule-title {
    font-size: 22px;
  }

  .page-cockfighting-rules-explained__list {
    font-size: 15px;
    margin-left: 20px;
  }

  .page-cockfighting-rules-explained__cta-bottom-section {
    padding: 50px 0;
  }
}