/* style/cockfighting.css */

/* Custom Colors */
:root {
    --pbv88-green-main: #11A84E;
    --pbv88-green-secondary: #22C768;
    --pbv88-button-gradient-start: #2AD16F;
    --pbv88-button-gradient-end: #13994A;
    --pbv88-card-bg: #11271B;
    --pbv88-background: #08160F;
    --pbv88-text-main: #F2FFF6;
    --pbv88-text-secondary: #A7D9B8;
    --pbv88-border: #2E7A4E;
    --pbv88-glow: #57E38D;
    --pbv88-gold: #F2C14E;
    --pbv88-divider: #1E3A2A;
    --pbv88-deep-green: #0A4B2C;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--pbv88-text-main);
    background-color: var(--pbv88-background); /* Base background for main content */
    line-height: 1.6;
}

/* Typography */
.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: bold;
    color: var(--pbv88-gold); /* Using gold for main title */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    color: var(--pbv88-text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-cockfighting__hero-description,
.page-cockfighting__section-description,
.page-cockfighting__card-text {
    font-size: 1.1rem;
    color: var(--pbv88-text-secondary);
    text-align: center;
    margin-bottom: 20px;
}

.page-cockfighting__card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--pbv88-text-main);
    margin-bottom: 10px;
    text-align: center;
}

/* Containers & Sections */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 10px 0 60px; /* Small top padding, larger bottom padding */
    overflow: hidden;
    background-color: var(--pbv88-deep-green); /* Fallback background */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-cockfighting__dark-section {
    background-color: var(--pbv88-card-bg); /* Darker background for contrast sections */
    padding: 60px 0;
}

.page-cockfighting__about-section,
.page-cockfighting__game-types-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-bottom-section {
    padding: 60px 0;
}

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

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

/* Cards */
.page-cockfighting__card {
    background-color: var(--pbv88-card-bg);
    border: 1px solid var(--pbv88-border);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-icon,
.page-cockfighting__type-image,
.page-cockfighting__promotion-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-cockfighting__type-card .page-cockfighting__card-title,
.page-cockfighting__promotion-card .page-cockfighting__card-title {
    margin-top: 15px;
}

.page-cockfighting__promotion-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.page-cockfighting__promotion-content .page-cockfighting__card-text {
    flex-grow: 1;
}

/* How to Play Steps */
.page-cockfighting__step-card {
    position: relative;
    padding-top: 50px; /* Space for step number */
}

.page-cockfighting__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--pbv88-button-gradient-start) 0%, var(--pbv88-button-gradient-end) 100%);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    border: 3px solid var(--pbv88-border);
    box-shadow: 0 0 15px var(--pbv88-glow);
}

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

.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: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button fits container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, var(--pbv88-button-gradient-start) 0%, var(--pbv88-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid var(--pbv88-button-gradient-start);
    box-shadow: 0 5px 15px rgba(var(--pbv88-green-main), 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, var(--pbv88-button-gradient-end) 0%, var(--pbv88-button-gradient-start) 100%);
    box-shadow: 0 8px 20px rgba(var(--pbv88-green-main), 0.6);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--pbv88-gold);
    border: 2px solid var(--pbv88-gold);
    box-shadow: 0 5px 15px rgba(var(--pbv88-gold), 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--pbv88-gold);
    color: var(--pbv88-background);
    box-shadow: 0 8px 20px rgba(var(--pbv88-gold), 0.4);
    transform: translateY(-2px);
}

.page-cockfighting__view-all-promotions {
    text-align: center;
    margin-top: 40px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--pbv88-card-bg);
    border: 1px solid var(--pbv88-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--pbv88-text-main);
    font-size: 1.2rem;
    background-color: var(--pbv88-deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--pbv88-divider);
}

.page-cockfighting__faq-question:hover {
    background-color: var(--pbv88-green-main);
}

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

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

/* For details tag, hide default marker */
.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Hide default triangle */
}

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

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    color: var(--pbv88-text-secondary);
    background-color: var(--pbv88-card-bg);
    border-top: 1px solid var(--pbv88-divider);
    font-size: 1rem;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__game-types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom-section {
        padding: 40px 0;
    }

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

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-cockfighting__hero-description,
    .page-cockfighting__section-description,
    .page-cockfighting__card-text {
        font-size: 1rem;
    }

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

    .page-cockfighting__features-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promotions-grid,
    .page-cockfighting__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

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

    /* Images responsiveness */
    .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__about-section,
    .page-cockfighting__game-types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Ensure hero image container does not add extra padding */
    .page-cockfighting__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-cockfighting__hero-content {
        max-width: calc(100% - 30px) !important; /* Account for container padding */
        margin: 0 15px;
    }
}