/* style/cockfighting.css */

/* Root variables for general spacing */
:root {
    --page-cockfighting-content-max-width: 1200px;
    --page-cockfighting-padding-x: 20px;
    --page-cockfighting-gap-spacing: 30px;
    /* Custom colors */
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 1.05rem;
}

.page-cockfighting__container {
    max-width: var(--page-cockfighting-content-max-width);
    margin: 0 auto;
    padding-left: var(--page-cockfighting-padding-x);
    padding-right: var(--page-cockfighting-padding-x);
    box-sizing: border-box;
}

/* Section titles */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
    font-size: 1rem;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--deep-green-color); /* Darker text for gold background */
    transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
}

.page-cockfighting__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-color);
}

.page-cockfighting__hero-image {
    width: 100%;
    max-width: var(--page-cockfighting-content-max-width);
    height: auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 40px; /* Space between image and content */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 var(--page-cockfighting-padding-x);
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-cockfighting__main-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.page-cockfighting__cta-buttons--center {
    margin-top: 40px;
}

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

.page-cockfighting__content-grid {
    display: flex;
    gap: var(--page-cockfighting-gap-spacing);
    align-items: center;
}

.page-cockfighting__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-cockfighting__text-block {
    flex: 1;
    color: var(--text-main);
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-cockfighting__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--page-cockfighting-gap-spacing);
}

.page-cockfighting__type-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.page-cockfighting__type-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__type-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-cockfighting__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__card-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.page-cockfighting__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--page-cockfighting-gap-spacing);
}

.page-cockfighting__step-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.page-cockfighting__step-card .page-cockfighting__card-title {
    color: var(--gold-color);
}

.page-cockfighting__step-card .page-cockfighting__card-text {
    flex-grow: 1;
    margin-bottom: 20px;
}

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

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

.page-cockfighting__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--page-cockfighting-gap-spacing);
}

.page-cockfighting__advantage-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.page-cockfighting__advantage-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__advantage-icon {
    width: 200px; /* Min size for content images */
    height: 200px; /* Min size for content images */
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}


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

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--divider-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--gold-color);
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}

.page-cockfighting__faq-answer .page-cockfighting__btn-small {
    margin-top: 10px;
}

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

.page-cockfighting__conclusion-section .page-cockfighting__container {
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-cockfighting__conclusion-section .page-cockfighting__section-title {
    color: var(--gold-color);
}

.page-cockfighting__conclusion-section .page-cockfighting__section-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image {
        margin-bottom: 30px;
    }

    .page-cockfighting__content-grid {
        flex-direction: column;
    }

    .page-cockfighting__content-grid--reverse {
        flex-direction: column; /* Also column for reverse on smaller screens */
    }

    .page-cockfighting__text-block,
    .page-cockfighting__image-wrapper {
        width: 100%;
    }
}

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

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

    .page-cockfighting__main-title {
        font-size: 2.2rem;
    }

    .page-cockfighting__main-description {
        font-size: 1rem;
    }

    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }

    .page-cockfighting__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* All images responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All video responsive (if any) */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that hold images/videos/buttons */
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__intro-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section,
    .page-cockfighting__type-card,
    .page-cockfighting__step-card,
    .page-cockfighting__advantage-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    .page-cockfighting__conclusion-section .page-cockfighting__container {
        padding: 30px 15px;
    }
    
    .page-cockfighting__advantage-icon {
        width: 150px; /* Adjust to be larger than 200px equivalent display */
        height: 150px;
        max-width: 150px;
        max-height: 150px;
    }

    .page-cockfighting__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.5rem;
    }
}