/* style/cockfighting.css */

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

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

/* Fixed Header Spacing: body already handles padding-top, so this page's first section gets a small top padding */
.page-cockfighting__hero-section,
.page-cockfighting__intro-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__live-video-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__contact-cta-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
}

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0; /* Image takes full height, content overlays */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Fixed height for hero image on desktop */
    overflow: hidden;
    position: relative;
}

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

.page-cockfighting__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    width: 90%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 10px;
    z-index: 10;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: var(--page-cockfighting-text-main);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--page-cockfighting-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__section-title--light {
    color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__text-block--light {
    color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-glow);
    color: var(--page-cockfighting-bg);
    transform: translateY(-3px);
}

.page-cockfighting__btn-text {
    background: none;
    color: var(--page-cockfighting-glow);
    padding: 0;
    border: none;
    text-align: left;
    display: inline;
}

.page-cockfighting__btn-text:hover {
    text-decoration: underline;
}

.page-cockfighting__content-image,
.page-cockfighting__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-card-bg);
    color: var(--page-cockfighting-text-main);
    padding: 80px 0;
}

.page-cockfighting__features-grid,
.page-cockfighting__promo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-card,
.page-cockfighting__promo-card {
    background-color: var(--page-cockfighting-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-cockfighting-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-cockfighting__promo-card .page-cockfighting__card-description {
    margin-bottom: 20px;
}

.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-cockfighting__step-item {
    background-color: var(--page-cockfighting-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: var(--page-cockfighting-glow);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__step-description {
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 15px;
}

.page-cockfighting__live-video-section {
    text-align: center;
}

.page-cockfighting__video-container {
    width: 100%;
    max-width: 960px; /* Adjust max-width as needed */
    margin: 30px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    box-sizing: border-box; /* Crucial for width:100% and max-width:100% on desktop */
}

.page-cockfighting__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.page-cockfighting__video {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer; /* Indicate clickable video */
}

.page-cockfighting__cta-buttons--center {
    justify-content: center;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    color: var(--page-cockfighting-text-main);
    font-weight: bold;
    cursor: pointer;
    background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
    background-color: var(--page-cockfighting-glow);
    color: var(--page-cockfighting-bg);
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar on open */
}

.page-cockfighting__faq-answer {
    padding: 20px;
    background-color: var(--page-cockfighting-card-bg);
    color: var(--page-cockfighting-text-secondary);
    font-size: 1em;
    border-top: 1px solid var(--page-cockfighting-divider);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        height: auto;
        min-height: 500px;
    }
    .page-cockfighting__hero-image-wrapper {
        height: 500px;
    }
    .page-cockfighting__hero-content {
        padding: 20px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-image-wrapper {
        height: 350px;
    }
    .page-cockfighting__hero-content {
        position: static; /* Remove absolute positioning on mobile */
        transform: none;
        width: 100%;
        max-width: 100%;
        background: var(--page-cockfighting-card-bg); /* Use card background for content on mobile */
        padding: 20px 15px;
        border-radius: 0;
        margin-top: -10px; /* Pull content up slightly over image */
        box-shadow: none;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__content-area {
        padding: 20px 15px;
    }

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

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

    .page-cockfighting__features-grid,
    .page-cockfighting__promo-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* 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-section,
    .page-cockfighting__intro-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__contact-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Video section mobile adaptation */
    .page-cockfighting__live-video-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative; /* Ensure padding-bottom works */
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
    }

    .page-cockfighting__video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

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

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