/* style/cockfighting.css */

/* Base styles and variables */
:root {
    --page-cockfighting-primary-color: #0A2E54;
    --page-cockfighting-secondary-color: #E0B400;
    --page-cockfighting-text-light: #ffffff;
    --page-cockfighting-text-dark: #333333;
    --page-cockfighting-bg-dark: #1a1a1a; /* Inherited from shared.css body */
    --page-cockfighting-bg-light: #f5f5f5;
    --page-cockfighting-card-bg: rgba(255, 255, 255, 0.1);
    --page-cockfighting-border-color: #e0e0e0;
}

/* Page-specific styling */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-cockfighting-text-light); /* Default text color for dark body background */
    background-color: var(--page-cockfighting-bg-dark);
}

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

.page-cockfighting__dark-bg {
    background-color: var(--page-cockfighting-primary-color);
    color: var(--page-cockfighting-text-light);
}

.page-cockfighting__light-bg {
    background-color: var(--page-cockfighting-bg-light);
    color: var(--page-cockfighting-text-dark);
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--page-cockfighting-secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-cockfighting p {
    margin-bottom: 1em;
    color: inherit;
}

.page-cockfighting a {
    color: var(--page-cockfighting-secondary-color);
    text-decoration: none;
}

.page-cockfighting a:hover {
    text-decoration: underline;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

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

.page-cockfighting__btn-primary:hover {
    background-color: #d1a800;
    border-color: #d1a800;
    color: var(--page-cockfighting-primary-color);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-secondary-color);
    color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__btn-center {
    display: block;
    margin: 30px auto;
    max-width: 250px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    overflow: hidden;
    text-align: center;
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    color: var(--page-cockfighting-secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--page-cockfighting-text-light);
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 60px 20px;
    background-color: var(--page-cockfighting-primary-color);
    color: var(--page-cockfighting-text-light);
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    background-color: #000;
}

.page-cockfighting__video,
.page-cockfighting__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Features/Card Grid Section */
.page-cockfighting__features-section {
    padding: 60px 20px;
    background-color: var(--page-cockfighting-primary-color);
    color: var(--page-cockfighting-text-light);
}

.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;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--page-cockfighting-text-light);
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--page-cockfighting-secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__card-text {
    font-size: 1em;
    color: var(--page-cockfighting-text-light);
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 60px 20px;
    background-color: var(--page-cockfighting-bg-light);
    color: var(--page-cockfighting-text-dark);
}

.page-cockfighting__guide-section .page-cockfighting__section-title,
.page-cockfighting__guide-section .page-cockfighting__section-intro {
    color: var(--page-cockfighting-text-dark);
}

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

.page-cockfighting__step-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--page-cockfighting-text-dark);
}

.page-cockfighting__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--page-cockfighting-primary-color);
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--page-cockfighting-secondary-color);
    color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: var(--page-cockfighting-primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__step-item p {
    color: var(--page-cockfighting-text-dark);
}

.page-cockfighting__step-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 60px 20px;
    background-color: var(--page-cockfighting-primary-color);
    color: var(--page-cockfighting-text-light);
}

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

.page-cockfighting__tip-item {
    background-color: var(--page-cockfighting-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--page-cockfighting-text-light);
}

.page-cockfighting__tip-title {
    font-size: 1.4em;
    color: var(--page-cockfighting-secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__tip-item p {
    color: var(--page-cockfighting-text-light);
}

.page-cockfighting__tip-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 20px;
    background-color: var(--page-cockfighting-bg-light);
    color: var(--page-cockfighting-text-dark);
}

.page-cockfighting__promotions-section .page-cockfighting__section-title,
.page-cockfighting__promotions-section .page-cockfighting__section-intro {
    color: var(--page-cockfighting-text-dark);
}

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

.page-cockfighting__promo-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--page-cockfighting-text-dark);
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-cockfighting__promo-title {
    font-size: 1.5em;
    color: var(--page-cockfighting-primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__promo-text {
    font-size: 1em;
    color: var(--page-cockfighting-text-dark);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 20px;
    background-color: var(--page-cockfighting-primary-color);
    color: var(--page-cockfighting-text-light);
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    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.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--page-cockfighting-text-light);
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--page-cockfighting-text-light);
}

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

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

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

/* General image styling for content areas */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent styling */
    /* Ensure content area images are not smaller than 200px */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-cockfighting__hero-content {
        padding: 15px;
        max-width: 100%;
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }

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

    .page-cockfighting__section-title {
        font-size: 1.8em;
    }

    .page-cockfighting__section-intro {
        font-size: 0.95em;
    }

    .page-cockfighting__content-area {
        padding: 20px 15px;
    }

    .page-cockfighting__card-grid,
    .page-cockfighting__step-grid,
    .page-cockfighting__tip-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card,
    .page-cockfighting__step-item,
    .page-cockfighting__tip-item,
    .page-cockfighting__promo-card {
        padding: 20px;
    }

    .page-cockfighting__card-image,
    .page-cockfighting__step-image,
    .page-cockfighting__tip-image,
    .page-cockfighting__promo-image {
        height: 150px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-cockfighting__btn-center {
        max-width: 100% !important;
    }

    /* Images and Video responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Override min-width for mobile */
        min-height: unset !important; /* Override min-height for mobile */
    }
    
    .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;
    }
    
    /* Ensure containers for images/videos/buttons don't cause overflow */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__content-section,
    .page-cockfighting__features-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    .page-cockfighting__promo-grid,
    .page-cockfighting__button-group {
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__step-icon {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
}