/* style/cockfighting-live.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

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

.page-cockfighting-live {
  color: var(--r86-text-main); /* Mặc định chữ sáng trên nền tối của body */
  background-color: var(--r86-bg-dark);
}

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

.page-cockfighting-live__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Nhỏ gọn để không trùng với body padding */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

.page-cockfighting-live__hero-image-wrapper {
  width: 100%;
  height: 675px; /* Fixed height for desktop to maintain aspect ratio */
  max-height: 80vh;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-cockfighting-live__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Giảm độ sáng để chữ nổi bật */
}

.page-cockfighting-live__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 100px 20px 40px;
  color: var(--r86-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Đảm bảo đủ không gian cho nội dung */
}

.page-cockfighting-live__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--r86-gold-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-live__description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--r86-text-main);
  max-width: 800px;
}

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

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

.page-cockfighting-live__btn-primary {
  background: var(--r86-button-gradient);
  color: #ffffff; /* Luôn là màu trắng cho nút chính */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting-live__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

.page-cockfighting-live__btn-secondary {
  background: var(--r86-card-bg);
  color: var(--r86-secondary-color);
  border: 2px solid var(--r86-secondary-color);
}

.page-cockfighting-live__btn-secondary:hover {
  background: var(--r86-secondary-color);
  color: var(--r86-bg-dark);
  transform: translateY(-2px);
}

.page-cockfighting-live__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--r86-gold-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-cockfighting-live__intro-section,
.page-cockfighting-live__how-to-play,
.page-cockfighting-live__promotions,
.page-cockfighting-live__faq-section,
.page-cockfighting-live__conclusion-section {
  background-color: var(--r86-bg-dark);
  padding: 60px 0;
  color: var(--r86-text-main);
}

.page-cockfighting-live__bet-types,
.page-cockfighting-live__advantages,
.page-cockfighting-live__tips-strategies {
  background-color: var(--r86-deep-green);
  padding: 60px 0;
  color: var(--r86-text-main);
}

.page-cockfighting-live__dark-section p,
.page-cockfighting-live__light-bg p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--r86-text-secondary);
}

.page-cockfighting-live__features-grid,
.page-cockfighting-live__bet-grid,
.page-cockfighting-live__promo-grid,
.page-cockfighting-live__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting-live__feature-card,
.page-cockfighting-live__bet-card,
.page-cockfighting-live__promo-card,
.page-cockfighting-live__tip-card {
  background-color: var(--r86-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--r86-border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting-live__feature-card:hover,
.page-cockfighting-live__bet-card:hover,
.page-cockfighting-live__promo-card:hover,
.page-cockfighting-live__tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-live__feature-card img,
.page-cockfighting-live__bet-card img,
.page-cockfighting-live__promo-card img,
.page-cockfighting-live__tip-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Đảm bảo hình ảnh không quá nhỏ */
}

.page-cockfighting-live__feature-title,
.page-cockfighting-live__bet-title,
.page-cockfighting-live__promo-title,
.page-cockfighting-live__tip-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--r86-text-main);
  margin-bottom: 15px;
}

.page-cockfighting-live__feature-card p,
.page-cockfighting-live__bet-card p,
.page-cockfighting-live__promo-card p,
.page-cockfighting-live__tip-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--r86-text-secondary);
  text-align: center;
  flex-grow: 1;
}

.page-cockfighting-live__btn-center {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

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

.page-cockfighting-live__step-card {
  background-color: var(--r86-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--r86-border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting-live__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--r86-button-gradient);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(34, 199, 104, 0.4);
}

.page-cockfighting-live__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--r86-text-main);
  margin-bottom: 15px;
}

.page-cockfighting-live__step-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--r86-text-secondary);
  text-align: center;
}

.page-cockfighting-live__cta-buttons--center {
  margin-top: 50px;
}

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

.page-cockfighting-live__advantage-item {
  background-color: var(--r86-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--r86-border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting-live__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-live__advantage-item img {
  width: 200px;
  height: 200px;
  object-fit: contain; /* Giữ nguyên tỷ lệ ảnh */
  margin-bottom: 20px;
}

.page-cockfighting-live__advantage-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--r86-text-main);
  margin-bottom: 10px;
}

.page-cockfighting-live__advantage-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--r86-text-secondary);
  text-align: center;
}

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

.page-cockfighting-live__faq-item {
  background-color: var(--r86-card-bg);
  border: 1px solid var(--r86-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-cockfighting-live__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--r86-text-main);
  cursor: pointer;
  list-style: none; /* Ẩn marker mặc định của details */
  outline: none;
}

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

.page-cockfighting-live__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-cockfighting-live__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: var(--r86-secondary-color);
}

.page-cockfighting-live__faq-item[open] .page-cockfighting-live__faq-toggle {
  content: '−'; /* Thay đổi dấu trừ khi mở */
}

.page-cockfighting-live__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--r86-text-secondary);
}

.page-cockfighting-live__faq-answer p {
  margin: 0;
  text-align: left;
}

.page-cockfighting-live__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-cockfighting-live__conclusion-section p {
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-live__hero-image-wrapper {
    height: 500px;
  }
  .page-cockfighting-live__hero-content {
    padding-top: 80px;
    min-height: 400px;
  }
  .page-cockfighting-live__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-cockfighting-live__description {
    font-size: 1rem;
  }
  .page-cockfighting-live__section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
  }
}

@media (max-width: 768px) {
  .page-cockfighting-live__hero-image-wrapper {
    height: 350px;
  }
  .page-cockfighting-live__hero-content {
    padding-top: 60px;
    min-height: 300px;
  }
  .page-cockfighting-live__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-cockfighting-live__description {
    font-size: 0.95rem;
  }
  .page-cockfighting-live__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting-live__btn-primary,
  .page-cockfighting-live__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-cockfighting-live__container {
    padding: 0 15px;
  }

  .page-cockfighting-live__intro-section,
  .page-cockfighting-live__bet-types,
  .page-cockfighting-live__how-to-play,
  .page-cockfighting-live__advantages,
  .page-cockfighting-live__promotions,
  .page-cockfighting-live__tips-strategies,
  .page-cockfighting-live__faq-section,
  .page-cockfighting-live__conclusion-section {
    padding: 40px 0;
  }

  .page-cockfighting-live__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting-live__dark-section p,
  .page-cockfighting-live__light-bg p {
    font-size: 0.9rem;
  }

  .page-cockfighting-live__features-grid,
  .page-cockfighting-live__bet-grid,
  .page-cockfighting-live__promo-grid,
  .page-cockfighting-live__tips-grid,
  .page-cockfighting-live__steps-grid,
  .page-cockfighting-live__advantage-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting-live__feature-card img,
  .page-cockfighting-live__bet-card img,
  .page-cockfighting-live__promo-card img,
  .page-cockfighting-live__tip-card img,
  .page-cockfighting-live__advantage-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }

  .page-cockfighting-live__feature-title,
  .page-cockfighting-live__bet-title,
  .page-cockfighting-live__promo-title,
  .page-cockfighting-live__tip-title {
    font-size: 1.3rem;
  }

  .page-cockfighting-live__step-title {
    font-size: 1.4rem;
  }

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

  .page-cockfighting-live__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-cockfighting-live__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

  .page-cockfighting-live__video-section {
    padding-top: 10px !important;
  }

  /* Force responsive for all images and containers */
  .page-cockfighting-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-live__section,
  .page-cockfighting-live__card,
  .page-cockfighting-live__container,
  .page-cockfighting-live__hero-section,
  .page-cockfighting-live__intro-section,
  .page-cockfighting-live__bet-types,
  .page-cockfighting-live__how-to-play,
  .page-cockfighting-live__advantages,
  .page-cockfighting-live__promotions,
  .page-cockfighting-live__tips-strategies,
  .page-cockfighting-live__faq-section,
  .page-cockfighting-live__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Ensure buttons are responsive */
  .page-cockfighting-live__cta-button,
  .page-cockfighting-live__btn-primary,
  .page-cockfighting-live__btn-secondary,
  .page-cockfighting-live a[class*="button"],
  .page-cockfighting-live 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;
  }

  .page-cockfighting-live__cta-buttons,
  .page-cockfighting-live__button-group,
  .page-cockfighting-live__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;
    overflow: hidden !important;
  }

  .page-cockfighting-live__cta-buttons {
    flex-direction: column;
  }
}