/* style/cockfighting.css */

/* Custom CSS Variables for colors */
:root {
    --main-color: #113B7A;
    --secondary-color: #1D5FD1;
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
    --btn-primary-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --btn-primary-gradient-hover: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
}

/* General page styling based on body's dark background */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: transparent; /* Body background is handled by shared.css var(--deep-navy) */
}

.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4,
.page-cockfighting h5,
.page-cockfighting h6 {
    color: var(--text-main);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.page-cockfighting h1 {
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 900px; /* To prevent excessively long titles */
}

.page-cockfighting h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold-color); /* Using gold for section titles */
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-color);
    border-radius: 2px;
}

.page-cockfighting h3 {
    font-size: 1.8em;
    color: var(--text-main);
    margin-top: 30px;
}

.page-cockfighting p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

.page-cockfighting ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
    color: var(--text-secondary);
}

.page-cockfighting ul li {
    margin-bottom: 0.5em;
}

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--deep-navy); /* Ensure background for hero */
}

.page-cockfighting__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above any background elements */
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box; /* For mobile button responsiveness */
    white-space: normal; /* For mobile button responsiveness */
    word-wrap: break-word; /* For mobile button responsiveness */
}

.page-cockfighting__btn-primary {
    background: var(--btn-primary-gradient);
    color: #ffffff;
    border: none;
}

.page-cockfighting__btn-primary:hover {
    background: var(--btn-primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
    background-color: #ffffff;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--main-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.page-cockfighting__introduction-section,
.page-cockfighting__rules-section,
.page-cockfighting__registration-section,
.page-cockfighting__strategy-section,
.page-cockfighting__security-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: var(--card-bg); /* Dark background for sections */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px 0;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

.page-cockfighting__image-text-block {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-cockfighting__image-text-block .page-cockfighting__content-image {
    flex: 1;
    min-width: 300px;
    margin: 0;
}

.page-cockfighting__text-content {
    flex: 2;
}

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

.page-cockfighting__grid-item {
    background-color: var(--deep-navy);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__step-card {
    background-color: var(--deep-navy);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-cockfighting__step-title {
    color: var(--gold-color);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-cockfighting__mt-40 {
    margin-top: 40px;
}

.page-cockfighting__strategy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting__card {
    background-color: var(--deep-navy); /* Card background color */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-secondary);
}

.page-cockfighting__card-title {
    color: var(--gold-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-cockfighting__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

.page-cockfighting__feature-item {
    background-color: var(--deep-navy);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum size for images, even icons */
    min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__feature-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

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

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

.page-cockfighting__promo-cards .page-cockfighting__btn-primary {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    background-color: var(--deep-navy);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--main-color);
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* Remove default marker for summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-cockfighting__faq-question:hover {
    background-color: var(--secondary-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid transparent;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X */
}

.page-cockfighting__faq-answer {
    padding: 20px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        max-width: 768px;
    }

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

    .page-cockfighting__image-text-block .page-cockfighting__content-image {
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .page-cockfighting h1 {
        font-size: 2em;
    }

    .page-cockfighting h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-cockfighting h3 {
        font-size: 1.5em;
    }

    .page-cockfighting__hero-section {
        padding: 10px 15px 40px;
    }

    .page-cockfighting__hero-image-wrapper {
        max-height: 400px;
    }

    .page-cockfighting__hero-content {
        padding: 0 15px;
    }

    .page-cockfighting__description {
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important; /* Enforce full width */
        max-width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__rules-section,
    .page-cockfighting__registration-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__security-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section {
        margin: 40px auto;
        padding: 30px 15px;
    }

    .page-cockfighting__content-image,
    .page-cockfighting__feature-icon,
    .page-cockfighting__card-image,
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all image/content containers are responsive */
    .page-cockfighting__image-text-block,
    .page-cockfighting__content-grid,
    .page-cockfighting__process-steps,
    .page-cockfighting__strategy-cards,
    .page-cockfighting__security-features,
    .page-cockfighting__promo-cards {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    
    .page-cockfighting__grid-item,
    .page-cockfighting__step-card,
    .page-cockfighting__card,
    .page-cockfighting__feature-item {
        padding: 20px !important;
    }

    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 15px;
    }
}