/* style/cockfighting.css */

/* Biến màu sắc */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg-color: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Sử dụng màu chữ chính cho toàn bộ trang */
  background-color: var(--background-color); /* Sử dụng màu nền chính */
  line-height: 1.6;
}

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body đã padding-top, đây chỉ là khoảng cách nhỏ */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Sử dụng clamp để linh hoạt kích thước */
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-cockfighting__intro-section, 
.page-cockfighting__selection-guide-section, 
.page-cockfighting__bet-types-section, 
.page-cockfighting__faq-section, 
.page-cockfighting__conclusion-section {
  padding: 60px 0;
}

.page-cockfighting__dark-section {
  background-color: var(--card-bg-color);
  padding: 60px 0;
}

.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-main-color);
  text-align: justify;
}

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

.page-cockfighting__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-cockfighting__card-text {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
}

.page-cockfighting__card-features li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-main-color);
}

.page-cockfighting__btn-secondary {
  background: var(--primary-color);
  color: #ffffff;
  border: 2px solid var(--primary-color);
  padding: 12px 25px;
  font-size: 1rem;
}

.page-cockfighting__btn-secondary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-cockfighting__selection-guide-section {
  background-color: var(--background-color);
}

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

.page-cockfighting__guide-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-cockfighting__guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-cockfighting__guide-text {
  font-size: 0.95rem;
  text-align: justify;
}

.page-cockfighting__cta-block {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background: rgba(255, 140, 26, 0.1);
  border-radius: 12px;
  border: 1px dashed var(--primary-color);
}

.page-cockfighting__cta-text {
  font-size: 1.2rem;
  color: var(--text-main-color);
  margin-bottom: 20px;
  font-weight: 500;
}

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

.page-cockfighting__strategy-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main-color);
  border: 1px solid rgba(255, 140, 26, 0.2);
}

.page-cockfighting__strategy-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-cockfighting__strategy-text {
  font-size: 0.95rem;
  text-align: justify;
}

.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__bet-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-cockfighting__bet-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-cockfighting__bet-description {
  font-size: 1rem;
  text-align: justify;
}

.page-cockfighting__registration-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.page-cockfighting__registration-steps {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__registration-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__registration-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-cockfighting__step-item {
  margin-bottom: 25px;
  position: relative;
  padding-left: 40px;
}

.page-cockfighting__step-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.page-cockfighting__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.page-cockfighting__step-description {
  font-size: 0.95rem;
  color: var(--text-main-color);
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
  list-style: none;
  outline: none;
}

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

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

.page-cockfighting__conclusion-section {
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  border: 2px solid transparent;
  padding: 15px 30px;
  font-size: 1.1rem;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, var(--glow-color) 0%, var(--primary-color) 100%);
  box-shadow: 0 6px 20px rgba(255, 176, 77, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-cockfighting__subtitle {
    font-size: 1rem;
  }
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
  .page-cockfighting__intro-section,
  .page-cockfighting__top-bookmakers-section,
  .page-cockfighting__selection-guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__registration-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
  }
  .page-cockfighting__text-block {
    font-size: 0.95rem;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__bookmaker-cards,
  .page-cockfighting__grid,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__bet-list,
  .page-cockfighting__registration-content,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-cockfighting__card,
  .page-cockfighting__guide-item,
  .page-cockfighting__strategy-item,
  .page-cockfighting__bet-item,
  .page-cockfighting__faq-item {
    padding: 20px;
  }
  .page-cockfighting__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-cockfighting__registration-content {
    flex-direction: column-reverse; /* Đảo ngược thứ tự ảnh và bước đăng ký trên mobile */
  }
  .page-cockfighting__registration-steps {
    order: 2;
  }
  .page-cockfighting__registration-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-cockfighting__section-title {
    font-size: 1.5rem;
  }
  .page-cockfighting__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-cockfighting__card-title,
  .page-cockfighting__guide-title,
  .page-cockfighting__strategy-title,
  .page-cockfighting__bet-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__step-item::before {
    font-size: 1.3rem;
  }
}