/* style/cockfighting.css */

/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    line-height: 1.6;
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-color: #000000; /* Body background color */
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 60px;
}

.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 image to make text pop */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    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: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-cockfighting__btn-primary {
    background: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

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

.page-cockfighting__btn-secondary:hover {
    background: #26A9E0;
    color: #FFFFFF;
}

.page-cockfighting__cta-wrapper {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.page-cockfighting__cta-wrapper .page-cockfighting__btn-primary,
.page-cockfighting__cta-wrapper .page-cockfighting__btn-secondary {
    margin: 0 10px;
}

/* Section Backgrounds */
.page-cockfighting__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter dark for content sections */
    color: #ffffff;
    padding: 80px 0;
}

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: #26A9E0;
}

.page-cockfighting__light-bg .page-cockfighting__text-block {
    color: #333333;
}

.page-cockfighting__light-bg a {
    color: #26A9E0;
}

.page-cockfighting__light-bg a:hover {
    color: #1e87b7;
}

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

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

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

.page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-cockfighting__step-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333;
    transition: transform 0.3s ease;
}

.page-cockfighting__step-item:hover {
    transform: translateY(-5px);
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__step-text {
    font-size: 1em;
    color: #555555;
}

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

.page-cockfighting__faq-item {
    background: #f8f8f8;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

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

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

.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-out, padding 0.3s ease-out;
    color: #555555;
}

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

/* Floating Buttons */
.page-cockfighting__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-cockfighting__floating-btn {
    display: block;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.page-cockfighting__floating-btn--register {
    background: #26A9E0;
    color: #FFFFFF;
}

.page-cockfighting__floating-btn--register:hover {
    transform: scale(1.05);
    background: #1e87b7;
}

.page-cockfighting__floating-btn--login {
    background: #EA7C07; /* Login color */
    color: #FFFFFF;
}

.page-cockfighting__floating-btn--login:hover {
    transform: scale(1.05);
    background: #c26705;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__card-title {
        font-size: 1.3em;
    }
    .page-cockfighting__step-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__cta-wrapper .page-cockfighting__btn-primary,
    .page-cockfighting__cta-wrapper .page-cockfighting__btn-secondary {
        margin: 10px 0;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }
    .page-cockfighting__grid, .page-cockfighting__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__card,
    .page-cockfighting__step-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }
    .page-cockfighting__card-image {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__floating-buttons {
        flex-direction: row;
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
        width: calc(100% - 30px);
        gap: 8px;
        justify-content: center;
    }
    .page-cockfighting__floating-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.9em;
        border-radius: 30px;
    }
    .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: 10px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__floating-buttons {
        flex-wrap: wrap;
    }
}