/* style/cockfighting.css */

/* Custom properties for colors from the palette */
:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --bg-dark: #08160F; /* Background */
    --bg-card: #11271B; /* Card BG */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
}

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-dark); /* Ensure dark background as per palette */
    color: var(--text-main); /* Light text for dark background */
    line-height: 1.6;
}

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

/* Section styling */
.page-cockfighting__hero-section,
.page-cockfighting__introduction-section,
.page-cockfighting__benefits-section,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__strategy-section,
.page-cockfighting__promotion-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 60px 0;
    position: relative;
}

/* Specific background colors for sections */
.page-cockfighting__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.page-cockfighting__light-bg {
    background-color: #0d1e16; /* Slightly lighter dark for contrast */
    color: var(--text-main);
}

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* To contain the image */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Subtle darkening for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px;
    margin-top: -150px; /* Overlap with image slightly */
    border-radius: 10px;
    background: rgba(17, 40, 27, 0.9); /* Card BG with transparency */
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

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

.page-cockfighting__hero-description {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--btn-gradient);
    border-radius: 2px;
}

/* Text Content */
.page-cockfighting__text-content {
    font-size: 1.05em;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

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

.page-cockfighting__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(17, 168, 78, 0.3);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(17, 168, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

.page-cockfighting__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background: var(--btn-gradient);
    color: #ffffff;
    border-radius: 5px;
}
.page-cockfighting__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* Benefits List */
.page-cockfighting__benefits-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__benefits-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__benefits-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5), 0 0 15px var(--glow-color);
}

.page-cockfighting__benefits-heading {
    color: var(--gold-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-cockfighting__benefits-description {
    color: var(--text-secondary);
    font-size: 1em;
}

/* Type Cards */
.page-cockfighting__type-cards,
.page-cockfighting__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5), 0 0 15px var(--glow-color);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-cockfighting__card-title {
    color: var(--gold-color);
    font-size: 1.4em;
    padding: 15px 20px 10px;
    margin: 0;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-cockfighting__card-description {
    color: var(--text-secondary);
    font-size: 0.95em;
    padding: 0 20px 20px;
    flex-grow: 1; /* Make description take available space */
}

/* Guide List */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    counter-reset: guide-step;
}

.page-cockfighting__guide-item {
    background-color: var(--bg-card);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    position: relative;
    padding-left: 80px;
}

.page-cockfighting__guide-item::before {
    counter-increment: guide-step;
    content: counter(guide-step);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5em;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__guide-heading {
    color: var(--gold-color);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-cockfighting__guide-description {
    color: var(--text-secondary);
    font-size: 1em;
}

/* Strategy List */
.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-cockfighting__strategy-item {
    background-color: var(--bg-card);
    padding: 25px 30px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.page-cockfighting__strategy-heading {
    color: var(--gold-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-cockfighting__strategy-description {
    color: var(--text-secondary);
    font-size: 1em;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main);
    background-color: rgba(17, 168, 78, 0.1); /* Slightly lighter background for question */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
    background-color: var(--deep-green); /* Darker when open */
    color: var(--gold-color);
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 1em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    transition: max-height 0.5s ease-in;
}

/* Remove details marker */
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-cockfighting__faq-item summary {
    list-style: none;
}


/* Image content styling */
.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    object-fit: cover;
    min-height: 200px; /* Min size for content images */
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 6vw, 3em);
    }
    .page-cockfighting__hero-content {
        margin-top: -100px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 20px;
    }
    .page-cockfighting__hero-content {
        margin-top: -80px;
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 8vw, 2.5em);
        margin-bottom: 10px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin-left: auto;
        margin-right: auto;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small {
        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__benefits-list,
    .page-cockfighting__type-cards,
    .page-cockfighting__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__benefits-item,
    .page-cockfighting__card,
    .page-cockfighting__guide-item,
    .page-cockfighting__strategy-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }
    .page-cockfighting__guide-item {
        padding-left: 60px;
    }
    .page-cockfighting__guide-item::before {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
        left: 15px;
        top: 15px;
    }

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

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
    }
    .page-cockfighting__card-image {
        height: auto; /* Allow image to scale */
    }
    .page-cockfighting__image-content {
        min-height: 200px; /* Maintain minimum size */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.2em, 9vw, 2em);
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}