/* style/cockfighting.css */

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

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

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

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
}

.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;
    filter: brightness(0.6);
}

.page-cockfighting__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: var(--text-main);
    padding: 20px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.page-cockfighting__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    width: auto; /* Default to auto, responsive will adjust */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.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);
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.page-cockfighting__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid var(--gold-color);
    padding-left: 15px;
}

.page-cockfighting__text-block {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Video Section */
.page-cockfighting__video-section {
    background-color: var(--deep-green-color);
    padding: 60px 0;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 30px auto;
    max-width: 1000px; /* Max width for the video */
    width: 100%; /* Ensure width is 100% on desktop too */
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

.page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-cockfighting__card-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 50%; /* Make icons round */
    background-color: var(--deep-green-color);
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.page-cockfighting__card-title {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

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

/* List Styles */
.page-cockfighting__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-cockfighting__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1rem;
}

.page-cockfighting__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    top: 0;
}

/* Guide Section */
.page-cockfighting__guide-list {
    list-style: none;
    padding-left: 0;
}

.page-cockfighting__guide-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider-color);
}

.page-cockfighting__guide-step-title {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

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

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

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

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid var(--divider-color);
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    background-color: var(--card-bg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__hero-content {
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
        background: linear-gradient(to top, rgba(8, 22, 15, 0.95), rgba(8, 22, 15, 0.7), transparent);
        padding-top: 80px;
        padding-bottom: 30px;
        position: absolute;
        height: auto; /* Ensure height adjusts */
    }
    .page-cockfighting__hero-image {
        filter: brightness(0.4);
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-cockfighting__description {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Max width for buttons on mobile */
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 30px;
        padding-top: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: clamp(1.3rem, 4vw, 1.7rem);
        margin-top: 25px;
    }
    .page-cockfighting__text-block {
        font-size: 0.9rem;
    }
    .page-cockfighting__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-cockfighting__type-grid,
    .page-cockfighting__benefit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__card-image {
        height: 180px;
    }
    .page-cockfighting__card-icon {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    .page-cockfighting__card-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Keep height 100% for wrapper */
        box-sizing: border-box !important;
    }
    .page-cockfighting__hero-section {
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-cockfighting__description {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-cockfighting__sub-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    .page-cockfighting__card-image {
        height: 150px;
    }
    .page-cockfighting__card-icon {
        width: 50px;
        height: 50px;
    }
    .page-cockfighting__card-title {
        font-size: 1.1rem;
    }
    .page-cockfighting__faq-question {
        font-size: 0.9rem;
    }
}

/* Global image sizing for content area */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure content images are not too small */
.page-cockfighting__intro-section .page-cockfighting__image-content,
.page-cockfighting__guide-item .page-cockfighting__image-content,
.page-cockfighting__strategy-section .page-cockfighting__image-content {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure card images are not too small */
.page-cockfighting__type-card .page-cockfighting__card-image {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure benefit card icons are not too small, but their size is fixed */
.page-cockfighting__benefit-card .page-cockfighting__card-icon {
    width: 80px; /* Fixed size, but responsive will override max-width */
    height: 80px;
    min-width: 80px;
    min-height: 80px;
}

@media (max-width: 768px) {
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Reset any padding from container */
        padding-right: 0 !important; /* Reset any padding from container */
    }
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__type-grid,
    .page-cockfighting__benefit-grid,
    .page-cockfighting__faq-list,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__video-section,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    /* Specific override for hero content to allow background gradient */
    .page-cockfighting__hero-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Ensure content area images maintain min-size or larger */
    .page-cockfighting__intro-section .page-cockfighting__image-content,
    .page-cockfighting__guide-item .page-cockfighting__image-content,
    .page-cockfighting__strategy-section .page-cockfighting__image-content,
    .page-cockfighting__type-card .page-cockfighting__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Ensure benefit card icons are not too small, but their size is fixed */
    .page-cockfighting__benefit-card .page-cockfighting__card-icon {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
    }
}