/* style/cockfighting.css */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --body-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

.page-cockfighting {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark body bg */
  background-color: var(--body-bg);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, var(--body-bg) 0%, #17191F 100%);
  overflow: hidden;
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-main);
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__description {
  font-size: 1.1em;
  color: #E0E0E0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styles */
.page-cockfighting__section {
  padding: 60px 20px;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
}

.page-cockfighting__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-cockfighting__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #E0E0E0;
  text-align: justify;
}

/* Light Background Sections */
.page-cockfighting__light-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-cockfighting__light-bg .page-cockfighting__text-block,
.page-cockfighting__light-bg .page-cockfighting__description {
  color: #E0E0E0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
  color: var(--secondary-color);
}

/* Dark Background Sections */
.page-cockfighting__dark-bg {
  background-color: var(--body-bg);
  color: var(--text-main);
}

.page-cockfighting__dark-bg .page-cockfighting__text-block,
.page-cockfighting__dark-bg .page-cockfighting__description {
  color: #D0D0D0;
}

/* Buttons */
.page-cockfighting__cta-button,
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__cta-button:hover,
.page-cockfighting__btn-primary:hover,
.page-cockfighting__btn-secondary:hover {
  background: linear-gradient(180deg, var(--glow-color) 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.page-cockfighting__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__card-text {
  font-size: 0.95em;
  color: #C0C0C0;
}

/* Lists */
.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 30px;
  color: #E0E0E0;
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-cockfighting__ordered-list li strong {
  color: var(--secondary-color);
}

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

.page-cockfighting__feature-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.page-cockfighting__feature-text {
  font-size: 1em;
  color: #C0C0C0;
}

/* Images within content */
.page-cockfighting__betting-guide img,
.page-cockfighting__strategies-section img,
.page-cockfighting__advantages-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
}

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;
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 1.1em;
}

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(--primary-color-rgb), 0.1);
}

.page-cockfighting__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--primary-color-rgb), 0.05);
  border-radius: 0 0 10px 10px;
  color: #E0E0E0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-cockfighting__description {
    font-size: 1em;
  }
  .page-cockfighting__cta-button, .page-cockfighting__btn-primary {
    padding: 12px 30px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-image img {
    border-radius: 8px;
  }

  .page-cockfighting__hero-content {
    padding: 0 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-cockfighting__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-cockfighting__section {
    padding: 40px 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 1em;
  }

  .page-cockfighting__grid,
  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card,
  .page-cockfighting__feature-item {
    padding: 20px;
    border-radius: 8px;
  }

  .page-cockfighting__card img {
    border-radius: 6px;
  }

  .page-cockfighting__card-title {
    font-size: 1.2em;
  }

  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-cockfighting__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .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;
  }

  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { 
    padding: 15px; 
    font-size: 1em;
  }
  .page-cockfighting__faq-qtext { 
    font-size: 1em; 
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }
}

/* Ensure minimum image size for content images */
.page-cockfighting img:not(.page-cockfighting__hero-image img) {
  min-width: 200px;
  min-height: 200px;
}