/* style/cockfighting.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Màu cho nút Đăng nhập/Đăng ký */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-light: #ffffff;
  --background-dark: #1a1a1a; /* Một màu nền tối hơn cho các section */
  --border-color: #e0e0e0;
}

.page-cockfighting {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  color: var(--text-color-light);
  background-color: var(--background-dark);
  overflow: hidden;
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-cockfighting__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__cta-button.page-cockfighting__btn-primary {
  background: var(--secondary-color);
  color: var(--text-color-light);
  border: 2px solid var(--secondary-color);
}

.page-cockfighting__cta-button.page-cockfighting__btn-primary:hover {
  background: #d46e06;
  border-color: #d46e06;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button.page-cockfighting__btn-secondary {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__cta-button.page-cockfighting__btn-secondary:hover {
  background: #1f8ec4;
  border-color: #1f8ec4;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Sections */
.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-cockfighting__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-cockfighting__intro-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__content-wrapper {
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-cockfighting__content-wrapper p {
  margin-bottom: 1.2em;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* Dark background sections */
.page-cockfighting__dark-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

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

.page-cockfighting__dark-section .page-cockfighting__highlight {
  color: var(--secondary-color);
}

.page-cockfighting__dark-section p {
  color: rgba(255, 255, 255, 0.9);
}

.page-cockfighting__dark-section a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-cockfighting__dark-section a:hover {
  color: var(--secondary-color);
}

/* Highlights Section */
.page-cockfighting__highlights-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
  margin-top: 40px;
}

.page-cockfighting__grid-item {
  background: #2b2b2b;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfishing__item-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__grid-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* Bet Types Section */
.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
}

.page-cockfighting__bet-item {
  background: var(--background-light);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  border-left: 5px solid var(--primary-color);
}

.page-cockfighting__bet-item .page-cockfighting__item-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__bet-item p {
  font-size: 1rem;
  color: var(--text-color-dark);
}

/* Guide Section */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
}

.page-cockfighting__guide-item {
  background: #2b2b2b;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border-left: 5px solid var(--secondary-color);
}

.page-cockfighting__guide-item .page-cockfishing__item-title {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-cockfighting__guide-item p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

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

/* Promotions Section */
.page-cockfighting__promo-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__promo-item {
  background: var(--background-light);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid var(--border-color);
}

.page-cockfighting__promo-item img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px; /* Ensure images are not too small */
}

.page-cockfighting__promo-item .page-cockfishing__item-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__promo-item p {
  font-size: 0.95rem;
  color: var(--text-color-dark);
}

/* Download Section */
.page-cockfighting__download-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-cockfighting__download-text {
  flex: 1;
}

.page-cockfighting__download-text p {
  color: rgba(255, 255, 255, 0.9);
}

.page-cockfighting__download-image {
  flex-shrink: 0;
  max-width: 40%;
}

.page-cockfighting__download-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Support Section */
.page-cockfighting__support-section p {
  color: var(--text-color-dark);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: #2b2b2b;
  color: var(--text-color-light);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-color-light);
}

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

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: #3a3a3a;
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-light);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: #1f1f1f;
  border-radius: 0 0 5px 5px;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.page-cockfighting__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-cockfighting__faq-answer a:hover {
  color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
  .page-cockfighting__download-layout {
    flex-direction: column;
  }
  .page-cockfighting__download-image {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__hero-image img {
    border-radius: 4px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-cockfighting__description {
    font-size: 1rem;
  }

  .page-cockfighting__cta-button {
    padding: 12px 30px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-cockfighting__content-wrapper,
  .page-cockfighting__grid-item p,
  .page-cockfighting__bet-item p,
  .page-cockfighting__guide-item p,
  .page-cockfighting__promo-item p {
    font-size: 0.95rem;
  }

  .page-cockfishing__item-title {
    font-size: 1.2rem;
  }

  .page-cockfighting__grid-container,
  .page-cockfighting__promo-list {
    gap: 20px;
  }

  .page-cockfighting__download-layout {
    flex-direction: column;
    gap: 20px;
  }

  .page-cockfighting__download-image {
    max-width: 80%;
  }
  
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 1rem;
  }
  .page-cockfighting__faq-answer {
    padding: 0 15px 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__section {
    padding: 30px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  .page-cockfighting__download-image {
    max-width: 95%;
  }
}