/* style/cockfighting.css */

:root {
    --primary-color: #017439; /* Main brand green */
    --secondary-color: #FFFFFF; /* Main brand white */
    --accent-color-register: #C30808; /* Specific for register button */
    --accent-color-login: #C30808; /* Specific for login button */
    --text-color-register-login: #FFFF00; /* Original specified color, but overridden for contrast */
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --dark-bg-section: #017439; /* Use primary color for dark sections */
}

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

/* --- 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); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a8a60 100%); /* Gradient background for visual appeal */
    color: var(--light-text-color);
}

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

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-cockfighting__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__intro-text {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text-color);
}

.page-cockfighting__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background: var(--accent-color-register); /* #C30808 */
    color: var(--light-text-color); /* #FFFFFF for contrast */
    border-color: var(--accent-color-register);
}

.page-cockfighting__btn-primary:hover {
    background: #e00a0a; /* Slightly darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
    background: var(--accent-color-login); /* #C30808 */
    color: var(--light-text-color); /* #FFFFFF for contrast */
    border-color: var(--accent-color-login);
}

.page-cockfighting__btn-secondary:hover {
    background: #e00a0a; /* Slightly darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- General Section Styling --- */
.page-cockfighting__section {
    padding: 80px 20px;
    text-align: center;
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some horizontal padding for content */
}

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

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

.page-cockfighting__section-title {
    font-size: 38px;
    margin-bottom: 30px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-cockfighting__text-block {
    font-size: 17px;
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Highlight text - adjusted for contrast */
.page-cockfighting__dark-section .page-cockfighting__highlight-text {
    font-weight: bold;
    color: var(--light-text-color); /* White text on dark green background */
}

.page-cockfighting__light-bg .page-cockfighting__highlight-text {
    font-weight: bold;
    color: var(--primary-color); /* Dark green text on white background */
}

.page-cockfighting__image-full {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
    object-fit: cover;
}

.page-cockfighting__image-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
    object-fit: cover;
}

/* --- Grid Layout for Kèo Đá Gà --- */
.page-cockfighting__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background: var(--card-bg);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-cockfighting__card p {
    font-size: 16px;
    line-height: 1.7;
}

/* --- Steps Grid --- */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.page-cockfighting__step-item {
    background: rgba(255, 255, 255, 0.1); /* Light background for dark section */
    color: var(--light-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Step number - adjusted for contrast */
.page-cockfighting__step-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--light-text-color); /* #FFFFFF for contrast */
    margin-bottom: 15px;
    background: var(--primary-color); /* #017439 */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__step-item p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Small button - adjusted for contrast */
.page-cockfighting__btn-small {
    display: inline-block;
    padding: 10px 25px;
    background: var(--text-color-register-login); /* #FFFF00 */
    color: #000000; /* Use black for better contrast on yellow */
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-small:hover {
    background: #ffd700; /* Slightly darker yellow on hover */
    transform: translateY(-2px);
}

/* --- Advantages List --- */
.page-cockfighting__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__advantages-list li {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__advantages-list li strong {
    color: var(--primary-color);
    margin-right: 10px;
}

/* --- Promotion Grid --- */
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__promo-card {
    background: rgba(255, 255, 255, 0.1); /* Light background for dark section */
    color: var(--light-text-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Promo title - adjusted for contrast */
.page-cockfighting__promo-card .page-cockfighting__promo-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--light-text-color); /* White text on rgba(255,255,255,0.1) background in dark section for better contrast*/
}

.page-cockfighting__promo-card p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

/* --- Content Grid (Quy Định) --- */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.page-cockfighting__content-item {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Content subtitle - adjusted for contrast */
.page-cockfighting__dark-section .page-cockfighting__content-subtitle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--light-text-color); /* #FFFFFF for contrast */
}

/* --- FAQ Section --- */
.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}