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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
}

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

.page-cockfighting__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__section-description {
    font-size: clamp(1em, 2vw, 1.1em);
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--glow-color-rgb, 87, 227, 141), 0.4);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb, 17, 168, 78), 0.4);
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__cta-buttons--centered {
    margin-top: 50px;
    margin-bottom: 30px;
}

.page-cockfighting__card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb, 17, 168, 78), 0.3);
}

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

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8);
    display: block;
}

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

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 5vw, 4em);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--gold-color);
    text-shadow: 0 0 15px rgba(var(--gold-color-rgb, 242, 193, 78), 0.6);
}

.page-cockfighting__hero-description {
    font-size: clamp(1.1em, 2.2vw, 1.3em);
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-cockfighting__feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    display: block;
}

.page-cockfighting__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__feature-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 80px 0;
    background-color: var(--deep-green);
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    margin: 40px auto;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(var(--glow-color-rgb, 87, 227, 141), 0.5);
    box-sizing: border-box;
}

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

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.page-cockfighting__video-caption {
    margin-top: 20px;
    font-size: 1.1em;
    color: var(--text-secondary);
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.page-cockfighting__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__step-card {
    text-align: center;
}

.page-cockfighting__step-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    display: block;
}

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

.page-cockfighting__step-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 80px 0;
    background-color: var(--deep-green);
}

.page-cockfighting__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__tip-card {
    text-align: left;
}

.page-cockfighting__tip-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-cockfighting__tip-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.page-cockfighting__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__promo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    display: block;
}

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

.page-cockfighting__promo-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--deep-green);
}

.page-cockfighting__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid var(--divider-color);
    transition: background 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
    background: var(--deep-green);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    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: 15px 25px 20px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    text-align: center;
}

.page-cockfighting__cta-final-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2.2em, 4.5vw, 3.5em);
    }

    .page-cockfighting__hero-description {
        font-size: clamp(1em, 2vw, 1.2em);
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__tips-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

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

    .page-cockfighting__section-description {
        font-size: clamp(0.95em, 1.8vw, 1.05em);
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

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

    /* Mobile image adaptation */
    .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__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

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

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

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 1.1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__tips-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__feature-image,
    .page-cockfighting__step-image,
    .page-cockfighting__promo-image {
        height: 180px;
    }

    .page-cockfighting__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-cockfighting__faq-answer {
        padding: 15px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

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

    .page-cockfighting__section-description {
        font-size: 0.9em;
    }

    .page-cockfighting__cta-buttons {
        gap: 10px;
    }

    .page-cockfighting__feature-image,
    .page-cockfighting__step-image,
    .page-cockfighting__promo-image {
        height: 150px;
    }
}

/* Ensure all content images (not header/footer shared icons) are at least 200px wide/high */
.page-cockfighting__feature-image,
.page-cockfighting__step-image,
.page-cockfighting__promo-image,
.page-cockfighting__hero-image {
  min-width: 200px;
  min-height: 200px; /* Ensure images meet minimum size requirement */
}

/* Content area images CSS size lower bound */
.page-cockfighting img {
  /* This rule applies to all images within .page-cockfighting */
  /* It should not make the display size smaller than 200px. */
  /* Example: if HTML width=400 height=300, CSS should not force it to 80x80 */
  /* Max-width: 100% and height: auto are fine for responsiveness */
  /* Specific image classes can override with larger fixed sizes if needed */
}