/* style/cockfighting-rules.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --login-button-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

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

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

.page-cockfighting-rules__hero-content {
    max-width: 900px;
    z-index: 10;
    position: relative;
    padding: 20px;
}

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

.page-cockfighting-rules__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

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

.page-cockfighting-rules__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Slightly faded background image */
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__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-rules__btn-primary {
    background-color: var(--login-button-color); /* Custom login color */
    color: var(--text-light);
    border: 2px solid var(--login-button-color);
}

.page-cockfighting-rules__btn-primary:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

.page-cockfighting-rules__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

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

.page-cockfighting-rules__video-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-cockfighting-rules__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* Max width for video */
    margin: 30px auto 0;
    background-color: var(--black-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}

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

.page-cockfighting-rules__video-link-overlay {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.page-cockfighting-rules__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4em;
  color: var(--text-light);
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  pointer-events: none; /* Allow click to pass through to the anchor */
}

.page-cockfighting-rules__video-link-overlay:hover .page-cockfighting-rules__play-button {
  background-color: rgba(0, 0, 0, 0.8);
}

.page-cockfighting-rules__content-section,
.page-cockfighting-rules__betting-types-section,
.page-cockfighting-rules__tips-section,
.page-cockfighting-rules__cta-section,
.page-cockfighting-rules__faq-section {
    padding: 60px 20px;
}

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

.page-cockfighting-rules__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting-rules__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-cockfighting-rules__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: inherit;
}

.page-cockfighting-rules__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.page-cockfighting-rules__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
}

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

.page-cockfighting-rules__rule-card,
.page-cockfighting-rules__betting-card,
.page-cockfighting-rules__tip-card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__betting-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__rule-card:hover,
.page-cockfighting-rules__betting-card:hover,
.page-cockfighting-rules__tip-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting-rules__rule-title,
.page-cockfighting-rules__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: inherit;
}

.page-cockfighting-rules__rule-image,
.page-cockfighting-rules__card-image {
    width: 100%;
    max-width: 400px; /* Recommended image size */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}

.page-cockfighting-rules__rule-list {
    list-style: disc;
    text-align: left;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-cockfighting-rules__rule-list li {
    margin-bottom: 10px;
}

.page-cockfighting-rules__card-text {
    font-size: 1em;
    text-align: left;
}

.page-cockfighting-rules__cta-section {
    text-align: center;
}

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

.page-cockfighting-rules__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting-rules__faq-item[open] {
    background-color: #f9f9f9;
}

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-dark);
    list-style: none; /* Remove default marker for details/summary */
}

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

.page-cockfighting-rules__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-cockfighting-rules__faq-toggle {
    font-size: 1.5em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting-rules__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05em;
    color: var(--text-dark);
    text-align: left;
}

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

@media (max-width: 768px) {
    .page-cockfighting-rules__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

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

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

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

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

    .page-cockfighting-rules__section-title {
        font-size: 1.8em;
    }

    .page-cockfighting-rules__section-description {
        font-size: 0.95em;
    }

    .page-cockfighting-rules__content-area {
        padding: 0 10px; /* Smaller padding on mobile */
    }

    .page-cockfighting-rules__rules-grid,
    .page-cockfighting-rules__betting-cards-grid,
    .page-cockfighting-rules__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting-rules__rule-card,
    .page-cockfighting-rules__betting-card,
    .page-cockfighting-rules__tip-card {
        padding: 20px;
    }

    .page-cockfighting-rules__rule-title,
    .page-cockfighting-rules__card-title {
        font-size: 1.5em;
    }

    .page-cockfighting-rules__rule-image,
    .page-cockfighting-rules__card-image,
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting-rules__video-wrapper,
    .page-cockfighting-rules__video-section,
    .page-cockfighting-rules__video-container,
    .page-cockfighting-rules__video-link-overlay,
    .page-cockfighting-rules__cta-buttons,
    .page-cockfighting-rules__button-group {
        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 {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-cockfighting-rules__faq-answer {
        font-size: 0.95em;
        padding: 0 15px 15px;
    }

    .page-cockfighting-rules__play-button {
      width: 80px;
      height: 80px;
      font-size: 3em;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-cockfighting-rules__play-button {
      width: 60px;
      height: 60px;
      font-size: 2.5em;
    }
}