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

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--deep-navy-color); /* Inherited from body, but explicitly set for clarity */
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  color: var(--text-main);
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Adjust based on common aspect ratios like 16:9 for 1200x675 */
  object-fit: cover;
  position: relative; /* Ensure it's in normal flow and not absolutely positioned */
  z-index: 1;
  display: block;
}

.page-cockfighting__hero-content {
  position: relative; /* Ensure content is above the image but not overlapping */
  z-index: 2;
  max-width: 900px;
  margin-top: 40px; /* Space between image and text */
  padding: 0 20px;
}

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

.page-cockfighting__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  border-radius: 6px;
}

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

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

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__section-description {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.page-cockfighting__dark-section {
  background-color: var(--primary-color);
  padding: 80px 0;
  color: var(--text-main);
}

.page-cockfighting__light-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-cockfighting__introduction {
  padding: 80px 0;
}

/* Game Features */
.page-cockfighting__game-features {
  padding: 80px 0;
  background-color: var(--deep-navy-color);
}

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

.page-cockfighting__feature-card,
.page-cockfighting__promotion-card,
.page-cockfighting__step-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
}

.page-cockfighting__feature-image,
.page-cockfighting__promotion-image,
.page-cockfighting__step-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
  padding: 0 20px;
}

.page-cockfighting__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Why Choose Us */
.page-cockfighting__why-choose-us {
  padding: 80px 0;
}

.page-cockfighting__benefits-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__benefit-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-cockfighting__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-cockfighting__list-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-cockfighting__cta-buttons--center {
  margin-top: 50px;
}

/* How To Play */
.page-cockfighting__how-to-play {
  padding: 80px 0;
  background-color: var(--deep-navy-color);
}

.page-cockfighting__step-card .page-cockfighting__btn-small {
  margin-top: 20px;
}

/* Promotions */
.page-cockfighting__promotions {
  padding: 80px 0;
}

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

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Final CTA Section */
.page-cockfighting__cta-final {
  padding: 100px 0;
  text-align: center;
  background-color: var(--primary-color);
  background-image: url('[GALLERY:bg:1920x400:cockfighting_stadium_blurred,dark_overlay,cta_background,888now_asia]');
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-cockfighting__cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.page-cockfighting__cta-final-content {
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }
  .page-cockfighting__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-content {
    margin-top: 30px;
  }
  .page-cockfighting__hero-image {
    max-height: 400px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-cockfighting__hero-description {
    font-size: 1rem;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .page-cockfighting__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-cockfighting__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  /* Image and Video responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction,
  .page-cockfighting__game-features,
  .page-cockfighting__why-choose-us,
  .page-cockfighting__how-to-play,
  .page-cockfighting__promotions,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__promotion-card,
  .page-cockfighting__step-card,
  .page-cockfighting__benefit-item {
    padding: 20px;
  }
  .page-cockfighting__feature-image,
  .page-cockfighting__promotion-image,
  .page-cockfighting__step-image {
    height: auto; /* Allow height to adjust for mobile */
  }

  .page-cockfighting__dark-section,
  .page-cockfighting__introduction,
  .page-cockfighting__game-features,
  .page-cockfighting__how-to-play,
  .page-cockfighting__promotions,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final {
    padding: 60px 0;
  }

  .page-cockfighting__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-section {
    padding-bottom: 30px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-cockfighting__hero-description {
    font-size: 0.9rem;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  .page-cockfighting__section-description {
    font-size: 0.85rem;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  .page-cockfighting__faq-item summary {
    font-size: 0.95rem;
  }
  .page-cockfighting__faq-answer {
    font-size: 0.85rem;
  }
  .page-cockfighting__dark-section,
  .page-cockfighting__introduction,
  .page-cockfighting__game-features,
  .page-cockfighting__why-choose-us,
  .page-cockfighting__how-to-play,
  .page-cockfighting__promotions,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final {
    padding: 40px 0;
  }
}