:root {
    --primary-color: #017439; /* Main brand green */
    --primary-color-darker: #006330; /* Darker shade for hover */
    --secondary-color: #FFFFFF; /* White */
    --text-dark: #333333; /* Dark text for light backgrounds */
    --text-light: #FFFFFF; /* Light text for dark backgrounds */
    --button-register-login-bg: #C30808; /* Specific for Register/Login buttons */
    --button-register-login-bg-darker: #a20606; /* Darker shade for hover */
    --button-register-login-text: #FFFF00; /* Specific font for Register/Login buttons */
    --border-color: #e0e0e0;
    --card-bg: #FFFFFF;
    --section-padding-desktop: 80px 0;
    --section-padding-mobile: 40px 15px;
}

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--secondary-color); /* Body background is light */
}

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

.page-cockfighting__container--center {
    text-align: center;
}

.page-cockfighting__heading {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-cockfighting__heading--white {
    color: var(--text-light);
}

.page-cockfighting__text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__text--white {
    color: var(--text-light);
}

.page-cockfighting__text-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-cockfighting__text-link:hover {
    color: var(--primary-color-darker);
}

.page-cockfighting__text-link--register,
.page-cockfighting__text-link--login {
    color: var(--button-register-login-bg);
}

.page-cockfighting__text-link--white {
    color: var(--text-light);
}

/* Section styles */
.page-cockfighting__section {
    padding: var(--section-padding-desktop);
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

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

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

/* Buttons */
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

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

.page-cockfighting__btn-primary:hover {
    background: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary:hover {
    background: #f0f0f0; /* Slightly grey for hover on white */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-register {
    background: var(--button-register-login-bg);
    color: var(--button-register-login-text);
}

.page-cockfighting__btn-register:hover {
    background: var(--button-register-login-bg-darker);
    color: var(--button-register-login-text);
    transform: translateY(-2px);
    box-shadow: 0 44px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-login {
    background: var(--button-register-login-bg);
    color: var(--button-register-login-text);
}

.page-cockfighting__btn-login:hover {
    background: var(--button-register-login-bg-darker);
    color: var(--button-register-login-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    border: none;
    text-align: center;
    box-sizing: border-box;
}

.page-cockfighting__btn-link:hover {
    background: var(--primary-color-darker);
}

.page-cockfighting__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-cockfighting__button-group--center {
    justify-content: center;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* As per prompt's example, for desktop */
    min-height: 600px; /* Ensure hero section has a minimum height */
}

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

.page-cockfighting__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-sizing: border-box;
}

.page-cockfighting__hero-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Grid for features and promotions */
.page-cockfighting__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cards */
.page-cockfighting__card {
    background: var(--card-bg);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-cockfighting__card-title {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: var(--primary-color);
}