/* style/cockfighting.css */

/* --- General Styles --- */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color from palette */
  background-color: var(--bg-color); /* Default background from palette */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__section-intro {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Important for responsive buttons */
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #11A84E; /* Main Color */
  border: 2px solid #2E7A4E; /* Border Color */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
  background-color: #11A84E;
  color: #F2FFF6; /* Text Main */
  border-color: #11A84E;
  box-shadow: 0 4px 12px rgba(17, 168, 78, 0.3);
  transform: translateY(-2px);
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

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

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

/* --- Hero Section --- */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
}

.page-cockfighting__hero-content {
  position: relative; /* Ensure content is in normal flow */
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  background-color: rgba(8, 22, 15, 0.8); /* Background color */
  border-radius: 12px;
  margin-top: -80px; /* Pull content up over image slightly */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
  color: var(--gold); /* Gold color for H1 */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px var(--glow); /* Glow effect */
}

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

/* --- Why Choose Us Section --- */
.page-cockfighting__why-choose-us {
  padding: 80px 0;
  background-color: var(--card-bg); /* Card BG color */
}

.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__feature-card {
  background-color: var(--deep-green); /* Deep Green for feature cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border); /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-width: 250px; /* Max width for icon */
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

/* --- Game Types Section --- */
.page-cockfighting__game-types {
  padding: 80px 0;
  background-color: var(--bg-color); /* Background color */
}

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

.page-cockfighting__type-card {
  background-color: var(--card-bg); /* Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border); /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__type-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__type-card .page-cockfighting__card-title {
  padding: 20px 20px 0 20px;
  margin-bottom: 10px;
  color: var(--gold);
}

.page-cockfighting__type-card .page-cockfighting__card-description {
  padding: 0 20px 20px 20px;
}

/* --- How to Play Section --- */
.page-cockfighting__how-to-play {
  padding: 80px 0;
  background-color: var(--card-bg); /* Card BG color */
}

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

.page-cockfighting__step-card {
  background-color: var(--deep-green); /* Deep Green for step cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border); /* Border color */
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__step-number {
  background-color: var(--gold); /* Gold color for numbers */
  color: #08160F; /* Dark text for numbers */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: 700;
  margin: -60px auto 20px auto; /* Position above card */
  border: 3px solid var(--border);
  box-shadow: 0 0 15px var(--glow);
}

.page-cockfighting__step-card .page-cockfighting__card-title {
  color: var(--gold);
}

/* --- Strategies Section --- */
.page-cockfighting__strategies {
  padding: 80px 0;
  background-color: var(--bg-color); /* Background color */
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-cockfighting__strategy-item {
  background-color: var(--card-bg); /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border); /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__strategy-item .page-cockfighting__card-title {
  color: var(--gold);
  margin-bottom: 10px;
}

.page-cockfighting__strategy-item .page-cockfighting__card-description {
  color: var(--text-secondary);
}

/* --- Promotions Section --- */
.page-cockfighting__promotions {
  padding: 80px 0;
  background-color: var(--card-bg); /* Card BG color */
}

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

.page-cockfighting__promo-card {
  background-color: var(--deep-green); /* Deep Green for promo cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border); /* Border color */
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
  color: var(--gold);
  padding: 0 20px;
  flex-grow: 1; /* Allow title to take available space */
}

.page-cockfighting__promo-card .page-cockfighting__card-description {
  padding: 0 20px 20px 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
  width: calc(100% - 40px); /* Adjust width for padding */
  max-width: 200px;
}

/* --- FAQ Section --- */
.page-cockfighting__faq {
  padding: 80px 0;
  background-color: var(--bg-color); /* Background color */
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg); /* Card BG color */
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border); /* Border color */
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green); /* Deep Green for question background */
  border-bottom: 1px solid var(--divider); /* Divider color */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background-color: var(--main-color); /* Main color when open */
  color: #F2FFF6; /* Text Main */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--gold); /* Gold color for toggle icon */
  margin-left: 20px;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  color: #F2FFF6; /* Text Main when open */
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: var(--text-secondary);
  background-color: var(--card-bg); /* Card BG for answer */
}

/* --- Conclusion Section --- */
.page-cockfighting__conclusion {
  padding: 80px 0;
  background-color: var(--card-bg); /* Card BG color */
  text-align: center;
}

.page-cockfighting__conclusion-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 30px auto 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border); /* Border color */
  min-height: 200px; /* Minimum size requirement */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

  /* Force responsive images */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive buttons */
  .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-left: 15px;
    padding-right: 15px;
  }
  
  /* Button containers mobile adaptation */
  .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: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    overflow: hidden !important;
  }

  /* General section padding for mobile */
  .page-cockfighting__hero-section,
  .page-cockfighting__why-choose-us,
  .page-cockfighting__game-types,
  .page-cockfighting__how-to-play,
  .page-cockfighting__strategies,
  .page-cockfighting__promotions,
  .page-cockfighting__faq,
  .page-cockfighting__conclusion {
    padding: 40px 0;
  }
  
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Small top padding for hero on mobile */
  }

  .page-cockfighting__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }
  
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-cockfighting__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__type-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__step-number {
    margin-top: -50px;
  }

  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
}

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

/* Ensure text contrast on various backgrounds */
.page-cockfighting__dark-section {
  background-color: var(--card-bg); /* Dark background */
  color: var(--text-main); /* Light text */
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: var(--gold);
}

.page-cockfighting__dark-section .page-cockfighting__section-intro {
  color: var(--text-secondary);
}

.page-cockfighting__feature-card,
.page-cockfighting__step-card,
.page-cockfighting__promo-card {
  color: var(--text-main);
}

.page-cockfighting__feature-card .page-cockfighting__card-title,
.page-cockfighting__step-card .page-cockfighting__card-title,
.page-cockfighting__promo-card .page-cockfighting__card-title {
  color: var(--gold);
}

.page-cockfighting__feature-card .page-cockfighting__card-description,
.page-cockfighting__step-card .page-cockfighting__card-description,
.page-cockfighting__promo-card .page-cockfighting__card-description {
  color: var(--text-secondary);
}

/* Specific button styles */
.page-cockfighting__btn-secondary {
  color: var(--main-color);
  border-color: var(--border);
}
.page-cockfighting__btn-secondary:hover {
  background-color: var(--main-color);
  color: var(--text-main);
  border-color: var(--main-color);
}