/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho body hoặc hero-section bằng biến đó */

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

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

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

.page-cockfighting__section-title {
  font-size: 2.5rem;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__sub-title {
  font-size: 1.8rem;
  color: var(--color-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for hero section */
  background-color: var(--color-deep-green);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height of hero image */
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 10px;
}

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

.page-cockfighting__hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-cockfighting__main-title {
  font-size: clamp(2rem, 4vw, 3.2rem); /* Responsive H1 font size */
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__lead-text {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-main);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.page-cockfighting__about-section,
.page-cockfighting__game-types,
.page-cockfighting__guide-section,
.page-cockfighting__strategy-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 80px 0;
}

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

.page-cockfighting__bg-light {
  background-color: var(--color-background);
  color: var(--color-text-main);
}

.page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-cockfighting__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure images are not too small */
}

.page-cockfighting__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-cockfighting__list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%232AD16F"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

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

.page-cockfighting__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-cockfighting__card-description {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  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-question:hover {
  background-color: var(--color-deep-green);
}

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

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.page-cockfighting__cta-content {
  text-align: center;
  padding: 60px 20px;
}

.page-cockfighting__cta-content .page-cockfighting__section-title {
  color: var(--color-gold);
}

.page-cockfighting__cta-content p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting__section-title {
    font-size: 2rem;
  }

  .page-cockfighting__sub-title {
    font-size: 1.5rem;
  }

  .page-cockfighting__content-grid {
    flex-direction: column;
  }

  .page-cockfighting__content-grid--reverse {
    flex-direction: column;
  }

  .page-cockfighting__text-block, .page-cockfighting__image-wrapper {
    width: 100%;
    flex: none;
  }

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-cockfighting__main-title {
    font-size: 2rem !important;
  }

  .page-cockfighting__lead-text {
    font-size: 1rem;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-cockfighting__about-section,
  .page-cockfighting__game-types,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

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

  .page-cockfighting__sub-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__card {
    padding: 20px;
    min-height: auto;
  }

  .page-cockfighting__card-image {
    height: 180px;
  }

  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  /* Mobile responsive for all images */
  .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__about-section,
  .page-cockfighting__game-types,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__image-wrapper,
  .page-cockfighting__content-grid,
  .page-cockfighting__cards-grid,
  .page-cockfighting__faq-list,
  .page-cockfighting__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Add horizontal padding to content containers */
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-cockfighting__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-cockfighting__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-cockfighting__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-cockfighting__cta-buttons a {
    margin: 0 !important; /* Remove any external margins */
  }
}