/* style/cockfighting.css */

/* Variables for consistent styling */
:root {
  --page-cockfighting-primary: #2F6BFF;
  --page-cockfighting-secondary: #6FA3FF;
  --page-cockfighting-text-main: #1F2D3D;
  --page-cockfighting-text-dark: #000000;
  --page-cockfighting-bg-card: #FFFFFF;
  --page-cockfighting-bg-default: #F4F7FB;
  --page-cockfighting-border: #D6E2FF;
  --page-cockfighting-glow: #A5C4FF;
  --page-cockfighting-btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

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

/* Section container for consistent spacing and max-width */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-cockfighting__section-title {
  font-size: clamp(28px, 3.5vw, 42px); /* Responsive font size for H2 */
  font-weight: 700;
  color: var(--page-cockfighting-text-dark);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-cockfighting__section-title--white {
  color: #ffffff;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-cockfighting-primary); /* Fallback background for hero */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  color: #ffffff; /* White text on dark/primary background */
}

.page-cockfighting__hero-title {
  font-size: clamp(32px, 4vw, 56px); /* Responsive H1 font size */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-cockfighting__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General button styles */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: var(--page-cockfighting-bg-card);
  color: var(--page-cockfighting-primary);
  border: 2px solid var(--page-cockfighting-primary);
}

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

/* Content grid layout */
.page-cockfighting__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__content-grid--reversed {
  flex-direction: row-reverse;
}

.page-cockfighting__text-block,
.page-cockfighting__image-block {
  flex: 1;
  min-width: 300px;
}

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

/* About Section (light background) */
.page-cockfighting__about-section {
  background-color: var(--page-cockfighting-bg-default);
  color: var(--page-cockfighting-text-main);
}

/* Features Section (dark background) */
.page-cockfighting__features-section {
  background-color: var(--page-cockfighting-primary);
  color: #ffffff; /* White text on primary background */
  padding: 80px 20px;
}

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

.page-cockfighting__feature-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
  background-color: var(--page-cockfighting-bg-card);
  color: var(--page-cockfighting-text-main);
  counter-reset: step-counter;
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
}

.page-cockfighting__step-list li {
  margin-bottom: 25px;
  position: relative;
  padding-left: 40px;
}

.page-cockfighting__step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--page-cockfighting-primary);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.page-cockfighting__list-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--page-cockfighting-text-dark);
  margin-bottom: 5px;
}

/* Promotions Section (medium background for contrast) */
.page-cockfighting__promotions-section {
  background-color: var(--page-cockfighting-secondary); /* Using secondary color for variety */
  color: var(--page-cockfighting-text-dark); /* Dark text on medium background */
  padding: 80px 20px;
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
  color: var(--page-cockfighting-text-dark);
}

.page-cockfighting__promo-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 30px;
}

.page-cockfighting__promo-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

/* Responsible Gaming Section */
.page-cockfighting__responsible-gaming-section {
  background-color: var(--page-cockfighting-bg-default);
  color: var(--page-cockfighting-text-main);
}

/* CTA Banner Section (dark background) */
.page-cockfighting__cta-banner-section {
  background-color: var(--page-cockfighting-primary);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-cockfighting__cta-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__description--white {
  color: #f0f0f0;
  max-width: 800px;
  margin-bottom: 40px;
  font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-cockfighting__content-grid {
    flex-direction: column;
  }
  .page-cockfighting__content-grid--reversed {
    flex-direction: column; /* Revert to column for reversed layout on mobile */
  }
  .page-cockfighting__text-block,
  .page-cockfighting__image-block {
    min-width: unset;
    width: 100%;
  }
}

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

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

  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

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

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

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness (if any, although none in this page) */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .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 {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-cockfighting__features-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__cta-banner-section {
    padding: 50px 15px;
  }

  .page-cockfighting__feature-card {
    padding: 25px;
  }
}