/* style/cockfighting.css */

/* Custom Color Variables */
:root {
    --primary-color: #113B7A; /* Main */
    --secondary-color: #1D5FD1; /* Auxiliary */
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --color-deep-navy: #08162B; /* Body background from shared.css */
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--color-deep-navy); /* Ensure consistency, though body handles this */
}

/* Base section and container styles */
.page-cockfighting__section {
    padding: 60px 20px;
    background-color: var(--color-deep-navy);
    position: relative;
    z-index: 1;
}

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

/* Typography */
.page-cockfighting__section-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold-color);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-cockfighting h1 {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting h2 {
    font-weight: bold;
    color: var(--gold-color);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-cockfighting h3 {
    font-weight: 600;
    color: var(--text-main);
}

.page-cockfighting p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-cockfighting a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Image styles */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__image-content {
    margin: 40px auto;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width for flex item */
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(16, 35, 63, 0.7); /* Slightly transparent card background */
    backdrop-filter: blur(5px);
    margin-top: -80px; /* Overlap slightly for visual effect */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-content h1 {
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-cockfighting__hero-content p {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 25px;
}

/* CTA Button */
.page-cockfighting__cta-button,
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__cta-button:hover,
.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--gold-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


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

.page-cockfighting__grid--three-cols {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Card Styles */
.page-cockfighting__card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-secondary); /* Ensure light text on dark card */
}

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

.page-cockfighting__card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-cockfighting__card p {
    color: var(--text-secondary);
}

/* Step List (Guide Section) */
.page-cockfighting__step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
}

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

.page-cockfighting__step-item p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--color-deep-navy);
}

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

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
    font-weight: 600;
}

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

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
    background: rgba(var(--primary-color), 0.5); /* Lighter hover for dark background */
}

.page-cockfighting__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 25px 25px;
    background: var(--color-deep-navy); /* Dark background for answers */
    border-radius: 0 0 12px 12px;
    color: var(--text-secondary); /* Light text for dark answer background */
    font-size: 16px;
}

/* Blog Section */
.page-cockfighting__latest-blog-section {
    background-color: var(--color-deep-navy);
}

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

.page-cockfighting__blog-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-cockfighting__blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--divider-color);
}

.page-cockfighting__blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__blog-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-cockfighting__blog-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-cockfighting__blog-date {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.page-cockfighting__view-all {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__sub-title {
        font-size: 22px;
    }
    .page-cockfighting p {
        font-size: 15px;
    }
    .page-cockfighting__card-title {
        font-size: 20px;
    }
    .page-cockfighting__blog-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 15px;
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__hero-image img {
        border-radius: 4px;
    }

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

    .page-cockfighting__hero-content h1 {
        font-size: 28px;
    }

    .page-cockfighting__hero-content p {
        font-size: 16px;
    }

    .page-cockfighting__cta-button,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-top: 15px;
    }

    /* Button containers */
    .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: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-cockfighting__sub-title {
        font-size: 20px;
    }

    .page-cockfighting__grid,
    .page-cockfighting__grid--three-cols,
    .page-cockfighting__step-list,
    .page-cockfighting__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card,
    .page-cockfighting__step-item,
    .page-cockfighting__blog-card {
        padding: 20px;
        border-radius: 8px;
    }

    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__blog-title {
        font-size: 18px;
    }

    .page-cockfighting__blog-image {
        height: 180px;
    }

    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-qtext {
        font-size: 16px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
        padding: 0 20px 20px;
    }
    
    /* Ensure all images are responsive */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__card,
    .page-cockfighting__text-block,
    .page-cockfighting__step-item,
    .page-cockfighting__blog-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Override for container inside sections to remove double padding */
    .page-cockfighting__section > .page-cockfighting__container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Ensure content images are at least 200px */
.page-cockfighting__image-content {
    min-width: 200px;
    min-height: 200px;
}
.page-cockfighting__blog-image {
    min-width: 200px;
    min-height: 200px;
}