/* style/cockfighting.css */

/* Custom Color Variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color: #08160F; /* This is the body background color */
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page, based on dark background */
    background-color: var(--background-color); /* Main page background */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    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-green-color); /* Use a deep green for the section background */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

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

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

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

.page-cockfighting__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.3rem); /* Responsive font size */
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* General Section Styling */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main-color);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__image-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px 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 breaking */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color); /* White text on dark button */
    border: 2px solid var(--primary-color);
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(242, 193, 78, 0.1); /* Light gold background on hover */
}

.page-cockfighting__cta-buttons--large .page-cockfighting__btn-primary,
.page-cockfighting__cta-buttons--large .page-cockfighting__btn-secondary {
    min-width: 250px;
    padding: 18px 35px;
    font-size: 1.2rem;
}

/* Section Specific Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__matches-schedule-section,
.page-cockfighting__safety-support-section {
    background-color: var(--card-bg-color); /* Dark green background for these sections */
    padding: 60px 0;
}

.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__conclusion-section {
    background-color: var(--background-color); /* Darker background */
    padding: 60px 0;
}

/* Video Section */
.page-cockfighting__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    background-color: var(--deep-green-color);
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden; /* Ensure video doesn't overflow */
}

.page-cockfighting__video-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--gold-color);
    margin-bottom: 25px;
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px; /* Max width for video */
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height/width = 9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    background-color: black;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box; /* Crucial for responsive videos */
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block; /* Ensure no extra space */
}

.page-cockfighting__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: rgba(0,0,0,0.1); /* Subtle overlay for clickable hint */
    transition: background 0.3s ease;
}

.page-cockfighting__video-overlay-link:hover {
    background: rgba(0,0,0,0.2);
}

/* FAQ Section */
.page-cockfighting__faq-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--background-color); /* Darker background for FAQ items */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.page-cockfighting__faq-item summary:hover {
    background-color: var(--deep-green-color);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 0 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting__subtitle {
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-cockfighting__container,
    .page-cockfighting__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__image-wrapper,
    .page-cockfighting__hero-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }

    /* Videos */
    .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; /* Small top padding for mobile video section */
    }

    /* Buttons */
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }

    .page-cockfighting__cta-buttons--large .page-cockfighting__btn-primary,
    .page-cockfighting__cta-buttons--large .page-cockfighting__btn-secondary {
        min-width: unset; /* Remove min-width for mobile */
        padding: 15px 25px !important;
        font-size: 1.1rem !important;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-cockfighting__subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    .page-cockfighting__text-block {
        font-size: 1rem;
    }
    .page-cockfighting__faq-item summary {
        font-size: 1rem;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.95rem;
    }
    
    /* Ensure content containers also adapt */
    .page-cockfighting__introduction-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__matches-schedule-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__safety-support-section,
    .page-cockfighting__conclusion-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-cockfighting__introduction-section > .page-cockfighting__container,
    .page-cockfighting__how-to-play-section > .page-cockfighting__container,
    .page-cockfighting__matches-schedule-section > .page-cockfighting__container,
    .page-cockfighting__promotions-section > .page-cockfighting__container,
    .page-cockfighting__safety-support-section > .page-cockfighting__container,
    .page-cockfighting__conclusion-section > .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-cockfighting__subtitle {
        font-size: clamp(0.85rem, 4vw, 1rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }
    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }
    .page-cockfighting__faq-item summary {
        padding: 15px;
        font-size: 0.95rem;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }
}