.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: 36px;
  color: #FFD700; /* Gold for titles */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-cockfighting__section-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-cockfighting__card img {
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-cockfighting__card h3 {
  color: #FFD700;
  font-size: 22px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-cockfighting__card p {
  color: #cccccc;
  font-size: 16px;
  line-height: 1.5;
}

.page-cockfighting a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cockfighting a:hover {
  color: #FFC107;
  text-decoration: underline;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
}

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

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7); /* Dark background for text over hero */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin-top: -80px; /* Overlap with image slightly */
}

.page-cockfighting__hero-title {
  font-size: 48px;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: #f5f5f5;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #FFD700;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-cockfighting__cta-button:hover {
  background: #FFC107;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-cockfighting__intro-section {
  background-color: #222222;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Features Section */
.page-cockfighting__features-section {
  background-color: #1a1a1a;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-cockfighting__feature-item img {
  max-height: 200px;
  object-fit: contain;
  width: auto;
  margin: 0 auto 20px;
}

.page-cockfighting__feature-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-cockfighting__feature-text {
  color: #cccccc;
  font-size: 16px;
}

.page-cockfighting__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary {
  background: #FFD700;
  color: #1a1a1a;
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
  background: #FFC107;
  border-color: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  color: #FFC107;
  border-color: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Schedule Section */
.page-cockfighting__schedule-section {
  background-color: #222222;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-cockfighting__schedule-table {
  margin-top: 40px;
  border-collapse: collapse;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__table-header,
.page-cockfighting__table-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  padding: 15px 20px;
  align-items: center;
}

.page-cockfighting__table-header {
  background: #8B0000; /* Dark red for header */
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
}

.page-cockfighting__table-row {
  background: #333333;
  border-bottom: 1px solid #444444;
  font-size: 16px;
  color: #f0f0f0;
}

.page-cockfighting__table-row:nth-child(even) {
  background: #2a2a2a;
}

.page-cockfighting__table-row:last-child {
  border-bottom: none;
}

.page-cockfighting__table-row a {
  color: #FFD700;
  font-weight: bold;
}

.page-cockfighting__schedule-note {
  margin-top: 30px;
  font-size: 16px;
  color: #cccccc;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
  background-color: #1a1a1a;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-cockfighting__bet-type-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-cockfighting__bet-type-text {
  color: #cccccc;
  font-size: 16px;
}

.page-cockfighting__bet-types-footer {
  margin-top: 40px;
  font-size: 16px;
  color: #cccccc;
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  background-color: #222222;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
  text-align: left;
}

.page-cockfighting__strategy-list li {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  color: #f0f0f0;
  border-left: 5px solid #FFD700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__strategy-list li strong {
  color: #FFD700;
}

.page-cockfighting__strategy-footer {
  margin-top: 40px;
  font-size: 16px;
  color: #cccccc;
}

/* Security Section */
.page-cockfighting__security-section {
  background-color: #1a1a1a;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-cockfighting__security-item img {
  
  object-fit: contain;
  width: auto;
  margin: 0 auto 20px;
}

.page-cockfighting__security-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-cockfighting__security-text {
  color: #cccccc;
  font-size: 16px;
}

.page-cockfighting__security-footer {
  margin-top: 40px;
  font-size: 16px;
  color: #cccccc;
}

/* Registration Section */
.page-cockfighting__registration-section {
  background-color: #222222;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-cockfighting__registration-steps {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
  text-align: left;
  counter-reset: step-counter;
}

.page-cockfighting__registration-steps li {
  counter-increment: step-counter;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  color: #f0f0f0;
  position: relative;
  padding-left: 60px; /* Space for step number */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__registration-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #FFD700;
  color: #1a1a1a;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.page-cockfighting__registration-steps li strong {
  color: #FFD700;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: #1a1a1a;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.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 20px;
  opacity: 0;
  background: #2a2a2a;
  color: #cccccc;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 10px 10px;
}

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

.page-cockfighting__faq-question:hover {
  background: #444444;
  border-color: #555555;
}

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

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #f0f0f0;
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #FFC107;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* News Section */
.page-cockfighting__news-section {
  background-color: #222222;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

.page-cockfighting__news-item img {
  border-radius: 8px;
  margin-bottom: 15px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-cockfighting__news-title {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-cockfighting__news-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-cockfighting__news-title a:hover {
  color: #FFC107;
  text-decoration: underline;
}

.page-cockfighting__news-excerpt {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.5;
  margin-bottom: 15px;
}

.page-cockfighting__read-more {
  display: inline-block;
  font-size: 15px;
  color: #8B0000;
  font-weight: bold;
  text-decoration: none;
}

.page-cockfighting__read-more:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-cockfighting__news-button-group {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 42px;
  }

  .page-cockfighting__hero-description {
    font-size: 18px;
  }

  .page-cockfighting__section-title {
    font-size: 32px;
  }

  .page-cockfighting__section-description {
    font-size: 17px;
  }

  .page-cockfighting__table-header,
  .page-cockfighting__table-row {
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-cockfighting__hero-content {
    margin-top: -60px; /* Adjust overlap for mobile */
    padding: 20px;
  }

  .page-cockfighting__hero-title {
    font-size: 32px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-cockfighting__cta-button {
    padding: 15px 30px;
    font-size: 18px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
  }

  .page-cockfighting__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__security-grid,
  .page-cockfighting__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__card h3 {
    font-size: 20px;
  }

  .page-cockfighting__card p {
    font-size: 15px;
  }

  .page-cockfighting__button-group {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-cockfighting__schedule-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    width: 100%;
  }

  .page-cockfighting__table-header,
  .page-cockfighting__table-row {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .page-cockfighting__table-header span,
  .page-cockfighting__table-row span,
  .page-cockfighting__table-row a {
    white-space: normal; /* Allow text to wrap */
  }

  .page-cockfighting__strategy-list,
  .page-cockfighting__registration-steps {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding: 0 15px;
  }

  .page-cockfighting__strategy-list li,
  .page-cockfighting__registration-steps li {
    font-size: 16px;
    padding: 15px 15px 15px 50px;
  }

  .page-cockfighting__registration-steps li::before {
    left: 15px;
    width: 25px;
    height: 25px;
    font-size: 16px;
  }

  .page-cockfighting__faq-list {
    max-width: 100%;
    padding: 0 15px;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }

  .page-cockfighting__news-grid {
    padding: 0 15px;
  }
}

/* Global image responsiveness for content area */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all image containers are responsive */
.page-cockfighting__section,
.page-cockfighting__card,
.page-cockfighting__container,
.page-cockfighting__hero-image,
.page-cockfighting__feature-item,
.page-cockfighting__security-item,
.page-cockfighting__news-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevents overflow of content */
}

@media (max-width: 768px) {
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-image,
  .page-cockfighting__feature-item,
  .page-cockfighting__security-item,
  .page-cockfighting__news-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}