/* style/cockfighting.css */

/* General styles for the page */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color, #FFFFFF); /* Page background from shared.css */
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    color: #017439; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__section-title--white {
    color: #FFFFFF;
}

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

.page-cockfighting__text-block--white {
    color: #FFFFFF;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding: var(--header-offset, 120px) 0 80px; /* Use header offset if not set on body */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-cockfighting__hero-section .page-cockfighting__container {
    z-index: 1;
    position: relative;
}

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

.page-cockfighting__hero-title {
    font-size: 58px;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: 40px;
    max-width: 900px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/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: #FFFFFF;
    color: #017439;
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-cockfighting__btn-small:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 60px 0;
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 60px 0;
    background-color: #017439; /* Primary brand color for dark background */
}

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

.page-cockfighting__feature-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.page-cockfighting__feature-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__feature-description {
    font-size: 16px;
    color: #555555;
    text-align: justify;
}

/* Betting Types Section */
.page-cockfighting__betting-types-section {
    padding: 60px 0;
}

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

.page-cockfighting__betting-card {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__betting-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__betting-description {
    font-size: 16px;
    color: #555555;
    text-align: justify;
}

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

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 60px 0;
    background-color: #017439;
}

.page-cockfighting__guide-list {
    list-style: none;
    counter-reset: guide-step;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 70px;
}

.page-cockfighting__guide-item::before {
    counter-increment: guide-step;
    content: counter(guide-step);
    position: absolute;
    left: 25px;
    top: 25px;
    background-color: #C30808;
    color: #FFFF00;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.page-cockfighting__guide-step-title {
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-cockfighting__guide-step-description {
    font-size: 16px;
    color: #f0f0f0;
    text-align: justify;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
}

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

.page-cockfighting__promotion-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-cockfighting__promotion-title {
    font-size: 22px;
    color: #017439;
    margin: 20px 15px 10px;
}

.page-cockfighting__promotion-description {
    font-size: 16px;
    color: #555555;
    margin: 0 15px 20px;
    text-align: justify;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: #017439;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-title {
    font-size: 20px;
    color: #FFFFFF;
    margin: 0;
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    color: #FFFF00; /* Yellow for toggle icon */
    font-weight: bold;
    margin-left: 20px;
    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;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

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

/* Other Games Section */
.page-cockfighting__other-games-section {
    padding: 60px 0;
    background-color: #017439;
}

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

.page-cockfighting__game-card {
    display: block;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.page-cockfighting__game-title {
    font-size: 20px;
    color: #017439;
    margin: 15px 15px 5px;
    font-weight: bold;
}

.page-cockfighting__game-description {
    font-size: 14px;
    color: #555555;
    margin: 0 15px 15px;
    text-align: justify;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 48px;
    }

    .page-cockfighting__hero-description {
        font-size: 20px;
    }

    .page-cockfighting__section-title {
        font-size: 30px;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__betting-grid,
    .page-cockfighting__promotions-grid,
    .page-cockfighting__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    /* General content area padding and font size for mobile */
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

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

    /* HERO Section */
    .page-cockfighting__hero-section {
        padding-top: 0 !important; /* Assuming shared.css handles body padding-top to avoid double padding */
        padding-bottom: 40px !important;
    }

    .page-cockfighting__hero-title {
        font-size: 38px !important;
    }

    .page-cockfighting__hero-description {
        font-size: 18px !important;
        padding: 0 10px;
    }

    /* General Images & Containers */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-cockfighting__introduction-section .page-cockfighting__container,
    .page-cockfighting__features-section .page-cockfighting__container,
    .page-cockfighting__betting-types-section .page-cockfighting__container,
    .page-cockfighting__guide-section .page-cockfighting__container,
    .page-cockfighting__promotions-section .page-cockfighting__container,
    .page-cockfighting__faq-section .page-cockfighting__container,
    .page-cockfighting__conclusion-section .page-cockfighting__container,
    .page-cockfighting__other-games-section .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    /* Buttons & Button Containers */
    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px !important;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small,
    .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 !important;
        padding-right: 15px !important;
    }

    /* Other Content Modules */
    .page-cockfighting__section-title {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }

    .page-cockfighting__text-block {
        font-size: 16px !important;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__betting-grid,
    .page-cockfighting__promotions-grid,
    .page-cockfighting__games-grid {
        grid-template-columns: 1fr !important; /* Single column layout for cards */
        gap: 20px !important;
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__betting-card,
    .page-cockfighting__promotion-card,
    .page-cockfighting__game-card {
        padding: 20px !important;
    }

    .page-cockfighting__guide-item {
        padding-left: 60px !important;
    }
    .page-cockfighting__guide-item::before {
        left: 20px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }

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