/* style/cockfighting.css */

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

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

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

.page-cockfighting__section-title,
.page-cockfighting__cta-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--gold-color); /* Using gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-cockfighting__section-title {
  margin-top: 60px;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-cockfighting__text-block a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Image base styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Hero Section */
.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  position: relative;
  overflow: hidden;
  background-color: var(--deep-navy-color);
  display: flex; /* Use flex to control image/content stacking */
  flex-direction: column; /* Stack vertically by default */
  align-items: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 675px; /* Fixed height for consistency, will be object-fit: cover */
  object-position: center top;
}

.page-cockfighting__hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: var(--card-bg-color); /* Dark background for content */
  color: var(--text-main-color);
  border-radius: 8px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal, but text is below */
  position: relative;
  z-index: 1; /* Ensure content is above image if any overlap occurs */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 60px;
}

.page-cockfighting__hero-title {
  font-weight: 800;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1 font size */
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
  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 {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  margin-left: 20px;
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--text-main-color);
  transform: translateY(-2px);
}

/* General Section Styles */
.page-cockfighting__section {
  padding: 60px 0;
  background-color: var(--deep-navy-color);
  color: var(--text-main-color);
}

.page-cockfighting__introduction-section .page-cockfighting__section-title,
.page-cockfighting__features-section .page-cockfighting__section-title,
.page-cockfighting__how-to-section .page-cockfighting__section-title {
  color: var(--gold-color);
}

.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__content-grid--reverse {
  grid-template-areas: "image text"; /* Default order */
}
.page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
  grid-area: image;
}
.page-cockfighting__content-grid--reverse .page-cockfighting__text-block {
  grid-area: text;
}


.page-cockfighting__image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background-color: var(--card-bg-color); /* Placeholder background */
  padding: 10px; /* Border-like effect */
}

.page-cockfighting__image-item {
  width: 100%;
  height: 450px; /* Example fixed height for content images */
  object-fit: cover;
  border-radius: 8px;
}

/* Features Section */
.page-cockfighting__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__feature-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__feature-title {
  font-size: 22px;
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: var(--text-secondary-color);
}

/* How-To Section */
.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__step-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* FAQ Section */
.page-cockfighting__faq-section {
  padding-bottom: 80px;
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: rgba(var(--main-color), 0.2); /* Slightly lighter hover */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: var(--deep-navy-color); /* Darker background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary-color);
}
.page-cockfighting__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--text-secondary-color);
}
.page-cockfighting__faq-answer a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* CTA Section */
.page-cockfighting__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--main-color); /* Use main color for CTA background */
}

.page-cockfighting__cta-container {
  max-width: 900px;
  padding: 40px 20px;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__cta-title {
  color: var(--gold-color);
  margin-bottom: 20px;
}

.page-cockfighting__cta-description {
  font-size: 18px;
  color: var(--text-secondary-color);
  margin-bottom: 40px;
}

.page-cockfighting__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}


/* --- Responsive Styles (Mobile First Approach / Desktop overrides) --- */

/* Tablet and Mobile adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__section-title,
  .page-cockfighting__cta-title {
    font-size: 32px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(26px, 4.5vw, 40px);
  }
  .page-cockfighting__hero-description {
    font-size: 17px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 25px;
    font-size: 17px;
  }
  .page-cockfighting__content-grid {
    gap: 30px;
  }
  .page-cockfighting__feature-title,
  .page-cockfighting__step-title {
    font-size: 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 17px;
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  /* Hero Section */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }
  .page-cockfighting__hero-image {
    height: 300px; /* Adjust hero image height for mobile */
  }
  .page-cockfighting__hero-content {
    padding: 30px 15px;
    margin-top: -60px; /* Adjust overlap */
    margin-bottom: 40px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(24px, 7vw, 36px) !important; /* Ensure H1 font size is responsive */
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
  }

  /* General Sections */
  .page-cockfighting__container {
    padding: 0 15px !important; /* Mobile padding for containers */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title,
  .page-cockfighting__cta-title {
    font-size: 28px !important;
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block p {
    font-size: 15px;
  }

  /* Content Grid (Images + Text) */
  .page-cockfighting__content-grid {
    grid-template-columns: 1fr !important; /* Single column for mobile */
    gap: 30px;
  }
  .page-cockfighting__content-grid--reverse {
    grid-template-areas: unset; /* Reset grid area for single column */
  }
  .page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
    order: -1; /* Place image above text for consistency if reversed */
  }
  .page-cockfighting__image-item {
    height: 250px; /* Adjust content image height for mobile */
  }

  /* Feature List & Steps List */
  .page-cockfighting__feature-item,
  .page-cockfighting__step-item {
    padding: 20px;
    margin-bottom: 15px;
  }
  .page-cockfighting__feature-title,
  .page-cockfighting__step-title {
    font-size: 18px;
  }
  .page-cockfighting__feature-description,
  .page-cockfighting__step-description {
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-cockfighting__faq-item {
    margin-bottom: 10px;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px 18px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 18px 15px;
  }
  .page-cockfighting__faq-answer p {
    font-size: 14px;
  }

  /* CTA Section */
  .page-cockfighting__cta-section {
    padding: 50px 0;
  }
  .page-cockfighting__cta-container {
    padding: 30px 15px;
  }
  .page-cockfighting__cta-description {
    font-size: 16px;
  }
  .page-cockfighting__button-group {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important; /* Full width buttons */
    max-width: 100% !important;
    margin: 0 !important; /* Remove margin between stacked buttons */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure all images and containers adapt to mobile */
@media (max-width: 768px) {
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__hero-content,
  .page-cockfighting__image-wrapper,
  .page-cockfighting__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__content-area {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-cockfighting__introduction-section .page-cockfighting__container,
  .page-cockfighting__features-section .page-cockfighting__container,
  .page-cockfighting__how-to-section .page-cockfighting__container,
  .page-cockfighting__faq-section .page-cockfighting__container,
  .page-cockfighting__cta-section .page-cockfighting__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}