/* style/cockfighting.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1E90FF; /* Deep Sky Blue */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark bg */
    --border-color-dark: rgba(255, 255, 255, 0.15);
    --hover-gold: #e6c200;
    --hover-blue: #1c7ed6;
}

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

/* Ensure main content has top padding to clear fixed header */
.page-cockfighting__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

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

.page-cockfighting__section-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

/* Card general style */
.page-cockfighting__card {
    background-color: var(--card-bg-dark);
    border: 1px solid var(--border-color-dark);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-cockfighting__cta-button--primary {
    background: var(--primary-color);
    color: var(--text-dark); /* Dark text on gold button */
}

.page-cockfighting__cta-button--primary:hover {
    background: var(--hover-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__cta-button--secondary:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 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: Ensure content is not covered by fixed header */
}

.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 on parent <a> */
}

.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);
  color: var(--text-dark); /* Dark text on gold button */
  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(--hover-gold);
  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);
}

/* Hero Section */
.page-cockfighting__hero-section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__main-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-cockfighting__feature-item {
    text-align: center;
}

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-cockfighting__feature-heading {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__feature-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* Types Section */
.page-cockfighting__types-section {
    padding: 80px 0;
}

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

.page-cockfighting__type-item {
    text-align: center;
    overflow: hidden;
}

.page-cockfighting__type-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__type-heading {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-cockfighting__type-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__guide-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.page-cockfighting__guide-heading {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__guide-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow paragraph to take up available space */
}

.page-cockfighting__guide-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push button to bottom */
}

.page-cockfighting__guide-button:hover {
    background: var(--hover-blue);
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 80px 0;
}

.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__tips-item {
    text-align: left;
}

.page-cockfighting__tips-heading {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__tips-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* Promo Section */
.page-cockfighting__promo-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-cockfighting__promo-item {
    text-align: center;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__promo-heading {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__promo-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.page-cockfighting__promo-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-cockfighting__promo-button:hover {
    background: var(--hover-gold);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
}

.page-cockfighting__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color-dark);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Change to 'X' or '-' like effect */
  color: var(--secondary-color);
}

.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 25px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--card-bg-dark);
  border-top: none;
}

/* Responsible Gaming Section */
.page-cockfighting__responsible-gaming-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-cockfighting__responsible-gaming-section .page-cockfighting__section-title {
    color: var(--text-light);
}

.page-cockfighting__responsible-gaming-section .page-cockfighting__section-description {
    color: rgba(255, 255, 255, 0.9);
}

.page-cockfighting__responsible-gaming-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 30px;
}

.page-cockfighting__responsible-gaming-button:hover {
    background: var(--hover-gold);
}

/* CTA Bottom Section */
.page-cockfighting__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 40px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__hero-description,
    .page-cockfighting__section-description {
        font-size: 17px;
    }
    .page-cockfighting__feature-heading,
    .page-cockfighting__type-heading,
    .page-cockfighting__guide-heading,
    .page-cockfighting__tips-heading,
    .page-cockfighting__promo-heading {
        font-size: 20px;
    }
    .page-cockfighting__feature-description,
    .page-cockfighting__type-description,
    .page-cockfighting__guide-item p,
    .page-cockfighting__tips-item p,
    .page-cockfighting__promo-description,
    .page-cockfighting__faq-answer {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* Mobile: Ensure content is not covered by 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; /* Mobile: use contain to ensure video is fully visible */
    }
    .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__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }

    .page-cockfighting__main-title {
        font-size: 32px;
    }
    .page-cockfighting__section-title {
        font-size: 28px;
    }
    .page-cockfighting__hero-description,
    .page-cockfighting__section-description {
        font-size: 16px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-cockfighting__cta-button,
    .page-cockfighting__guide-button,
    .page-cockfighting__promo-button,
    .page-cockfighting__responsible-gaming-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    .page-cockfighting__feature-grid,
    .page-cockfighting__type-grid,
    .page-cockfighting__guide-list,
    .page-cockfighting__tips-list,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-cockfighting__type-image {
        height: 180px;
    }
    .page-cockfighting__promo-image {
        height: 200px;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__faq-question {
        padding: 15px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }

    /* All images must be responsive */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__feature-item,
    .page-cockfighting__type-item,
    .page-cockfighting__guide-item,
    .page-cockfighting__tips-item,
    .page-cockfighting__promo-item,
    .page-cockfighting__faq-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-cockfighting__faq-item {
        padding-left: 0;
        padding-right: 0;
    }
    .page-cockfighting__faq-list {
        padding-left: 0;
        padding-right: 0;
    }
}

@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: 14px !important;
        padding: 10px 20px !important;
    }
    .page-cockfighting__video-click-hint {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}