.page--g-cockfighting-rules {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #f8f9fa;
}

.page--g-cockfighting-rules__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: #2563eb;
    color: #ffffff;
    overflow: hidden;
}

.page--g-cockfighting-rules__hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page--g-cockfighting-rules__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page--g-cockfighting-rules__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page--g-cockfighting-rules__cta-button {
    display: inline-block;
    background-color: #ffc107; /* Brighter accent for CTA */
    color: #111111;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page--g-cockfighting-rules__cta-button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.page--g-cockfighting-rules__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.page--g-cockfighting-rules__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2563eb;
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.page--g-cockfighting-rules__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #444444;
}

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

.page--g-cockfighting-rules__card {
    background-color: #f0f4f8;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 450px; /* Ensure cards have similar height */
}

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

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

.page--g-cockfighting-rules__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 15px;
}

.page--g-cockfighting-rules__card-description {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page--g-cockfighting-rules__card-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page--g-cockfighting-rules__card-link:hover {
    color: #1a4a9c;
    border-color: #1a4a9c;
}

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

.page--g-cockfighting-rules__list-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.page--g-cockfighting-rules__list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page--g-cockfighting-rules__list-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: 0;
    margin-bottom: 10px;
}

.page--g-cockfighting-rules__list-description {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 0;
}

.page--g-cockfighting-rules__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page--g-cockfighting-rules__button-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page--g-cockfighting-rules__button-container--bottom {
    margin-top: 60px;
}

.page--g-cockfighting-rules__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

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

.page--g-cockfighting-rules__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.page--g-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f0f4f8;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

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

.page--g-cockfighting-rules__faq-qtext {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2563eb;
    margin: 0;
    pointer-events: none; /* Prevent text from blocking click event */
}

.page--g-cockfighting-rules__faq-toggle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2563eb;
    transition: transform 0.3s ease;
    pointer-events: none; /* Prevent toggle icon from blocking click event */
}

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

.page--g-cockfighting-rules__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
}

.page--g-cockfighting-rules__faq-item.active .page--g-cockfighting-rules__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
}

.page--g-cockfighting-rules__faq-answer p {
    margin-bottom: 0;
    font-size: 1rem;
    color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page--g-cockfighting-rules__hero-content {
        max-width: 700px;
    }

    .page--g-cockfighting-rules__main-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }

    .page--g-cockfighting-rules__hero-description {
        font-size: 1.05rem;
    }

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

    .page--g-cockfighting-rules__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page--g-cockfighting-rules__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page--g-cockfighting-rules__hero-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        border-radius: 0;
    }

    .page--g-cockfighting-rules__hero-content {
        padding: 0 15px;
    }

    .page--g-cockfighting-rules__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page--g-cockfighting-rules__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

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

    .page--g-cockfighting-rules__content-area {
        padding: 30px 15px;
        margin-top: -20px;
        box-shadow: none;
        border-radius: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page--g-cockfighting-rules__section-title {
        font-size: 1.8rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page--g-cockfighting-rules__text-block {
        font-size: 0.95rem;
    }

    .page--g-cockfighting-rules__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .page--g-cockfighting-rules__card {
        padding: 20px;
        min-height: auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page--g-cockfighting-rules__card-image {
        height: 200px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .page--g-cockfighting-rules__card-title {
        font-size: 1.3rem;
    }

    .page--g-cockfighting-rules__card-description {
        font-size: 0.9rem;
    }

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

    .page--g-cockfighting-rules__list-item {
        padding: 15px;
        margin-bottom: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page--g-cockfighting-rules__list-title {
        font-size: 1.1rem;
    }

    .page--g-cockfighting-rules__list-description {
        font-size: 0.9rem;
    }

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

    .page--g-cockfighting-rules__button-container {
        margin-top: 30px;
        margin-bottom: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page--g-cockfighting-rules__faq-container {
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page--g-cockfighting-rules__faq-item {
        margin-bottom: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page--g-cockfighting-rules__faq-qtext {
        font-size: 1rem;
    }

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

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

    .page--g-cockfighting-rules__faq-answer p {
        font-size: 0.9rem;
    }
}