.page-cockfighting {
    background-color: #100224; /* Dark background, as per WOW88 style, or #017439 */
    color: #FFFFFF;
    font-family: Arial, sans-serif; /* Roboto-like */
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile-first, will adjust for desktop */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    background-color: #017439; /* Using the main brand color for hero background */
    position: relative;
    overflow: hidden; /* Ensure no image overflow */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/5; /* Adjust aspect ratio as needed for visual appeal */
    object-fit: cover;
    max-width: 100%; /* Ensure image doesn't overflow */
}

.page-cockfighting__hero-content {
    padding: 20px;
    max-width: 900px;
    margin-top: 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Use clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-cockfighting__hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    color: #E0E0E0;
}

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

.page-cockfighting__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 150px; /* Ensure buttons are not too small */
    text-align: center;
    font-size: 1rem;
    cursor: pointer;
}

.page-cockfighting__btn--primary {
    background: linear-gradient(90deg, #ff9500, #ff5e3a); /* Orange-red gradient */
    color: #FFFFFF;
    border: none;
}

.page-cockfighting__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 94, 58, 0.4);
}

.page-cockfighting__btn--secondary {
    background-color: #C30808; /* Red for register/login */
    color: #FFFF00; /* Yellow font for register/login */
    border: 1px solid #C30808;
}

.page-cockfighting__btn--secondary:hover {
    transform: translateY(-2px);
    background-color: #d82a2a;
}

/* General Section Styles */
.page-cockfighting__intro-section,
.page-cockfighting__features-section,
.page-cockfighting__rules-history-section,
.page-cockfighting__cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #1a0833; /* Slightly different dark background for sections */
}

.page-cockfighting__section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-cockfighting__section-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #E0E0E0;
}

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

.page-cockfighting__feature-card {
    background-color: #2e1a47; /* Card background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-cockfighting__feature-icon {
    width: 100%; /* Ensure images take full width of their container */
    max-width: 250px; /* Example max-width, adjust as needed */
    height: auto;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-cockfighting__card-text {
    font-size: 0.95rem;
    color: #E0E0E0;
}

/* Rules & History Section */
.page-cockfighting__rules-history-section {
    background-color: #017439; /* Use main color for this section */
    padding: 80px 20px;
}

.page-cockfighting__content-wrapper {
    display: flex;
    flex-direction: column; /* Default to column */
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 40px;
}

.page-cockfighting__text-content {
    flex: 1;
    max-width: 600px;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-cockfighting__text-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #E0E0E0;
}

.page-cockfighting__btn--text {
    background: none;
    color: #FFFF00; /* Yellow text for internal link */
    padding: 0;
    margin-bottom: 30px;
    display: inline-block;
    border: none;
    text-align: left;
    min-width: unset;
    font-size: 1rem;
    text-decoration: underline;
}

.page-cockfighting__btn--text:hover {
    color: #ffd700;
    transform: none;
}

.page-cockfighting__sub-title--history {
    margin-top: 30px;
}

.page-cockfighting__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px; /* Constrain image width */
}

.page-cockfighting__history-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* CTA Section */
.page-cockfighting__cta-section {
    background-color: #1a0833;
    padding: 80px 20px;
}

.page-cockfighting__btn--cta {
    background: linear-gradient(90deg, #ff9500, #ff5e3a);
    color: #FFFFFF;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-top: 30px;
}

.page-cockfighting__btn--cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 94, 58, 0.5);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .page-cockfighting__hero-section {
        flex-direction: column;
        padding-bottom: 60px;
    }

    .page-cockfighting__hero-content {
        margin-top: 40px;
    }

    .page-cockfighting__content-wrapper {
        flex-direction: row; /* Desktop: row layout */
        text-align: left;
    }

    .page-cockfighting__text-content {
        padding-right: 30px; /* Add some spacing */
    }

    .page-cockfighting__image-content {
        padding-left: 30px; /* Add some spacing */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-image,
    .page-cockfighting__feature-icon,
    .page-cockfighting__history-image {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__btn {
        width: 100%; /* Full width buttons on small screens */
        max-width: 280px;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Ensure content area images are not too small on mobile */
@media (max-width: 768px) {
    .page-cockfighting img {
        max-width: 100%;
        height: auto;
    }
    /* Specific rules for content images to ensure min-size is respected */
    .page-cockfighting__feature-icon,
    .page-cockfighting__history-image {
        min-width: 200px; /* Keep minimum width even on mobile */
        min-height: 200px; /* Keep minimum height even on mobile */
        object-fit: cover; /* Ensure image covers the area */
    }
}