/* style/cockfighting.css */

/* Biến CSS */
:root {
  --win365-primary: #E44D26;
  --win365-secondary: #333333;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f8f8;
  --bg-dark: #1a1a1a;
  --border-color: #e0e0e0;
}

/* Reset cơ bản và font */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Mặc định cho nền sáng */
  background-color: var(--bg-light);
}

/* Padding cho main content để tránh header cố định */
.page-cockfighting {
  padding-top: 100px; /* Điều chỉnh dựa trên chiều cao header */
}

/* Các lớp nền thông minh */
.page-cockfighting__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

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

/* Tiêu đề và mô tả chung */
.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Kế thừa từ màu nền */
}

.page-cockfighting__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-cockfighting__subtitle {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
  color: inherit;
}

.page-cockfighting__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: inherit;
}

.page-cockfighting__list li {
  margin-bottom: 8px;
  font-size: 16px;
  color: inherit;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px; /* Đảm bảo đủ khoảng trống cho header cố định */
  overflow: hidden;
  color: var(--text-light);
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2;
}

.page-cockfighting__hero-section .page-cockfighting__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-cockfighting__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

/* Nút chung */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #d13a1e;
  border-color: #d13a1e;
  transform: translateY(-2px);
}

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

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

.page-cockfighting__btn-link {
  background-color: transparent;
  color: var(--win365-primary);
  border: 1px solid var(--win365-primary);
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
}

.page-cockfighting__btn-link:hover {
  background-color: var(--win365-primary);
  color: var(--text-light);
}

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

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-cockfighting__card-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-cockfighting__step-item {
  background-color: var(--text-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

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

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--win365-primary);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-cockfighting__step-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

.page-cockfighting__promo-card {
  background-color: var(--text-light);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-cockfighting__promo-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* App Download Section */
.page-cockfighting__app-download-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-cockfighting__app-text {
  flex: 1;
  min-width: 300px;
  color: var(--text-light);
}

.page-cockfighting__app-text .page-cockfighting__subtitle {
  color: var(--text-light);
}

.page-cockfighting__app-text .page-cockfighting__list li {
  color: rgba(255, 255, 255, 0.8);
}

.page-cockfighting__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-dark);
}

.page-cockfighting__faq-question:hover {
  background-color: #f0f0f0;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: inherit;
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--win365-primary);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Change to X or just rotate */
  color: var(--win365-secondary);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: #fcfcfc;
  color: var(--text-dark);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Đảm bảo đủ lớn cho mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
  color: inherit;
}

/* Các nút CTA cuối trang */
.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 20px;
}

/* ========================================= */
/* Responsive Design - Mobile First (max-width: 768px) */
/* ========================================= */
@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: 80px !important; /* Điều chỉnh padding-top cho mobile */
    font-size: 15px;
    line-height: 1.6;
  }

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

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

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__promo-card,
  .page-cockfighting__app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-section {
    padding: 100px 15px 60px;
  }

  .page-cockfighting__hero-title {
    font-size: 32px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
  }

  .page-cockfighting__section-description {
    font-size: 16px;
  }

  .page-cockfighting__subtitle {
    font-size: 20px;
  }

  .page-cockfighting__grid-cards,
  .page-cockfighting__steps-grid,
  .page-cockfighting__grid-promotions {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card,
  .page-cockfighting__step-item,
  .page-cockfighting__promo-card {
    padding: 20px;
  }

  .page-cockfighting__card-image,
  .page-cockfighting__promo-image {
    height: 180px;
  }

  .page-cockfighting__app-download-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__app-text,
  .page-cockfighting__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-cockfighting__app-image {
    max-width: 300px;
  }

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

  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px !important;
  }
}