/* style/cockfighting.css */

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

/* General Page Styles */
.page-cockfighting {
  background-color: var(--color-background); /* Override body's light background for main content */
  color: var(--color-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--color-deep-green);
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 600px; /* Limit height on desktop */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap image slightly for visual effect, but not text on image */
  background-color: rgba(17, 47, 27, 0.85); /* Semi-transparent dark background */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border: 1px solid var(--color-border);
}

.page-cockfighting__hero-title {
  color: var(--color-gold);
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 1px;
  line-height: 1.2;
  /* clamp for responsive font size */
  font-size: clamp(2em, 5vw, 3.5em);
}

.page-cockfighting__hero-description {
  color: var(--color-text-main);
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-main);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 80px 0;
  background-color: var(--color-background);
  color: var(--color-text-secondary);
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

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

.page-cockfighting__card {
  background-color: var(--color-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--color-gold);
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: var(--color-text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-cockfighting__card .page-cockfighting__btn-secondary {
  margin: 0 20px 20px;
  align-self: flex-start;
  width: calc(100% - 40px);
  text-align: center;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for contrast */
}

.page-cockfighting__guide-section .page-cockfighting__section-title {
  color: var(--color-primary); /* Use primary color for title on light background */
}

.page-cockfighting__guide-section .page-cockfighting__text-block {
  color: #555555; /* Darker text for contrast on light background */
}

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

.page-cockfighting__step-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__step-icon {
  background-color: var(--color-primary);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px;
}

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

.page-cockfighting__step-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
}

.page-cockfighting__guide-section .page-cockfighting__btn-primary {
  width: 100%;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  padding: 80px 0;
  background-color: var(--color-background);
  color: var(--color-text-secondary);
}

.page-cockfighting__advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__advantage-list li {
  background-color: var(--color-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__advantage-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__advantage-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__advantage-title {
  font-size: 1.4em;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__advantage-description {
  font-size: 1em;
  color: var(--color-text-secondary);
}

/* Strategies Section */
.page-cockfighting__strategies-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background for this section */
  color: #333333; /* Dark text for contrast */
}

.page-cockfighting__strategies-section .page-cockfighting__section-title {
  color: var(--color-primary);
}

.page-cockfighting__strategies-section .page-cockfighting__text-block {
  color: #555555;
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__strategy-list li {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--color-primary);
}

.page-cockfighting__strategy-title {
  font-size: 1.4em;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__strategy-description {
  font-size: 1em;
  color: #666666;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

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

.page-cockfighting__faq-item {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-deep-green);
  transition: background-color 0.3s ease;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-cockfighting__faq-question:hover {
  background-color: var(--color-primary);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  color: var(--color-gold);
  line-height: 1;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: var(--color-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 15px 25px 20px;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  padding: 80px 0;
  background-color: var(--color-background);
  color: var(--color-text-main);
  text-align: center;
}

.page-cockfighting__conclusion-cta {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* Ensure all images are responsive and don't cause overflow */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all sections/containers containing images/content are responsive */
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section,
  .page-cockfighting__container,
  .page-cockfighting__card,
  .page-cockfighting__step-item,
  .page-cockfighting__advantage-list li,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important;
  }

  .page-cockfighting__hero-image {
    max-height: 400px;
  }

  .page-cockfighting__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
    width: calc(100% - 30px);
  }

  .page-cockfighting__hero-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

  /* Buttons responsive */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting 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;
    text-align: center;
  }

  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__conclusion-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-cockfighting__text-block {
    font-size: 1em;
  }

  .page-cockfighting__card-image {
    height: 180px;
  }

  .page-cockfighting__card-title {
    font-size: 1.3em;
  }

  .page-cockfighting__advantage-icon {
    width: 50px;
    height: 50px;
  }

  .page-cockfighting__advantage-title {
    font-size: 1.2em;
  }

  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  .page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -60px;
  }
}