/* style/cockfighting-rules.css */

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

/* Base styles for the page content */
.page-cockfighting-rules {
  background-color: var(--f168vip-background);
  color: var(--f168vip-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-cockfighting-rules__section {
  padding: 60px 20px;
  text-align: left;
}

.page-cockfighting-rules__content-area {
  max-width: 1200px;
  margin: 0 auto;
}

.page-cockfighting-rules__center-text {
  text-align: center;
}

.page-cockfighting-rules__section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--f168vip-text-main);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2.5rem, 6vw, 3.2rem);
  color: var(--f168vip-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 900px;
  text-align: center;
}

.page-cockfighting-rules__description,
.page-cockfighting-rules__text-block {
  font-size: 1.1rem;
  color: var(--f168vip-text-secondary);
  margin-bottom: 20px;
}

.page-cockfighting-rules__highlight {
  color: var(--f168vip-gold);
  font-weight: bold;
}

.page-cockfighting-rules__text-link {
  color: var(--f168vip-secondary);
  text-decoration: underline;
}

/* Hero Section */
.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  overflow: hidden;
  min-height: 600px;
}

.page-cockfighting-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-cockfighting-rules__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

.page-cockfighting-rules__btn-primary {
  background: var(--f168vip-button-gradient);
  color: var(--f168vip-text-main);
  border: none;
}

.page-cockfighting-rules__btn-primary:hover {
  box-shadow: 0 0 15px var(--f168vip-glow);
  transform: translateY(-2px);
}

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

.page-cockfighting-rules__btn-secondary:hover {
  background-color: var(--f168vip-secondary);
  color: var(--f168vip-background);
  transform: translateY(-2px);
}

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

.page-cockfighting-rules__card {
  background-color: var(--f168vip-card-bg);
  border: 1px solid var(--f168vip-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: var(--f168vip-text-main);
}

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

.page-cockfighting-rules__card-title {
  font-size: 1.5rem;
  color: var(--f168vip-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

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

.page-cockfighting-rules__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--f168vip-text-secondary);
}

.page-cockfighting-rules__list li {
  margin-bottom: 10px;
}

/* FAQ Section */
.page-cockfighting-rules__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-cockfighting-rules__faq-question::marker {
  display: none;
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--f168vip-gold);
}

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

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-question {
  border-bottom: 1px solid var(--f168vip-border);
}

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

/* Final CTA Section */
.page-cockfighting-rules__cta-final {
  background-color: var(--f168vip-deep-green);
  padding: 80px 20px;
}

/* Responsive Design */

/* All images base responsive style */
.page-cockfighting-rules img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .page-cockfighting-rules {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting-rules__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 400px;
  }

  .page-cockfighting-rules__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-cockfighting-rules__description {
    font-size: 1rem;
  }

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

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

  .page-cockfighting-rules__content-area,
  .page-cockfighting-rules__section {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting-rules__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

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

  .page-cockfighting-rules__card {
    padding: 20px;
  }

  .page-cockfighting-rules__card-title {
    font-size: 1.3rem;
  }

  .page-cockfighting-rules__card-text {
    font-size: 0.95rem;
  }

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

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

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

  /* Ensure all containers with images/buttons/videos are responsive */
  .page-cockfighting-rules__hero-image-wrapper,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__button-group,
  .page-cockfighting-rules__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting-rules__hero-content {
    padding: 15px;
  }

  .page-cockfighting-rules__main-title {
    font-size: clamp(1.8rem, 9vw, 2rem);
  }

  .page-cockfighting-rules__description {
    font-size: 0.9rem;
  }

  .page-cockfighting-rules__section-title {
    font-size: clamp(1.6rem, 8vw, 1.8rem);
  }

  .page-cockfighting-rules__faq-question {
    font-size: 0.95rem;
  }
}