/* style/g.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --card-bg: #11271B; /* Card BG */
    --background-dark: #08160F; /* Background */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page content, ensuring contrast with shared body background */
/* Assuming body background is dark (var(--background) from shared.css is #08160F) */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--background-dark); /* Ensure consistency if main has its own background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: var(--deep-green); /* Fallback */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    color: var(--text-main);
}

.page-cockfighting__main-title {
    font-size: 3.2em;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: justify;
    margin-bottom: 20px;
}

.page-cockfighting__text-block--secondary {
    color: var(--text-secondary);
}

.page-cockfighting__text-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* General Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__types-of-cockfighting-section,
.page-cockfighting__betting-options-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__responsible-gaming-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-cockfighting__dark-section {
    background-color: var(--deep-green);
    color: var(--text-main);
}

/* Grid Layouts */
.page-cockfighting__features-grid,
.page-cockfighting__advantages-grid,
.page-cockfighting__promotion-grid,
.page-cockfighting__type-grid,
.page-cockfighting__betting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Cards */
.page-cockfighting__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main); /* Ensure text contrast */
}

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

.page-cockfighting__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__feature-title,
.page-cockfighting__advantage-title,
.page-cockfighting__promotion-title,
.page-cockfighting__type-title,
.page-cockfighting__betting-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__feature-text,
.page-cockfighting__advantage-text,
.page-cockfighting__promotion-description,
.page-cockfighting__type-text,
.page-cockfighting__betting-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

.page-cockfighting__card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-cockfighting__card-link:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Step-by-step */
.page-cockfighting__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-cockfighting__step-number {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 2px solid var(--gold-color);
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__step-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

/* Responsible Gaming */
.page-cockfighting__responsible-gaming-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.page-cockfighting__responsible-gaming-text {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__responsible-gaming-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-cockfighting__responsible-gaming-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.page-cockfighting__list {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-cockfighting__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-cockfighting__list li strong {
    color: var(--text-main);
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--gold-color);
    list-style: none;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

/* CTA Bottom */
.page-cockfighting__cta-bottom-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-cockfighting__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-cockfighting__cta-button--outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.page-cockfighting__cta-button--outline:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--gold {
    background: var(--gold-color);
    color: var(--background-dark);
}

.page-cockfighting__cta-button--gold:hover {
    background: var(--gold-color);
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section {
        min-height: 500px;
        padding-top: 10px !important;
    }

    .page-cockfighting__hero-content {
        padding: 30px 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-cockfighting__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 30px;
    }

    .page-cockfighting__sub-title {
        font-size: 1.5em;
    }

    .page-cockfighting__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__features-grid,
    .page-cockfighting__advantages-grid,
    .page-cockfighting__promotion-grid,
    .page-cockfighting__type-grid,
    .page-cockfighting__betting-grid,
    .page-cockfighting__responsible-gaming-content,
    .page-cockfighting__step-by-step,
    .page-cockfighting__card,
    .page-cockfighting__feature-item,
    .page-cockfighting__advantage-card,
    .page-cockfighting__promotion-card,
    .page-cockfighting__type-card,
    .page-cockfighting__betting-card,
    .page-cockfighting__responsible-gaming-image,
    .page-cockfighting__step-item,
    .page-cockfighting__cta-wrapper,
    .page-cockfighting__faq-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__types-of-cockfighting-section,
    .page-cockfighting__betting-options-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__responsible-gaming-section,
    .page-cockfighting__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__responsible-gaming-content {
        flex-direction: column;
    }

    .page-cockfighting__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
    
    .page-cockfighting__cta-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 0 15px;
    }
    .page-cockfighting__cta-wrapper .page-cockfighting__cta-button {
        width: calc(100% - 30px);
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 9vw, 2.2em);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 8vw, 2em);
    }
    .page-cockfighting__cta-button {
        font-size: 0.95em;
        padding: 10px 20px;
    }
    .page-cockfighting__step-item {
        padding: 25px 20px 20px;
        padding-top: 50px;
    }
    .page-cockfighting__step-number {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }
}