/* style/cockfighting.css */

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

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--kjc-text-main); /* Default text color for dark background */
  background-color: var(--kjc-background);
}

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

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

.page-cockfighting__sub-title {
  font-size: 1.8em;
  color: var(--kjc-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-cockfighting__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--kjc-text-secondary);
}

.page-cockfighting__list li {
  margin-bottom: 10px;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 80px; /* Small top padding */
  text-align: center;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--kjc-text-main);
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 12px;
  margin-top: 80px; /* Push content down to avoid header overlap */
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: var(--kjc-gold);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

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

.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: 50px;
  text-decoration: none;
  font-weight: bold;
  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(--kjc-button-gradient);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--kjc-glow); /* Text color from custom palette */
  border: 2px solid var(--kjc-glow);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2);
}

.page-cockfighting__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(87, 227, 141, 0.4);
}

/* Sections General */
.page-cockfighting__introduction-section,
.page-cockfighting__history-culture-section,
.page-cockfighting__types-section,
.page-cockfighting__rules-section,
.page-cockfighting__advantages-section,
.page-cockfighting__promotions-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

/* Image Text Grid */
.page-cockfighting__image-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__image-text-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-cockfighting__image-text-grid--reverse .page-cockfighting__image {
  order: 2;
}

.page-cockfighting__image-text-grid--reverse .page-cockfighting__text-content {
  order: 1;
}

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

.page-cockfighting__card {
  background-color: var(--kjc-background);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--kjc-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--kjc-text-main);
}

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

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

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

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

.page-cockfighting__advantage-item {
  text-align: center;
  background-color: var(--kjc-background);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--kjc-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__advantage-icon {
  width: 150px; /* Ensure minimum size */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

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

/* Step List */
.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__step-item {
  background-color: var(--kjc-background);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--kjc-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  counter-increment: step-counter;
}

.page-cockfighting__step-item::before {
  content: counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--kjc-button-gradient);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  border: 3px solid var(--kjc-deep-green);
  box-shadow: 0 3px 10px rgba(42, 209, 111, 0.6);
}

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

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

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

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

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

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

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

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

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: var(--kjc-text-secondary);
  background-color: var(--kjc-background);
  border-top: 1px solid var(--kjc-divider);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
}

/* CTA Buttons Center Alignment */
.page-cockfighting__cta-buttons--center {
  margin-top: 40px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting__hero-content {
    padding: 30px 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

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

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

  .page-cockfighting__image-text-grid {
    grid-template-columns: 1fr;
  }
  
  .page-cockfighting__image-text-grid--reverse .page-cockfighting__image {
    order: initial;
  }
  
  .page-cockfighting__image-text-grid--reverse .page-cockfighting__text-content {
    order: initial;
  }

  .page-cockfighting__advantage-list,
  .page-cockfighting__card-grid,
  .page-cockfighting__promotion-list,
  .page-cockfighting__step-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px !important;
  }

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

  .page-cockfighting__hero-content {
    margin-top: 40px; /* Adjust for smaller screens */
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

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

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

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

  .page-cockfighting__text-block,
  .page-cockfighting__list li,
  .page-cockfighting__card-description,
  .page-cockfighting__advantage-description,
  .page-cockfighting__step-description,
  .page-cockfighting__faq-answer {
    font-size: 0.95em;
  }

  .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 !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting img,
  .page-cockfighting__hero-image,
  .page-cockfighting__advantage-icon {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width */
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__image-text-grid,
  .page-cockfighting__card-grid,
  .page-cockfighting__advantage-list,
  .page-cockfighting__promotion-list,
  .page-cockfighting__step-list,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__history-culture-section,
  .page-cockfighting__types-section,
  .page-cockfighting__rules-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0;
  }

  .page-cockfighting__card,
  .page-cockfighting__advantage-item,
  .page-cockfighting__step-item,
  .page-cockfighting__faq-item {
    padding: 20px !important;
  }

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

  .page-cockfighting__faq-toggle {
    font-size: 1.3em !important;
  }
}