/* style/cockfighting.css */

/* Variables from shared.css: --bg-color, --text-main-color, --primary-color, --secondary-color, --card-bg, --border-color */

/* Body background is --bg-color (#0D0E12) which is dark, so text should be light #FFF3E6 */
.page-cockfighting {
  color: var(--text-main-color); /* #FFF3E6 */
  background-color: var(--bg-color); /* #0D0E12 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-main-color);
  padding-bottom: 60px;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 30px 20px;
  background: rgba(23, 25, 31, 0.8);
  border-radius: 8px;
  margin-top: -80px; /* Adjust to slightly overlap image, but not cover text */
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  display: inline-block;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff; /* White text for contrast */
  border: none;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-cockfighting__btn-secondary {
  background: #17191F;
  color: var(--primary-color); /* #FF8C1A */
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-cockfighting__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--text-main-color);
  text-align: justify;
}

.page-cockfighting__introduction-section,
.page-cockfighting__top-games-section,
.page-cockfighting__conclusion-section {
  padding: 60px 0;
  background-color: var(--card-bg); /* #17191F */
}

.page-cockfighting__criteria-section,
.page-cockfighting__guide-section,
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: var(--bg-color); /* #0D0E12 */
}

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

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

.page-cockfighting__card {
  background-color: var(--card-bg); /* #17191F */
  border: 1px solid var(--border-color); /* #A84F0C */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-main-color);
  transition: transform 0.3s ease;
}

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

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

.page-cockfighting__card-title,
.page-cockfighting__game-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__card-text,
.page-cockfighting__game-description {
  font-size: 1em;
  color: var(--text-main-color);
  flex-grow: 1;
}

.page-cockfighting__game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-cockfighting__game-item .page-cockfighting__btn-primary {
  margin-top: 20px;
}

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

.page-cockfighting__guide-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main-color);
}

.page-cockfighting__guide-step-title {
  font-size: 1.3em;
  color: var(--secondary-color); /* #FFA53A */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__guide-step-description {
  font-size: 1em;
  margin-bottom: 15px;
}

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

.page-cockfighting__list {
  list-style: disc;
  text-align: left;
  padding-left: 20px;
  color: var(--text-main-color);
}

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

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

.page-cockfighting__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--secondary-color); /* #FFA53A */
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 165, 58, 0.1);
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
  background-color: rgba(255, 165, 58, 0.15);
}

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

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

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-main-color);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

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

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

  .page-cockfighting__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
  }

  .page-cockfighting__criteria-grid,
  .page-cockfighting__game-list,
  .page-cockfighting__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

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

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

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
    border-radius: 0;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__criteria-section,
  .page-cockfighting__top-games-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__betting-tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0;
  }

  .page-cockfighting__criteria-grid,
  .page-cockfighting__game-list,
  .page-cockfighting__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__criteria-section,
  .page-cockfighting__top-games-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__betting-tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-cockfighting__card-image,
  .page-cockfighting__game-image {
    height: auto; /* Allow height to be auto for better responsiveness */
    min-height: 200px; /* Ensure minimum size */
  }

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

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

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

  .page-cockfighting__main-title {
    font-size: clamp(1.4em, 7vw, 2em);
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.4em, 6vw, 1.8em);
  }

  .page-cockfighting__card-title,
  .page-cockfighting__game-title {
    font-size: 1.2em;
  }

  .page-cockfighting__guide-step-title {
    font-size: 1.1em;
  }
}