/* style/cockfighting.css */

/* Base styles for the page-cockfighting content area */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1);
  padding-top: 120px; /* Spacing for fixed header on desktop */
}

/* General container for content sections */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-cockfighting__section {
  padding: 60px 0;
  margin-bottom: 20px;
  background-color: var(--dark-bg-1);
}

.page-cockfighting__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for contrast */
}

/* Titles and Headings */
.page-cockfighting__title {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-cockfighting__sub-title {
  font-size: 28px;
  font-weight: 600;
  color: #f0f0f0;
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: left;
}

.page-cockfighting__text-block {
  font-size: 17px;
  color: #e0e0e0;
  margin-bottom: 25px;
  text-align: justify;
}

.page-cockfighting__highlight-text {
  color: #FFD700;
  font-weight: bold;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary {
  background: #FFD700;
  color: #1A202C;
  border-color: #FFD700;
}

.page-cockfighting__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  transform: translateY(-2px);
}

.page-cockfighting__btn-link {
  background: #1A202C;
  color: #FFD700;
  border-color: #1A202C;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
}

.page-cockfighting__btn-link:hover {
  background: #0d0d0d;
  color: #FFD700;
  border-color: #FFD700;
}

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

/* Image responsive base styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* HERO Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
  background-color: var(--dark-bg-1);
}

.page-cockfighting__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Product Showcase Section */
.page-cockfighting__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--dark-bg-1);
}

.page-cockfighting__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small + 2 large */
  gap: 20px;
}

.page-cockfighting__products-grid {
  display: grid;
  gap: 20px;
}

.page-cockfighting__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-cockfighting__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-cockfighting__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1A202C;
  border: 3px solid #FFD700; /* Golden border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.page-cockfighting__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-cockfighting__product-card-image {
  width: 100%;
  height: 250px; /* Fixed height for desktop */
  overflow: hidden;
}

.page-cockfighting__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card styles */
.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background for dark theme */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__card h3 {
  color: #FFD700;
  font-size: 22px;
  margin-top: 15px;
  margin-bottom: 10px;
}

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

/* Quick Access Links Grid */
.page-cockfighting__link-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-cockfighting__link-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
}

.page-cockfighting__link-card h3 {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

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

.page-cockfighting__link-card h3 a:hover {
  color: #e6c200;
}

.page-cockfighting__link-card p {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Game Types Section - Tabs */
.page-cockfighting__game-tabs {
  margin-top: 40px;
}

.page-cockfighting__tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.page-cockfighting__tab-button {
  background: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-cockfighting__tab-button:hover {
  background: #FFD700;
  color: #1A202C;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-cockfighting__tab-button--active {
  background: #FFD700;
  color: #1A202C;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border-color: #FFD700;
}

.page-cockfighting__tab-content-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  min-height: 400px; /* Ensure content area has a base height */
}

.page-cockfighting__tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.page-cockfighting__tab-content--active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Promotions Grid */
.page-cockfighting__promotion-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-cockfighting__promotion-card img {
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Info Grid */
.page-cockfighting__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-cockfighting__info-card img {
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-cockfighting__contact-cta {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.page-cockfighting__contact-cta p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  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: #FFD700;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.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; /* 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 {
  color: #e6c200;
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.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;
  background: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-cockfighting__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

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

.page-cockfighting__blog-card {
  text-align: left;
}

.page-cockfighting__blog-card img {
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-cockfighting__blog-card h3 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

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

.page-cockfighting__blog-card h3 a:hover {
  color: #e6c200;
}

.page-cockfighting__blog-card p {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__title {
    font-size: 32px;
  }
  .page-cockfighting__sub-title {
    font-size: 24px;
  }
  .page-cockfighting__text-block {
    font-size: 16px;
  }
  .page-cockfighting__products-container {
    grid-template-columns: 1fr; /* Stack products sections */
  }
  .page-cockfighting__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-cockfighting__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: 100px !important; /* Mobile spacing for fixed header */
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .page-cockfighting__container {
    padding: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-cockfighting__sub-title {
    font-size: 20px;
  }
  .page-cockfighting__text-block {
    font-size: 15px;
  }
  .page-cockfighting__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
  }
  .page-cockfighting__products-section {
    padding: 40px 15px;
  }
  .page-cockfighting__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  /* Mobile: Front 4 cards - 2x2 grid, square */
  .page-cockfighting__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-cockfighting__products-grid--small .page-cockfighting__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-cockfighting__products-grid--small .page-cockfighting__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  /* Mobile: Back 2 large cards - each on new line, square */
  .page-cockfighting__products-grid--large {
    grid-template-columns: 1fr; /* Each card takes full width */
    gap: 15px;
  }
  .page-cockfighting__products-grid--large .page-cockfighting__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-cockfighting__products-grid--large .page-cockfighting__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-cockfighting__product-card-image {
    height: auto; /* Allow height to adapt for square aspect ratio */
  }
  .page-cockfighting__link-cards-grid,
  .page-cockfighting__promotion-cards-grid,
  .page-cockfighting__info-grid,
  .page-cockfighting__blog-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__tab-buttons {
    flex-direction: column;
  }
  .page-cockfighting__tab-button {
    width: 100%;
  }
  .page-cockfighting__tab-content-wrapper {
    padding: 20px;
  }
  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
  /* Mobile image specific override */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__title {
    font-size: 24px;
  }
  .page-cockfighting__sub-title {
    font-size: 18px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 15px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
}