/* style/cockfighting.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Inherited from body or set explicitly for main content */
}

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

/* Shared Section Styling */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
    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: #017439;
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for better readability on dark */
}

.page-cockfighting__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 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.1em;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(195, 8, 8, 0.4);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 116, 57, 0.4);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    text-align: center;
    background-color: #121212;
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

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

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly dim the background image */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark section */
    color: #ffffff; /* Light text for dark background */
}

/* Types Section */
.page-cockfighting__types-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

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

.page-cockfighting__type-card {
    background-color: #2a2a2a; /* Slightly lighter dark for card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for card */
}

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

.page-cockfighting__card-title {
    font-size: 1.8em;
    color: #017439; /* Brand primary color for card titles */
    margin-bottom: 15px;
}

.page-cockfighting__card-description {
    font-size: 1em;
    color: #cccccc;
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 80px 0;
    background-color: #121212; /* Dark background */
    color: #ffffff;
}

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

.page-cockfighting__step-item {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-top: 60px; /* Space for step number */
    color: #ffffff;
}

.page-cockfighting__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #017439;
    color: #FFFFFF;
    font-size: 2em;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #121212; /* Border to match background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-cockfighting__step-description {
    font-size: 1em;
    color: #cccccc;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-cockfighting__advantage-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-cockfighting__promotion-card {
    background-color: rgba(0, 0, 0, 0.3); /* Darker transparent background for contrast on brand color */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.page-cockfighting__promotion-card .page-cockfighting__btn-secondary {
    margin-top: 20px;
    align-self: center;
    background-color: #FFFFFF; /* White background for button on green section */
    color: #017439; /* Green text for button */
    border-color: #FFFFFF;
}

.page-cockfighting__promotion-card .page-cockfighting__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}


/* Video Section */
.page-cockfighting__video-section {
    padding: 80px 0;
    background-color: #121212;
    color: #ffffff;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video,
.page-cockfighting__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.page-cockfighting__video-link {
    display: block; /* Ensure the anchor takes up the full video space */
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-cockfighting__faq-item {
    background-color: #2a2a2a;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #017439; /* Brand primary color for question background */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #005f2f;
}

.page-cockfighting__faq-title {
    font-size: 1.2em;
    margin: 0;
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8em;
    margin-left: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: #2a2a2a; /* Card background for answer */
    color: #cccccc;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 20px !important;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or '-' */
}

/* Call to Action Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    background-color: #121212;
    text-align: center;
    color: #ffffff;
}

.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__hero-title {
        font-size: 3em;
    }

    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

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

    .page-cockfighting__hero-section {
        height: auto;
        min-height: 70vh;
        padding: 40px 0;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile fixed header */
    }

    .page-cockfighting__hero-content {
        max-width: 95%;
        padding: 15px;
    }

    .page-cockfighting__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-cockfighting__hero-cta-buttons,
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        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;
      padding-right: 15px;
    }

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

    .page-cockfighting__text-block {
        font-size: 0.95em;
        padding: 0 15px;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 50px 0;
    }

    .page-cockfighting__video-section {
        padding: 50px 0;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile fixed header on video section */
    }

    .page-cockfighting__types-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__advantages-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .page-cockfighting__step-number {
        top: -15px;
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .page-cockfighting__step-item {
        padding-top: 50px;
    }

    .page-cockfighting__faq-question {
        padding: 15px;
    }

    .page-cockfighting__faq-title {
        font-size: 1.1em;
    }

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

    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 15px !important;
    }

    /* Images and Video Responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__video-section .page-cockfighting__container,
    .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-wrapper {
        padding-bottom: 75%; /* Adjust aspect ratio for smaller screens if needed, e.g., 4:3 */
   }}