/* style/cockfighting.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
    --background-light-grey: #f9f9f9;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Body background is white, so default text is dark */
    background-color: var(--secondary-color);
}

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

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

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

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

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

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

/* 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);
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a8d5f 100%); /* Green gradient */
    color: var(--text-color-light);
}

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

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-cockfighting__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color-light);
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--register-login-button-color);
    color: var(--register-login-font-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-cockfighting__cta-button:hover {
    background: #e02a2a; /* Slightly darker red for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-cockfighting__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    background: #005a2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px;
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
    background: #e6e6e6;
    color: #005a2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__btn-register:hover {
    background: #e02a2a;
}

/* Grid Layout for Cards */
.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-cockfighting__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-cockfighting__card-text {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Lists */
.page-cockfighting__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 20px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__list-item {
    margin-bottom: 10px;
    font-size: 18px;
}

.page-cockfighting__sub-list {
    list-style-type: circle;
    padding-left: 25px;
    margin-top: 5px;
}

.page-cockfighting__sub-list-item {
    margin-bottom: 5px;
    font-size: 16px;
}

/* Advantages Section */
.page-cockfighting__advantages {
    background: var(--primary-color);
    color: var(--text-color-light);
}

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

.page-cockfighting__grid-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__advantage-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__advantage-text {
    font-size: 16px;
    line-height: 1.7;
}

.page-cockfighting__advantage-item .page-cockfighting__text-link {
    color: var(--register-login-font-color);
}

.page-cockfighting__advantage-item .page-cockfighting__text-link:hover {
    color: var(--secondary-color);
}

/* Image with Text */
.page-cockfighting__image-with-text {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__responsive-image {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't get too small */
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__numbered-list {
    flex: 1;
    list-style-type: decimal;
    padding-left: 25px;
    font-size: 18px;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item {
    margin-bottom: 15px;
}

/* FAQ Section */
.page-cockfighting__faq {
    background-color: var(--background-light-grey);
    padding: 80px 0;
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.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;
    padding: 0 15px;
    opacity: 0;
    font-size: 16px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--secondary-color);
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

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

.page-cockfighting__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
    background: #eeeeee;
}

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

.page-cockfighting__faq-toggle {
    font-size: 24px;
    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: 28px;
    height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change from '-' to 'x' visually */
}

/* Conclusion Section */
.page-cockfighting__conclusion {
    padding-bottom: 80px;
}

.page-cockfighting__button-group {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 42px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__hero-image img {
        height: auto; /* Allow auto height for better responsiveness */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container,
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__introduction,
    .page-cockfighting__featured-halls,
    .page-cockfighting__rules,
    .page-cockfighting__advantages,
    .page-cockfighting__registration-guide,
    .page-cockfighting__tips,
    .page-cockfighting__faq,
    .page-cockfighting__conclusion {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-cockfighting__main-title {
        font-size: 32px;
        line-height: 1.3;
    }

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

    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__list-item,
    .page-cockfighting__advantage-text,
    .page-cockfighting__faq-answer {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-cockfighting__card-title {
        font-size: 20px;
    }

    .page-cockfighting__hero-image img,
    .page-cockfighting__card-image,
    .page-cockfighting__responsive-image,
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__image-with-text {
        flex-direction: column;
        align-items: center;
    }

    .page-cockfighting__responsive-image {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-button,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
        margin: 5px 0;
    }

    .page-cockfighting__button-group {
        flex-direction: column;
        gap: 10px;
    }

    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-cockfighting__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }

    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 28px;
    }

    .page-cockfighting__section-title {
        font-size: 24px;
    }

    .page-cockfighting__cta-button {
        padding: 10px 25px;
        font-size: 15px;
    }
}