/* style/cockfighting.css */

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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--page-cockfighting-background); /* Assuming dark body background */
    color: var(--page-cockfighting-text-main);
    line-height: 1.6;
}

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-green);
    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, 42px);
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-cockfighting__sub-section-title {
    font-size: clamp(22px, 3vw, 30px);
    color: var(--page-cockfighting-secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-cockfighting__text-block {
    font-size: 17px;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__text-link {
    color: var(--page-cockfighting-gold-color);
    text-decoration: underline;
}

/* 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 offset, small padding for visual separation */
    background-color: var(--page-cockfighting-background);
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for the image wrapper */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 675px; /* Ensure image itself doesn't exceed wrapper height */
}

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above image but not overlaying */
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content up slightly over the image, but not *on* it */
}

.page-cockfighting__main-title {
    font-size: clamp(36px, 5vw, 58px);
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
}

.page-cockfighting__sub-title {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--page-cockfighting-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

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

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main);
    border: 2px solid var(--page-cockfighting-primary-color);
}

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-gold-color);
    color: var(--page-cockfighting-background);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-icon {
    width: 100%; /* Ensure images take full width of card */
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 8px;
}

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

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

/* Lists */
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

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

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

.page-cockfighting__list-description {
    font-size: 16px;
    color: var(--page-cockfighting-text-secondary);
}

/* Strategy Content */
.page-cockfighting__strategy-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__strategy-text,
.page-cockfighting__strategy-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__strategy-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__strategy-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-cockfighting-border-color);
}

/* Safety Features Grid */
.page-cockfighting__safety-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__safety-item {
    background-color: var(--page-cockfighting-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-cockfighting-border-color);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__safety-title {
    font-size: 22px;
    color: var(--page-cockfighting-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__safety-description {
    font-size: 16px;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__safety-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-cockfighting-border-color);
}

/* How-to-start Steps */
.page-cockfighting__step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    background-color: var(--page-cockfighting-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--page-cockfighting-border-color);
    color: var(--page-cockfighting-text-main);
    position: relative;
}

.page-cockfighting__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--page-cockfighting-primary-color);
    color: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    border: 3px solid var(--page-cockfighting-border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-card .page-cockfighting__card-title {
    margin-top: 30px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.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-gold-color);
    cursor: pointer;
    list-style: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
    }
}

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

    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

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

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

    .page-cockfighting__sub-title {
        font-size: clamp(16px, 3.5vw, 20px);
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        font-size: 16px;
        padding: 12px 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto;
    }

    .page-cockfighting__feature-grid,
    .page-cockfighting__safety-features-grid,
    .page-cockfighting__step-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-cockfighting__feature-icon,
    .page-cockfighting__strategy-image,
    .page-cockfighting__safety-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__strategy-content {
        flex-direction: column;
    }

    .page-cockfighting__list-item,
    .page-cockfighting__faq-item {
        padding: 15px 20px;
    }

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

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

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__container,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__feature-card,
    .page-cockfighting__safety-item,
    .page-cockfighting__step-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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