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

.page-cockfighting-betting-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-betting-rules__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

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

.page-cockfighting-betting-rules__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

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

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

.page-cockfighting-betting-rules__btn-primary,
.page-cockfighting-betting-rules__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting-betting-rules__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-cockfighting-betting-rules__btn-primary:hover {
    background-color: #1e87b6;
    border-color: #1e87b6;
}

.page-cockfighting-betting-rules__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-cockfighting-betting-rules__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-cockfighting-betting-rules__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-cockfighting-betting-rules__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

.page-cockfighting-betting-rules__section {
    padding: 60px 20px;
}

.page-cockfighting-betting-rules__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter than black for better contrast with brand blue */
    color: #ffffff;
}

.page-cockfighting-betting-rules__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-cockfighting-betting-rules__heading {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting-betting-rules__dark-bg .page-cockfighting-betting-rules__heading {
    color: #ffffff;
}

.page-cockfighting-betting-rules__sub-heading {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting-betting-rules__light-bg .page-cockfighting-betting-rules__sub-heading {
    color: #26A9E0;
}

.page-cockfighting-betting-rules__dark-bg .page-cockfighting-betting-rules__sub-heading {
    color: #ffffff;
}

.page-cockfighting-betting-rules__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-cockfighting-betting-rules__center-text {
    text-align: center;
}

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

.page-cockfighting-betting-rules__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 250px;
}

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

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

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

.page-cockfighting-betting-rules__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
    font-weight: bold;
}

.page-cockfighting-betting-rules__dark-bg .page-cockfighting-betting-rules__card-title {
    color: #ffffff;
}

.page-cockfighting-betting-rules__card-text {
    font-size: 1em;
    line-height: 1.7;
}

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

.page-cockfighting-betting-rules__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-cockfighting-betting-rules__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #26A9E0;
    font-weight: bold;
}

.page-cockfighting-betting-rules__image-text-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-cockfighting-betting-rules__image-wrapper {
    flex: 1;
    min-width: 300px;
}

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

.page-cockfighting-betting-rules__text-content {
    flex: 2;
    min-width: 300px;
}

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

.page-cockfighting-betting-rules__step-card {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-cockfighting-betting-rules__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-cockfighting-betting-rules__step-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-cockfighting-betting-rules__step-text {
    font-size: 1em;
    line-height: 1.7;
    flex-grow: 1;
}

.page-cockfighting-betting-rules__image-center {
    text-align: center;
    margin-top: 40px;
}

.page-cockfighting-betting-rules__list-with-icons {
    list-style: none;
    padding: 0;
}

.page-cockfighting-betting-rules__list-item-icon {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.page-cockfighting-betting-rules__icon {
    font-size: 2.5em;
    line-height: 1;
    color: #26A9E0;
    flex-shrink: 0;
}

.page-cockfighting-betting-rules__safety-grid {
    grid-template-columns: 2fr 1fr; /* Adjust for image on right */
    align-items: center;
}

.page-cockfighting-betting-rules__safety-grid .page-cockfighting-betting-rules__image-wrapper {
    order: 2;
}

.page-cockfighting-betting-rules__safety-grid .page-cockfighting-betting-rules__text-block {
    order: 1;
}

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

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

.page-cockfighting-betting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-cockfighting-betting-rules__faq-question:hover {
    background-color: #f5f5f5;
}

.page-cockfighting-betting-rules__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

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

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

.page-cockfighting-betting-rules__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting-betting-rules__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting-betting-rules__heading {
        font-size: 2em;
    }
    .page-cockfighting-betting-rules__sub-heading {
        font-size: 1.5em;
    }
    .page-cockfighting-betting-rules__grid,
    .page-cockfighting-betting-rules__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-cockfighting-betting-rules__safety-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting-betting-rules__safety-grid .page-cockfighting-betting-rules__image-wrapper {
        order: 1;
    }
    .page-cockfighting-betting-rules__safety-grid .page-cockfighting-betting-rules__text-block {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-betting-rules__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-cockfighting-betting-rules__hero-title {
        font-size: 2em;
    }
    .page-cockfighting-betting-rules__hero-description {
        font-size: 1em;
    }
    .page-cockfighting-betting-rules__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting-betting-rules__btn-primary,
    .page-cockfighting-betting-rules__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting-betting-rules__section {
        padding: 40px 15px;
    }
    .page-cockfighting-betting-rules__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting-betting-rules__sub-heading {
        font-size: 1.3em;
    }
    .page-cockfighting-betting-rules__paragraph,
    .page-cockfighting-betting-rules__list-item,
    .page-cockfighting-betting-rules__card-text,
    .page-cockfighting-betting-rules__step-text,
    .page-cockfighting-betting-rules__faq-answer p {
        font-size: 0.95em;
    }
    .page-cockfighting-betting-rules__grid,
    .page-cockfighting-betting-rules__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting-betting-rules__image-text-layout {
        flex-direction: column;
    }
    .page-cockfighting-betting-rules__image-wrapper,
    .page-cockfighting-betting-rules__text-content {
        min-width: unset;
        width: 100%;
    }
    .page-cockfighting-betting-rules__list-item-icon {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-cockfighting-betting-rules__list-item-icon .page-cockfighting-betting-rules__icon {
        margin-bottom: 10px;
    }

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

    .page-cockfighting-betting-rules__section,
    .page-cockfighting-betting-rules__card,
    .page-cockfighting-betting-rules__container,
    .page-cockfighting-betting-rules__hero-section,
    .page-cockfighting-betting-rules__image-wrapper,
    .page-cockfighting-betting-rules__text-block,
    .page-cockfighting-betting-rules__step-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-cockfighting-betting-rules__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-cockfighting-betting-rules__faq-answer {
        padding: 15px 20px;
    }
}