:root {
    --color-primary: #113B7A;
    --color-secondary: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border: #244D84;
    --glow: #4FA8FF;
    --gold: #F2C14E;
    --divider: #1B3357;
    --color-deep-navy: #08162B;
}

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

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

.page-cockfighting__section-title {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(79, 168, 255, 0.3);
}

.page-cockfighting__sub-title,
.page-cockfighting__game-title,
.page-cockfighting__step-title,
.page-cockfighting__feature-title,
.page-cockfighting__tip-title {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 15px;
}

.page-cockfighting__paragraph,
.page-cockfighting__section-description,
.page-cockfighting__game-description,
.page-cockfighting__step-description,
.page-cockfighting__feature-description,
.page-cockfighting__tip-description,
.page-cockfighting__faq-answer p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

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

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap with image, but content is below */
    background: linear-gradient(0deg, var(--color-deep-navy) 0%, rgba(8, 22, 43, 0.8) 50%, rgba(8, 22, 43, 0) 100%);
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px var(--glow);
}

.page-cockfighting__subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(17, 59, 122, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 8px 20px rgba(17, 59, 122, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(43, 115, 246, 0.1);
    border-color: #2B73F6;
    color: #2B73F6;
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 16px;
}

/* Card styles */
.page-cockfighting__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Image styles (general for content images) */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Specific sections */
.page-cockfighting__intro-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    background-color: var(--color-deep-navy);
}

.page-cockfighting__game-types-section,
.page-cockfighting__features-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--color-deep-navy);
}

/* Content Grid for Intro Section */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__text-block {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: left;
}

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

.page-cockfighting__game-card {
    padding: 20px;
}

.page-cockfighting__game-image {
    width: 400px; 
    height: 300px; 
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

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

.page-cockfighting__step-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-cockfighting__step-icon img {
    width: 200px; /* Enforce min 200px as per rules */
    height: 200px; /* Enforce min 200px as per rules */
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-cockfighting__feature-card {
    padding: 20px;
}

.page-cockfighting__feature-icon {
    width: 200px; /* Enforce min 200px as per rules */
    height: 200px; /* Enforce min 200px as per rules */
    object-fit: contain;
    margin-bottom: 20px;
}

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

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

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--text-main);
}
.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 18px;
    color: var(--text-secondary);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    text-align: center;
}

.page-cockfighting__conclusion-section .page-cockfighting__paragraph {
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Responsive styles for 1024px */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 20px 30px;
    }
    .page-cockfighting__hero-content {
        margin-top: -80px;
    }
}

/* Responsive styles for 768px (Mobile) */
@media (max-width: 768px) {
    /* General */
    .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-cockfighting__sub-title,
    .page-cockfighting__game-title,
    .page-cockfighting__step-title,
    .page-cockfighting__feature-title,
    .page-cockfighting__tip-title {
        font-size: clamp(20px, 5vw, 28px);
    }

    .page-cockfighting__paragraph,
    .page-cockfighting__section-description,
    .page-cockfighting__game-description,
    .page-cockfighting__step-description,
    .page-cockfighting__feature-description,
    .page-cockfighting__tip-description,
    .page-cockfighting__faq-answer p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
        min-height: auto;
    }

    .page-cockfighting__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        max-height: none !important;
    }

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

    .page-cockfighting__main-title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .page-cockfighting__subtitle {
        font-size: 18px;
    }

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

    /* Buttons */
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}