/* style/cockfighting.css */

/* Custom properties (CSS variables) for color palette */
:root {
    --page-cockfighting-primary: #11A84E; /* Main color */
    --page-cockfighting-secondary: #22C768; /* Auxiliary color */
    --page-cockfighting-card-bg: #11271B; /* Card Background */
    --page-cockfighting-background: #08160F; /* Section Background */
    --page-cockfighting-text-main: #F2FFF6; /* Main Text */
    --page-cockfighting-text-secondary: #A7D9B8; /* Secondary Text */
    --page-cockfighting-border: #2E7A4E; /* Border */
    --page-cockfighting-glow: #57E38D; /* Glow */
    --page-cockfighting-gold: #F2C14E; /* Gold */
    --page-cockfighting-divider: #1E3A2A; /* Divider */
    --page-cockfighting-deep-green: #0A4B2C; /* Deep Green */

    /* Button gradient */
    --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-cockfighting {
    /* Assuming body background is dark from shared.css, use light text for main content */
    color: var(--page-cockfighting-text-main); /* #F2FFF6 */
    background-color: var(--page-cockfighting-background); /* #08160F */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 40px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-cockfighting-background);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 250px; /* Ensure minimum size */
}

.page-cockfighting__hero-content {
    position: relative; /* Stacks below image */
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly for design */
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__main-title {
    color: var(--page-cockfighting-gold); /* Gold for main title */
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-cockfighting__hero-description {
    color: var(--page-cockfighting-text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main); /* #F2FFF6 */
    border: none;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--page-cockfighting-primary); /* #11A84E */
    border: 2px solid var(--page-cockfighting-primary);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-primary);
    color: var(--page-cockfighting-text-main);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-cockfighting__intro-section,
.page-cockfighting__types-section,
.page-cockfighting__betting-guide-section,
.page-cockfighting__advantages-section,
.page-cockfighting__strategy-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-background);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-green); /* #0A4B2C */
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__section-title {
    color: var(--page-cockfighting-gold);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

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

.page-cockfighting__subsection-title {
    color: var(--page-cockfighting-primary); /* #11A84E */
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-cockfighting__text-block {
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-cockfighting__inline-link {
    color: var(--page-cockfighting-glow); /* #57E38D */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-cockfighting__inline-link:hover {
    color: var(--page-cockfighting-gold);
}

/* Image-Text Layout */
.page-cockfighting__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__image-text-layout:nth-child(even) {
    flex-direction: row-reverse;
}

.page-cockfighting__image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__image-wrapper--center {
    display: flex;
    justify-content: center;
    margin: 40px auto;
    max-width: 800px; /* Constrain centered images */
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__text-content {
    flex: 1;
    min-width: 300px;
}

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

.page-cockfighting__advantage-card {
    background-color: var(--page-cockfighting-card-bg); /* #11271B */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-cockfighting-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__card-title {
    color: var(--page-cockfighting-primary); /* #11A84E */
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-cockfighting__card-description {
    color: var(--page-cockfighting-text-secondary);
    font-size: 1em;
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg); /* #11271B */
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-cockfighting-primary); /* #11A84E */
    cursor: pointer;
    background-color: var(--page-cockfighting-deep-green); /* #0A4B2C */
    border-bottom: 1px solid var(--page-cockfighting-border);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: var(--page-cockfighting-primary);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-question::marker {
    display: none;
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    color: var(--page-cockfighting-text-secondary);
    font-size: 1.05em;
    background-color: var(--page-cockfighting-card-bg);
}

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
}

/* Conclusion Section specific */
.page-cockfighting__conclusion-section .page-cockfighting__cta-buttons {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }

    .page-cockfighting__subsection-title {
        font-size: 1.6em;
    }

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

    .page-cockfighting__image-text-layout:nth-child(even) {
        flex-direction: column; /* Reset for mobile */
    }

    .page-cockfighting__image-wrapper {
        width: 100%;
        min-width: unset;
    }

    .page-cockfighting__text-content {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 20px;
    }
    
    .page-cockfighting__hero-content {
        margin-top: -40px;
        padding: 20px 15px;
        border-radius: 10px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100%; /* Full width buttons on mobile */
    }

    .page-cockfighting__intro-section,
    .page-cockfighting__types-section,
    .page-cockfighting__betting-guide-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

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

    .page-cockfighting__subsection-title {
        font-size: 1.4em;
    }

    .page-cockfighting__text-block {
        font-size: 0.95em;
    }

    .page-cockfighting__grid-advantages {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__advantage-card {
        padding: 25px;
    }

    .page-cockfighting__card-title {
        font-size: 1.2em;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-cockfighting__faq-answer {
        padding: 15px 20px;
        font-size: 1em;
    }
    
    /* Mobile image responsive rules */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__image-wrapper,
    .page-cockfighting__image-wrapper--center,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-cockfighting__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .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-left: 15px;
        padding-right: 15px;
    }
}