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

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

.page-cockfighting-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-cockfighting-rules__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-cockfighting-rules__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Minimal top padding, body handles header offset */
    background-color: var(--background-color-page);
    overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-cockfighting-rules__hero-content {
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly for visual flow */
    position: relative;
    z-index: 1;
    background-color: var(--background-color-page);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.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;
    box-sizing: border-box;
    max-width: 300px;
    width: 100%;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting-rules__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cockfighting-rules__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-cockfighting-rules__btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.page-cockfighting-rules__btn-secondary:hover {
    background-color: var(--deep-green);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-cockfighting-rules__intro-section,
.page-cockfighting-rules__types-section,
.page-cockfighting-rules__basic-rules-section,
.page-cockfighting-rules__betting-guide-section,
.page-cockfighting-rules__tips-section,
.page-cockfighting-rules__faq-section,
.page-cockfighting-rules__cta-bottom-section {
    padding: 80px 0;
}

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

.page-cockfighting-rules__light-section {
    background-color: var(--background-color-page);
    color: var(--text-main);
}

.page-cockfighting-rules__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting-rules__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-main);
}

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

.page-cockfighting-rules__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-cockfighting-rules__rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting-rules__rule-item {
    background-color: var(--deep-green);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-main);
}

.page-cockfighting-rules__rule-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-cockfighting-rules__betting-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-cockfighting-rules__option-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

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

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

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

.page-cockfighting-rules__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 100%;
    width: 100%; /* Ensure width is 100% on desktop too */
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting-rules__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-cockfighting-rules__video-cta {
    margin-top: 40px;
}

.page-cockfighting-rules__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting-rules__tips-list li {
    background-color: var(--deep-green);
    border-left: 5px solid var(--primary-color);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.page-cockfighting-rules__tips-list li strong {
    color: var(--gold-color);
}

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

.page-cockfighting-rules__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-cockfighting-rules__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--gold-color);
    background-color: var(--deep-green);
}

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

.page-cockfighting-rules__faq-qtext {
    flex-grow: 1;
}

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

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
    content: '−';
}

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

.page-cockfighting-rules__cta-bottom-section {
    background-color: var(--deep-green);
    text-align: center;
    padding: 60px 0;
}

.page-cockfighting-rules__cta-content {
    max-width: 800px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting-rules__section-title {
        font-size: 2em;
    }
    .page-cockfighting-rules__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
}

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

    .page-cockfighting-rules__hero-content {
        margin-top: -50px;
        padding: 30px 15px;
    }

    .page-cockfighting-rules__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

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

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

    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-cockfighting-rules__intro-section,
    .page-cockfighting-rules__types-section,
    .page-cockfighting-rules__basic-rules-section,
    .page-cockfighting-rules__betting-guide-section,
    .page-cockfighting-rules__tips-section,
    .page-cockfighting-rules__faq-section,
    .page-cockfighting-rules__cta-bottom-section {
        padding: 40px 0;
    }

    .page-cockfighting-rules__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-cockfighting-rules__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting-rules__card-grid,
    .page-cockfighting-rules__rules-list,
    .page-cockfighting-rules__betting-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting-rules__card-image {
        height: 180px;
    }

    .page-cockfighting-rules__video-wrapper {
        padding-bottom: 56.25% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting-rules__video {
        width: 100% !important;
        height: 100% !important;
    }

    .page-cockfighting-rules__tips-list li {
        padding: 15px;
    }

    .page-cockfighting-rules__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

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

@media (max-width: 480px) {
    .page-cockfighting-rules__hero-content {
        margin-top: -30px;
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting-rules__main-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        font-size: 0.9em;
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.3em;
    }
    .page-cockfighting-rules__option-title {
        font-size: 1.2em;
    }
}