/* style/resources-cambodian-cockfighting-rules.css */

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

.page-resources-cambodian-cockfighting-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color);
}

.page-resources-cambodian-cockfighting-rules__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: var(--text-light);
    overflow: hidden;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background-color: var(--primary-color);
}

.page-resources-cambodian-cockfighting-rules__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay for readability */
    border-radius: 10px;
}

.page-resources-cambodian-cockfighting-rules__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

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

.page-resources-cambodian-cockfighting-rules__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources-cambodian-cockfighting-rules__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-resources-cambodian-cockfighting-rules__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-cambodian-cockfighting-rules__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-resources-cambodian-cockfighting-rules__sub-section-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.page-resources-cambodian-cockfighting-rules p {
    margin-bottom: 1em;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-resources-cambodian-cockfighting-rules__text-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-resources-cambodian-cockfighting-rules__list,
.page-resources-cambodian-cockfighting-rules__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-resources-cambodian-cockfighting-rules__ordered-list {
    list-style-type: decimal;
}

.page-resources-cambodian-cockfighting-rules__list li,
.page-resources-cambodian-cockfighting-rules__ordered-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-resources-cambodian-cockfighting-rules__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-resources-cambodian-cockfighting-rules__btn-primary,
.page-resources-cambodian-cockfighting-rules__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources-cambodian-cockfighting-rules__btn-primary {
    background-color: var(--button-register);
    color: var(--font-button-register-login);
    border: 2px solid var(--button-register);
}

.page-resources-cambodian-cockfighting-rules__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-resources-cambodian-cockfighting-rules__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-cambodian-cockfighting-rules__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-resources-cambodian-cockfighting-rules__card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.page-resources-cambodian-cockfighting-rules__card:hover {
    transform: translateY(-5px);
}

.page-resources-cambodian-cockfighting-rules__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-cambodian-cockfighting-rules__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    display: block;
}

.page-resources-cambodian-cockfighting-rules__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-resources-cambodian-cockfighting-rules__feature-card {
    background-color: #f9f9f9;
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.page-resources-cambodian-cockfighting-rules__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources-cambodian-cockfighting-rules__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-cambodian-cockfighting-rules__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-resources-cambodian-cockfighting-rules__video-caption {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: var(--text-dark);
}

.page-resources-cambodian-cockfighting-rules__faq-container {
    margin-top: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}

.page-resources-cambodian-cockfighting-rules__faq-item {
    border-bottom: 1px solid var(--border-light);
}

.page-resources-cambodian-cockfighting-rules__faq-item:last-child {
    border-bottom: none;
}

.page-resources-cambodian-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources-cambodian-cockfighting-rules__faq-question:hover {
    background-color: #e0e0e0;
}

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

.page-resources-cambodian-cockfighting-rules__faq-item.active .page-resources-cambodian-cockfighting-rules__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-cambodian-cockfighting-rules__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
    background-color: var(--secondary-color);
}

.page-resources-cambodian-cockfighting-rules__faq-item.active .page-resources-cambodian-cockfighting-rules__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 20px;
}

.page-resources-cambodian-cockfighting-rules__cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
}

.page-resources-cambodian-cockfighting-rules__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-resources-cambodian-cockfighting-rules__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* --- Responsive Styles --- */

/* Mobile */
@media (max-width: 768px) {
    .page-resources-cambodian-cockfighting-rules {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-cambodian-cockfighting-rules__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-cambodian-cockfighting-rules__hero-title {
        font-size: 2.2em;
    }

    .page-resources-cambodian-cockfighting-rules__hero-description {
        font-size: 1em;
    }

    .page-resources-cambodian-cockfighting-rules__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-resources-cambodian-cockfighting-rules__btn-primary,
    .page-resources-cambodian-cockfighting-rules__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-cambodian-cockfighting-rules__content-area {
        padding: 30px 15px;
    }

    .page-resources-cambodian-cockfighting-rules__section-title {
        font-size: 2em;
    }

    .page-resources-cambodian-cockfighting-rules__sub-section-title {
        font-size: 1.5em;
    }

    .page-resources-cambodian-cockfighting-rules__card-grid,
    .page-resources-cambodian-cockfighting-rules__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-cambodian-cockfighting-rules__card,
    .page-resources-cambodian-cockfighting-rules__feature-card {
        padding: 20px;
    }

    .page-resources-cambodian-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-cambodian-cockfighting-rules__section,
    .page-resources-cambodian-cockfighting-rules__card,
    .page-resources-cambodian-cockfighting-rules__container,
    .page-resources-cambodian-cockfighting-rules__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    .page-resources-cambodian-cockfighting-rules video,
    .page-resources-cambodian-cockfighting-rules__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-cambodian-cockfighting-rules__video-section {
        padding-top: var(--header-offset, 120px) !important; /* With !important for mobile */
    }

    .page-resources-cambodian-cockfighting-rules__cta-section {
        padding: 60px 15px;
    }

    .page-resources-cambodian-cockfighting-rules__cta-title {
        font-size: 2.2em;
    }

    .page-resources-cambodian-cockfighting-rules__cta-description {
        font-size: 1.1em;
    }

    .page-resources-cambodian-cockfighting-rules__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-resources-cambodian-cockfighting-rules__faq-answer {
        padding: 0 15px;
    }

    .page-resources-cambodian-cockfighting-rules__faq-item.active .page-resources-cambodian-cockfighting-rules__faq-answer {
        padding: 15px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-resources-cambodian-cockfighting-rules__hero-title {
        font-size: 3em;
    }

    .page-resources-cambodian-cockfighting-rules__hero-description {
        font-size: 1.1em;
    }

    .page-resources-cambodian-cockfighting-rules__section-title {
        font-size: 2.2em;
    }

    .page-resources-cambodian-cockfighting-rules__sub-section-title {
        font-size: 1.8em;
    }

    .page-resources-cambodian-cockfighting-rules__card-grid,
    .page-resources-cambodian-cockfighting-rules__features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-resources-cambodian-cockfighting-rules__cta-title {
        font-size: 2.5em;
    }

    .page-resources-cambodian-cockfighting-rules__cta-description {
        font-size: 1.2em;
    }
}