/* style/cockfighting.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E; /* Main Green */
    --secondary-color: #22C768; /* Auxiliary Green */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
    --card-bg: #11271B; /* Card Background */
    --body-bg: #08160F; /* Main Background */
    --text-main: #F2FFF6; /* Main Text Color */
    --text-secondary: #A7D9B8; /* Secondary Text Color */
    --border-color: #2E7A4E; /* Border Color */
    --glow-color: #57E38D; /* Glow Color */
    --gold-color: #F2C14E; /* Gold Color */
    --divider-color: #1E3A2A; /* Divider Color */
    --deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-cockfighting {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--body-bg); /* Use specified body background */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Section titles */
.page-cockfighting__section-title {
    font-size: 2.5rem;
    color: var(--gold-color); /* Gold for main titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.05em;
    color: var(--gold-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.page-cockfighting__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.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;
    min-height: 600px;
    padding: 10px 0 80px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
    background: var(--body-bg); /* Ensure dark background for hero */
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim image for text readability */
    filter: brightness(0.7); /* Darken image slightly */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(8, 22, 15, 0.9) 0%, rgba(8, 22, 15, 0.5) 50%, rgba(8, 22, 15, 0.9) 100%); /* Gradient overlay for text readability */
    border-radius: 10px;
    margin: 0 20px;
    max-width: 900px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    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: var(--card-bg); /* Use card background for secondary */
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--border-color); /* Darker on hover */
    color: #ffffff;
}

/* General Sections */
.page-cockfighting__intro-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__advantages-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
    padding: 80px 0;
    background-color: var(--body-bg); /* Default background */
    color: var(--text-main);
}

.page-cockfighting__dark-section {
    background-color: var(--deep-green); /* Deeper green background for contrast */
    color: var(--text-main);
}

.page-cockfighting__light-bg {
    background-color: var(--card-bg); /* Use card background for light-bg cards */
    color: var(--text-main);
}

.page-cockfighting__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-secondary);
}

.page-cockfighting__text-block strong {
    color: var(--text-main);
}

.page-cockfighting__text-block a {
    color: var(--gold-color);
    text-decoration: none;
}

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

/* Images in content */
.page-cockfighting__image,
.page-cockfighting__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

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

.page-cockfighting__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

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

.page-cockfighting__card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Lists */
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-cockfighting__list-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
}

.page-cockfighting__list-item:last-child {
    margin-bottom: 0;
}

.page-cockfighting__list-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__list-item p {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.page-cockfighting__promo-cards .page-cockfighting__card {
    padding: 0; /* Remove padding from card itself for promo images */
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__promo-cards .page-cockfighting__promo-image {
    margin: 0;
    border-radius: 12px 12px 0 0; /* Top corners rounded */
    height: 200px; /* Fixed height for promo image */
    width: 100%;
    object-fit: cover;
}

.page-cockfighting__promo-cards .page-cockfighting__card-title {
    padding: 20px 25px 0 25px;
    font-size: 1.4rem;
    color: var(--gold-color);
}

.page-cockfighting__promo-cards .page-cockfighting__card-text {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.page-cockfighting__promo-cards .page-cockfighting__btn-primary {
    width: calc(100% - 50px); /* Adjust width for padding */
    margin: 0 25px 25px 25px;
}


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

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Remove default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* For Webkit browsers */
}

.page-cockfighting__faq-item summary:hover {
    background-color: var(--border-color); /* Slightly lighter on hover */
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 20px;
    text-align: center;
    color: var(--gold-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        min-height: 500px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

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

    .page-cockfighting__card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 400px;
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 60px;
    }

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

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 15px;
    }

    .page-cockfighting__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

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

    .page-cockfighting__intro-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section,
    .page-cockfighting__dark-section {
        padding: 50px 0;
    }

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

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Video responsiveness (if any video is added later) */
    .page-cockfighting video,
    .page-cockfighting__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Button responsiveness */
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }

    /* Container padding for mobile */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__promo-cards {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__promo-cards .page-cockfighting__card {
        padding: 0;
    }

    .page-cockfighting__promo-cards .page-cockfighting__card-title,
    .page-cockfighting__promo-cards .page-cockfighting__card-text,
    .page-cockfighting__promo-cards .page-cockfighting__btn-primary {
        padding-left: 15px;
        padding-right: 15px;
        width: calc(100% - 30px);
    }

    .page-cockfighting__promo-cards .page-cockfighting__btn-primary {
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-cockfighting__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
    }
}