/* style/cockfighting.css */

/* Root variables for colors */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Body background */
}

.page-cockfighting {
    color: var(--text-main); /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--deep-navy); /* Ensure consistency if body background isn't applied globally */
}

.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column; /* Stacks image block on top of content block */
    align-items: center;
    text-align: center;
    padding-bottom: 60px; /* Only bottom padding for the section */
    background-color: var(--deep-navy); /* Ensure background is dark */
}

.page-cockfighting__hero-image-block {
    width: 100%;
    max-height: 600px; /* Limit height of the image block */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
    padding-top: 10px; /* Small top padding for the image block */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__hero-content-block {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: var(--deep-navy); /* Match body background */
    border-radius: 8px;
    margin-top: 0; /* No margin-top needed to avoid header, as body handles it */
}

/* Ensure the text content is still readable */
.page-cockfighting__hero-content-block .page-cockfighting__container {
    padding: 0 20px; /* Inner padding for text */
}

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

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

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

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

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-tertiary {
    background-color: var(--primary-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.page-cockfighting__btn-tertiary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.page-cockfighting__section {
    padding: 60px 20px;
    text-align: center;
    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;
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: left;
}

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

.page-cockfighting__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

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

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

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__card-description {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 20px auto 40px;
    max-width: 900px;
    text-align: left;
}

.page-cockfighting__list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 25px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.05em;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__list-item strong {
    color: var(--gold-color);
    margin-right: 10px;
}

.page-cockfighting__image-wrapper {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    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: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--secondary-color);
    color: var(--text-main);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
    color: var(--text-main);
}

.page-cockfighting__faq-answer {
    padding: 15px 25px;
    font-size: 1.05em;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

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


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2em, 6vw, 3em);
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }

    .page-cockfighting__hero-content-block {
      padding: 15px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-image-block {
        max-height: 400px;
    }

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

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 8vw, 2.8em);
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-cockfighting__section {
        padding: 40px 15px;
    }

    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__card-description,
    .page-cockfighting__list-item,
    .page-cockfighting__faq-answer {
        font-size: 0.95em;
    }

    .page-cockfighting__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card-image {
        height: auto; /* Allow auto height for mobile */
    }

    /* All images must be responsive */
    .page-cockfighting img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
      min-width: 200px !important; /* Ensure minimum size */
      min-height: 200px !important; /* Ensure minimum size */
    }

    /* Image containers */
    .page-cockfighting__image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Video section top padding (not applicable here, but general rule) */
    .page-cockfighting__video-section {
      padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content-block .page-cockfighting__container {
        padding: 0 10px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 9vw, 2.2em);
    }

    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
}