/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */

:root {
  --oxbet-primary-color: #26A9E0;
  --oxbet-secondary-color: #FFFFFF;
  --oxbet-dark-bg: #000000;
  --oxbet-light-text: #ffffff;
  --oxbet-dark-text: #333333;
  --oxbet-login-btn-color: #EA7C07;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--oxbet-light-text); /* Body background is dark, so text is light */
  background-color: var(--oxbet-dark-bg);
  line-height: 1.6;
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
  z-index: 1;
  display: block;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--oxbet-secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 1.1em;
  color: var(--oxbet-secondary-color);
  margin-bottom: 30px;
}

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

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

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

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

.page-cockfighting__btn-primary:hover {
  background-color: darken(var(--oxbet-primary-color), 10%);
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--oxbet-secondary-color);
  color: var(--oxbet-primary-color);
  transform: translateY(-2px);
}

.page-cockfighting__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  line-height: 1.3;
}

.page-cockfighting__introduction .page-cockfighting__section-title,
.page-cockfighting__rules .page-cockfighting__section-title,
.page-cockfighting__security .page-cockfighting__section-title,
.page-cockfighting__registration-guide .page-cockfighting__section-title,
.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--oxbet-dark-text);
}

.page-cockfighting__betting-types .page-cockfighting__section-title,
.page-cockfighting__tips .page-cockfighting__section-title,
.page-cockfighting__final-cta .page-cockfighting__section-title {
  color: var(--oxbet-light-text);
}

.page-cockfighting__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__text-block--caption {
  text-align: center;
  font-style: italic;
  font-size: 0.9em;
  margin-top: 10px;
}

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

.page-cockfighting__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  max-width: 40%;
  width: 100%; /* Ensure it respects max-width */
}

.page-cockfighting__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  max-width: 40%;
  width: 100%; /* Ensure it respects max-width */
}

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

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  color: var(--oxbet-light-text);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease;
}

.page-cockfighting__light-bg .page-cockfighting__card {
  background-color: var(--oxbet-secondary-color);
  color: var(--oxbet-dark-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--oxbet-primary-color);
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-cockfighting__list,
.page-cockfighting__numbered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  padding: 0;
}

.page-cockfighting__numbered-list {
  list-style-type: decimal;
}

.page-cockfighting__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-cockfighting__light-bg {
  background-color: var(--oxbet-secondary-color);
  color: var(--oxbet-dark-text);
}

.page-cockfighting__dark-bg {
  background-color: var(--oxbet-dark-bg);
  color: var(--oxbet-light-text);
}

.page-cockfighting__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

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

.page-cockfighting__faq-item {
  background-color: var(--oxbet-secondary-color);
  color: var(--oxbet-dark-text);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-cockfighting__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  list-style: none; /* Remove default marker */
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--oxbet-dark-text);
}

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

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--oxbet-dark-text);
  background-color: var(--oxbet-secondary-color);
}

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

/* Ensure float elements are cleared */
.page-cockfighting__container::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-cockfighting__hero-content {
    max-width: 700px;
  }
  .page-cockfighting__image--left,
  .page-cockfighting__image--right {
    float: none;
    margin: 30px auto;
    max-width: 80%;
  }
}

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

  .page-cockfighting__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important; /* For potential horizontal buttons */
    gap: 10px;
  }

  .page-cockfighting__section {
    padding: 40px 15px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 20px;
  }

  .page-cockfighting__text-block {
    font-size: 0.95em;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 1.2em;
  }

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

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

  .page-cockfighting__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__image--left,
  .page-cockfighting__image--right {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 100%;
  }

  .page-cockfighting__grid-cards, .page-cockfighting__grid-tips {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 10vw, 2.2em);
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.4em, 8vw, 1.8em);
  }
}