/* style/cockfighting.css */

/* Custom Properties */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for dark background */
    background-color: var(--background-color); /* Overall page background */
}

/* Ensure main content is not covered by fixed header */
/* body already handles padding-top: var(--header-offset); */

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--card-bg-color);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 1080px; /* Max height for the image wrapper */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 400px; /* Minimum height for hero image */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
    color: var(--text-main-color);
}

.page-cockfighting__main-title {
    color: var(--gold-color);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
}

.page-cockfighting__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary-color);
}

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__section {
    padding: 60px 20px;
    background-color: var(--background-color);
    color: var(--text-main-color);
    border-bottom: 1px solid var(--divider-color);
}

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

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

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(34, 199, 104, 0.3);
}

.page-cockfighting p {
    margin-bottom: 1.5em;
    font-size: 1.05rem;
    color: var(--text-secondary-color);
}

.page-cockfighting__image-block {
    margin: 40px auto;
    text-align: center;
    width: 100%;
    max-width: 800px; /* Limit image block width */
}

.page-cockfighting__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__list li {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-cockfighting__list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__list-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__list li p {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 0;
}

.page-cockfighting__steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__steps-list li {
    counter-increment: step-counter;
    position: relative;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px 25px 25px 70px; /* Adjust padding for counter */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__steps-list li h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−';
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary-color);
    font-size: 1rem;
    border-top: 1px solid var(--divider-color);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image {
        min-height: 350px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-image {
        min-height: 250px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-cockfighting p {
        font-size: 0.95rem;
    }
    .page-cockfighting__list-title,
    .page-cockfighting__steps-list li h3 {
        font-size: 1.2rem;
    }
    .page-cockfighting__list li,
    .page-cockfighting__steps-list li {
        padding: 20px;
    }
    .page-cockfighting__steps-list li::before {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        left: 15px;
        top: 15px;
    }
    .page-cockfighting__steps-list li {
        padding-left: 60px;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image and container responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__image-block,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
    }
    .page-cockfighting__hero-section {
      padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    .page-cockfighting__section {
        padding: 40px 10px;
    }
    .page-cockfighting__container {
        padding: 0 10px;
    }
}