/* style/cockfighting.css */

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

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--page-cockfighting-text-main); /* Light text for dark background */
  background-color: var(--page-cockfighting-background);
  line-height: 1.6;
}

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

.page-cockfighting__section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--page-cockfighting-gold);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--page-cockfighting-text-main);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 18px;
  color: var(--page-cockfighting-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__text-block:last-of-type {
    margin-bottom: 0;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Small top padding, body handles main offset */
  min-height: 600px;
  box-sizing: border-box;
  background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
  order: 1; /* Image first */
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 70vh; /* Limit hero image height */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  order: 2; /* Content after image */
  max-width: 900px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(36px, 6vw, 55px); /* Responsive font size */
  color: var(--page-cockfighting-gold);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small,
.page-cockfighting__btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-gold);
  color: var(--page-cockfighting-background);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main);
    border: none;
    margin-top: 20px;
}

.page-cockfighting__btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-large {
    padding: 18px 35px;
    font-size: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

/* Section Backgrounds */
.page-cockfighting__dark-bg {
  background-color: var(--page-cockfighting-card-bg);
}

/* About Section */
.page-cockfighting__about-cockfighting {
  background-color: var(--page-cockfighting-background);
}

.page-cockfighting__image-text-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 200px;
}

.page-cockfighting__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-cockfighting__text-content {
  flex: 1;
}

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

.page-cockfighting__list-item {
  font-size: 17px;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

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

/* Bet Types Section */
.page-cockfighting__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-title {
  font-size: 24px;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 16px;
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.6;
}

/* How to Play Section */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-card {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-cockfighting__step-number {
  font-size: 48px;
  color: var(--page-cockfighting-gold);
  font-weight: bold;
  margin-bottom: 20px;
  background-color: var(--page-cockfighting-deep-green);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--page-cockfighting-gold);
}

/* Advantages Section */
.page-cockfighting__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-card {
  background-color: var(--page-cockfighting-background);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-cockfighting-text-main);
}

/* Tips Section */
.page-cockfighting__tip-card {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-cockfighting-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__tip-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: var(--page-cockfighting-text-main);
  background-color: var(--page-cockfighting-deep-green);
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding: 0 25px;
  color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-cockfighting-text-secondary);
}

/* Final CTA Section */
.page-cockfighting__cta-final {
  background-color: var(--page-cockfighting-deep-green);
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting__image-text-grid {
    flex-direction: column;
  }
  .page-cockfighting__text-content {
    text-align: center;
  }
  .page-cockfighting__list-item {
    padding-left: 0;
    text-align: left;
  }
  .page-cockfighting__list-item::before {
    left: -25px; /* Adjust for centered text */
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    margin-bottom: 20px;
  }

  .page-cockfighting__text-block {
    margin-bottom: 30px;
  }

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

  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-cockfighting__main-title {
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    margin-bottom: 30px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small,
  .page-cockfighting__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__container,
  .page-cockfighting__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-cockfighting__image-wrapper,
  .page-cockfighting__tip-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__list-item {
    padding-left: 20px;
    text-align: left;
  }
  .page-cockfighting__list-item::before {
    left: 0;
  }

  .page-cockfighting__faq-question,
  .page-cockfighting__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 15px !important;
    padding-bottom: 20px !important;
  }

  .page-cockfighting__cta-final {
    padding: 60px 0;
  }

  .page-cockfighting__btn-large {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__grid-3-cols,
  .page-cockfighting__steps-grid,
  .page-cockfighting__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__faq-question {
    font-size: 16px;
  }
}