/* style/cockfighting.css */

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

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
}

.page-cockfighting__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__section.page-cockfighting__dark-bg {
  background-color: var(--deep-green);
}

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

.page-cockfighting__section-title {
  font-size: 3em;
  color: var(--gold-color);
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin: 10px;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 100, 0.4);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  padding-top: 10px; /* body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--bg-color);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

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

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

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Clamp for responsive H1 */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__intro-text {
  font-size: 1.3em;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-cockfighting__image-bottom {
    margin-bottom: 0;
}

/* Feature Grid */
.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

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

/* Game Types Grid */
.page-cockfighting__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__game-type-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  text-align: left;
}

.page-cockfighting__game-type-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__game-type-card .page-cockfighting__game-type-title {
  font-size: 1.6em;
  color: var(--gold-color);
  padding: 20px 20px 10px;
  font-weight: 700;
}

.page-cockfighting__game-type-card .page-cockfighting__game-type-description {
  color: var(--text-secondary);
  font-size: 1em;
  padding: 0 20px 20px;
}

/* Guide Steps */
.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__guide-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-cockfighting__step-number {
  font-size: 3em;
  font-weight: 900;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-cockfighting__guide-title {
  font-size: 1.8em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__guide-description {
  color: var(--text-secondary);
  font-size: 1em;
  flex-grow: 1;
  margin-bottom: 20px; /* Space before button */
}

.page-cockfighting__guide-item .page-cockfighting__btn-primary,
.page-cockfighting__guide-item .page-cockfighting__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
}

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

.page-cockfighting__tip-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

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

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

.page-cockfighting__promotion-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

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

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
  text-align: left;
}

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

.page-cockfighting__faq-item summary {
    display: block; /* Ensure summary behaves like a block */
    list-style: none; /* Remove default marker */
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Hide Chrome/Safari default marker */
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: 900;
  color: var(--gold-color);
  margin-left: 20px;
}

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

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-cockfighting__cta-final {
    padding: 60px 20px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    margin-top: 60px;
    margin-bottom: 60px;
}

.page-cockfighting__cta-final .page-cockfighting__section-title {
    color: var(--gold-color);
    font-size: 2.5em;
}

.page-cockfighting__cta-final .page-cockfighting__paragraph {
    margin-bottom: 40px;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.5em;
  }
  .page-cockfighting__hero-section {
    min-height: 600px;
    padding-bottom: 40px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 4.5vw, 3.2em);
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-cockfighting__paragraph {
    font-size: 1em;
  }
  .page-cockfighting__hero-section {
    min-height: 500px;
    padding-bottom: 30px;
  }
  .page-cockfighting__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-cockfighting__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-cockfighting__feature-grid,
  .page-cockfighting__game-types-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__feature-card,
  .page-cockfighting__game-type-card,
  .page-cockfighting__guide-item,
  .page-cockfighting__tip-card,
  .page-cockfighting__promotion-card,
  .page-cockfighting__faq-item {
    padding: 20px;
  }
  .page-cockfighting__feature-title,
  .page-cockfighting__game-type-card .page-cockfighting__game-type-title,
  .page-cockfighting__guide-title,
  .page-cockfighting__tip-title,
  .page-cockfighting__promotion-title {
    font-size: 1.5em;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }
  .page-cockfighting__image-content {
    margin: 20px auto;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__feature-card,
  .page-cockfighting__game-type-card,
  .page-cockfighting__guide-item,
  .page-cockfighting__tip-card,
  .page-cockfighting__promotion-card,
  .page-cockfighting__faq-item,
  .page-cockfighting__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body đã承担 --header-offset */
  }
  .page-cockfighting__cta-final .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 7vw, 2.2em);
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__hero-section {
    min-height: 400px;
  }
  .page-cockfighting__hero-image-wrapper {
    max-height: 200px;
  }
  .page-cockfighting__cta-final .page-cockfighting__section-title {
    font-size: 1.8em;
  }
}