/* style/cockfighting.css */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-cockfighting__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    min-height: 600px;
    overflow: hidden;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 10;
    max-width: 50%;
    padding-left: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom font color for register/login */
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-cockfighting__hero-buttons {
    display: flex;
    gap: 20px;
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: brightness(0.8); /* Allow brightness filter for background image effect */
}

/* General Sections */
.page-cockfighting__intro-section,
.page-cockfighting__advantages-section,
.page-cockfighting__betting-guide-section,
.page-cockfighting__betting-tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
    padding: 60px 0;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: inherit;
    text-align: center;
    margin-bottom: 40px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__text-block a {
    color: #FFFF00; /* Link color for text blocks */
    text-decoration: underline;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

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

.page-cockfighting__btn-primary:hover {
    background-color: #9C0606;
    border-color: #9C0606;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
}

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

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.page-cockfighting__video-link:hover .page-cockfighting__video {
    filter: brightness(1.1); /* Slight hover effect */
}

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

.page-cockfighting__advantage-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 450px; /* Ensure cards have consistent height */
}

.page-cockfighting__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__advantage-icon {
    width: 100%; /* Make image take full width of its container */
    max-width: 400px; /* Max width for consistency */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    min-height: 200px; /* Minimum image size */
}

.page-cockfighting__advantage-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__advantage-description {
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

.page-cockfighting__advantage-description a {
    color: #017439; /* Link color within description */
    text-decoration: underline;
}

/* Guide List */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__guide-item {
    background-color: #028e46; /* Slightly darker green */
    margin-bottom: 20px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__guide-step-title {
    font-size: 1.8em;
    color: #FFFF00; /* Custom font color for register/login */
    margin-bottom: 10px;
}

.page-cockfighting__guide-item p {
    color: #ffffff;
    font-size: 1.1em;
}

.page-cockfighting__guide-item a {
    color: #FFFF00; /* Link color for text blocks */
    text-decoration: underline;
}

/* Betting Tips */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__tip-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-cockfighting__tip-item p {
    color: #555555;
}

.page-cockfighting__tip-item a {
    color: #017439; /* Link color within description */
    text-decoration: underline;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: #028e46; /* Slightly darker green */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: #017439;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #028e46;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #ffffff;
}

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

.page-cockfighting__faq-answer p {
    margin: 0 0 10px 0;
    color: #ffffff;
}

.page-cockfighting__faq-answer a {
    color: #FFFF00; /* Link color in FAQ answer */
    text-decoration: underline;
}

/* CTA Section */
.page-cockfighting__cta-section {
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-content {
        max-width: 60%;
    }
    .page-cockfighting__hero-image-wrapper {
        width: 50%;
    }
}

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

    .page-cockfighting__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensures header offset is applied on mobile for hero */
    }

    .page-cockfighting__hero-content {
        max-width: 100%;
        padding: 0 15px;
        order: 2;
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
        color: #FFFF00;
    }

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

    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__hero-image-wrapper {
        position: relative;
        width: 100%;
        height: 250px;
        margin-bottom: 30px;
        order: 1;
    }

    .page-cockfighting__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

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

    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-cockfighting__video-wrapper {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__advantage-card {
        min-height: auto;
    }

    .page-cockfighting__advantage-icon {
        min-height: 200px;
        width: 100%;
        max-width: 100%;
    }

    .page-cockfighting__guide-item,
    .page-cockfighting__tip-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }

    .page-cockfighting__guide-step-title,
    .page-cockfighting__tip-title {
        font-size: 1.3em;
    }

    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Ensure all containing elements for images/videos/buttons are responsive */
    .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-x: hidden !important; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__advantages-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__tips-list {
        grid-template-columns: 1fr;
    }
}