/* style/cockfighting.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #017439;
    --button-register: #C30808;
    --button-login: #C30808;
    --font-login-register: #FFFF00;
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Default light background */
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-cockfighting__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.page-cockfighting__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting__text-block a:hover {
    text-decoration: underline;
}

/* Color Contrast Adjustments */
.page-cockfighting__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__text-block {
    color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__text-block a {
    color: var(--font-login-register); /* Yellow for contrast on dark green */
}

.page-cockfighting__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: var(--primary-color);
}

.page-cockfighting__light-bg .page-cockfighting__text-block {
    color: var(--text-dark);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary,
.page-cockfighting__cta-button {
    background-color: var(--button-register);
    color: var(--font-login-register);
    border-color: var(--button-register);
}

.page-cockfighting__btn-primary:hover,
.page-cockfighting__cta-button:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* HERO Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    overflow: hidden;
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
    border-radius: 12px;
    margin-top: -80px; /* Overlap image slightly */
    color: var(--text-light);
}

.page-cockfighting__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--font-login-register);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-cockfighting__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Grid Layouts */
.page-cockfighting__grid,
.page-cockfighting__promo-grid,
.page-cockfighting__news-grid,
.page-cockfighting__bet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

/* Cards */
.page-cockfighting__card,
.page-cockfighting__promo-card,
.page-cockfighting__news-card,
.page-cockfighting__bet-card {
    background: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-cockfighting__dark-bg .page-cockfighting__card,
.page-cockfighting__dark-bg .page-cockfighting__promo-card,
.page-cockfighting__dark-bg .page-cockfighting__news-card,
.page-cockfighting__dark-bg .page-cockfighting__bet-card {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__dark-bg .page-cockfighting__card-title,
.page-cockfighting__dark-bg .page-cockfighting__promo-title,
.page-cockfighting__dark-bg .page-cockfighting__news-title,
.page-cockfighting__dark-bg .page-cockfighting__bet-card-title {
    color: var(--font-login-register);
}

.page-cockfighting__card:hover,
.page-cockfighting__promo-card:hover,
.page-cockfighting__news-card:hover,
.page-cockfighting__bet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__card-image,
.page-cockfighting__promo-image,
.page-cockfighting__news-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__card-title,
.page-cockfighting__promo-title,
.page-cockfighting__news-title,
.page-cockfighting__bet-card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-cockfighting__news-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-cockfighting__news-title a:hover {
    text-decoration: underline;
}

.page-cockfighting__dark-bg .page-cockfighting__news-title a {
    color: var(--font-login-register);
}

.page-cockfighting__card-text,
.page-cockfighting__promo-text,
.page-cockfighting__news-excerpt,
.page-cockfighting__bet-card-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push to bottom */
}

.page-cockfighting__read-more:hover {
    text-decoration: underline;
}

/* Guide Steps */
.page-cockfighting__steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    flex: 1 1 calc(25% - 40px);
    max-width: calc(25% - 40px);
    text-align: center;
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    box-sizing: border-box;
}

.page-cockfighting__step-image {
    width: 100%;
    height: 180px;
    object-fit: contain; /* Use contain for step images */
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-cockfighting__step-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__step-text {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

/* Link List */
.page-cockfighting__link-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 600px;
}

.page-cockfighting__link-item {
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: left;
    transition: background-color 0.3s ease;
}

.page-cockfighting__link-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.page-cockfighting__link-item a {
    color: var(--font-login-register);
    text-decoration: none;
    font-size: 18px;
    display: block;
    font-weight: bold;
}

.page-cockfighting__link-item a:hover {
    text-decoration: underline;
}

/* Contact Info */
.page-cockfighting__contact-info {
    margin-top: 40px;
    font-size: 18px;
    color: var(--text-light);
}

.page-cockfighting__contact-info p {
    margin-bottom: 10px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color);
}

.page-cockfighting__faq-question:hover {
    background: var(--bg-light);
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: var(--button-register);
    transform: rotate(45deg); /* Plus to X effect */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: var(--bg-light);
    border-radius: 0 0 8px 8px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-color: var(--primary-color);
}

.page-cockfighting__faq-answer p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-cockfighting__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting__faq-answer a:hover {
    text-decoration: underline;
}

.page-cockfighting__faq-answer .page-cockfighting__btn-primary {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 10px 20px;
    font-size: 16px;
}

/* News Section */
.page-cockfighting__news-card {
    padding: 20px;
}

.page-cockfighting__news-card .page-cockfighting__news-image {
    height: 200px;
    margin-bottom: 15px;
}

.page-cockfighting__news-card .page-cockfighting__news-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.page-cockfighting__news-card .page-cockfighting__news-excerpt {
    font-size: 15px;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 40px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__text-block {
        font-size: 16px;
    }
    .page-cockfighting__step-item {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-image img {
        border-radius: 8px;
    }
    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 15px;
        border-radius: 8px;
    }
    .page-cockfighting__hero-title {
        font-size: 32px;
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
    }
    .page-cockfighting__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 15px;
        text-align: left;
    }
    .page-cockfighting__grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__news-grid,
    .page-cockfighting__bet-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-cockfighting__card,
    .page-cockfighting__promo-card,
    .page-cockfighting__news-card,
    .page-cockfighting__bet-card {
        padding: 20px;
        border-radius: 8px;
    }
    .page-cockfighting__card-image,
    .page-cockfighting__promo-image,
    .page-cockfighting__news-image {
        height: 180px;
        border-radius: 6px;
        margin-bottom: 15px;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__news-title,
    .page-cockfighting__bet-card-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .page-cockfighting__card-text,
    .page-cockfighting__promo-text,
    .page-cockfighting__news-excerpt,
    .page-cockfighting__bet-card-text {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .page-cockfighting__step-item {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 20px;
    }
    .page-cockfighting__step-image {
        height: 150px;
    }
    .page-cockfighting__step-title {
        font-size: 20px;
    }
    .page-cockfighting__step-text {
        font-size: 15px;
    }
    .page-cockfighting__link-item {
        padding: 12px 15px;
    }
    .page-cockfighting__link-item a {
        font-size: 16px;
    }
    .page-cockfighting__contact-info {
        font-size: 16px;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px !important;
    }
    .page-cockfighting__faq-answer p {
        font-size: 15px;
    }

    /* Ensure all images are responsive in mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__card,
    .page-cockfighting__promo-card,
    .page-cockfighting__news-card,
    .page-cockfighting__bet-card,
    .page-cockfighting__step-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-cockfighting__hero-actions {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 28px;
    }
    .page-cockfighting__section-title {
        font-size: 24px;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__news-title,
    .page-cockfighting__bet-card-title {
        font-size: 18px;
    }
    .page-cockfighting__card-image,
    .page-cockfighting__promo-image,
    .page-cockfighting__news-image {
        height: 150px;
    }
    .page-cockfighting__step-image {
        height: 120px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 15px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
}