/* 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-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-cockfighting-glow: #57E38D;
    --page-cockfighting-gold: #F2C14E;
    --page-cockfighting-divider: #1E3A2A;
    --page-cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--page-cockfighting-bg); /* Body background handled by shared, this is for sections */
    color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--page-cockfighting-text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

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

.page-cockfighting__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__margin-top {
    margin-top: 40px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles top padding */
    overflow: hidden;
    background-color: var(--page-cockfighting-deep-green);
}

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

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

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

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

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

/* Buttons */
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

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

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--page-cockfighting-glow);
    border: 2px solid var(--page-cockfighting-glow);
    box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-glow);
    color: var(--page-cockfighting-deep-green);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

/* Introduction Section */
.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__tips-section {
    padding: 60px 0;
    background-color: var(--page-cockfighting-bg);
}

/* Bet Types Section & FAQ Section (Card Background) */
.page-cockfighting__bet-types-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--page-cockfighting-card-bg);
}

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

.page-cockfighting__card {
    background-color: var(--page-cockfighting-deep-green);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__card-dark {
    background-color: rgba(17, 168, 78, 0.1);
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
}

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

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

.page-cockfighting__step-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--page-cockfighting-gold);
    margin-bottom: 10px;
}

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

/* Advantages Section */
.page-cockfighting__advantages-section {
    padding: 60px 0;
    background-color: var(--page-cockfighting-deep-green);
}

/* Tips Section */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__tips-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__tips-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--page-cockfighting-gold);
    margin-bottom: 10px;
}

.page-cockfighting__tips-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-deep-green);
    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: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    background-color: var(--page-cockfighting-deep-green);
    user-select: none;
    list-style: none;
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−';
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--page-cockfighting-text-secondary);
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
    color: var(--page-cockfighting-text-secondary);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-cockfighting-deep-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image-wrapper {
        max-height: 500px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(30px, 4.5vw, 50px);
    }

    .page-cockfighting__hero-description {
        font-size: 18px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(26px, 3.5vw, 40px);
    }

    .page-cockfighting__text-block {
        font-size: 17px;
    }

    .page-cockfighting__card-title {
        font-size: 22px;
    }

    .page-cockfighting__step-title {
        font-size: 20px;
    }

    .page-cockfighting__tips-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    
    .page-cockfighting__hero-image-wrapper {
        max-height: 350px;
        margin-bottom: 30px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(28px, 6vw, 45px);
    }

    .page-cockfighting__hero-description {
        font-size: 16px;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .page-cockfighting__image-content {
        margin: 30px auto;
    }

    .page-cockfighting__grid-container,
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-cockfighting__card,
    .page-cockfighting__step-item,
    .page-cockfighting__tips-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }

    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__tips-title {
        font-size: 20px;
    }

    .page-cockfighting__card-text,
    .page-cockfighting__step-description,
    .page-cockfighting__tips-description {
        font-size: 15px;
    }

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

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

    .page-cockfighting__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__hero-image {
        width: 100% !important;
        height: auto !important;
    }

    /* All containers with images/content */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-content,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__steps-grid,
    .page-cockfighting__tips-list,
    .page-cockfighting__faq-list,
    .page-cockfighting__conclusion-section .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Button responsiveness */
    .page-cockfighting__cta-button,
    .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;
        margin-left: auto !important; /* Center single button */
        margin-right: auto !important;
    }

    /* If multiple buttons in a group, stack them */
    .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;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}