/* style/cockfighting.css */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from shared.css, explicitly set for context */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 60px;
}

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

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    color: #ffffff;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register and Login font color for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* General Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #FFFFFF;
}

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

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

/* Sections */
.page-cockfighting__intro-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__video-section,
.page-cockfighting__promotions-section,
.page-cockfighting__guide-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-bottom-section {
    padding: 60px 0;
}

.page-cockfighting__light-bg {
    background-color: #FFFFFF;
    color: #333333; /* Dark text for light background */
}

.page-cockfighting__dark-bg {
    background-color: #017439;
    color: #ffffff; /* Light text for dark background */
}

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

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit;
}

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

.page-cockfighting__feature-card {
    background: #ffffff;
    color: #333333;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-10px);
}

.page-cockfighting__feature-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

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

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

/* Video Section */
.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;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Promotions Section */
.page-cockfighting__promotion-card {
    display: flex;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__promotion-image {
    flex: 1 1 50%;
    max-width: 50%;
    height: auto;
    object-fit: cover;
}

.page-cockfighting__promotion-details {
    flex: 1 1 50%;
    max-width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.page-cockfighting__promotion-details .page-cockfighting__card-title {
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-cockfighting__promotion-details .page-cockfighting__card-description {
    color: #f0f0f0;
    margin-bottom: 20px;
}

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

.page-cockfighting__guide-list li {
    background: #f9f9f9;
    color: #333333;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    counter-increment: guide-counter;
    position: relative;
    padding-left: 60px;
}

.page-cockfighting__guide-list li::before {
    content: counter(guide-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #017439;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-cockfighting__list-strong {
    color: #017439;
}

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

.page-cockfighting__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-cockfighting__faq-title {
    margin: 0;
    color: #ffffff;
}

.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: #f0f0f0;
}

.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;
    padding-bottom: 10px;
}

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

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

    .page-cockfighting__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-cockfighting__hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .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__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;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column;
    }

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

    .page-cockfighting__feature-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__promotion-card {
        flex-direction: column;
    }

    .page-cockfighting__promotion-image,
    .page-cockfighting__promotion-details {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .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-wrapper {
        padding-bottom: 75%; /* Adjust for 4:3 or more compact */
    }

    .page-cockfighting__guide-list li {
        padding-left: 50px;
    }

    .page-cockfighting__guide-list li::before {
        left: 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }

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