/* Base styles for the cockfighting page */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy - Body background from shared.css is dark */
}

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

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #F2C14E 0%, #1D5FD1 100%); /* Gold to Auxiliary */
  border-radius: 2px;
}

.page-cockfighting__article-body {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.page-cockfighting__article-body p {
  margin-bottom: 15px;
  color: #AFC4E8; /* Text Secondary */
}

.page-cockfighting__article-body h3.page-cockfighting__article-subtitle {
  font-size: 24px;
  color: #F3F8FF; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
  border: 2px solid #244D84; /* Border */
  margin-left: 15px;
}

.page-cockfighting__btn-secondary:hover {
  background: #113B7A; /* Main Color */
  color: #ffffff;
  border-color: #1D5FD1; /* Auxiliary Color */
  transform: translateY(-2px);
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-cockfighting__cta-buttons--center {
  justify-content: center;
}

/* HERO Section */
.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  color: #F3F8FF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
}

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

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  margin-top: -150px; /* Overlap image slightly for visual effect, but not text on image */
  background: rgba(16, 35, 63, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.page-cockfighting__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #F2C14E; /* Gold */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  color: #AFC4E8; /* Text Secondary */
}

/* Info Section */
.page-cockfighting__info-section {
  padding: 60px 0;
  background-color: #08162B; /* Deep Navy */
}

.page-cockfighting__info-section .page-cockfighting__text-block {
  color: #AFC4E8;
  font-size: 17px;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

/* Features Section (Why Choose) */
.page-cockfighting__features-section {
  padding: 60px 0;
  background-color: #10233F; /* Card BG */
}

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

.page-cockfighting__feature-card {
  background: #08162B; /* Deep Navy */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 15px #4FA8FF; /* Glow */
}

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

.page-cockfighting__feature-title {
  font-size: 22px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 60px 0;
  background-color: #08162B; /* Deep Navy */
}

.page-cockfighting__guide-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__guide-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.page-cockfighting__guide-steps {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__step-item {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-left: 5px solid #1D5FD1; /* Auxiliary Color */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 20px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 10px;
}

.page-cockfighting__step-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Betting Types Section */
.page-cockfighting__betting-types-section {
  padding: 60px 0;
  background-color: #10233F; /* Card BG */
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  padding: 60px 0;
  background-color: #08162B; /* Deep Navy */
}

.page-cockfighting__strategy-content {
  display: flex;
  flex-wrap: wrap-reverse; /* Image after text on desktop, before text on mobile */
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.page-cockfighting__strategy-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.page-cockfighting__strategy-content .page-cockfighting__article-body {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
  margin: 0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #10233F; /* Card BG */
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #08162B; /* Deep Navy */
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #113B7A; /* Main Color */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: #0d1a2f; /* Slightly lighter than Deep Navy */
  border-radius: 0 0 5px 5px;
  color: #AFC4E8; /* Text Secondary */
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  padding: 60px 0;
  background-color: #08162B; /* Deep Navy */
  text-align: center;
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block {
  color: #AFC4E8;
  font-size: 17px;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

/* Universal Image & Container Mobile Responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__section,
.page-cockfighting__card,
.page-cockfighting__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 0 25px;
  }
  .page-cockfighting__hero-content {
    margin-top: -100px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-cockfighting__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-cockfighting__guide-content {
    gap: 30px;
  }
  .page-cockfighting__strategy-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* HERO Section Mobile */
  .page-cockfighting__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: 400px;
  }
  .page-cockfighting__hero-content {
    margin-top: 20px; /* Adjust to prevent text overlapping image after contain */
    padding: 15px;
    background: rgba(16, 35, 63, 0.95); /* More opaque on mobile */
  }
  .page-cockfighting__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 10px;
  }
  .page-cockfighting__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 12px 15px;
    font-size: 15px;
  }

  /* General Section Titles Mobile */
  .page-cockfighting__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Info Section Mobile */
  .page-cockfighting__info-section .page-cockfighting__text-block {
    font-size: 16px;
    padding: 0 15px;
  }

  /* Features Section Mobile */
  .page-cockfighting__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-cockfighting__feature-card {
    padding: 20px;
  }
  .page-cockfighting__feature-title {
    font-size: 20px;
  }
  .page-cockfighting__feature-description {
    font-size: 15px;
  }

  /* Guide Section Mobile */
  .page-cockfighting__guide-content {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }
  .page-cockfighting__guide-image {
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-cockfighting__step-item {
    padding: 15px;
  }
  .page-cockfighting__step-title {
    font-size: 18px;
  }
  .page-cockfighting__step-description {
    font-size: 15px;
  }

  /* Betting Types Section Mobile */
  .page-cockfighting__betting-types-section .page-cockfighting__article-body {
    padding: 0 15px;
  }
  .page-cockfighting__article-body p,
  .page-cockfighting__article-body h3.page-cockfighting__article-subtitle {
    font-size: 16px;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }
  .page-cockfighting__article-body h3.page-cockfighting__article-subtitle {
    font-size: 20px;
  }

  /* Strategy Section Mobile */
  .page-cockfighting__strategy-content {
    flex-direction: column; /* Ensure image comes before text if flex-wrap-reverse is used */
    gap: 20px;
    padding: 0 15px;
  }
  .page-cockfighting__strategy-image {
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-cockfighting__strategy-content .page-cockfighting__article-body {
    padding: 0;
  }

  /* FAQ Section Mobile */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-qtext { font-size: 16px; }
  .page-cockfighting__faq-toggle { font-size: 20px; }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }

  /* Conclusion Section Mobile */
  .page-cockfighting__conclusion-section .page-cockfighting__text-block {
    font-size: 16px;
    padding: 0 15px;
  }

  /* Universal Image & Container Mobile Responsiveness - Important */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}