/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--secondary-color); /* Matches body background */
}

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

.page-cockfighting__container--center {
    text-align: center;
}

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

.page-cockfighting__heading {
    font-size: 36px;
    color: #26A9E0; /* Primary color for headings */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__heading--white {
    color: #FFFFFF;
}

.page-cockfighting__text {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__text--white {
    color: #FFFFFF;
}

/* 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 space for fixed header */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
    overflow: hidden; /* Prevent image overflow */
}

.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-main {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px; /* Constrain content width */
    padding: 20px;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__hero-title {
    font-size: 48px;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
}

.page-cockfighting__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* CTA Buttons */
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
    background: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
    background: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
    background: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-cockfighting__btn-link:hover {
    color: #1e87c0;
    text-decoration: underline;
}

/* Image wrappers */
.page-cockfighting__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-cockfighting__image-wrapper--right {
    text-align: right;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
}

/* Features Grid */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-cockfighting__card-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__card-text {
    font-size: 16px;
    color: #555555;
    text-align: left;
}

/* List styles */
.page-cockfighting__list,
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-cockfighting__list-item,
.page-cockfighting__tip-item {
    background: #ffffff;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #26A9E0;
}

.page-cockfighting__list-title,
.page-cockfighting__tip-title {
    font-size: 20px;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__list-text,
.page-cockfighting__tip-text {
    font-size: 16px;
    color: #555555;
}

/* Steps list */
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    margin: 40px 0;
}

.page-cockfighting__step-item {
    background: #ffffff;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 70px;
}

.page-cockfighting__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.page-cockfighting__step-title {
    font-size: 20px;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__step-text {
    font-size: 16px;
    color: #555555;
}

.page-cockfighting__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Promotions Grid */
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__promo-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #f8f8f8;
}

/* FAQ container styles */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

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

/* FAQ default state - answer hidden */
.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 20px;
    opacity: 0;
    color: #555555;
    background: #fdfdfd;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* 🚨 Use!important, value large enough for any content */
    padding: 20px !important;
    opacity: 1;
    background: #fdfdfd;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #eee;
}

/* Question styles */
.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    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: #26A9E0;
}

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

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

/* Question title style */
.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0f2f7;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: #ffffff;
    background: #26A9E0;
    transform: rotate(45deg); /* Rotate to form an 'X' or minus */
}

/* Dark background section */
.page-cockfighting__dark-bg {
    background-color: #26A9E0; /* Primary color */
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__hero-title {
        font-size: 40px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
    }
    .page-cockfighting__heading {
        font-size: 30px;
    }
    .page-cockfighting__text {
        font-size: 17px;
    }
    .page-cockfighting__card-title {
        font-size: 20px;
    }
    .page-cockfighting__card-text {
        font-size: 15px;
    }
    .page-cockfighting__list-title,
    .page-cockfighting__tip-title,
    .page-cockfighting__step-title {
        font-size: 18px;
    }
    .page-cockfighting__list-text,
    .page-cockfighting__tip-text,
    .page-cockfighting__step-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    /* Mobile header spacing */
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-image-main {
        border-radius: 8px;
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-content {
        padding: 15px;
        border-radius: 8px;
    }
    .page-cockfighting__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__cta-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px; /* Adjust container padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__heading {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-cockfighting__text {
        font-size: 16px;
        text-align: left;
    }
    
    /* Image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__image-wrapper {
        margin: 20px 0;
    }
    .page-cockfighting__image-wrapper--right {
        text-align: center; /* Center images on mobile */
    }

    /* Card layouts */
    .page-cockfighting__features-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card {
        padding: 20px;
    }
    .page-cockfighting__card-image {
        height: auto; /* Allow height to adjust on mobile */
        max-height: 250px; /* Cap max height for smaller screens */
    }
    .page-cockfighting__card-title {
        font-size: 18px;
    }
    .page-cockfighting__card-text {
        font-size: 15px;
    }

    /* List styles */
    .page-cockfighting__list-item,
    .page-cockfighting__tip-item,
    .page-cockfighting__step-item {
        padding: 20px;
        padding-left: 60px; /* Adjust padding for step counter */
        margin-bottom: 15px;
    }
    .page-cockfighting__step-item::before {
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .page-cockfighting__list-title,
    .page-cockfighting__tip-title,
    .page-cockfighting__step-title {
        font-size: 17px;
    }
    .page-cockfighting__list-text,
    .page-cockfighting__tip-text,
    .page-cockfighting__step-text {
        font-size: 15px;
    }

    /* FAQ */
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure content images are not smaller than 200px */
.page-cockfighting__intro .page-cockfighting__image,
.page-cockfighting__why-choose .page-cockfighting__card-image,
.page-cockfighting__tips .page-cockfighting__image,
.page-cockfighting__promotions .page-cockfighting__card-image {
    min-width: 200px;
    min-height: 200px;
}