/* style/cockfighting.css */

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

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--ps99-text-main); /* Ensure light text on dark body background */
  background-color: var(--ps99-bg-dark);
}

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  background-color: var(--ps99-bg-dark);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

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

.page-cockfighting__hero-content {
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 900px;
  margin-top: -80px; /* Pull content slightly over the image for visual flow */
  position: relative;
  z-index: 1;
  background-color: var(--ps99-bg-dark);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__hero-description {
  font-size: 1.15rem;
  color: var(--ps99-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--ps99-button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: var(--ps99-gold-color);
  border: 2px solid var(--ps99-gold-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--ps99-gold-color);
  color: var(--ps99-bg-dark);
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--ps99-gold-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-cockfighting__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ps99-text-secondary);
  margin-bottom: 25px;
  text-align: justify;
}

.page-cockfighting__introduction-section,
.page-cockfighting__tips-section,
.page-cockfighting__registration-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--ps99-bg-dark);
}

.page-cockfighting__dark-section {
  background-color: var(--ps99-deep-green);
  color: var(--ps99-text-main);
}

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

.page-cockfighting__card {
  background-color: var(--ps99-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  border: 1px solid var(--ps99-border-color);
}

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

.page-cockfighting__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ps99-gold-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-cockfighting__card-description {
  font-size: 1rem;
  color: var(--ps99-text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.page-cockfighting__rules-strategy-section {
  padding: 60px 0;
  background-color: var(--ps99-bg-dark);
  text-align: center;
}

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

.page-cockfighting__list li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-cockfighting__list li strong {
  color: var(--ps99-text-main);
}

.page-cockfighting__livestream-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--ps99-bg-dark);
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background-color: #000;
}

.page-cockfighting__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cockfighting__list--benefits {
  list-style-type: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
  text-align: center;
}

.page-cockfighting__list--benefits li {
  background-color: var(--ps99-card-bg);
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ps99-text-main);
  border: 1px solid var(--ps99-border-color);
}

.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: var(--ps99-bg-dark);
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  background-color: var(--ps99-card-bg);
  border: 1px solid var(--ps99-border-color);
  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.2rem;
  font-weight: 600;
  color: var(--ps99-text-main);
  cursor: pointer;
  background-color: var(--ps99-card-bg);
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: var(--ps99-deep-green);
}

.page-cockfighting__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ps99-gold-color);
  line-height: 1;
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ps99-text-secondary);
}

/* Details tag specific styles */
.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
  background-color: var(--ps99-deep-green);
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question .page-cockfighting__faq-toggle {
  content: '−';
  color: var(--ps99-gold-color);
}

.page-cockfighting__faq-item summary {
  list-style: none;
}

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

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

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
  }

  .page-cockfighting__hero-content {
    padding: 30px 15px 40px;
    margin-top: -40px;
  }

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

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

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

  .page-cockfighting__introduction-section,
  .page-cockfighting__rules-strategy-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__livestream-section,
  .page-cockfighting__registration-section,
  .page-cockfighting__faq-section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    margin-bottom: 25px;
  }

  .page-cockfighting__container,
  .page-cockfighting__feature-grid,
  .page-cockfighting__content-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__list--benefits,
  .page-cockfighting__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

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

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

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

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

  /* Video responsiveness */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-cockfighting__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    margin-bottom: 30px;
  }

  .page-cockfighting__list--benefits {
    grid-template-columns: 1fr;
  }

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

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

  .page-cockfighting__main-title {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 0.95rem;
  }

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

  .page-cockfighting__faq-toggle {
    font-size: 1.5rem;
  }
}