/* style/cockfighting.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #1A1A2E;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #1A1A2E;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Body background is dark (secondary-color), so text is light */
    background-color: var(--background-dark);
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

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

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

.page-cockfighting a:hover {
    color: #ffd000;
    text-decoration: underline;
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    margin: 10px;
}

.page-cockfighting__cta-button:hover {
    background: #ffd000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 30px auto;
}

.page-cockfighting__image--large-margin-top {
    margin-top: 60px;
}

/* 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, 120px); /* Ensure content is below fixed header */
    background-color: var(--background-dark);
}

.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.3);
}

.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 8px 25px 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; /* Prevent video controls from blocking 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 5px rgba(0, 0, 0, 0.6);
    padding: 12px 25px;
    background: rgba(var(--primary-color-rgb, 255,215,0), 0.8);
    border-radius: 30px;
    white-space: nowrap;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

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

.page-cockfighting__play-now-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-cockfighting__play-now-button:hover {
    background: #ffd000;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

/* Title Section */
.page-cockfighting__title-section {
    background-color: var(--secondary-color);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--primary-color);
}

.page-cockfighting__main-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__title-description {
    font-size: 20px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* About Cockfighting Section */
.page-cockfighting__about-cockfighting-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

.page-cockfighting__about-cockfighting-section p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* Features Section */
.page-cockfighting__features-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

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

.page-cockfighting__feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.page-cockfighting__feature-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__feature-item p {
    font-size: 16px;
    color: var(--text-light);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    border: 1px solid rgba(255, 215, 0, 0.2);
    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: #1f1f3a;
    border-color: var(--primary-color);
}

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

.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    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); /* Optional: rotate for 'x' effect */
}

.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: #15152a;
    color: var(--text-light);
}

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

/* Brand Section */
.page-cockfighting__brand-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    border-top: 5px solid var(--primary-color);
}

.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: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-cockfighting__brand-subtitle {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.page-cockfighting__brand-item p {
    font-size: 16px;
    color: var(--text-light);
    text-align: justify;
}

/* Blog Section */
.page-cockfighting__blog-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

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

.page-cockfighting__blog-item {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-cockfighting__blog-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__blog-link {
    padding: 20px;
    display: block;
    color: var(--text-light);
}

.page-cockfighting__blog-link:hover {
    text-decoration: none;
}

.page-cockfighting__blog-item-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-cockfighting__blog-item-excerpt {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-cockfighting__blog-item-date {
    font-size: 14px;
    color: #aaa;
    display: block;
}

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

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

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

    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        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;
    }

    .page-cockfighting__video-click-hint {
        font-size: 16px;
        padding: 10px 20px;
    }

    .page-cockfighting__video-cta {
        margin-top: 30px;
        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;
        border-radius: 25px;
    }

    .page-cockfighting__title-section {
        padding: 60px 15px;
    }

    .page-cockfighting__main-title {
        font-size: 36px;
    }

    .page-cockfighting__title-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;
        margin: 0;
        padding: 15px 20px;
        font-size: 17px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-cockfighting__about-cockfighting-section, 
    .page-cockfighting__features-section, 
    .page-cockfighting__faq-section, 
    .page-cockfighting__brand-section, 
    .page-cockfighting__blog-section {
        padding: 60px 0;
    }

    .page-cockfighting__image {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .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;
    }

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

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px !important;
    }

    .page-cockfighting__brand-subtitle {
        font-size: 20px;
    }

    .page-cockfighting__blog-item-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__blog-item-title {
        font-size: 18px;
    }

    .page-cockfighting__blog-item-excerpt {
        font-size: 15px;
    }

    /* Ensure all images within content area are responsive and not smaller than 200px */
    .page-cockfighting__container img, .page-cockfighting__about-cockfighting-section img, .page-cockfighting__features-section img, .page-cockfighting__blog-section img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      min-width: 200px !important; /* Enforce minimum size */
      min-height: 200px !important; /* Enforce minimum size */
      box-sizing: border-box !important;
    }
    .page-cockfighting__blog-item-image {
        height: 200px; /* Maintain height for consistent card look */
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 32px;
    }
    .page-cockfighting__section-title {
        font-size: 24px;
    }
    .page-cockfighting__play-now-button {
        font-size: 18px !important;
        padding: 12px 25px !important;
    }
    .page-cockfighting__video-click-hint {
        font-size: 14px;
        padding: 8px 16px;
    }
}