/* style/cockfighting.css */

/* Base styles for the page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color, #F2FFF6); /* Default text color for dark background */
    background-color: var(--bg-color, #08160F); /* Main background color */
    line-height: 1.6;
}

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

/* Section styling */
.page-cockfighting__hero-section,
.page-cockfighting__introduction-section,
.page-cockfighting__video-section,
.page-cockfighting__types-section,
.page-cockfighting__rules-betting-section,
.page-cockfighting__strategy-section,
.page-cockfighting__security-fairness-section,
.page-cockfighting__promotions-section,
.page-cockfighting__registration-guide-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 60px 0;
    text-align: center;
}

/* Specific section background colors */
.page-cockfighting__dark-section {
    background-color: var(--bg-color, #08160F);
    color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting__hero-section {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #F2FFF6;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 0;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px;
    background: rgba(17, 40, 27, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transform: translateY(-50px);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: bold;
    color: var(--gold-color, #F2C14E);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-cockfighting__tagline {
    font-size: 1.1em;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 30px;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: var(--gold-color, #F2C14E);
    margin-bottom: 30px;
    font-weight: bold;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.4em, 3vw, 2em);
    color: var(--text-main-color, #F2FFF6);
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-cockfighting__text-block {
    font-size: 1em;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--gold-color, #F2C14E);
    border: 2px solid var(--gold-color, #F2C14E);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--gold-color, #F2C14E);
    color: #08160F;
    transform: translateY(-2px);
}

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

.page-cockfighting__feature-item {
    background-color: var(--card-bg-color, #11271B);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: var(--text-main-color, #F2FFF6);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-cockfighting__feature-title {
    font-size: 1.4em;
    color: var(--gold-color, #F2C14E);
    margin-bottom: 10px;
}

.page-cockfighting__feature-description {
    font-size: 0.95em;
    color: var(--text-secondary-color, #A7D9B8);
}

/* Video section */
.page-cockfighting__video-section {
    padding-top: 10px;
    background-color: var(--bg-color, #08160F);
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    width: 100%;
}

.page-cockfighting__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Type cards */
.page-cockfighting__type-cards,
.page-cockfighting__strategy-cards,
.page-cockfighting__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background-color: var(--card-bg-color, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: left;
    color: var(--text-main-color, #F2FFF6);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.3em;
    color: var(--gold-color, #F2C14E);
    padding: 15px 20px 10px;
    margin: 0;
}

.page-cockfighting__card-description {
    font-size: 0.9em;
    color: var(--text-secondary-color, #A7D9B8);
    padding: 0 20px 20px;
    flex-grow: 1;
}

/* Lists */
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-cockfighting__list-item {
    background-color: var(--card-bg-color, #11271B);
    border: 1px solid var(--divider-color, #1E3A2A);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    color: var(--text-secondary-color, #A7D9B8);
    font-size: 1em;
}

.page-cockfighting__list-item strong {
    color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting__list--two-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .page-cockfighting__list--two-cols {
        grid-template-columns: 1fr 1fr;
    }
}

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

.page-cockfighting__step-item {
    background-color: var(--card-bg-color, #11271B);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: var(--text-main-color, #F2FFF6);
    text-align: center;
    position: relative;
}

.page-cockfighting__step-number {
    width: 50px;
    height: 50px;
    background-color: var(--gold-color, #F2C14E);
    color: #08160F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: -55px auto 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-cockfighting__step-item:first-child .page-cockfighting__step-number {
    margin-top: -55px;
}


.page-cockfighting__step-title {
    font-size: 1.3em;
    color: var(--gold-color, #F2C14E);
    margin-bottom: 10px;
}

.page-cockfighting__step-description {
    font-size: 0.95em;
    color: var(--text-secondary-color, #A7D9B8);
}

/* FAQ section */
.page-cockfighting__faq-section {
    background-color: var(--bg-color, #08160F);
}

.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg-color, #11271B);
    border: 1px solid var(--divider-color, #1E3A2A);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-item summary {
    list-style: none;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-main-color, #F2FFF6);
    position: relative;
    outline: none;
}

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color, #F2C14E);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--text-main-color, #F2FFF6);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: var(--text-secondary-color, #A7D9B8);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -80px;
        transform: translateY(-40px);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
        transform: translateY(-30px);
        padding: 30px 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-cockfighting__tagline {
        font-size: 1em;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        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__features-grid,
    .page-cockfighting__type-cards,
    .page-cockfighting__strategy-cards,
    .page-cockfighting__promo-cards,
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-cockfighting__list--two-cols {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    /* Video responsive rules */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }

    /* Image responsive rules */
    .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-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__types-section,
    .page-cockfighting__rules-betting-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__security-fairness-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__registration-guide-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__card-image {
        height: 180px;
    }

    .page-cockfighting__step-number {
        margin-top: -40px;
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
    .page-cockfighting__step-item:first-child .page-cockfighting__step-number {
        margin-top: -40px;
    }
}

/* Custom color variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --bg-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Ensuring text contrast on custom backgrounds */
.page-cockfighting__card,
.page-cockfighting__feature-item,
.page-cockfighting__step-item,
.page-cockfighting__faq-item,
.page-cockfighting__list-item {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
}

.page-cockfighting__hero-content {
    background: rgba(17, 40, 27, 0.8);
}

/* Color contrast adjustments for specific elements */
.page-cockfighting__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main-color);
}

.page-cockfighting__btn-secondary {
    color: var(--gold-color);
    border-color: var(--gold-color);
}
.page-cockfighting__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--bg-color);
}

.page-cockfighting__main-title,
.page-cockfighting__section-title,
.page-cockfighting__card-title,
.page-cockfighting__feature-title,
.page-cockfighting__step-title,
.page-cockfighting__faq-qtext {
    color: var(--gold-color);
}

.page-cockfighting__tagline,
.page-cockfighting__text-block,
.page-cockfighting__feature-description,
.page-cockfighting__card-description,
.page-cockfighting__list-item,
.page-cockfighting__step-description,
.page-cockfighting__faq-answer {
    color: var(--text-secondary-color);
}

.page-cockfighting__step-number {
    background-color: var(--gold-color);
    color: var(--bg-color);
}