/* style/cockfighting.css */

/* General page styling, ensuring light text on dark body background */
.page-cockfighting {
    color: #FFF1E8; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css #140C0C */
}

/* Container for main content, centered and max-width */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #F3C54D; /* Gold color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Card base style */
.page-cockfighting__card {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border color */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

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

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__card-title a {
    color: #FFF1E8; /* Ensure link color is readable */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting__card-title a:hover {
    color: #F3C54D; /* Gold on hover */
}

.page-cockfighting__card-date {
    font-size: 0.9em;
    color: rgba(255, 241, 232, 0.7); /* Lighter version of Text Main */
    margin-bottom: 10px;
}

.page-cockfighting__card-text {
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
    flex-grow: 1; /* Allows text to take available space */
}

.page-cockfighting__read-more {
    display: inline-block;
    margin-top: 15px;
    color: #F3C54D; /* Gold color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-cockfighting__read-more:hover {
    color: #FFB04A; /* Lighter gold on hover */
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button fits container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 176, 74, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
    box-shadow: 0 8px 20px rgba(255, 176, 74, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #F3C54D; /* Gold color */
    border: 2px solid #F3C54D; /* Gold border */
}

.page-cockfighting__btn-secondary:hover {
    background-color: #F3C54D; /* Gold background on hover */
    color: #140C0C; /* Dark text on hover */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    overflow: hidden; /* Prevent content overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

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

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: #F3C54D; /* Gold color for H1 */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__subtitle {
    font-size: 1.25em;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section & Dark Section */
.page-cockfighting__about-section,
.page-cockfighting__how-to-play-section {
    padding: 80px 0;
    background-color: #140C0C; /* Background color for dark sections */
}

.page-cockfighting__dark-section {
    background-color: #140C0C; /* Ensure dark background for text contrast */
    color: #FFF1E8; /* Light text on dark background */
}

.page-cockfighting__about-section .page-cockfighting__image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    min-height: 200px; /* Minimum image size */
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
    padding: 80px 0;
    background-color: transparent; /* Rely on body background */
}

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

/* How to Play Section */
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 800px;
}

.page-cockfighting__list-item {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border color */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__list-title {
    font-size: 1.3em;
    color: #F3C54D; /* Gold color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__list-text {
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
}

/* Blog/News Section */
.page-cockfighting__blog-section {
    padding: 80px 0;
    background-color: transparent; /* Rely on body background */
}

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

.page-cockfighting__news-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.page-cockfighting__news-card .page-cockfighting__card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsible Gaming Section */
.page-cockfighting__responsible-gaming-section {
    padding: 80px 0;
    text-align: center;
    background-color: #7E0D0D; /* Deep Red background */
    color: #FFF1E8; /* Light text */
}

.page-cockfighting__responsible-gaming-section .page-cockfighting__text-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.page-cockfighting__responsible-gaming-section a {
    color: #F3C54D; /* Gold link color */
    text-decoration: underline;
}

.page-cockfighting__responsible-gaming-section a:hover {
    color: #FFB04A;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-cockfighting__subtitle {
        font-size: 1.1em;
    }
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__about-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__blog-section,
    .page-cockfighting__responsible-gaming-section {
        padding: 50px 0;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__about-section .page-cockfighting__image {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Specific image handling for cards to ensure they fill but don't overflow */
    .page-cockfighting__feature-card .page-cockfighting__card-image,
    .page-cockfighting__news-card .page-cockfighting__card-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 180px !important;
    }
    .page-cockfighting__why-choose-section .page-cockfighting__features-grid,
    .page-cockfighting__blog-section .page-cockfighting__news-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }
    .page-cockfighting__container {
        padding: 0 10px;
    }
}