/* style/cockfighting.css */

/* Global styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--secondary-color, #1A1A1A); /* Ensure dark background */
}

/* Fixed header offset */
.page-cockfighting {
    padding-top: var(--header-offset, 120px); /* Apply for desktop and mobile */
}

/* Container for content sections */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color, #FFD700); /* Gold color for titles */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__sub-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Text blocks */
.page-cockfighting__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* List styles */
.page-cockfighting__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
    color: #f0f0f0;
}

.page-cockfighting__list li {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Image row */
.page-cockfighting__image-row {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
}

.page-cockfighting__content-image {
    width: 100%;
    max-width: 580px; /* Max width for two images side by side */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Background color variants */
.page-cockfighting__dark-bg {
    background-color: var(--secondary-color, #1A1A1A);
    color: #f0f0f0;
}

.page-cockfighting__light-bg {
    background-color: #2a2a2a; /* Slightly lighter dark for contrast sections */
    color: #f0f0f0;
}

/* --- Video Section --- */
.page-cockfighting__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset); /* Use header offset */
    background-color: #000; /* Dark background for video */
}

.page-cockfighting__video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none; /* Prevents video controls from interfering with click event on parent <a> */
}

.page-cockfighting__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-cockfighting__video-link:hover .page-cockfighting__video-overlay {
    opacity: 1;
}

.page-cockfighting__video-click-hint {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    padding: 12px 25px;
    background: rgba(255, 215, 0, 0.8); /* Golden primary color with transparency */
    border-radius: 8px;
    white-space: nowrap;
    border: 1px solid #FFD700;
}

.page-cockfighting__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.page-cockfighting__play-now-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--primary-color, #FFD700);
    color: #1A1A1A; /* Dark text for golden button */
    text-decoration: none;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.page-cockfighting__play-now-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-cockfighting__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* --- Hero Section (Module 1) --- */
.page-cockfighting__hero-section {
    padding: 80px 20px;
    text-align: center;
    background-image: url('[GALLERY:hero_cockfighting_main:1920x1080:mt68 vip, dynamic cockfighting action, vibrant arena, excited crowd, golden and black theme]');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.page-cockfighting__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 1;
}

.page-cockfighting__hero-section .page-cockfighting__container {
    position: relative;
    z-index: 2;
}

.page-cockfighting__main-title {
    font-size: 52px;
    color: var(--primary-color, #FFD700);
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.page-cockfighting__description {
    font-size: 22px;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 16px 45px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.page-cockfighting__btn-primary {
    background: var(--primary-color, #FFD700);
    color: #1A1A1A;
    border: 2px solid var(--primary-color, #FFD700);
}

.page-cockfighting__btn-primary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--primary-color, #FFD700);
    border: 2px solid var(--primary-color, #FFD700);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--primary-color, #FFD700);
    color: #1A1A1A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

/* --- FAQ Section (Module 2) --- */
.page-cockfighting__faq-section {
    padding: 60px 20px;
}

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

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #2a2a2a; /* Slightly lighter dark for FAQ items */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #333; /* Darker background for question */
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting__faq-question:hover {
    background: #444;
    border-color: #555;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #f0f0f0;
    pointer-events: none;
}

.page-cockfighting__faq-toggle {
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color, #FFD700);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Rotate to form 'X' or keep '-' */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background-color: #2a2a2a;
    border-top: 1px solid #444;
    color: #d0d0d0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

/* --- Brand Section (Module 3) --- */
.page-cockfighting__brand-section {
    padding: 60px 20px;
}

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

.page-cockfighting__brand-item {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__brand-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__brand-item-title {
    font-size: 24px;
    color: var(--primary-color, #FFD700);
    margin-bottom: 15px;
    font-weight: bold;
}

/* --- Blog Section (Module 4) --- */
.page-cockfighting__blog-section {
    padding: 60px 20px;
}

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

.page-cockfighting__blog-item {
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__blog-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.page-cockfighting__blog-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for thumbnails */
    object-fit: cover;
    border-bottom: 1px solid #444;
}

.page-cockfighting__blog-item-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color, #FFD700);
    padding: 20px 20px 10px;
    line-height: 1.3;
}

.page-cockfighting__blog-item-excerpt {
    font-size: 16px;
    color: #d0d0d0;
    padding: 0 20px 15px;
}

.page-cockfighting__blog-item-date {
    display: block;
    font-size: 14px;
    color: #888;
    padding: 0 20px 20px;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 44px;
    }
    .page-cockfighting__description {
        font-size: 20px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__sub-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    /* General mobile padding adjustment */
    .page-cockfighting__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Header offset for mobile */
    .page-cockfighting {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Video Section Mobile */
    .page-cockfighting__video-section {
        padding: 30px 15px;
        padding-top: var(--header-offset, 120px) !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-cockfighting__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px;
        overflow: hidden !important;
    }
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        object-fit: contain; /* Use contain to ensure full video is visible */
    }
    .page-cockfighting__video-click-hint {
        font-size: 16px !important;
        padding: 10px 20px !important;
    }
    .page-cockfighting__video-cta {
        margin-top: 25px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-cockfighting__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px 30px !important;
        font-size: 18px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Hero Section Mobile */
    .page-cockfighting__hero-section {
        padding: 60px 15px;
    }
    .page-cockfighting__main-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    .page-cockfighting__description {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 25px !important;
        font-size: 18px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Section Titles */
    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: 22px;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    .page-cockfighting__text-block {
        font-size: 16px;
    }
    .page-cockfighting__list li {
        font-size: 16px;
    }

    /* Image Row Mobile */
    .page-cockfighting__image-row {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Section Mobile */
    .page-cockfighting__faq-section {
        padding: 40px 15px;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
        margin-left: 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px !important;
    }

    /* Brand Section Mobile */
    .page-cockfighting__brand-section {
        padding: 40px 15px;
    }
    .page-cockfighting__brand-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__brand-item {
        padding: 25px;
    }
    .page-cockfighting__brand-icon {
        max-width: 200px;
    }
    .page-cockfighting__brand-item-title {
        font-size: 20px;
    }

    /* Blog Section Mobile */
    .page-cockfighting__blog-section {
        padding: 40px 15px;
    }
    .page-cockfighting__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__blog-thumbnail {
        height: 180px;
    }
    .page-cockfighting__blog-item-title {
        font-size: 18px;
        padding: 15px 15px 8px;
    }
    .page-cockfighting__blog-item-excerpt,
    .page-cockfighting__blog-item-date {
        font-size: 14px;
        padding: 0 15px 15px;
    }
    .page-cockfighting__blog-item-date {
        padding-bottom: 15px;
    }
    .page-cockfighting__view-all-button-container {
        margin-top: 30px;
    }
}

/* Ensure all images are responsive by default */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure all video elements are responsive by default */
.page-cockfighting video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General button responsiveness */
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Mobile specific overrides for images, videos, and buttons */
@media (max-width: 768px) {
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__hero-section,
    .page-cockfighting__game-overview,
    .page-cockfighting__faq-section,
    .page-cockfighting__brand-section,
    .page-cockfighting__blog-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px;
    }
    .page-cockfighting__cta-button {
        padding-left: 15px;
        padding-right: 15px;
    }
}