/* style/cockfighting.css */
.page-cockfighting {
    color: #ffffff; /* Body background is dark, so text should be light */
    background-color: var(--dark-bg); /* Assuming shared.css defines --dark-bg */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-cockfighting__section-subtitle {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    box-sizing: border-box;
}

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

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

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

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

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

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7fb3;
    border-color: #1a7fb3;
}

.page-cockfighting__btn-text {
    background: none;
    color: #26A9E0;
    border: none;
    padding: 5px 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-cockfighting__btn-text:hover {
    color: #1a7fb3;
}

/* Introduction Section */
.page-cockfighting__introduction {
    background-color: var(--dark-bg);
    color: #f0f0f0;
}

.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-cockfighting__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Betting Types Section */
.page-cockfighting__betting-types {
    background-color: #1a1a1a; /* Slightly darker for contrast */
    color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: #ffffff;
}

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

.page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    min-height: 200px; /* Ensure cards have minimum height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-cockfighting__card p {
    color: #f0f0f0;
}

/* Guide Section */
.page-cockfighting__guide {
    background-color: var(--dark-bg);
    color: #f0f0f0;
}

.page-cockfighting__step-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
}

.page-cockfighting__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.page-cockfighting__step-number {
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.page-cockfighting__step-content {
    flex-grow: 1;
}

.page-cockfighting__step-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__step-content p {
    color: #f0f0f0;
    margin-bottom: 10px;
}

/* Advantages Section */
.page-cockfighting__advantages {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

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

.page-cockfighting__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__feature-icon {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover; /* Ensure images fill their space */
}

.page-cockfighting__feature-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__feature-item p {
    color: #f0f0f0;
}

/* Strategies Section */
.page-cockfighting__strategies {
    background-color: var(--dark-bg);
    color: #f0f0f0;
}

.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.page-cockfighting__strategy-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #f0f0f0;
}

.page-cockfighting__strategy-heading {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__strategy-item p {
    color: #f0f0f0;
}

/* Tournaments Section */
.page-cockfighting__tournaments {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: #ffffff;
}

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

.page-cockfighting__tournament-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-cockfighting__tournament-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-cockfighting__tournament-card p {
    color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq {
    background-color: var(--dark-bg);
    color: #f0f0f0;
}

.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-title {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    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 20px;
    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; /* Use !important to ensure it overrides */
    padding: 20px;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}

/* CTA Bottom Section */
.page-cockfighting__cta-bottom {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 80px 0;
}

.page-cockfighting__cta-bottom .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__cta-bottom .page-cockfighting__section-subtitle {
    color: #f0f0f0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__image-wrapper {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 500px;
    }
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-subtitle {
        font-size: 0.9em;
    }
    .page-cockfighting__card-grid,
    .page-cockfighting__feature-grid,
    .page-cockfighting__tournament-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-cockfighting__step-number {
        margin-bottom: 15px;
    }
    .page-cockfighting__step-title {
        font-size: 1.5em;
    }
    .page-cockfighting__hero-cta-buttons,
    .page-cockfighting__cta-bottom .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Mobile image responsive adaptation */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}