/* style/cockfighting.css */

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

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--mm88m-text-main); /* Default text color for the page, based on dark body background */
  background-color: var(--mm88m-background); /* Explicitly set to match body background */
}

.page-cockfighting__section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting__dark-bg {
  background-color: var(--mm88m-background);
  color: var(--mm88m-text-main);
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--mm88m-deep-green);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--mm88m-text-main);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__description {
  font-size: 1.1em;
  color: var(--mm88m-text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

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

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

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

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

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

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--mm88m-text-main);
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background: var(--mm88m-primary-color);
  border-radius: 2px;
}

.page-cockfighting__text-block {
  font-size: 1em;
  line-height: 1.7;
  color: var(--mm88m-text-secondary);
  margin-bottom: 20px;
}

.page-cockfighting__highlight {
  color: var(--mm88m-text-main);
  font-weight: 600;
}

.page-cockfighting__image-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-cockfighting__image-wrapper {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-cockfighting__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: var(--mm88m-primary-color);
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-cockfighting__card {
  background-color: var(--mm88m-card-bg);
  border: 1px solid var(--mm88m-border);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--mm88m-text-secondary);
}

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

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--mm88m-text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__card-text {
  line-height: 1.7;
  font-size: 0.95em;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-cockfighting__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 0.95em;
}

.page-cockfighting__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--mm88m-primary-color);
  font-weight: bold;
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 20px;
}

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

.page-cockfighting__feature-item {
  background-color: var(--mm88m-card-bg);
  border: 1px solid var(--mm88m-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--mm88m-text-secondary);
}

.page-cockfighting__feature-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__feature-title {
  font-size: 1.4em;
  color: var(--mm88m-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__feature-text {
  line-height: 1.7;
  font-size: 0.9em;
}

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

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

.page-cockfighting__strategy-title {
  font-size: 1.5em;
  color: var(--mm88m-primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__strategy-text {
  line-height: 1.7;
  font-size: 0.95em;
}

.page-cockfighting__strategy-footer {
  margin-top: 40px;
  font-size: 1em;
  color: var(--mm88m-text-secondary);
}

.page-cockfighting__strategy-footer a {
  color: var(--mm88m-primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-cockfighting__strategy-footer a:hover {
  text-decoration: underline;
}

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

.page-cockfighting__tournament-item {
  background-color: var(--mm88m-card-bg);
  border: 1px solid var(--mm88m-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--mm88m-text-secondary);
}

.page-cockfighting__tournament-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__tournament-title {
  font-size: 1.4em;
  color: var(--mm88m-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__tournament-text {
  line-height: 1.7;
  font-size: 0.9em;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--mm88m-text-main);
  cursor: pointer;
  background-color: var(--mm88m-deep-green);
  border-bottom: 1px solid var(--mm88m-border);
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--mm88m-primary-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid var(--mm88m-border);
}

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--mm88m-text-secondary);
  background-color: var(--mm88m-card-bg);
}

.page-cockfighting__faq-answer a {
  color: var(--mm88m-primary-color);
  text-decoration: none;
}

.page-cockfighting__faq-answer a:hover {
  text-decoration: underline;
}

.page-cockfighting__cta-buttons--bottom {
  margin-top: 50px;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-cockfighting__image-text-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .page-cockfighting__image-text-grid:nth-child(even) .page-cockfighting__image-wrapper {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 10px 15px 40px;
  }

  .page-cockfighting__main-title {
    font-size: 2.2em; /* Ensure readable on mobile */
  }

  .page-cockfighting__description {
    font-size: 1em;
  }

  .page-cockfighting__section {
    padding: 40px 15px;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__card-text,
  .page-cockfighting__list-item,
  .page-cockfighting__feature-text,
  .page-cockfighting__strategy-text,
  .page-cockfighting__tournament-text,
  .page-cockfighting__faq-answer p {
    font-size: 0.95em; /* Slightly larger for readability */
  }

  .page-cockfighting__sub-title {
    font-size: 1.6em;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Mobile responsive for images */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive for containers */
  .page-cockfighting__section,
  .page-cockfighting__container,
  .page-cockfighting__card,
  .page-cockfighting__feature-item,
  .page-cockfighting__strategy-card,
  .page-cockfighting__tournament-item,
  .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; /* Ensure no horizontal scroll */
  }

  .page-cockfighting__hero-image-wrapper {
    padding: 0;
  }

  .page-cockfighting__feature-image,
  .page-cockfighting__tournament-image {
    height: auto; /* Allow height to adjust */
    max-height: 250px; /* Max height to prevent overly tall images */
  }

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

  .page-cockfighting__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 1.8em;
  }

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

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

  .page-cockfighting__card-title,
  .page-cockfighting__feature-title,
  .page-cockfighting__strategy-title,
  .page-cockfighting__tournament-title {
    font-size: 1.2em;
  }
}