:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-cockfighting-rules {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

.page-cockfighting-rules__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--bg-color);
    overflow: hidden; /* Ensure no overflow from video */
}

.page-cockfighting-rules__hero-video-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    order: 1; /* Image/Video above text */
    box-sizing: border-box;
}

.page-cockfighting-rules__hero-video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

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

.page-cockfighting-rules__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-main);
    order: 2; /* Text below image/video */
    box-sizing: border-box;
}

.page-cockfighting-rules__hero-title {
    font-weight: bold;
    color: var(--gold-color);
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    line-height: 1.2;
    /* Using clamp for responsive font size, avoiding fixed large values */
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

.page-cockfighting-rules__section {
    padding: 60px 20px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-cockfighting-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting-rules__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-cockfighting-rules__text-block {
    font-size: 1.05em;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting-rules__highlight {
    color: var(--gold-color);
    font-weight: bold;
}

.page-cockfighting-rules__image-wrapper {
    text-align: center;
    margin: 30px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.page-cockfighting-rules__list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-cockfighting-rules__list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-cockfighting-rules__list-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting-rules__list-item p {
    color: var(--text-secondary);
    font-size: 1em;
    margin-bottom: 10px;
}

.page-cockfighting-rules__list-item p:last-child {
    margin-bottom: 0;
}

.page-cockfighting-rules__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting-rules__link:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

.page-cockfighting-rules__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
}

.page-cockfighting-rules__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
}

.page-cockfighting-rules__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    text-align: center;
    max-width: 300px;
}

.page-cockfighting-rules__faq-section {
    background-color: var(--deep-green-color);
    padding: 60px 20px;
}

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

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

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--card-bg);
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting-rules__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.page-cockfighting-rules__faq-item[open] > .page-cockfighting-rules__faq-question {
    border-bottom-color: var(--border-color);
}

.page-cockfighting-rules__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color);
}

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

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

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

.page-cockfighting-rules__faq-answer p:last-child {
    margin-bottom: 0;
}

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

.page-cockfighting-rules__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-image: linear-gradient(135deg, var(--primary-color), var(--deep-green-color));
    color: var(--text-main);
}

.page-cockfighting-rules__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting-rules__cta-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting-rules__cta-description {
    font-size: 1.15em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules__hero-content {
        padding: 30px 15px;
    }
    .page-cockfighting-rules__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting-rules__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
    .page-cockfighting-rules__list-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-rules {
        font-size: 15px;
    }
    .page-cockfighting-rules__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-cockfighting-rules__hero-content {
        padding: 25px 15px;
    }
    .page-cockfighting-rules__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting-rules__hero-description {
        font-size: 1em;
    }
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__faq-section,
    .page-cockfighting-rules__cta-section {
        padding: 40px 15px;
    }
    .page-cockfighting-rules__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting-rules__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-cockfighting-rules__text-block,
    .page-cockfighting-rules__list-item p,
    .page-cockfighting-rules__faq-answer p {
        font-size: 0.95em;
    }
    .page-cockfighting-rules__list-item {
        padding: 20px;
    }
    .page-cockfighting-rules__list-title {
        font-size: 1.2em;
    }
    .page-cockfighting-rules__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-cockfighting-rules__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-cockfighting-rules__btn-primary {
        padding: 12px 25px;
        font-size: 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__btn-center {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    /* Mobile image responsiveness */
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting-rules__image-wrapper,
    .page-cockfighting-rules__container,
    .page-cockfighting-rules__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting-rules__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mobile video responsiveness for the hero section */
    .page-cockfighting-rules__hero-video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain 16:9 aspect ratio */
        height: 0 !important;
    }

    /* Ensure containers also adapt */
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules__hero-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    .page-cockfighting-rules__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-cockfighting-rules__cta-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-cockfighting-rules__btn-primary {
        font-size: 0.95em;
        padding: 10px 20px;
    }
    .page-cockfighting-rules__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-cockfighting-rules__faq-answer {
        padding: 0 15px 12px 15px;
    }
}