/* style/cockfighting.css */

/* Variables */
:root {
  --k9cc-primary: #113B7A;
  --k9cc-secondary: #1D5FD1;
  --k9cc-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --k9cc-card-bg: #10233F;
  --k9cc-text-main: #F3F8FF;
  --k9cc-text-secondary: #AFC4E8;
  --k9cc-border: #244D84;
  --k9cc-glow: #4FA8FF;
  --k9cc-gold: #F2C14E;
  --k9cc-divider: #1B3357;
  --k9cc-deep-navy: #08162B;
}

/* Base styles for the page content */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--k9cc-text-main); /* Default text color for dark body background */
  background-color: var(--k9cc-deep-navy); /* Ensure consistency with body background */
}

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

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

/* Section styling */
.page-cockfighting__section {
  padding: 60px 0;
  position: relative;
}

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

.page-cockfighting__light-bg {
  background-color: var(--k9cc-deep-navy);
  color: var(--k9cc-text-main);
}

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

.page-cockfighting__section-title--light {
  color: var(--k9cc-gold);
}

.page-cockfighting__content-paragraph {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--k9cc-text-secondary);
  text-align: justify;
}

.page-cockfighting__content-paragraph--light {
  color: var(--k9cc-text-secondary);
}

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

.page-cockfighting__image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(17, 59, 122, 0.85); /* Semi-transparent background for readability */
  border-radius: 10px;
  transform: translateY(-50px); /* Lift content slightly over the image */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-title {
  color: var(--k9cc-gold);
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  color: var(--k9cc-text-main);
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

/* CTA Buttons */
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__cta-button--primary {
  background: var(--k9cc-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button--primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
}

.page-cockfighting__cta-button--secondary {
  background-color: transparent;
  color: var(--k9cc-gold);
  border: 2px solid var(--k9cc-gold);
}

.page-cockfighting__cta-button--secondary:hover {
  background-color: var(--k9cc-gold);
  color: var(--k9cc-primary);
  transform: translateY(-2px);
}

.page-cockfighting__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--k9cc-deep-navy);
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

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

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

.page-cockfighting__video-cta {
  margin-top: 30px;
}

/* Content Grid */
.page-cockfighting__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-cockfighting__content-grid--reverse {
  flex-direction: row-reverse;
}

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

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

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

.page-cockfighting__content-image--center {
  margin: 40px auto 20px auto;
}

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

.page-cockfighting__feature-card {
  background-color: var(--k9cc-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--k9cc-border);
}

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

.page-cockfighting__feature-description,
.page-cockfighting__feature-paragraph {
  font-size: 1em;
  line-height: 1.6;
  color: var(--k9cc-text-secondary);
}

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

.page-cockfighting__step-card {
  background-color: var(--k9cc-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--k9cc-border);
  text-align: center;
}

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

.page-cockfighting__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--k9cc-text-secondary);
  margin-bottom: 20px;
}

/* Bet Type Grid */
.page-cockfighting__bet-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__bet-type-card {
  background-color: var(--k9cc-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--k9cc-border);
}

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

.page-cockfighting__bet-type-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--k9cc-text-secondary);
}

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

.page-cockfighting__tip-card {
  background-color: var(--k9cc-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--k9cc-border);
}

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

.page-cockfighting__tip-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--k9cc-text-secondary);
}

/* Promotions Section */
.page-cockfighting__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__promo-card {
  background-color: var(--k9cc-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--k9cc-border);
}

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

.page-cockfighting__promo-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--k9cc-text-secondary);
}

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

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

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--k9cc-gold);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
  background-color: rgba(29, 95, 209, 0.2); /* Lighten secondary color for hover */
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

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

/* Final CTA Section */
.page-cockfighting__final-cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--k9cc-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    transform: translateY(0);
    margin-top: -50px;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__content-grid {
    flex-direction: column;
  }
  .page-cockfighting__content-grid--reverse {
    flex-direction: column;
  }
  .page-cockfighting__feature-grid, .page-cockfighting__step-grid, .page-cockfighting__bet-type-grid, .page-cockfighting__tips-list, .page-cockfighting__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 0 0 40px 0;
  }
  .page-cockfighting__hero-content {
    padding: 30px 15px;
    margin-top: -30px; /* Adjust for smaller screens */
  }
  .page-cockfighting__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-cockfighting__content-paragraph {
    font-size: 0.95em;
  }
  .page-cockfighting__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-cockfighting__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__cta-button,
  .page-cockfighting__hero-cta-buttons a {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__video-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px !important; /* body handles --header-offset, small padding here */
  }
  .page-cockfighting__video-wrapper {
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__feature-card,
  .page-cockfighting__step-card,
  .page-cockfighting__bet-type-card,
  .page-cockfighting__tip-card,
  .page-cockfighting__promo-card,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    padding: 20px 10px;
  }
  .page-cockfighting__hero-title {
    font-size: 1.5em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__content-paragraph {
    font-size: 0.9em;
  }
  .page-cockfighting__feature-title, .page-cockfighting__step-title, .page-cockfighting__bet-type-title, .page-cockfighting__tip-title, .page-cockfighting__promo-title {
    font-size: 1.3em;
  }
}