/* style/cockfighting.css */

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    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-color: #017439;
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* Intro Section */
.page-cockfighting__intro-section {
    background-color: #f8f8f8;
    color: #333333;
    padding: 60px 0;
}

.page-cockfighting__intro-section .page-cockfighting__section-title {
    color: #333333;
}

.page-cockfighting__intro-section .page-cockfighting__text-block {
    color: #555555;
}

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

/* Types Section */
.page-cockfighting__types-section {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 60px 0;
}

.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: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

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

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    color: #017439;
}

.page-cockfighting__card-text {
    padding: 0 20px 20px;
    color: #f0f0f0;
}

/* Guide Section */
.page-cockfighting__guide-section {
    background-color: #f8f8f8;
    color: #333333;
    padding: 60px 0;
}

.page-cockfighting__guide-section .page-cockfighting__section-title {
    color: #333333;
}

.page-cockfighting__guide-section .page-cockfighting__text-block {
    color: #555555;
}

.page-cockfighting__step-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-cockfighting__step-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__step-item .page-cockfighting__text-block {
    color: #555555;
    margin-bottom: 20px;
}

/* Tips Section */
.page-cockfighting__tips-section {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 60px 0;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 1.1em;
}

.page-cockfighting__list-item strong {
    color: #ffffff;
}

/* Safety Section */
.page-cockfighting__safety-section {
    background-color: #f8f8f8;
    color: #333333;
    padding: 60px 0;
}

.page-cockfighting__safety-section .page-cockfighting__section-title {
    color: #333333;
}

.page-cockfighting__safety-section .page-cockfighting__text-block,
.page-cockfighting__safety-section .page-cockfighting__list-item {
    color: #555555;
}

.page-cockfighting__safety-section .page-cockfighting__list-item {
    background-color: #ffffff;
    border-left-color: #017439;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Promotion Section */
.page-cockfighting__promo-section {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 60px 0;
}

.page-cockfighting__promo-section .page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.08);
}

.page-cockfighting__promo-section .page-cockfighting__card-title {
    color: #017439;
}

.page-cockfighting__promo-section .page-cockfighting__card-text {
    color: #f0f0f0;
}

.page-cockfighting__promo-section a {
    color: #017439;
    text-decoration: underline;
}

.page-cockfighting__promo-section a:hover {
    color: #00a040;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #f8f8f8;
    color: #333333;
    padding: 60px 0;
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: #333333;
}

.page-cockfighting__faq-list {
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #017439;
    transition: transform 0.3s ease;
}

.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 accommodate content */
    padding: 15px 20px;
}

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__conclusion-section .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-cockfighting__conclusion-section a {
    color: #FFFF00; /* Register/Login font color for links */
    text-decoration: underline;
}

.page-cockfighting__conclusion-section a:hover {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__text-block,
    .page-cockfighting__list-item,
    .page-cockfighting__card-text {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
        width: 100% !important; /* Ensure buttons are full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__card-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__card {
        padding: 0;
    }

    .page-cockfighting__step-item {
        padding: 20px;
    }

    .page-cockfighting__step-title {
        font-size: 1.5em;
    }

    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    
    /* Mobile image and video responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__video-wrapper,
    .page-cockfighting__video-container,
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
}