/* style/cockfighting-encyclopedia-breeds.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #121212;
    --light-bg-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --login-button-color: #EA7C07;
}

.page-cockfighting-encyclopedia-breeds {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for the main page content on dark body background */
    background-color: var(--dark-bg-color); /* Inherited from shared.css body */
}

.page-cockfighting-encyclopedia-breeds__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

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

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

.page-cockfighting-encyclopedia-breeds__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: var(--text-on-dark);
}

.page-cockfighting-encyclopedia-breeds__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color); /* White text on dark background */
    line-height: 1.2;
}

.page-cockfighting-encyclopedia-breeds__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-on-dark);
}

.page-cockfighting-encyclopedia-breeds__section {
    padding: 60px 20px;
}

.page-cockfighting-encyclopedia-breeds__content-area {
    max-width: 1200px;
    margin: 0 auto;
}

.page-cockfighting-encyclopedia-breeds__heading {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting-encyclopedia-breeds__sub-heading {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-cockfighting-encyclopedia-breeds__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}

.page-cockfighting-encyclopedia-breeds__keyword {
    color: var(--primary-color);
    font-weight: bold;
}

.page-cockfighting-encyclopedia-breeds__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-cockfighting-encyclopedia-breeds__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting-encyclopedia-breeds__dark-bg {
    background-color: var(--dark-bg-color);
    color: var(--text-on-dark);
}

.page-cockfighting-encyclopedia-breeds__light-bg {
    background-color: var(--light-bg-color);
    color: var(--text-on-light);
}

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

.page-cockfighting-encyclopedia-breeds__breed-card {
    background-color: var(--light-bg-color);
    color: var(--text-on-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting-encyclopedia-breeds__breed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting-encyclopedia-breeds__card-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting-encyclopedia-breeds__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting-encyclopedia-breeds__card-text {
    font-size: 1em;
    color: var(--text-on-light);
}

.page-cockfighting-encyclopedia-breeds__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting-encyclopedia-breeds__numbered-list {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 30px;
    color: var(--text-on-dark);
}

.page-cockfighting-encyclopedia-breeds__list-item {
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.page-cockfighting-encyclopedia-breeds__list-item .page-cockfighting-encyclopedia-breeds__paragraph {
    margin-bottom: 0;
}

.page-cockfighting-encyclopedia-breeds__cta-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(90deg, #26A9E0, #1a7fb8);
    color: var(--text-on-dark);
}

.page-cockfighting-encyclopedia-breeds__cta-content {
    max-width: 800px;
}

.page-cockfighting-encyclopedia-breeds__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-cockfighting-encyclopedia-breeds__btn-primary,
.page-cockfighting-encyclopedia-breeds__btn-secondary,
.page-cockfighting-encyclopedia-breeds__video-cta {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting-encyclopedia-breeds__btn-primary,
.page-cockfighting-encyclopedia-breeds__video-cta {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting-encyclopedia-breeds__btn-primary:hover,
.page-cockfighting-encyclopedia-breeds__video-cta:hover {
    background-color: #1a7fb8;
    border-color: #1a7fb8;
}

.page-cockfighting-encyclopedia-breeds__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

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

.page-cockfighting-encyclopedia-breeds__link-text {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-cockfighting-encyclopedia-breeds__link-text:hover {
    color: #1a7fb8;
}

.page-cockfighting-encyclopedia-breeds__faq-container {
    margin-top: 40px;
}

.page-cockfighting-encyclopedia-breeds__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-on-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting-encyclopedia-breeds__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    list-style: none;
}

.page-cockfighting-encyclopedia-breeds__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting-encyclopedia-breeds__faq-qtext {
    flex-grow: 1;
    color: var(--primary-color);
}

.page-cockfighting-encyclopedia-breeds__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--secondary-color);
}

.page-cockfighting-encyclopedia-breeds__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-on-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-cockfighting-encyclopedia-breeds__faq-item[open] .page-cockfighting-encyclopedia-breeds__faq-answer {
    max-height: 1000px; /* Arbitrarily large value for smooth transition */
    transition: max-height 0.5s ease-in;
}

.page-cockfighting-encyclopedia-breeds__faq-item[open] .page-cockfighting-encyclopedia-breeds__faq-question .page-cockfighting-encyclopedia-breeds__faq-toggle {
    content: '−';
}

/* Video Section Styles */
.page-cockfighting-encyclopedia-breeds__video-section {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
    background-color: var(--dark-bg-color);
    border-radius: 10px;
}

.page-cockfighting-encyclopedia-breeds__video-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.page-cockfighting-encyclopedia-breeds__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-encyclopedia-breeds__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
}

.page-cockfighting-encyclopedia-breeds__video-cta {
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting-encyclopedia-breeds__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting-encyclopedia-breeds__heading {
        font-size: 2em;
    }
    .page-cockfighting-encyclopedia-breeds__sub-heading {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-encyclopedia-breeds__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-cockfighting-encyclopedia-breeds__hero-title {
        font-size: 2em;
    }
    .page-cockfighting-encyclopedia-breeds__hero-description {
        font-size: 1em;
    }
    .page-cockfighting-encyclopedia-breeds__section {
        padding: 40px 15px;
    }
    .page-cockfighting-encyclopedia-breeds__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting-encyclopedia-breeds__sub-heading {
        font-size: 1.3em;
    }
    .page-cockfighting-encyclopedia-breeds__paragraph,
    .page-cockfighting-encyclopedia-breeds__card-text,
    .page-cockfighting-encyclopedia-breeds__list-item p,
    .page-cockfighting-encyclopedia-breeds__faq-answer p {
        font-size: 0.95em;
    }
    .page-cockfighting-encyclopedia-breeds__breed-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting-encyclopedia-breeds__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting-encyclopedia-breeds__btn-primary,
    .page-cockfighting-encyclopedia-breeds__btn-secondary,
    .page-cockfighting-encyclopedia-breeds__video-cta {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    /* Mobile image adaptation */
    .page-cockfighting-encyclopedia-breeds img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting-encyclopedia-breeds__image-wrapper,
    .page-cockfighting-encyclopedia-breeds__breed-card,
    .page-cockfighting-encyclopedia-breeds__list-item,
    .page-cockfighting-encyclopedia-breeds__faq-item,
    .page-cockfighting-encyclopedia-breeds__content-area,
    .page-cockfighting-encyclopedia-breeds__video-section,
    .page-cockfighting-encyclopedia-breeds__video-wrapper,
    .page-cockfighting-encyclopedia-breeds__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-cockfighting-encyclopedia-breeds__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    }
    .page-cockfighting-encyclopedia-breeds__video {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Keep height 100% for aspect ratio wrapper */
    }
}

@media (max-width: 480px) {
    .page-cockfighting-encyclopedia-breeds__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting-encyclopedia-breeds__heading {
        font-size: 1.6em;
    }
    .page-cockfighting-encyclopedia-breeds__sub-heading {
        font-size: 1.2em;
    }
    .page-cockfighting-encyclopedia-breeds__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-cockfighting-encyclopedia-breeds__faq-answer {
        padding: 0 20px 15px;
    }
}