/* style/cockfighting-betting-guide.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
}

.page-cockfighting-betting-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
}

.page-cockfighting-betting-guide__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-cockfighting-betting-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting-betting-guide__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-cockfighting-betting-guide__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
}

.page-cockfighting-betting-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-cockfighting-betting-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-cockfighting-betting-guide__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-cockfighting-betting-guide__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--text-dark);
    background-color: var(--background-color);
}

.page-cockfighting-betting-guide__section-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting-betting-guide__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-cockfighting-betting-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting-betting-guide__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-betting-guide__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-cockfighting-betting-guide__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-cockfighting-betting-guide__btn-primary,
.page-cockfighting-betting-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting-betting-guide__btn-primary {
    background-color: var(--register-color); /* Custom color for register/login */
    color: var(--register-login-font-color); /* Custom font color */
    border: 2px solid var(--register-color);
}

.page-cockfighting-betting-guide__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-cockfighting-betting-guide__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting-betting-guide__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-cockfighting-betting-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting-betting-guide__cta-buttons--bottom {
    margin-top: 50px;
    margin-bottom: 20px;
}

.page-cockfighting-betting-guide__video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background-color: #000;
    box-sizing: border-box;
}

.page-cockfighting-betting-guide__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting-betting-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.page-cockfighting-betting-guide__video-caption {
    text-align: center;
    font-style: italic;
    margin-top: 15px;
    color: var(--text-dark);
    font-size: 0.95em;
}

.page-cockfighting-betting-guide__faq-list {
    margin-top: 40px;
}

.page-cockfighting-betting-guide__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-cockfighting-betting-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease;
}

.page-cockfighting-betting-guide__faq-question:hover {
    background-color: #f0f0f0;
}

.page-cockfighting-betting-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-cockfighting-betting-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-dark);
    background-color: var(--secondary-color);
}

.page-cockfighting-betting-guide__faq-item.active .page-cockfighting-betting-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px;
}

.page-cockfighting-betting-guide__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-betting-guide__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting-betting-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-betting-guide__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-cockfighting-betting-guide__hero-title {
        font-size: 2em;
    }
    .page-cockfighting-betting-guide__hero-description {
        font-size: 1em;
    }
    .page-cockfighting-betting-guide__hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-cockfighting-betting-guide__btn-primary,
    .page-cockfighting-betting-guide__btn-secondary {
        width: 90%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-cockfighting-betting-guide__content-area {
        padding: 20px 15px;
    }
    .page-cockfighting-betting-guide__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-cockfighting-betting-guide__text-block,
    .page-cockfighting-betting-guide__list li,
    .page-cockfighting-betting-guide__faq-question,
    .page-cockfighting-betting-guide__faq-answer p {
        font-size: 0.95em;
    }
    
    /* Mobile image responsiveness */
    .page-cockfighting-betting-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-cockfighting-betting-guide video,
    .page-cockfighting-betting-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting-betting-guide__video-container,
    .page-cockfighting-betting-guide__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-cockfighting-betting-guide__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    }

    /* Content area and containers for mobile overflow */
    .page-cockfighting-betting-guide__section-container,
    .page-cockfighting-betting-guide__faq-item,
    .page-cockfighting-betting-guide__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting-betting-guide__faq-question,
    .page-cockfighting-betting-guide__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure content area itself does not cause overflow */
    .page-cockfighting-betting-guide {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-betting-guide__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting-betting-guide__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting-betting-guide__section-title {
        font-size: 1.6em;
    }
}