/* style/cockfighting.css */

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

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
  font-family: Arial, sans-serif;
  color: var(--luck888-text-main); /* Default text color for dark background */
  background-color: var(--luck888-background);
  line-height: 1.6;
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__dark-bg {
  background-color: var(--luck888-background);
  color: var(--luck888-text-main);
}

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

.page-cockfighting__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--luck888-gold);
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--luck888-text-main);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
}

.page-cockfighting__main-title {
  font-weight: 700;
  color: var(--luck888-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
  line-height: 1.2;
  /* Use clamp for responsive font size without fixed large values */
  font-size: clamp(2.5em, 5vw, 3.8em);
}

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

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--luck888-btn-gradient);
  color: var(--luck888-text-main);
  border: none;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--luck888-glow);
}

.page-cockfighting__btn-secondary {
  background: var(--luck888-card-bg);
  color: var(--luck888-primary);
  border: 2px solid var(--luck888-primary);
}

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

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background: var(--luck888-primary);
  color: var(--luck888-text-main);
  border: none;
  margin-top: 15px;
}

.page-cockfighting__btn-small:hover {
  background: var(--luck888-secondary);
  transform: translateY(-2px);
}

/* Image styles */
.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--luck888-border);
}

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

.page-cockfighting__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

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

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 25px var(--luck888-glow);
}

.page-cockfighting__card-title {
  font-size: 1.8em;
  color: var(--luck888-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--luck888-text-secondary);
}

/* Lists */
.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-cockfighting__list-item {
  background-color: var(--luck888-card-bg);
  border: 1px solid var(--luck888-divider);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__list-text {
  font-size: 1em;
  color: var(--luck888-text-secondary);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: var(--luck888-card-bg);
  border: 1px solid var(--luck888-border);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-item details > summary {
  list-style: none;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: 600;
  color: var(--luck888-text-main);
  cursor: pointer;
  background-color: var(--luck888-deep-green);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: var(--luck888-primary);
}

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

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--luck888-text-secondary);
  border-top: 1px solid var(--luck888-divider);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__text-block {
  font-size: 1.2em;
  color: var(--luck888-text-main);
}

.page-cockfighting__text-link {
  color: var(--luck888-glow);
  text-decoration: underline;
  font-weight: bold;
}

.page-cockfighting__text-link:hover {
  color: var(--luck888-gold);
}

/* Global image responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensure min size for content images */
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-cockfighting__description {
    font-size: 1.1em;
  }
  .page-cockfighting__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-cockfighting__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-cockfighting__description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Force images to be responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow smaller display if needed, but max-width 100% is key */
    min-height: unset !important;
  }
  
  /* Containers for images/content */
  .page-cockfighting__container,
  .page-cockfighting__hero-content,
  .page-cockfighting__text-block,
  .page-cockfighting__grid,
  .page-cockfighting__card,
  .page-cockfighting__faq-list,
  .page-cockfighting__faq-item,
  .page-cockfighting__ordered-list,
  .page-cockfighting__unordered-list,
  .page-cockfighting__list-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Ensure hero section has correct padding */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Body handles header offset, this is for internal spacing */
    padding-bottom: 40px !important;
    min-height: 450px;
  }

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

  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-cockfighting__grid--2-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-cockfighting__description {
    font-size: 0.9em;
  }
  .page-cockfighting__card-title {
    font-size: 1.4em;
  }
}