/* style/cockfighting.css */

/* Variables for colors, derived from custom palette */
:root {
    --page-cockfighting-bg-color: #08160F;
    --page-cockfighting-card-bg: #11271B;
    --page-cockfighting-text-main: #F2FFF6;
    --page-cockfighting-text-secondary: #A7D9B8;
    --page-cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-cockfighting-border-color: #2E7A4E;
    --page-cockfighting-glow-color: #57E38D;
    --page-cockfighting-gold-color: #F2C14E;
    --page-cockfighting-divider-color: #1E3A2A;
    --page-cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
    color: var(--page-cockfighting-text-main); /* Main text color for the page */
    background-color: var(--page-cockfighting-bg-color); /* Body background handled by shared.css, this is for sections */
}

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

.page-cockfighting__dark-bg {
    background-color: var(--page-cockfighting-bg-color);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-green);
    color: var(--page-cockfighting-text-main);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px 20px 60px; /* Small top padding, then generous bottom padding */
    min-height: 500px;
}

.page-cockfighting__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and text */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
    padding: 20px;
    background: rgba(17, 39, 27, 0.8); /* Card BG with some transparency */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: -80px; /* Pull content slightly over the image for visual interest, without overlapping text on image */
}

.page-cockfighting__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--page-cockfighting-gold-color); /* Gold for main title */
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-cockfighting__subtitle {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 40px;
}

.page-cockfighting__text-block {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--page-cockfighting-text-main);
    margin-bottom: 20px;
}

/* Grid Layout */
.page-cockfighting__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Styles */
.page-cockfighting__card {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-cockfighting-text-main);
    border: 1px solid var(--page-cockfighting-border-color);
}

.page-cockfighting__card-image {
    width: 100%;
    max-width: 400px; /* Ensure images in cards are not too small */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-cockfighting__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 15px;
}

.page-cockfighting__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

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

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--page-cockfighting-glow-color);
}

/* Lists */
.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
    text-align: left;
    max-width: 900px;
    margin: 0 auto 40px;
    padding-left: 20px;
}

.page-cockfighting__list-item {
    margin-bottom: 25px;
    color: var(--page-cockfighting-text-main);
    list-style-type: decimal;
}

.page-cockfighting__unordered-list .page-cockfighting__list-item {
    list-style-type: disc;
}

.page-cockfighting__list-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 10px;
}

.page-cockfighting__list-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-cockfighting-text-secondary);
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-cockfighting-text-main);
    text-align: left;
}

.page-cockfighting__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--page-cockfighting-gold-color);
    background-color: var(--page-cockfighting-card-bg);
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Hover effect using border color */
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--page-cockfighting-glow-color);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--page-cockfighting-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 15px;
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        min-height: auto;
    }

    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-cockfighting__hero-content {
        margin-top: -40px;
        padding: 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-cockfighting__subtitle {
        font-size: 1rem;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }

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

    .page-cockfighting__grid--2-cols {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__card {
        padding: 20px;
    }

    .page-cockfighting__card-title {
        font-size: 1.2rem;
    }

    .page-cockfighting__card-text {
        font-size: 0.9rem;
    }

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

    .page-cockfighting__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__container,
    .page-cockfighting__grid,
    .page-cockfighting__card,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__faq-list,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
    .page-cockfighting__list-item {
        font-size: 0.95rem;
    }
    .page-cockfighting__list-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        margin-top: -20px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-cockfighting__subtitle {
        font-size: 0.9rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }
}