/* style/cockfighting-rules.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background-main: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-cockfighting-rules {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background-main); /* Default background for the page */
}

.page-cockfighting-rules__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    background-color: var(--color-background-main);
    color: var(--color-text-main);
}

.page-cockfighting-rules__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-cockfighting-rules__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-cockfighting-rules__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-cockfighting-rules__intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

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

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting-rules__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-cockfighting-rules__btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-gold);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__btn-full-width {
    width: 100%;
    max-width: 300px; /* Limit max width for better appearance */
    margin: 15px auto;
}

.page-cockfighting-rules__section {
    padding: 60px 0;
    background-color: var(--color-background-main);
    color: var(--color-text-main);
}

.page-cockfighting-rules__dark-section {
    background-color: var(--color-card-bg);
}

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

.page-cockfighting-rules__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting-rules__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    border-radius: 2px;
}

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

.page-cockfighting-rules__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-cockfighting-rules__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting-rules__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting-rules__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 15px;
}

.page-cockfighting-rules__card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    flex-grow: 1;
}

.page-cockfighting-rules__subsection {
    margin-bottom: 40px;
}

.page-cockfighting-rules__subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 20px;
    border-left: 5px solid var(--color-gold);
    padding-left: 15px;
}

.page-cockfighting-rules p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-cockfighting-rules ul,
.page-cockfighting-rules ol {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.page-cockfighting-rules ul li,
.page-cockfighting-rules ol li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.page-cockfighting-rules strong {
    color: var(--color-text-main);
}

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

.page-cockfighting-rules__faq-list {
    margin-top: 30px;
}

.page-cockfighting-rules__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting-rules__faq-item summary {
    list-style: none;
}

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

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
    background-color: var(--color-border);
}

.page-cockfighting-rules__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
}

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

.page-cockfighting-rules__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
}

.page-cockfighting-rules__faq-answer p {
    margin-bottom: 0;
}

.page-cockfighting-rules__cta-buttons--bottom {
    margin-top: 50px;
}

.page-cockfighting-rules__conclusion p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-cockfighting-rules__section-title {
        font-size: 2rem;
    }

    .page-cockfighting-rules__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-rules__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-cockfighting-rules__hero-content {
        padding: 0 10px;
    }

    .page-cockfighting-rules__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-cockfighting-rules__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-cockfighting-rules__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-cockfighting-rules__button-group, .page-cockfighting-rules__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting-rules__section {
        padding: 40px 0;
    }

    .page-cockfighting-rules__container {
        padding: 0 15px;
    }

    .page-cockfighting-rules__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-cockfighting-rules__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting-rules__card {
        padding: 20px;
    }

    .page-cockfighting-rules__card-image {
        height: 160px;
    }

    .page-cockfighting-rules__card-title {
        font-size: 1.3rem;
    }

    .page-cockfighting-rules p,
    .page-cockfighting-rules ul li,
    .page-cockfighting-rules ol li,
    .page-cockfighting-rules__faq-answer p {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-cockfighting-rules__subsection-title {
        font-size: 1.5rem;
        padding-left: 10px;
    }

    .page-cockfighting-rules__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    /* Mobile image and video responsive styles */
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__container,
    .page-cockfighting-rules__hero-image-wrapper,
    .page-cockfighting-rules__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting-rules video,
    .page-cockfighting-rules__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-cockfighting-rules__video-section,
    .page-cockfighting-rules__video-container,
    .page-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-cockfighting-rules__video-section {
      padding-top: 10px !important;
    }

    .page-cockfighting-rules__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules__main-title {
        font-size: clamp(1.5rem, 9vw, 2.2rem);
    }

    .page-cockfighting-rules__section-title {
        font-size: 1.6rem;
    }

    .page-cockfighting-rules__subsection-title {
        font-size: 1.3rem;
    }

    .page-cockfighting-rules__faq-question {
        font-size: 1rem;
    }
}