/* style/cockfighting.css */

/* Custom CSS Variables based on provided color scheme */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-color-primary: #08160F; /* Background */
    --bg-color-card: #11271B; /* Card Background */
    --text-color-main: #F2FFF6; /* Main Text */
    --text-color-secondary: #A7D9B8; /* Secondary Text */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green-color: #0A4B2C; /* Deep Green */
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-main); /* Light text for dark background */
    background-color: var(--bg-color-primary); /* Ensure consistency if body background is not fully dark */
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--deep-green-color);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 40px 20px 60px;
    z-index: 1;
}

.page-cockfighting__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__intro-text {
    font-size: clamp(1em, 1.5vw, 1.25em);
    color: var(--text-color-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 0;
    background-color: var(--bg-color-primary);
    color: var(--text-color-main);
}

.page-cockfighting__section--dark {
    background-color: var(--deep-green-color);
}

.page-cockfighting__section--cta {
    background-image: linear-gradient(rgba(17, 40, 27, 0.8), rgba(17, 40, 27, 0.8)), url('[GALLERY:bg:1920x1080:cockfighting,cta_background,bsports_casino_promotion,online_gambling]'); /* Placeholder for a background image */
    background-size: cover;
    background-position: center;
    text-align: center;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding/border included in width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-color-main); /* White text on dark gradient */
    border: none;
}

.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(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-text-link {
    color: var(--gold-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 0.95em;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-text-link:hover {
    color: var(--glow-color);
}

/* Card styles */
.page-cockfighting__card {
    background-color: var(--bg-color-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-main);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-cockfighting__game-type-card {
    padding: 0; /* Remove padding from card to allow image to span full width */
    overflow: hidden; /* Ensure image corners are rounded with card */
}

.page-cockfighting__game-type-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 12px 12px 0 0; /* Match card border radius */
    margin-bottom: 15px;
    display: block; /* Remove extra space below image */
}

.page-cockfighting__game-type-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 8px;
    font-weight: 600;
    padding: 0 25px; /* Add back card padding for text */
}

.page-cockfighting__game-type-text {
    font-size: 0.9em;
    color: var(--text-color-secondary);
    padding: 0 25px 25px; /* Add back card padding for text */
}

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

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

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-color-main);
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--glow-color);
}

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

.page-cockfighting__step-text {
    font-size: 0.95em;
    color: var(--text-color-secondary);
    margin-bottom: 15px;
}

/* Strategy Section */
.page-cockfighting__strategy-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-cockfighting__strategy-text-block {
    flex: 2;
}

.page-cockfighting__strategy-subtitle {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__strategy-paragraph {
    font-size: 1em;
    color: var(--text-color-secondary);
    margin-bottom: 15px;
}

.page-cockfighting__strategy-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--gold-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

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

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

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

/* Images within content sections */
.page-cockfighting__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-cockfighting__image-faq {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 30px 20px 50px;
    }

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

    .page-cockfighting__intro-text {
        font-size: clamp(0.95em, 1.6vw, 1.2em);
    }

    .page-cockfighting__strategy-content {
        flex-direction: column;
        align-items: center;
    }

    .page-cockfighting__strategy-image {
        max-width: 100%;
        margin-top: 30px;
    }
}

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

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

    .page-cockfighting__hero-section {
        padding: 10px 0 40px;
    }

    .page-cockfighting__hero-image-wrapper {
        max-height: 400px;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-content {
        padding: 20px 15px 30px;
    }

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

    .page-cockfighting__intro-text {
        font-size: clamp(0.9em, 3.5vw, 1.1em);
        margin-bottom: 20px;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }

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

    .page-cockfighting__section-description {
        font-size: clamp(0.85em, 3.5vw, 1em);
        margin-bottom: 30px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container of buttons */
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 15px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__game-types-grid,
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-cockfighting__game-type-image {
        height: 180px;
    }

    .page-cockfighting__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-cockfighting__strategy-subtitle {
        font-size: 1.3em;
        margin-top: 20px;
        margin-bottom: 10px;
    }

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

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

    /* Mobile image responsiveness */
    .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 {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Video section top padding for mobile (if video exists, but this page doesn't have one) */
    .page-cockfighting__video-section {
      padding-top: 10px !important; /* body already handles --header-offset, this is for aesthetic */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-image-wrapper {
        max-height: 250px;
    }

    .page-cockfighting__game-type-image {
        height: 150px;
    }
}