/* style/cockfighting.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --bg-light: #f8f9fa;
    --bg-dark: var(--dark-bg-1, #0d0d0d); /* Fallback for dark-bg-1 if not defined in shared.css */
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

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

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

/* Fixed navigation bar spacing */
.page-cockfighting__video-section {
    padding-top: 10px; /* Adjusted for fixed header */
    padding-bottom: 60px;
}

.page-cockfighting__title-section,
.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__brand-section,
.page-cockfighting__blog-section {
    padding: 60px 0;
    position: relative;
}

.page-cockfighting__dark-section {
    background-color: var(--bg-dark);
    color: var(--text-color-light);
}

.page-cockfighting__light-section {
    background-color: var(--bg-light);
    color: var(--text-color-dark);
}

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__main-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__title-description {
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__sub-title,
.page-cockfighting__block-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-cockfighting__text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.page-cockfighting__text-center {
    text-align: center;
    margin-top: 30px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-cockfighting__cta-buttons--center {
    margin-top: 50px;
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__cta-button--primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-cockfighting__cta-button--primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-cockfighting__cta-button--secondary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Images */
.page-cockfighting__image,
.page-cockfighting__card-image,
.page-cockfighting__promo-image,
.page-cockfighting__blog-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

/* Video Section */
.page-cockfighting__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
  background-color: var(--bg-dark);
}

.page-cockfighting__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-cockfighting__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-cockfighting__video-link:hover .page-cockfighting__video-overlay {
  opacity: 1;
}

.page-cockfighting__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.page-cockfighting__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-cockfighting__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color, #007bff);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-cockfighting__play-now-button:hover {
  background: var(--secondary-color, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Introduction Section */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__content-block {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--text-color-light);
}

.page-cockfighting__content-block .page-cockfighting__block-title {
    color: var(--secondary-color);
}

/* Types Section */
.page-cockfighting__types-section {
    background-color: var(--bg-light);
    color: var(--text-color-dark);
}

.page-cockfighting__types-section .page-cockfighting__section-title {
    color: var(--primary-color);
}

.page-cockfighting__types-section .page-cockfighting__section-description {
    color: var(--text-color-dark);
}

.page-cockfighting__type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--text-color-dark);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-cockfighting__card-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color-dark);
}

/* How To Play Section */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-color-light);
}

.page-cockfighting__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-cockfighting__step-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    background-color: var(--bg-light);
    color: var(--text-color-dark);
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
    color: var(--primary-color);
}

.page-cockfighting__promotions-section .page-cockfighting__section-description {
    color: var(--text-color-dark);
}

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

.page-cockfighting__promo-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.page-cockfighting__promo-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-cockfighting__promo-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color-dark);
}

/* FAQ Section */
.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: var(--secondary-color);
}

.page-cockfighting__faq-section .page-cockfighting__section-description {
    color: rgba(255, 255, 255, 0.8);
}

.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-color-dark);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-light);
  border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-dark);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate for minus */
}

/* Brand Section */
.page-cockfighting__brand-section {
    background-color: var(--bg-light);
    color: var(--text-color-dark);
}

.page-cockfighting__brand-section .page-cockfighting__section-title {
    color: var(--primary-color);
}

.page-cockfighting__brand-section .page-cockfighting__section-description {
    color: var(--text-color-dark);
}

.page-cockfighting__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__brand-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--text-color-dark);
    border: 1px solid var(--border-color);
}

.page-cockfighting__brand-item .page-cockfighting__block-title {
    color: var(--primary-color);
}

.page-cockfighting__brand-item .page-cockfighting__text {
    color: var(--text-color-dark);
}

/* Blog Section */
.page-cockfighting__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__blog-item {
    background: var(--card-bg-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-cockfighting__blog-item:hover {
    transform: translateY(-5px);
}

.page-cockfighting__blog-link {
    display: block;
    text-decoration: none;
    color: var(--text-color-light);
    padding: 20px;
}

.page-cockfighting__blog-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.page-cockfighting__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-cockfighting__blog-item-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.page-cockfighting__blog-item-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 40px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-cockfighting__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 4px;
        overflow: hidden !important;
    }
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
        object-fit: contain;
    }
    .page-cockfighting__video-cta {
        margin-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-cockfighting__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 30px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__container,
    .page-cockfighting__title-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__brand-section,
    .page-cockfighting__blog-section {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__main-title {
        font-size: 32px;
    }
    .page-cockfighting__section-title {
        font-size: 28px;
    }
    .page-cockfighting__title-description,
    .page-cockfighting__section-description {
        font-size: 16px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__cta-button {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box;
    }
    .page-cockfighting__content-grid,
    .page-cockfighting__type-cards,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__brand-content,
    .page-cockfighting__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__content-block,
    .page-cockfighting__card,
    .page-cockfighting__step-item,
    .page-cockfighting__promo-card,
    .page-cockfighting__brand-item,
    .page-cockfighting__blog-item {
        padding: 20px;
    }
    .page-cockfighting__sub-title,
    .page-cockfighting__block-title {
        font-size: 20px;
    }
    .page-cockfighting__text,
    .page-cockfighting__card-text,
    .page-cockfighting__step-text,
    .page-cockfighting__promo-text,
    .page-cockfighting__blog-item-excerpt {
        font-size: 14px;
    }
    .page-cockfighting__image,
    .page-cockfighting__card-image,
    .page-cockfighting__promo-image,
    .page-cockfighting__blog-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 28px;
    }
    .page-cockfighting__section-title {
        font-size: 24px;
    }
    .page-cockfighting__play-now-button {
        font-size: 15px !important;
        padding: 10px 25px !important;
    }
    .page-cockfighting__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
}