/* style/cockfighting.css */

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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Main text color for dark background */
    background-color: var(--color-background); /* Body background from custom colors */
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

.page-cockfighting__text-block {
    font-size: 1em;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.6;
}

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--color-background); /* Ensure consistent background */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* Space between image and content */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Ensure image doesn't get too tall */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-cockfighting__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--color-gold); /* Using gold for main title */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure button does not overflow */
}

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

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

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--color-background);
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    width: 100%; /* Important for desktop */
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves as a block element */
    cursor: pointer; /* Indicate clickability */
}

.page-cockfighting__video-cta {
    margin-top: 30px;
}

.page-cockfighting__content-section {
    padding: 60px 0;
    background-color: var(--color-card-bg); /* Use card background for content sections */
    border-top: 1px solid var(--color-divider);
}

.page-cockfighting__content-section.page-cockfighting__dark-section {
    background-color: var(--color-deep-green); /* Deeper green for contrast sections */
}

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

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

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

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

.page-cockfighting__card-text {
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    min-height: 200px; /* Minimum size for content images */
}

.page-cockfighting__feature-list,
.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-cockfighting__feature-item,
.page-cockfighting__strategy-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-cockfighting__feature-item:hover,
.page-cockfighting__strategy-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__feature-title,
.page-cockfighting__strategy-title {
    font-size: 1.4em;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__feature-description,
.page-cockfighting__strategy-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

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

.page-cockfighting__step-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

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

.page-cockfighting__step-description {
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-deep-green); /* Darker background for summary */
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item summary:hover {
    background-color: var(--color-primary);
}

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-gold);
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    background-color: var(--color-card-bg);
}

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

.page-cockfighting__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-deep-green);
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-cockfighting__hero-image-wrapper {
      max-height: 450px;
    }
    .page-cockfighting__hero-image {
      max-height: 450px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__container {
        padding: 0 15px; /* Smaller padding for mobile */
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-cockfighting__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-image-wrapper {
      max-height: 300px;
      margin-bottom: 30px;
    }
    .page-cockfighting__hero-image {
      max-width: 100% !important; /* Force responsive */
      width: 100% !important;
      height: auto !important;
      max-height: 300px;
    }
    .page-cockfighting__hero-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin: 0 auto;
    }

    /* Mobile video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-cockfighting__video-section {
      padding-top: 10px !important; /* body already handles --header-offset */
    }

    .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;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__content-section,
    .page-cockfighting__hero-content,
    .page-cockfighting__steps-grid,
    .page-cockfighting__feature-list,
    .page-cockfighting__strategy-list,
    .page-cockfighting__faq-list,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__video-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    /* 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 and padding-right should be handled by parent container */
    }
    
    .page-cockfighting__cta-buttons {
      flex-direction: column !important; /* Stack buttons vertically */
      gap: 10px !important;
    }

    .page-cockfighting__card-grid,
    .page-cockfighting__feature-list,
    .page-cockfighting__strategy-list,
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-cockfighting__card,
    .page-cockfighting__feature-item,
    .page-cockfighting__strategy-item,
    .page-cockfighting__step-card {
        padding: 20px;
    }

    .page-cockfighting__card-title,
    .page-cockfighting__feature-title,
    .page-cockfighting__strategy-title,
    .page-cockfighting__step-title {
        font-size: 1.3em;
    }

    .page-cockfighting__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
    .page-cockfighting__cta-section {
        padding: 60px 0;
    }
}

/* Ensure no CSS filters are applied to images */
.page-cockfighting img {
  filter: none !important;
}

/* Specific content image size enforcement for desktop (min-width 200px) */
.page-cockfighting__image-content {
    min-width: 200px;
    min-height: 200px;
}