/* style/cockfighting.css */

/* Base Styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Body background from shared.css */
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-cockfighting__description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: #555555;
}

.page-cockfighting__center-text {
    text-align: center;
}

.page-cockfighting__highlight {
    color: #017439;
    font-weight: bold;
}

/* Button Styles */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #d11a1a;
    border-color: #d11a1a;
}

.page-cockfighting__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-cockfighting__btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-cockfighting__btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding: 120px 20px 80px; /* Base padding, header offset handled by shared.css body padding-top */
    text-align: center;
    overflow: hidden;
}

.page-cockfighting__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__description,
.page-cockfighting__dark-bg .page-cockfighting__hero-title {
    color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title::after {
    background-color: #ffffff;
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #444444;
}

.page-cockfighting__image-wrapper {
    text-align: center;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block; /* Ensures max-width works correctly */
    margin: 0 auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Advantages Section */
.page-cockfighting__advantages-section {
    padding: 80px 0;
}

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

.page-cockfighting__advantage-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-cockfighting__advantage-icon {
    width: 100%; /* Adjusted to be responsive */
    height: auto;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__advantage-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-cockfighting__advantage-description {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.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: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: #333333;
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__step-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-cockfighting__video-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #ffffff;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Limit max width for video */
    width: 100%;
    background: #000;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.page-cockfighting__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2; /* Make the link clickable over the video */
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-cockfighting__video-cta {
    font-size: 1.1em;
    margin-top: 30px;
    color: #ffffff;
    font-weight: bold;
}

/* Game Types Section */
.page-cockfighting__game-types-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-cockfighting__game-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: #333333;
}

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

.page-cockfighting__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-cockfighting__game-title {
    font-size: 1.4em;
    color: #017439;
    margin: 20px 15px 10px;
}

.page-cockfighting__game-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px;
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 80px 0;
}

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

.page-cockfighting__tip-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    color: #333333;
}

.page-cockfighting__tip-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-cockfighting__tip-description {
    font-size: 1em;
    color: #555555;
}

.page-cockfighting__center-buttons {
    margin-top: 50px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-cockfighting__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e6f7ed; /* Lighter shade of brand green */
    border-bottom: 1px solid #d0e8d7;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #d0e8d7;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    flex-grow: 1;
    color: #017439;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* Call to Action Section */
.page-cockfighting__call-to-action {
    padding: 80px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__text-block {
        order: 2;
    }
    .page-cockfighting__image-wrapper {
        order: 1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        padding-bottom: 60px;
    }

    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }

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

    /* Mobile responsive images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }
    
    /* Ensure image containers are responsive */
    .page-cockfighting__image-wrapper,
    .page-cockfighting__advantage-card,
    .page-cockfighting__game-card,
    .page-cockfighting__tip-card,
    .page-cockfighting__step-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Mobile responsive videos */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    /* Specific padding-top for video section on mobile if needed */
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Mobile responsive 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;
    }
    
    /* Button containers mobile adaptation */
    .page-cockfighting__hero-buttons,
    .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: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important; /* Adjust gap for stacked buttons */
    }

    .page-cockfighting__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-title {
        font-size: 1.6em;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 10px 20px;
    }
}

/* Ensure content area images maintain min-size and don't get too small */
.page-cockfighting__content-area img,
.page-cockfighting__game-image,
.page-cockfighting__advantage-icon {
    min-width: 200px;
    min-height: 200px;
}