/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

:root {
  --color-primary: #C91F17;
  --color-secondary: #E53935;
  --color-card-bg: #D32F2F;
  --color-background: #B71C1C;
  --color-text-main: #FFF5E1;
  --color-border: #F2B544;
  --color-glow: #FFCC66;
  --color-gold: #F4D34D;
  --color-deep-red: #7A0E0E;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-text-main); /* Mặc định cho nền tối */
  background-color: var(--color-background);
}

.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;
  overflow: hidden;
  padding-top: 10px; /* Nhỏ gọn để không trùng với body padding */
  padding-bottom: 60px;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  margin-top: -100px; /* Kéo nội dung lên trên ảnh một chút */
  padding: 0 20px;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.6); /* Nền tối để chữ nổi bật */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.8);
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  color: var(--color-text-main);
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #333333; /* Đảm bảo tương phản */
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  box-shadow: 0 2px 10px rgba(242, 181, 68, 0.3);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--color-gold);
  color: #333333; /* Đảm bảo tương phản */
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(242, 181, 68, 0.5);
}

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--color-gold);
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.6);
}

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

.page-cockfighting__light-bg {
  background-color: #ffffff; /* Nền trắng */
  color: #333333; /* Chữ đen */
  padding: 60px 0;
}

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

.page-cockfighting__dark-section {
  background-color: var(--color-deep-red);
  color: var(--color-text-main);
  padding: 60px 0;
}

.page-cockfighting__about-section .page-cockfighting__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__type-card,
.page-cockfighting__promo-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.page-cockfighting__type-card:hover,
.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-cockfighting__card-description {
  font-size: 0.95em;
  color: var(--color-text-main);
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-cockfighting__step-item {
  background-color: var(--color-primary);
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__step-number {
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 3em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-gold);
  position: relative;
  z-index: 1;
}

.page-cockfighting__step-description {
  font-size: 0.95em;
  color: #f0f0f0;
  position: relative;
  z-index: 1;
}

.page-cockfighting__guide-image-wrapper {
  margin-top: 50px;
  text-align: center;
}

.page-cockfighting__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--color-gold);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
  color: var(--color-text-main);
}

.page-cockfighting__list-item strong {
  color: var(--color-gold);
}

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

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

.page-cockfighting__faq-item {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--color-gold);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  color: var(--color-gold);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

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

.page-cockfighting__final-cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--color-primary);
  color: #ffffff;
}

.page-cockfighting__final-cta-section .page-cockfighting__section-title {
  color: var(--color-gold);
}

.page-cockfighting__final-cta-section .page-cockfighting__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
}

/* -------------------------------------- */
/* Responsive Design */
/* -------------------------------------- */

@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -80px;
    padding: 25px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.6em, 4vw, 2.4em);
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 20px;
  }

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

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

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

  .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;
  }
  
  .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;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
    margin-bottom: 25px;
  }

  .page-cockfighting__light-bg,
  .page-cockfighting__dark-bg,
  .page-cockfighting__dark-section {
    padding: 40px 0;
  }

  .page-cockfighting__types-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__promotion-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

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

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

  .page-cockfighting__final-cta-section {
    padding: 60px 0;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__guide-image-wrapper,
  .page-cockfighting__types-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__promotion-cards,
  .page-cockfighting__faq-list,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
  .page-cockfighting__hero-section { padding-top: 10px !important; }

  /* Mobile video responsiveness (if any) */
  .page-cockfighting video,
  .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__video-section { padding-top: 10px !important; }

}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -40px;
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 7vw, 2.2em);
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.2em, 6vw, 1.8em);
  }
  .page-cockfighting__card-title {
    font-size: 1.2em;
  }
  .page-cockfighting__step-title {
    font-size: 1.2em;
  }
  .page-cockfighting__list-item {
    font-size: 0.9em;
  }
}