/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

:root {
  --page-cockfighting-bg: #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: #2E7A4E;
  --page-cockfighting-glow: #57E38D;
  --page-cockfighting-gold: #F2C14E;
  --page-cockfighting-divider: #1E3A2A;
  --page-cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
  background-color: var(--page-cockfighting-bg);
  color: var(--page-cockfighting-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-cockfighting-deep-green);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image, but not overlap text */
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__description {
  font-size: 1.1rem;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 30px;
}

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

/* General Section Styling */
.page-cockfighting__section {
  padding: 80px 0;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--page-cockfighting-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-cockfighting__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--page-cockfighting-text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-cockfighting__text-block {
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 20px;
}

.page-cockfighting__text-block strong {
  color: var(--page-cockfighting-text-main);
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--page-cockfighting-glow);
  border: 2px solid var(--page-cockfighting-glow);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-glow);
  color: var(--page-cockfighting-bg);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 1rem;
}

.page-cockfighting__btn-large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

/* Card Styling */
.page-cockfighting__card-bg {
  background-color: var(--page-cockfighting-card-bg);
}

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

.page-cockfighting__card {
  background: var(--page-cockfighting-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.4rem;
  color: var(--page-cockfighting-gold);
  padding: 20px 20px 10px;
  font-weight: 600;
}

.page-cockfighting__card-text {
  font-size: 0.95rem;
  color: var(--page-cockfighting-text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Image specific styles */
.page-cockfighting__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Support Info Section */
.page-cockfighting__support-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__support-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__support-text {
  text-align: center;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  cursor: pointer;
  background: var(--page-cockfighting-deep-green);
  border-bottom: 1px solid var(--page-cockfighting-divider);
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Floating CTA */
.page-cockfighting__floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-cockfighting__floating-btn {
  background: var(--page-cockfighting-btn-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-cockfighting__floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.8);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-cockfighting__support-info {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }

  .page-cockfighting__support-image {
    flex-shrink: 0;
    margin-right: 30px;
  }

  .page-cockfighting__hero-content {
    margin-top: -200px; /* Adjust for larger screens */
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px !important;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Body handles header offset */
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    margin-top: -80px; /* Adjust to pull content up more on mobile */
    padding: 20px 15px;
  }

  .page-cockfighting__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

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

  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

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

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

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

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

  .page-cockfighting__image-full-width,
  .page-cockfighting__support-image {
    margin: 20px auto;
  }

  .page-cockfighting__support-info {
    flex-direction: column;
    gap: 20px;
  }

  .page-cockfighting__support-image {
    margin-right: 0;
  }

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

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

  .page-cockfighting__floating-cta {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .page-cockfighting__floating-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}