/* style/cockfighting.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-btn-color: #C30808;
    --login-btn-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color); /* Default light text for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--secondary-color);
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    background-size: cover;
    background-position: center;
}

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

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__dark-bg {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 80px 0;
}

.page-cockfighting__light-bg {
    background-color: var(--secondary-color);
    color: #333333; /* Dark text on light background */
    padding: 80px 0;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background-color: var(--register-btn-color); /* Custom color for register/login */
    color: var(--register-login-font-color); /* Custom font color */
    border: 2px solid var(--register-btn-color);
}

.page-cockfighting__btn-primary:hover {
    background-color: #A30606; /* Darken register-btn-color */
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--register-login-font-color); /* Custom font color */
    border: 2px solid var(--register-btn-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--register-btn-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.page-cockfighting__cta-buttons--center {
    justify-content: center;
}

/* Grid Layouts */
.page-cockfighting__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-cockfighting__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

/* Cards */
.page-cockfighting__feature-card,
.page-cockfighting__step-card,
.page-cockfighting__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--secondary-color);
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-cockfighting__light-bg .page-cockfighting__feature-card,
.page-cockfighting__light-bg .page-cockfighting__step-card,
.page-cockfighting__light-bg .page-cockfighting__security-item {
    background-color: var(--background-color);
    color: #333333;
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__step-card:hover,
.page-cockfighting__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: inherit;
}

.page-cockfighting__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--register-btn-color);
    margin-bottom: 15px;
}

.page-cockfighting__security-icon {
    width: 80px; /* Min size 200x200 for actual image, but icon display can be smaller for layout */
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

/* Image & Text Blocks */
.page-cockfighting__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
}

.page-cockfighting__tip-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-cockfighting__tip-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.page-cockfighting__tip-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--register-btn-color);
    font-weight: bold;
}

/* Video Section */
.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__faq-item {
    background-color: var(--background-color);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333; /* Dark text for FAQ items on light background */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.page-cockfighting__faq-question:hover {
    background-color: #f0f0f0;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

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

/* CTA Section */
.page-cockfighting__cta-content {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__grid-two-columns {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__image-block {
        order: -1; /* Image appears above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section {
        min-height: 400px;
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-cockfighting__dark-bg, .page-cockfighting__light-bg {
        padding: 50px 0;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }

    /* Images responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__image-block,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Videos responsive */
    .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;
    }
    /* Specific padding-top for video section on mobile */
    .page-cockfighting__video-section {
        padding-top: 50px !important; /* Adjust if needed, but ensure it's not double counting header-offset */
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__security-item {
        padding: 25px;
    }
    .page-cockfighting__card-title {
        font-size: 1.3em;
    }
    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 15px;
    }
}