/* style/cockfighting-rules.css */

/* Base styles for the page content */
.page-cockfighting-rules {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from body's var(--dark-bg) */
}

/* Hero Section */
.page-cockfighting-rules__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-cockfighting-rules__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting-rules__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

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

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

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

.page-cockfighting-rules__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting-rules__btn-primary {
    background-color: #DC143C; /* Red brand color */
    color: #ffffff;
    border: 2px solid #DC143C;
}

.page-cockfighting-rules__btn-primary:hover {
    background-color: #FFD700; /* Gold brand color on hover */
    border-color: #FFD700;
    color: #333333; /* Dark text for light background */
}

.page-cockfighting-rules__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold brand color */
    border: 2px solid #FFD700;
}

.page-cockfighting-rules__btn-secondary:hover {
    background-color: #FFD700;
    color: #333333; /* Dark text for light background */
}

/* Content Area */
.page-cockfighting-rules__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #1a1a1a; /* Dark background for content sections */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: -80px; /* Overlap with hero for visual flow */
    position: relative;
    z-index: 4;
}

.page-cockfighting-rules__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold brand color */
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #DC143C; /* Red accent */
    padding-bottom: 15px;
    margin-top: 50px;
}

.page-cockfighting-rules__content-area p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-cockfighting-rules__content-image {
    width: 100%;
    height: auto;
    max-width: 1000px;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

/* Grid Container for Cards */
.page-cockfighting-rules__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting-rules__card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-cockfighting-rules__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting-rules__card p {
    color: #e0e0e0;
}

/* Lists */
.page-cockfighting-rules__list {
    list-style: none; /* Remove default bullet */
    padding-left: 0;
    margin-bottom: 20px;
}

.page-cockfighting-rules__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-size: 1.1em;
}

.page-cockfighting-rules__list li::before {
    content: '★'; /* Custom bullet point */
    color: #DC143C; /* Red accent */
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1.6;
}

.page-cockfighting-rules__subsection-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid #DC143C;
    padding-left: 15px;
}

/* Video Section */
.page-cockfighting-rules__video-wrapper {
    margin-top: 60px;
    text-align: center;
}

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

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

/* CTA Banner */
.page-cockfighting-rules__cta-banner {
    background: linear-gradient(45deg, #DC143C, #FFD700);
    padding: 50px 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__banner-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__cta-banner p {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

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

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #3a3a3a;
    border-bottom: 1px solid #444;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting-rules__faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: #FFD700;
}

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

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

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

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

.page-cockfighting-rules__faq-answer p {
    margin: 0;
    font-size: 1.1em;
    color: #e0e0e0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules__hero-title {
        font-size: 3em;
    }
    .page-cockfighting-rules__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting-rules__section-title {
        font-size: 2em;
    }
    .page-cockfighting-rules__banner-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific adjustments */
    .page-cockfighting-rules {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header offset */
    .page-cockfighting-rules__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-cockfighting-rules__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting-rules__hero-description {
        font-size: 1em;
    }
    .page-cockfighting-rules__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting-rules__content-area {
        padding: 30px 15px;
        margin-top: -60px;
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.8em;
        margin-top: 30px;
    }
    .page-cockfighting-rules__subsection-title {
        font-size: 1.5em;
    }
    .page-cockfighting-rules__content-area p,
    .page-cockfighting-rules__list li,
    .page-cockfighting-rules__card p,
    .page-cockfighting-rules__faq-answer p {
        font-size: 1em;
    }

    /* Image responsive */
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Video responsive */
    .page-cockfighting-rules video,
    .page-cockfighting-rules__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting-rules__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting-rules__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }


    /* Containers for mobile padding */
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__container,
    .page-cockfighting-rules__cta-banner,
    .page-cockfighting-rules__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Already applied by content-area, or not needed for full width sections */
        /* padding-right: 15px; */
    }
    .page-cockfighting-rules__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting-rules__banner-title {
        font-size: 1.8em;
    }
    .page-cockfighting-rules__cta-banner p {
        font-size: 1em;
    }

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

@media (max-width: 480px) {
    .page-cockfighting-rules__hero-title {
        font-size: 2em;
    }
    .page-cockfighting-rules__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        padding: 10px 15px;
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting-rules__banner-title {
        font-size: 1.5em;
    }
    .page-cockfighting-rules__faq-question h3 {
        font-size: 1em;
    }
}