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

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

.page-cockfighting {
  background-color: var(--page-cockfighting-bg-color);
  color: var(--page-cockfighting-text-main);
  font-family: Arial, sans-serif;
  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, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: var(--page-cockfighting-bg-color);
}

.page-cockfighting__video-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure video wrapper does not overflow */
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  cursor: pointer;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over video wrapper for better visual flow */
  background-color: rgba(17, 39, 27, 0.85); /* Slightly transparent dark background for text readability */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__main-title {
  font-weight: bold;
  color: var(--page-cockfighting-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-btn-gradient);
  color: var(--page-cockfighting-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: var(--page-cockfighting-text-main);
  border-color: var(--page-cockfighting-text-main);
  transform: translateY(-3px);
}

.page-cockfighting__section {
  padding: 80px 20px;
}

.page-cockfighting__dark-bg {
  background-color: var(--page-cockfighting-bg-color);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__bg-card {
  background-color: var(--page-cockfighting-card-bg);
  color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--page-cockfighting-gold-color);
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__section-description {
  font-size: 1.1rem;
  color: var(--page-cockfighting-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: -30px auto 50px auto;
}

.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 40px;
}

.page-cockfighting__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-cockfighting__content-grid--reverse .page-cockfighting__text-block {
  grid-area: text;
}

.page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
  grid-area: image;
}

.page-cockfighting__text-block {
  font-size: 1.05rem;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
}

.page-cockfighting__text-block ul {
  list-style: disc;
  margin-left: 20px;
}

.page-cockfighting__text-block li {
  margin-bottom: 10px;
}

.page-cockfighting__text-block a {
  color: var(--page-cockfighting-glow-color);
  text-decoration: underline;
}

.page-cockfighting__sub-title {
  font-size: 1.7rem;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__image-wrapper {
  text-align: center;
}

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

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

.page-cockfighting__card {
  background-color: var(--page-cockfighting-bg-color);
  border: 1px solid var(--page-cockfighting-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  color: var(--page-cockfighting-gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__card-description {
  font-size: 0.95rem;
  color: var(--page-cockfighting-text-secondary);
}

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

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

.page-cockfighting__step-icon img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 1.6rem;
  color: var(--page-cockfighting-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__step-description {
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__promotion-card {
  background-color: var(--page-cockfighting-bg-color);
  border: 1px solid var(--page-cockfighting-border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__promotion-title {
  font-size: 1.6rem;
  color: var(--page-cockfighting-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__promotion-description {
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--page-cockfighting-deep-green);
  color: var(--page-cockfighting-text-main);
  font-size: 1.15rem;
  font-weight: bold;
  border-bottom: 1px solid var(--page-cockfighting-divider-color);
}

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

.page-cockfighting__faq-question::marker {
  display: none;
}

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

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

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

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
  background-color: var(--page-cockfighting-bg-color);
  border-top: 1px solid var(--page-cockfighting-divider-color);
}

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

.page-cockfighting__faq-answer a {
  color: var(--page-cockfighting-glow-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__content-grid {
    gap: 40px;
  }
  .page-cockfighting__hero-content {
    margin-top: -60px;
  }
}

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

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

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

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    grid-template-areas: unset; /* Reset grid area for mobile */
  }

  .page-cockfighting__content-grid--reverse .page-cockfighting__text-block,
  .page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
    grid-area: unset;
  }

  .page-cockfighting__text-block {
    font-size: 1rem;
  }

  .page-cockfighting__sub-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .page-cockfighting__image,
  .page-cockfighting__card-image,
  .page-cockfighting__step-icon img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__image-wrapper,
  .page-cockfighting__card,
  .page-cockfighting__step-item,
  .page-cockfighting__promotion-card,
  .page-cockfighting__faq-item,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Keep 100% height for object-fit */
    display: block !important;
  }

  .page-cockfighting__card-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-cockfighting__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .page-cockfighting__hero-section .page-cockfighting__video {
    position: relative;
    padding-bottom: 0; /* remove padding-bottom for mobile when object-fit cover is used on actual video */
    height: 200px; /* Fixed height for small screens to prevent excessive height from 16:9 ratio */
  }

  .page-cockfighting__video-wrapper {
    padding-bottom: 0; /* Reset padding-bottom for mobile if video has fixed height */
    height: auto; /* Allow height to be determined by video element */
  }

}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }
  .page-cockfighting__hero-description {
    font-size: 0.95rem;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-cockfighting__sub-title {
    font-size: 1.3rem;
  }
}