/* style/cockfighting.css */

:root {
    --page-cockfighting-primary-color: #11A84E;
    --page-cockfighting-secondary-color: #22C768;
    --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-cockfighting-card-bg: #11271B;
    --page-cockfighting-background: #08160F;
    --page-cockfighting-text-main: #F2FFF6;
    --page-cockfighting-text-secondary: #A7D9B8;
    --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 {
    font-family: 'Arial', sans-serif;
    color: var(--page-cockfighting-text-main); /* Default text color for the page */
    background-color: var(--page-cockfighting-background); /* Page background */
    line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow from images */
}

.page-cockfighting__hero-image {
    position: relative; /* Ensure it's in normal flow */
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-cockfighting__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

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

.page-cockfighting__hero-description {
    font-size: 1.2rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main);
    border: 2px solid var(--page-cockfighting-primary-color);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-gold-color);
    color: var(--page-cockfighting-background);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Content Styling */
.page-cockfighting__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--page-cockfighting-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-cockfighting-primary-color);
    border-radius: 2px;
}

.page-cockfighting__text-block {
    margin-bottom: 30px;
    color: var(--page-cockfighting-text-main);
    font-size: 1.05rem;
}

.page-cockfighting__text-block h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--page-cockfighting-primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-cockfighting__text-block h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: var(--page-cockfighting-gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-cockfighting__text-block ul,
.page-cockfighting__text-block ol {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.page-cockfighting__text-block ol {
    list-style: decimal;
}

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

.page-cockfighting__image-container {
    margin: 40px 0;
    text-align: center;
}

.page-cockfighting__image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensures proper spacing */
    margin: 0 auto;
}

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

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

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

.page-cockfighting__card-icon {
    margin-bottom: 20px;
    color: var(--page-cockfighting-primary-color);
    font-size: 3rem; /* Example icon size, replaced by actual image */
    width: 200px;
    height: 200px;
    object-fit: contain; /* Ensure large images are contained */
    margin-left: auto;
    margin-right: auto;
    display: block;
}

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

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

.page-cockfighting__text-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.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;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item[open] {
    background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    background-color: var(--page-cockfighting-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    color: var(--page-cockfighting-gold-color);
    background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-cockfighting-primary-color);
}

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

/* Video Section */
.page-cockfighting__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  box-sizing: border-box;
  background-color: var(--page-cockfighting-background);
}

.page-cockfighting__video-container {
  width: 100%; /* Desktop width: 100% */
  max-width: 1000px; /* Max width for video */
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block; /* Ensure it behaves as a block element */
}

.page-cockfighting__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-cockfighting__video-description {
    margin-top: 30px;
    text-align: center;
    max-width: 800px;
    color: var(--page-cockfighting-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1.1rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-cockfighting__text-block h2 {
        font-size: clamp(1.4rem, 3vw, 2rem);
    }
}

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

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

    .page-cockfighting__hero-image {
        margin-bottom: 20px;
    }

    .page-cockfighting__hero-content {
        padding: 15px;
    }

    .page-cockfighting__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

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

    .page-cockfighting__hero-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: 12px 20px; /* Adjust padding for mobile */
        font-size: 1rem;
    }

    .page-cockfighting__hero-cta-buttons {
      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 {
        padding: 40px 15px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block h2 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-cockfighting__text-block h3 {
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .page-cockfighting__card-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-cockfighting__card {
        padding: 20px;
    }

    .page-cockfighting__faq-section {
        padding: 40px 15px;
    }

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

    .page-cockfighting__faq-toggle {
        font-size: 1.5rem;
    }

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

    /* Mobile image responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* Mobile video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__video-player {
      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;
    }
    
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}