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

.page-cockfighting {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--background-dark); /* Ensure dark background for main content */
}

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

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-cockfighting__section-description {
  font-size: clamp(16px, 2vw, 20px);
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-cockfighting__text-dark {
  color: var(--text-dark-contrast);
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
  padding: 10px 0 60px; /* Small top padding, body handles header offset */
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
}

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

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

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

/* General Section Styling */
.page-cockfighting__about-section,
.page-cockfighting__video-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__strategies-section,
.page-cockfighting__benefits-section,
.page-cockfighting__tournaments-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 80px 0;
}

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

.page-cockfighting__light-bg {
  background-color: var(--text-main);
  color: var(--text-dark-contrast);
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__section-description {
  color: var(--text-dark-contrast);
}

.page-cockfighting__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-cockfighting__text-content {
  flex: 1;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-cockfighting__text-content p {
  margin-bottom: 20px;
}

.page-cockfighting__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__image-content--center {
  margin-top: 40px;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__video-section {
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-cockfighting__btn-watch-live {
  margin-top: 20px;
}

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

.page-cockfighting__card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 220px;
  border: 1px solid var(--border-color);
}

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

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

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

.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(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  background: var(--button-gradient);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 2px 10px rgba(34, 199, 104, 0.5);
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-color);
}

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

.page-cockfighting__grid-two-col {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-cockfighting__grid-two-col .page-cockfighting__text-content {
  flex: 2;
  color: var(--text-dark-contrast);
}

.page-cockfighting__grid-two-col .page-cockfighting__image-content {
  flex: 1;
}

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

.page-cockfighting__strategy-list li {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--text-dark-contrast);
}

.page-cockfighting__strategy-list li::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-cockfighting__strategy-list li strong {
  color: var(--deep-green);
}

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

.page-cockfighting__benefit-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__benefit-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-color);
}

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

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

.page-cockfighting__tournament-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-cockfighting__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-cockfighting__faq-item[open] {
  background-color: var(--deep-green);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.page-cockfighting__faq-toggle {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--gold-color);
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__content-wrapper,
  .page-cockfighting__grid-two-col {
    flex-direction: column;
    text-align: center;
  }
  
  .page-cockfighting__image-content {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }

  .page-cockfighting__grid-two-col .page-cockfighting__text-content {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    min-height: 450px;
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-title {
    font-size: clamp(30px, 8vw, 48px);
  }

  .page-cockfighting__hero-description {
    font-size: clamp(16px, 3vw, 20px);
  }

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

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

  .page-cockfighting__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-cockfighting__section-description {
    font-size: clamp(15px, 3vw, 18px);
    margin-bottom: 30px;
  }

  .page-cockfighting__about-section,
  .page-cockfighting__video-section,
  .page-cockfighting__betting-types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__benefits-section,
  .page-cockfighting__tournaments-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 60px 0;
  }

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

  /* Mobile image and video responsive adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .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__strategy-list li {
    font-size: 16px;
    padding-left: 25px;
  }

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

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

@media (max-width: 480px) {
  .page-cockfighting__hero-section {
    min-height: 350px;
  }

  .page-cockfighting__hero-title {
    font-size: clamp(28px, 9vw, 40px);
  }

  .page-cockfighting__hero-description {
    font-size: clamp(14px, 4vw, 16px);
  }

  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__benefit-title,
  .page-cockfighting__tournament-title {
    font-size: 20px;
  }

  .page-cockfighting__card-description,
  .page-cockfighting__step-description,
  .page-cockfighting__benefit-description,
  .page-cockfighting__tournament-description {
    font-size: 15px;
  }
}