/* style/cockfighting.css */
:root {
    --primary-color: #007BFF;
    --secondary-color: #FFC107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0d0d0d;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default to light text for body which is dark-bg-1 */
    background-color: var(--dark-bg-1); /* Assuming shared.css defines --dark-bg-1 as dark */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure content is not hidden by fixed header */
.page-cockfighting__hero-banner {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    text-align: center;
    position: relative;
}

.page-cockfighting__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    object-fit: cover;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.page-cockfighting__main-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 19px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-description strong {
    color: var(--secondary-color);
}

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

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    text-align: center;
}

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

.page-cockfighting__btn-primary:hover {
    background: #e6b000;
    border-color: #e6b000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-cockfighting__section-title--light {
    color: var(--text-light);
}

.page-cockfighting__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.page-cockfighting__section-description--light {
    color: var(--text-light);
}

/* Platform Overview Section */
.page-cockfighting__platform-overview {
    padding: 60px 0;
    background-color: var(--bg-light); /* Light background for contrast */
    color: var(--text-dark);
}

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

.page-cockfighting__overview-item {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__overview-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-cockfishing__item-title + p {
    font-size: 16px;
    color: var(--text-dark);
}

/* Game Features Section */
.page-cockfighting__game-features {
    padding: 60px 0;
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    color: var(--text-light);
}

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

.page-cockfighting__feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__feature-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-cockfishing__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-cockfishing__feature-title + p {
    font-size: 16px;
    color: var(--text-light);
}

.page-cockfishing__action-center {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

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

.page-cockfighting__promo-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfishing__promo-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-cockfishing__promo-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfishing__promo-title + p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfishing__promo-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-top: auto; /* Push link to bottom */
}

.page-cockfishing__promo-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.page-cockfighting__arrow {
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
}

/* Latest News Section */
.page-cockfighting__latest-news {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: var(--text-light);
}

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

.page-cockfighting__news-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__news-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-cockfishing__news-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.page-cockfishing__news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-cockfishing__news-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.page-cockfishing__news-title a:hover {
    text-decoration: underline;
    color: #ffd700;
}

.page-cockfishing__news-excerpt {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfishing__read-more {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.page-cockfishing__read-more:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: var(--text-dark);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to show all content */
    padding: 20px !important;
    opacity: 1;
    background: #f1f3f5;
    border-radius: 0 0 8px 8px;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
    background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Rotate to form an 'X' or similar for close */
}

.page-cockfighting__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-cockfighting__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-cockfighting__faq-answer a:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 36px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfishing__item-title,
    .page-cockfishing__feature-title,
    .page-cockfishing__promo-title,
    .page-cockfishing__news-title {
        font-size: 22px;
    }
}

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

    .page-cockfighting__hero-banner {
        padding-top: 160px !important; /* Mobile: Adjust based on mobile fixed header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__main-title {
        font-size: 30px;
        margin-bottom: 15px;
    }

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

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

    .page-cockfighting__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        min-width: unset;
        width: 100%;
    }

    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-cockfighting__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-cockfighting__overview-grid,
    .page-cockfighting__feature-card-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__overview-item,
    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__news-card {
        padding: 20px;
    }

    .page-cockfishing__item-title,
    .page-cockfishing__feature-title,
    .page-cockfishing__promo-title,
    .page-cockfishing__news-title {
        font-size: 20px;
    }

    .page-cockfishing__overview-icon {
        width: 80px;
        height: 80px;
    }

    .page-cockfishing__feature-image,
    .page-cockfishing__promo-image,
    .page-cockfishing__news-image {
        max-width: 100%;
        height: auto;
    }

    .page-cockfishing__news-image {
        height: 180px;
    }

    .page-cockfighting__action-center {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
        color: var(--primary-color);
    }
    
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
        color: var(--primary-color);
    }
    
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
    .page-cockfighting__faq-answer p {
        font-size: 15px;
    }

    /* General image responsiveness for all images within .page-cockfighting */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover; /* Ensure images fill container while maintaining aspect ratio */
    }

    .page-cockfighting__overview-icon {
        object-fit: contain; /* Icons should be contained */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 26px;
    }
    .page-cockfighting__section-title {
        font-size: 24px;
    }
    .page-cockfishing__item-title,
    .page-cockfishing__feature-title,
    .page-cockfishing__promo-title,
    .page-cockfishing__news-title {
        font-size: 18px;
    }
    .page-cockfishing__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}