/* style/cockfighting-rules.css */

/* Base styles for the page content */
.page-cockfighting-rules {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or shared, ensuring content background is handled locally if needed */
}

/* Fixed header spacing */
.page-cockfighting-rules__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Blend of brand colors */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* For image positioning */
}

.page-cockfighting-rules__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Slightly transparent to allow background gradient to show */
}

.page-cockfighting-rules__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.page-cockfighting-rules__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* General content area styling */
.page-cockfighting-rules__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #1a1a1a; /* Dark background for content sections */
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for section titles */
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-cockfighting-rules__paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #e0e0e0; /* Light grey for paragraphs */
}

.page-cockfighting-rules__paragraph strong {
    color: #FFD700; /* Highlight brand name */
}

.page-cockfighting-rules__paragraph--centered {
    text-align: center;
}

.page-cockfighting-rules__list,
.page-cockfighting-rules__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.page-cockfighting-rules__ordered-list {
    list-style-type: decimal;
}

.page-cockfighting-rules__list-item {
    margin-bottom: 10px;
    color: #e0e0e0;
}

.page-cockfighting-rules__sub-list {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 5px;
}

.page-cockfighting-rules__link {
    color: #FFD700; /* Brand gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting-rules__link:hover {
    color: #ffd94f; /* Lighter gold on hover */
    text-decoration: underline;
}

/* CTA Button styles */
.page-cockfighting-rules__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Dark red text for contrast */
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-cockfighting-rules__cta-button:hover {
    background-color: #ffd94f; /* Lighter gold on hover */
    color: #6a0000; /* Slightly darker red on hover */
    transform: translateY(-3px);
}

.page-cockfighting-rules__cta-button--centered {
    display: block;
    margin: 30px auto;
    width: fit-content;
    max-width: 100%; /* Ensure responsiveness */
}

/* Step cards for betting guide */
.page-cockfighting-rules__steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-cockfighting-rules__step-card {
    background-color: #2a2a2a; /* Slightly lighter dark background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-cockfighting-rules__step-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-cockfighting-rules__step-description {
    color: #c0c0c0;
    font-size: 1em;
}

/* Bet type grid */
.page-cockfighting-rules__bet-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-cockfighting-rules__bet-type-card {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.page-cockfighting-rules__bet-type-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-cockfighting-rules__bet-type-description {
    color: #c0c0c0;
    font-size: 0.95em;
}

/* Tips section */
.page-cockfighting-rules__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting-rules__tip-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-cockfighting-rules__tip-card h3 {
    font-size: 1.3em;
    color: #FFD700;
    margin: 20px 15px 10px;
}

.page-cockfighting-rules__tip-description {
    color: #c0c0c0;
    padding: 0 15px 20px;
    font-size: 0.95em;
}

/* Video Section */
.page-cockfighting-rules__video-section {
    background-color: #0a0a0a; /* Ensure dark background for video section */
    padding: 60px 20px;
    text-align: center;
}

.page-cockfighting-rules__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Max width for video */
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__video-link-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Make the whole area clickable */
    cursor: pointer;
}

.page-cockfighting-rules__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.page-cockfighting-rules__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 2em;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.page-cockfighting-rules__video-link-container:hover .page-cockfighting-rules__video-overlay {
    opacity: 0.8;
}

.page-cockfighting-rules__play-icon {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-cockfighting-rules__overlay-text {
    font-size: 1.2em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting-rules__faq-container {
    margin-top: 30px;
}

.page-cockfighting-rules__faq-item {
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #333333; /* Darker background for question */
    transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
    background-color: #444444;
}

.page-cockfighting-rules__faq-title {
    font-size: 1.25em;
    color: #FFD700;
    margin: 0;
}

.page-cockfighting-rules__faq-toggle {
    font-size: 1.8em;
    color: #FFD700;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting-rules__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #2a2a2a;
    color: #c0c0c0;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px;
}

.page-cockfighting-rules__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
    color: #c0c0c0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules__hero-title {
        font-size: 2.5em;
    }

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

@media (max-width: 768px) {
    .page-cockfighting-rules__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting-rules__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-cockfighting-rules__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cockfighting-rules__cta-button {
        padding: 12px 25px;
        font-size: 1.1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting-rules__content-area,
    .page-cockfighting-rules__video-section {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting-rules__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-cockfighting-rules__paragraph,
    .page-cockfighting-rules__list-item,
    .page-cockfighting-rules__step-description,
    .page-cockfighting-rules__bet-type-description,
    .page-cockfighting-rules__tip-description,
    .page-cockfighting-rules__faq-answer p {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important; /* Ensure padding/border don't cause overflow */
    }

    /* Video responsiveness */
    .page-cockfighting-rules__video-wrapper {
        padding-bottom: 56.25%; /* Maintain aspect ratio */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }

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

    /* Ensure containers for images/videos/buttons also respect mobile width */
    .page-cockfighting-rules__introduction-section,
    .page-cockfighting-rules__types-section,
    .page-cockfighting-rules__rules-section,
    .page-cockfighting-rules__betting-guide-section,
    .page-cockfighting-rules__bet-types-section,
    .page-cockfighting-rules__tips-section,
    .page-cockfighting-rules__responsibility-section,
    .page-cockfighting-rules__faq-section,
    .page-cockfighting-rules__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-cockfighting-rules__steps-container,
    .page-cockfighting-rules__bet-type-grid,
    .page-cockfighting-rules__tips-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }

    .page-cockfighting-rules__faq-question {
        padding: 15px 20px;
    }

    .page-cockfighting-rules__faq-title {
        font-size: 1.1em;
    }

    .page-cockfighting-rules__faq-answer {
        padding: 0 20px;
    }

    .page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-cockfighting-rules__play-icon {
        font-size: 2.5em;
    }

    .page-cockfighting-rules__overlay-text {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules__hero-title {
        font-size: 1.8em;
    }
}