.page-cockfighting-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

.page-cockfighting-rules__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    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 */
    box-sizing: border-box;
}

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

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

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

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

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

.page-cockfighting-rules__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.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;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    border: 2px solid transparent;
}

.page-cockfighting-rules__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border-color: #C30808;
}

.page-cockfighting-rules__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-3px);
}

.page-cockfighting-rules__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border-color: #FFFF00;
}

.page-cockfighting-rules__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
    transform: translateY(-3px);
}

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

.page-cockfighting-rules__dark-bg {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background on dark body */
    color: #ffffff;
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-cockfighting-rules__light-bg {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-cockfighting-rules__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: #017439; /* Brand color for titles */
    font-weight: bold;
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__section-title {
    color: #FFFF00; /* Yellow for titles on dark background */
}

.page-cockfighting-rules__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__sub-title {
    color: #FFFF00;
}

.page-cockfighting-rules__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.8;
}

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

.page-cockfighting-rules__card {
    background-color: rgba(255, 255, 255, 0.1); /* White transparent background on dark body */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-cockfighting-rules__light-bg .page-cockfighting-rules__card {
    background-color: #f8f8f8;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-cockfighting-rules__card:hover {
    transform: translateY(-5px);
}

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

.page-cockfighting-rules__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for card titles on dark background */
    margin-bottom: 10px;
}

.page-cockfighting-rules__light-bg .page-cockfighting-rules__card-title {
    color: #017439; /* Brand color for card titles on light background */
}

.page-cockfighting-rules__card-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-cockfighting-rules__light-bg .page-cockfighting-rules__card-text {
    color: #555555;
}

.page-cockfighting-rules__list,
.page-cockfighting-rules__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-cockfighting-rules__light-bg .page-cockfighting-rules__list,
.page-cockfighting-rules__light-bg .page-cockfighting-rules__ordered-list {
    color: #333333;
}

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

.page-cockfighting-rules__list li,
.page-cockfighting-rules__ordered-list li {
    margin-bottom: 8px;
}

.page-cockfighting-rules__faq-section {
    padding-top: 40px;
}

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

.page-cockfighting-rules__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly brighter transparent background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for FAQ questions */
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-cockfighting-rules__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
    font-size: 1.05em;
    line-height: 1.7;
}

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

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

@media (max-width: 768px) {
    .page-cockfighting-rules {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting-rules__hero-section {
        height: auto;
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-cockfighting-rules__hero-title {
        font-size: 2em;
    }
    .page-cockfighting-rules__hero-description {
        font-size: 1em;
    }
    .page-cockfighting-rules__hero-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;
    }
    .page-cockfighting-rules__content-area {
        padding: 30px 15px;
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-cockfighting-rules__sub-title {
        font-size: 1.3em;
    }
    .page-cockfighting-rules__grid-container {
        grid-template-columns: 1fr;
    }
    .page-cockfighting-rules__card {
        padding: 20px;
    }
    .page-cockfighting-rules__card-image {
        height: 200px;
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.3em;
    }
    .page-cockfighting-rules__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-cockfighting-rules__faq-answer {
        padding: 10px 15px;
    }

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

    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Video responsiveness (if any video is added) */
    .page-cockfighting-rules video,
    .page-cockfighting-rules__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-cockfighting-rules__video-section,
    .page-cockfighting-rules__video-container,
    .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;
    }
}