/* style/cockfighting.css */

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

/* Base styles for the page, assuming body has a background from shared.css */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--cockfighting-text-main); /* Default text color for the page */
    background-color: var(--cockfighting-background); /* Specific background for the main content area */
    line-height: 1.6;
    font-size: 16px;
}

/* Ensure the main content section respects the body padding-top from shared.css */
.page-cockfighting__hero-section,
.page-cockfighting__introduction-section,
.page-cockfighting__video-section,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__benefits-section,
.page-cockfighting__promotions-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

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

/* Hero Section */
.page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding for hero */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Adjust to slightly overlap the image for visual flow, but not text on image */
    background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--cockfighting-border);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: bold;
    color: var(--cockfighting-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
}

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

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--cockfighting-button-gradient);
    color: var(--cockfighting-text-main);
    border: none;
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--cockfighting-gold);
    color: var(--cockfighting-background);
    transform: translateY(-2px);
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--cockfighting-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-cockfighting__text-block {
    color: var(--cockfighting-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-cockfighting__video-section {
    padding-top: 10px; /* Small top padding for video section */
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video */
    margin: 30px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background-color: #000;
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-cockfighting__btn-full-width {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

/* Grid Layout for Types */
.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(--cockfighting-card-bg);
    border: 1px solid var(--cockfighting-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--cockfighting-gold);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-cockfighting__card-description {
    font-size: 0.95em;
    color: var(--cockfighting-text-secondary);
    padding: 0 15px;
}

/* Guide List */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__guide-list .page-cockfighting__list-item {
    background-color: var(--cockfighting-card-bg);
    border: 1px solid var(--cockfighting-border);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.page-cockfighting__guide-list .page-cockfighting__list-item:hover {
    transform: translateY(-3px);
}

.page-cockfighting__guide-list .page-cockfighting__list-title {
    font-size: 1.6em;
    color: var(--cockfighting-gold);
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.page-cockfighting__guide-list .page-cockfighting__list-title::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--cockfighting-deep-green);
    color: var(--cockfighting-text-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
}

.page-cockfighting__guide-list .page-cockfighting__list-item:nth-child(1) .page-cockfighting__list-title::before { content: '1'; }
.page-cockfighting__guide-list .page-cockfighting__list-item:nth-child(2) .page-cockfighting__list-title::before { content: '2'; }
.page-cockfighting__guide-list .page-cockfighting__list-item:nth-child(3) .page-cockfighting__list-title::before { content: '3'; }
.page-cockfighting__guide-list .page-cockfighting__list-item:nth-child(4) .page-cockfighting__list-title::before { content: '4'; }

.page-cockfighting__btn-inline {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--cockfighting-deep-green);
    color: var(--cockfighting-text-main);
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-cockfighting__btn-inline:hover {
    background-color: var(--cockfighting-glow);
    color: var(--cockfighting-background);
}

/* Benefits & Promotions & Tips Lists */
.page-cockfighting__benefits-list,
.page-cockfighting__promo-list,
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-cockfighting__benefits-list .page-cockfighting__list-item,
.page-cockfighting__promo-list .page-cockfighting__list-item,
.page-cockfighting__tips-list .page-cockfighting__list-item {
    background-color: var(--cockfighting-card-bg);
    border: 1px solid var(--cockfighting-border);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__benefits-list .page-cockfighting__list-title,
.page-cockfighting__promo-list .page-cockfighting__list-item strong,
.page-cockfighting__tips-list .page-cockfighting__list-title {
    font-size: 1.4em;
    color: var(--cockfighting-gold);
    margin-bottom: 10px;
}

.page-cockfighting__promo-list .page-cockfighting__list-item strong {
    display: block;
    margin-bottom: 5px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--cockfighting-card-bg);
    border: 1px solid var(--cockfighting-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--cockfighting-text-main);
    cursor: pointer;
    background-color: var(--cockfighting-deep-green);
    border-bottom: 1px solid var(--cockfighting-divider);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--cockfighting-deep-green);
    color: var(--cockfighting-gold);
}

.page-cockfighting__faq-question:hover {
    background-color: var(--cockfighting-deep-green);
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    color: var(--cockfighting-gold);
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    color: var(--cockfighting-text-secondary);
    font-size: 1em;
}

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

/* Hide default details marker */
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-item summary {
    list-style: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important;
    }

    .page-cockfighting__hero-content {
        margin-top: -50px; /* Less overlap on mobile */
        padding: 25px 15px;
    }

    .page-cockfighting__main-title {
        font-size: 2em; /* Adjust H1 size for mobile */
    }

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

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        margin-left: auto; /* Center buttons */
        margin-right: auto;
    }

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

    .page-cockfighting__image-content,
    .page-cockfighting__video,
    .page-cockfighting__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__video-wrapper,
    .page-cockfighting__grid-layout,
    .page-cockfighting__guide-list,
    .page-cockfighting__benefits-list,
    .page-cockfighting__promo-list,
    .page-cockfighting__tips-list,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }

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

    .page-cockfighting__card-image {
        height: 200px;
    }

    .page-cockfighting__guide-list .page-cockfighting__list-title {
        font-size: 1.4em;
        padding-left: 35px;
    }

    .page-cockfighting__guide-list .page-cockfighting__list-title::before {
        width: 25px;
        height: 25px;
        font-size: 0.8em;
    }

    .page-cockfighting__benefits-list,
    .page-cockfighting__promo-list,
    .page-cockfighting__tips-list {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-toggle {
        font-size: 1.3em;
    }

    .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
}