/* style/cockfighting-rules-gameplay.css */

/* Base styles for the page */
.page-cockfighting-rules-gameplay {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-color);
  padding-top: 10px; /* Small top padding for main content below header */
}

/* Hero Section */
.page-cockfighting-rules-gameplay__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  margin-bottom: 40px;
  overflow: hidden;
}

.page-cockfighting-rules-gameplay__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting-rules-gameplay__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-cockfighting-rules-gameplay__hero-content {
  width: 100%;
  max-width: 900px;
  padding: 40px 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: -80px; /* Overlap with image for visual effect */
  position: relative;
  z-index: 1;
  color: var(--text-main);
}

.page-cockfighting-rules-gameplay__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting-rules-gameplay__intro-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* General Section Styles */
.page-cockfighting-rules-gameplay__section {
  padding: 60px 20px;
  margin-bottom: 40px;
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-cockfighting-rules-gameplay__dark-section {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-cockfighting-rules-gameplay__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-cockfighting-rules-gameplay__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-cockfighting-rules-gameplay__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--deep-green), var(--glow));
  border-radius: 2px;
}

.page-cockfighting-rules-gameplay__paragraph {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-align: justify;
}

/* Card Grid for Bet Types */
.page-cockfighting-rules-gameplay__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-cockfighting-rules-gameplay__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting-rules-gameplay__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.page-cockfighting-rules-gameplay__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting-rules-gameplay__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-cockfighting-rules-gameplay__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: justify;
  flex-grow: 1;
}

/* List Styles */
.page-cockfighting-rules-gameplay__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting-rules-gameplay__list-item {
  background-color: var(--background-color);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.page-cockfighting-rules-gameplay__list-item:hover {
  transform: translateX(5px);
}

.page-cockfighting-rules-gameplay__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--glow);
  margin-bottom: 10px;
}

/* Steps Grid for Gameplay */
.page-cockfighting-rules-gameplay__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-cockfighting-rules-gameplay__step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.page-cockfighting-rules-gameplay__step-image {
  max-width: 100%;
  height: 220px; /* Fixed height for step images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting-rules-gameplay__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-cockfighting-rules-gameplay__step-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: justify;
}

/* Tips/Strategy Grid */
.page-cockfighting-rules-gameplay__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-cockfighting-rules-gameplay__tip-card {
  background-color: var(--background-color);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
}

.page-cockfighting-rules-gameplay__tip-image {
  max-width: 100%;
  height: 180px; /* Fixed height for tip images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-cockfighting-rules-gameplay__tip-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--glow);
  margin-bottom: 10px;
}

.page-cockfighting-rules-gameplay__tip-text {
  font-size: 0.9rem;
  text-align: justify;
  flex-grow: 1;
}

/* FAQ Section */
.page-cockfighting-rules-gameplay__faq-list {
  margin-top: 30px;
}

.page-cockfighting-rules-gameplay__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-cockfighting-rules-gameplay__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--deep-green);
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules-gameplay__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting-rules-gameplay__faq-item summary:hover {
  background-color: var(--primary-color);
}

.page-cockfighting-rules-gameplay__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-cockfighting-rules-gameplay__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold);
}

.page-cockfighting-rules-gameplay__faq-item[open] .page-cockfighting-rules-gameplay__faq-toggle {
  content: '−';
}

.page-cockfighting-rules-gameplay__faq-answer {
  padding: 20px 25px;
  background-color: var(--background-color);
  color: var(--text-secondary);
  font-size: 1rem;
  border-top: 1px solid var(--divider);
}

.page-cockfighting-rules-gameplay__faq-answer p {
  margin-bottom: 0;
}

/* CTA Button Styles */
.page-cockfighting-rules-gameplay__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-cockfighting-rules-gameplay__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-cockfighting-rules-gameplay__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting-rules-gameplay__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules-gameplay__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-cockfighting-rules-gameplay__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-cockfighting-rules-gameplay__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }

  .page-cockfighting-rules-gameplay__card-grid,
  .page-cockfighting-rules-gameplay__steps-grid,
  .page-cockfighting-rules-gameplay__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-cockfighting-rules-gameplay__cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-gameplay {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-cockfighting-rules-gameplay__hero-section {
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-gameplay__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }

  .page-cockfighting-rules-gameplay__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-cockfighting-rules-gameplay__intro-text {
    font-size: 1rem;
  }

  .page-cockfighting-rules-gameplay__section {
    padding: 40px 15px;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-gameplay__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting-rules-gameplay__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting-rules-gameplay__paragraph {
    font-size: 0.95rem;
  }

  .page-cockfighting-rules-gameplay__card-grid,
  .page-cockfighting-rules-gameplay__steps-grid,
  .page-cockfighting-rules-gameplay__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting-rules-gameplay__card,
  .page-cockfighting-rules-gameplay__step-card,
  .page-cockfighting-rules-gameplay__tip-card {
    padding: 20px;
  }

  .page-cockfighting-rules-gameplay__card-image,
  .page-cockfighting-rules-gameplay__step-image,
  .page-cockfighting-rules-gameplay__tip-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-cockfighting-rules-gameplay__list-item {
    padding: 15px 20px;
  }

  .page-cockfighting-rules-gameplay__list-title {
    font-size: 1.2rem;
  }

  .page-cockfighting-rules-gameplay__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-cockfighting-rules-gameplay__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .page-cockfighting-rules-gameplay__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-cockfighting-rules-gameplay__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 14px 25px;
    font-size: 1rem;
    margin: 0 auto; /* Center button if it's the only one in a flex column */
  }

  /* Ensure all content containers are responsive */
  .page-cockfighting-rules-gameplay__hero-section,
  .page-cockfighting-rules-gameplay__section,
  .page-cockfighting-rules-gameplay__card,
  .page-cockfighting-rules-gameplay__list-item,
  .page-cockfighting-rules-gameplay__step-card,
  .page-cockfighting-rules-gameplay__tip-card,
  .page-cockfighting-rules-gameplay__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting-rules-gameplay__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-cockfighting-rules-gameplay__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .page-cockfighting-rules-gameplay__hero-content {
    padding: 20px 10px;
  }

  .page-cockfighting-rules-gameplay__section {
    padding: 30px 10px;
  }

  .page-cockfighting-rules-gameplay__container {
    padding: 0 10px;
  }

  .page-cockfighting-rules-gameplay__card,
  .page-cockfighting-rules-gameplay__step-card,
  .page-cockfighting-rules-gameplay__tip-card {
    padding: 15px;
  }

  .page-cockfighting-rules-gameplay__faq-item summary {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .page-cockfighting-rules-gameplay__faq-answer {
    padding: 12px 15px;
  }
}

/* Color Contrast Fixes (if needed, based on dynamic analysis) */
/* These classes are for emergency fixes if default colors fail contrast */
.page-cockfighting-rules-gameplay__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-cockfighting-rules-gameplay__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

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