/* style/cockfighting.css */

/* Custom Color Variables */
:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --background-section-color: #B71C1C; /* Renamed to avoid conflict with shared --color-background */
    --text-main-color: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Light text for dark background */
    background-color: var(--background-section-color); /* Apply custom background to sections for visual separation */
    padding-bottom: 60px; /* Add padding at the bottom of the main content */
}

.page-cockfighting__section {
    padding: 60px 0;
    background-color: var(--background-section-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__section:last-of-type {
    border-bottom: none;
}

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

.page-cockfighting__container--center {
    text-align: center;
}

.page-cockfighting__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 204, 102, 0.5);
    line-height: 1.2;
}

.page-cockfighting__sub-title {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting p {
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--text-main-color);
}

.page-cockfighting a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting a:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

/* HERO Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--deep-red-color); /* Deep red background for hero */
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width for max-width to work */
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 20px rgba(255, 204, 102, 0.5);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-cockfighting__hero-content h1 {
    color: var(--gold-color);
    font-size: clamp(36px, 5vw, 60px); /* Using clamp for responsive H1 */
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 204, 102, 0.8);
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-content p {
    font-size: 19px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main-color);
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--deep-red-color); /* Text color for the button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__cta-button:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%); /* Invert gradient on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--glow-color);
}

.page-cockfighting__cta-button--small {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
}

.page-cockfighting__cta-button--large {
    padding: 18px 50px;
    font-size: 22px;
    margin-top: 40px;
}

/* Lists */
.page-cockfighting__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-main-color);
    font-size: 17px;
}

.page-cockfighting__list li {
    margin-bottom: 10px;
}

.page-cockfighting__numbered-list {
    list-style: none;
    counter-reset: step-counter;
    margin-bottom: 20px;
}

.page-cockfighting__numbered-list li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
    font-size: 17px;
    color: var(--text-main-color);
}

.page-cockfighting__numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--gold-color);
    color: var(--deep-red-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid var(--border-color);
}

.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
}

.page-cockfighting__promo-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main-color);
}

.page-cockfighting__promo-list li h3 {
    color: var(--gold-color);
    margin-top: 0;
    font-size: 22px;
}

/* Features Grid */
.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: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color);
}

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

.page-cockfighting__feature-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__feature-card h3 {
    color: var(--gold-color);
    font-size: 22px;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--deep-red-color); /* Slightly different background for visual contrast */
}

details.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg); /* Use card background for FAQ items */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--gold-color);
    font-weight: 600;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
    background: var(--deep-red-color); /* Darker red on hover */
}

.page-cockfighting__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
    transition: transform 0.3s ease;
}

details.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become x or just a visual change */
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 20px;
    background: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background for answer */
    border-radius: 0 0 5px 5px;
    color: var(--text-main-color);
    font-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content h1 {
        font-size: clamp(32px, 4.5vw, 50px);
    }
    .page-cockfighting__hero-content p {
        font-size: 18px;
    }
    .page-cockfighting__section-title {
        font-size: clamp(26px, 3.5vw, 38px);
    }
    .page-cockfighting__sub-title {
        font-size: clamp(18px, 2.2vw, 26px);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-image {
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-image img {
        border-radius: 4px;
    }
    .page-cockfighting__hero-content h1 {
        font-size: clamp(28px, 6vw, 40px); /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 20px;
        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-button--small,
    .page-cockfighting__cta-button--large {
        padding: 12px 25px;
        font-size: 16px;
        margin-top: 20px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(24px, 5vw, 32px);
        margin-bottom: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: clamp(18px, 4vw, 24px);
    }

    .page-cockfighting p,
    .page-cockfighting__list li,
    .page-cockfighting__numbered-list li,
    .page-cockfighting__faq-answer p {
        font-size: 15px;
    }

    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-card {
        padding: 20px;
    }
    .page-cockfighting__feature-card h3 {
        font-size: 20px;
    }

    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
        padding: 15px;
    }
    .page-cockfighting__faq-qtext {
        font-size: 15px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
        padding: 0 15px 15px;
    }

    /* Image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__features-grid,
    .page-cockfighting__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure containers for buttons are also responsive */
    .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;
    }
}