/* style/cockfighting.css */

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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--page-cockfighting-text-main); /* Ensure contrast with body bg */
    background-color: var(--page-cockfighting-bg); /* Inherited from shared, but set here for clarity */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 0; /* Adjusted for image above text */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-cockfighting-bg);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-cockfighting-gold);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--page-cockfighting-gold);
    border: 2px solid var(--page-cockfighting-gold);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__btn-small {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main);
    border: none;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting__btn-small:hover {
    opacity: 0.9;
}

.page-cockfighting__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* General Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__strategy-section,
.page-cockfighting__cta-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-bg);
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-card-bg);
    padding: 80px 0;
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--page-cockfighting-text-main);
    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(--page-cockfighting-primary-color);
    border-radius: 2px;
}

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

.page-cockfighting__text-block--center {
    text-align: center;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 40px auto;
    object-fit: cover;
}

.page-cockfighting__content-image--center {
    max-width: 800px;
}

/* How-To-Play Section */
.page-cockfighting__step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background-color: var(--page-cockfighting-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--page-cockfighting-border);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.page-cockfighting__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-cockfighting-text-secondary);
}

/* Bet Types Section */
.page-cockfighting__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background-color: var(--page-cockfighting-card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--page-cockfighting-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.4rem;
    color: var(--page-cockfighting-text-main);
    margin-bottom: 10px;
}

.page-cockfighting__card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--page-cockfighting-text-secondary);
}

/* Advantages Section */
.page-cockfighting__advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__advantage-item {
    background-color: var(--page-cockfighting-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--page-cockfighting-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
}

.page-cockfighting__advantage-title {
    font-size: 1.6rem;
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
}

.page-cockfighting__advantage-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__strategy-card {
    text-align: left;
    padding: 30px;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    background-color: var(--page-cockfighting-card-bg);
    border-bottom: 1px solid var(--page-cockfighting-divider);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: var(--page-cockfighting-gold);
}

/* For details tag, hide default marker */
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-item summary {
    list-style: none;
}

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

/* CTA Section */
.page-cockfighting__cta-content {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 15px;
    border: 1px solid var(--page-cockfighting-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.page-cockfighting__section-title--cta {
    color: var(--page-cockfighting-gold);
    margin-bottom: 30px;
}

.page-cockfighting__text-block--cta {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

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

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 40px 0;
    }

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

    .page-cockfighting__hero-description {
        font-size: 1rem;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        margin: 0 auto; /* Center buttons */
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__hero-buttons,
    .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;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__cta-section,
    .page-cockfighting__dark-section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

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

    .page-cockfighting__step-list,
    .page-cockfighting__card-grid,
    .page-cockfighting__advantage-list,
    .page-cockfighting__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card-image {
        height: 180px;
    }

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

    .page-cockfighting__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .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__hero-section {
      padding-top: 10px !important;
    }

    .page-cockfighting__video-section {
      padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }

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

    .page-cockfighting__hero-buttons {
        gap: 10px;
    }
}