/* style/cockfighting.css */

/* Custom Color Variables */
:root {
    --page-cockfighting-primary-color: #11A84E; /* Main color */
    --page-cockfighting-secondary-color: #22C768; /* Auxiliary color */
    --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;
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content on desktop */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow from hero image */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure wrapper doesn't overflow */
    margin-bottom: 30px; /* Space between image and content */
    box-sizing: border-box;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-cockfighting__hero-content {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1;
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 5px 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: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.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: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary {
    background: #ffffff;
    color: var(--page-cockfighting-primary-color);
    border: 2px solid var(--page-cockfighting-primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: var(--page-cockfighting-primary-color);
    color: #ffffff;
}

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

.page-cockfighting__section {
    padding: 80px 0;
    box-sizing: border-box;
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-card-bg); /* Darker background for contrast */
    color: var(--page-cockfighting-text-main);
}

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

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

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

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

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

.page-cockfighting__card {
    background-color: var(--page-cockfighting-background); /* Dark background for cards */
    border: 1px solid var(--page-cockfighting-border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-cockfighting-text-main); /* Light text for card content */
}

.page-cockfighting__card-image {
    width: 100%;
    max-width: 400px; /* Max width for card image */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce min height for card images */
}

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

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

.page-cockfighting__step-by-step {
    display: flex;
    flex-direction: column; /* Default to column for clarity */
    gap: 40px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--page-cockfighting-text-main);
    text-align: center;
}

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

.page-cockfighting__step-description {
    font-size: 1.05rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 25px;
    text-align: justify;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    object-fit: cover;
    min-height: 200px; /* Enforce min height */
}

.page-cockfighting__content-image-small {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    max-width: 400px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Enforce min height */
}

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

.page-cockfighting__strategy-item {
    background-color: var(--page-cockfighting-background);
    border: 1px solid var(--page-cockfighting-divider-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    color: var(--page-cockfighting-text-main);
    text-align: left;
}

.page-cockfighting__strategy-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--page-cockfighting-primary-color);
    margin-bottom: 10px;
}

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

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

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

.page-cockfighting__feature-item {
    background-color: var(--page-cockfighting-background);
    border: 1px solid var(--page-cockfighting-border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--page-cockfighting-text-main);
    text-align: left;
}

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

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

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.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.15rem;
    font-weight: 600;
    color: var(--page-cockfighting-gold-color);
    background-color: var(--page-cockfighting-deep-green); /* Slightly different bg for summary */
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    background-color: var(--page-cockfighting-background);
    border-top: 1px solid var(--page-cockfighting-divider-color);
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
    color: var(--page-cockfighting-text-secondary);
}
.page-cockfighting__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-cockfighting__cta-buttons--bottom {
    margin-top: 50px;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-cockfighting__step-by-step {
        flex-direction: row; /* Horizontal layout for steps on larger screens */
        justify-content: center;
        align-items: flex-start;
    }
    .page-cockfighting__step-card {
        flex: 1;
        max-width: 380px; /* Limit width for step cards */
    }
    .page-cockfighting__hero-section {
        flex-direction: column; /* Image above content */
    }
    .page-cockfighting__hero-image-wrapper {
        order: 1; /* Image first */
    }
    .page-cockfighting__hero-content {
        order: 2; /* Content second */
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small top padding for content */
    }

    .page-cockfighting__main-title {
        font-size: 2rem;
    }

    .page-cockfighting__hero-description {
        font-size: 1rem;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 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-left: 15px; /* Add padding to buttons to prevent text touching edges */
        padding-right: 15px;
    }

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

    .page-cockfighting__container {
        padding: 0 15px; /* Add padding to container on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

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

    .page-cockfighting__step-title {
        font-size: 1.5rem;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all containers with images/videos/buttons are responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .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;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Video specific mobile responsiveness (if video were present) */
    .page-cockfighting video,
    .page-cockfighting__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      box-sizing: border-box !important;
    }
}

/* Ensure no CSS filter on images */
.page-cockfighting img {
    filter: none !important;
}