/* style/online-cockfighting-rules-tips.css */

/* Base Styles & Color Contrast */
.page-online-cockfighting-rules-tips {
  color: #ffffff; /* Dark body background, so light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-online-cockfighting-rules-tips__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 60px 20px;
}

.page-online-cockfighting-rules-tips__light-bg {
  background-color: #ffffff;
  color: #333333; /* Light background, so dark text */
  padding: 60px 20px;
}

.page-online-cockfighting-rules-tips__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-online-cockfighting-rules-tips__section-title {
  font-size: 2.5em;
  color: inherit; /* Inherit from section for contrast */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-online-cockfighting-rules-tips__sub-title {
  font-size: 1.8em;
  color: inherit;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-online-cockfighting-rules-tips__text-block {
  margin-bottom: 20px;
  color: inherit;
}

.page-online-cockfighting-rules-tips__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: inherit;
}

.page-online-cockfighting-rules-tips__list-item {
  margin-bottom: 10px;
}

/* Hero Section */
.page-online-cockfighting-rules-tips__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
  flex-direction: column; /* Default for mobile, will change for desktop */
  text-align: center;
}

.page-online-cockfighting-rules-tips__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-online-cockfighting-rules-tips__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-online-cockfighting-rules-tips__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-online-cockfighting-rules-tips__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-online-cockfighting-rules-tips__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-online-cockfighting-rules-tips__btn-primary,
.page-online-cockfighting-rules-tips__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-online-cockfighting-rules-tips__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-online-cockfighting-rules-tips__btn-primary:hover {
  background-color: #d46a00;
  border-color: #d46a00;
}

.page-online-cockfighting-rules-tips__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-online-cockfighting-rules-tips__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-online-cockfighting-rules-tips__cta-button {
  margin-top: 30px;
}

/* Image Text Layout */
.page-online-cockfighting-rules-tips__image-text-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-online-cockfighting-rules-tips__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-online-cockfighting-rules-tips__image-text-layout .page-online-cockfighting-rules-tips__image-content {
  flex: 1;
  min-width: 400px; /* Ensure minimum size for content images */
}

.page-online-cockfighting-rules-tips__image-text-layout .page-online-cockfighting-rules-tips__text-content {
  flex: 2;
}

/* Card Grid */
.page-online-cockfighting-rules-tips__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-online-cockfighting-rules-tips__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-online-cockfighting-rules-tips__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-online-cockfighting-rules-tips__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-online-cockfighting-rules-tips__card-text {
  font-size: 0.95em;
  line-height: 1.5;
}

/* Tips Grid */
.page-online-cockfighting-rules-tips__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-online-cockfighting-rules-tips__tip-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 30px;
  color: #ffffff;
}

.page-online-cockfighting-rules-tips__tip-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

/* Promo Flex Container */
.page-online-cockfighting-rules-tips__promo-flex-container {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-direction: column; /* Default for mobile */
}

.page-online-cockfighting-rules-tips__promo-content {
  flex: 1;
}

.page-online-cockfighting-rules-tips__promo-image-wrapper {
  flex: 1;
  min-width: 400px; /* Ensure minimum size */
}

/* Steps Grid */
.page-online-cockfighting-rules-tips__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-online-cockfighting-rules-tips__step-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 30px;
  color: #ffffff;
}

.page-online-cockfighting-rules-tips__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: #EA7C07;
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-online-cockfighting-rules-tips__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-online-cockfighting-rules-tips__step-description {
  font-size: 0.95em;
}

.page-online-cockfighting-rules-tips__registration-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

/* FAQ Section */
.page-online-cockfighting-rules-tips__faq-list {
  margin-top: 30px;
}

.page-online-cockfighting-rules-tips__faq-item {
  background-color: #f9f9f9;
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-online-cockfighting-rules-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.15em;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  border-bottom: 1px solid #e0e0e0;
}

.page-online-cockfighting-rules-tips__faq-question:hover {
  background-color: #e5e5e5;
}

.page-online-cockfighting-rules-tips__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-online-cockfighting-rules-tips__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-online-cockfighting-rules-tips__faq-item[open] .page-online-cockfighting-rules-tips__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
}

.page-online-cockfighting-rules-tips__faq-item[open] .page-online-cockfighting-rules-tips__faq-question {
  border-bottom: none;
}

/* Reset default details/summary styling */
.page-online-cockfighting-rules-tips__faq-item > summary {
  list-style: none;
}

.page-online-cockfighting-rules-tips__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-online-cockfighting-rules-tips__hero-section {
    flex-direction: row;
    text-align: left;
  }

  .page-online-cockfighting-rules-tips__hero-content {
    padding: 40px;
    margin-left: 5%;
    max-width: 600px;
  }

  .page-online-cockfighting-rules-tips__image-text-layout {
    flex-direction: row;
  }

  .page-online-cockfighting-rules-tips__promo-flex-container {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .page-online-cockfighting-rules-tips {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-online-cockfighting-rules-tips__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 450px;
  }

  .page-online-cockfighting-rules-tips__hero-title {
    font-size: 2.2em;
  }

  .page-online-cockfighting-rules-tips__hero-description {
    font-size: 1em;
  }

  .page-online-cockfighting-rules-tips__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-online-cockfighting-rules-tips__sub-title {
    font-size: 1.5em;
  }

  /* Image responsive */
  .page-online-cockfighting-rules-tips img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-online-cockfighting-rules-tips__section,
  .page-online-cockfighting-rules-tips__card,
  .page-online-cockfighting-rules-tips__container,
  .page-online-cockfighting-rules-tips__image-text-layout,
  .page-online-cockfighting-rules-tips__promo-flex-container,
  .page-online-cockfighting-rules-tips__steps-grid,
  .page-online-cockfighting-rules-tips__tips-grid,
  .page-online-cockfighting-rules-tips__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-online-cockfighting-rules-tips__hero-content {
    width: calc(100% - 30px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px !important;
  }

  .page-online-cockfighting-rules-tips__image-text-layout {
    flex-direction: column;
  }

  .page-online-cockfighting-rules-tips__image-text-layout .page-online-cockfighting-rules-tips__image-content,
  .page-online-cockfighting-rules-tips__promo-image-wrapper {
    min-width: unset;
  }

  .page-online-cockfighting-rules-tips__promo-flex-container {
    flex-direction: column;
  }

  /* Button responsive */
  .page-online-cockfighting-rules-tips__btn-primary,
  .page-online-cockfighting-rules-tips__btn-secondary,
  .page-online-cockfighting-rules-tips a[class*="button"],
  .page-online-cockfighting-rules-tips a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .page-online-cockfighting-rules-tips__cta-buttons,
  .page-online-cockfighting-rules-tips__button-group,
  .page-online-cockfighting-rules-tips__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .page-online-cockfighting-rules-tips__card-image {
    height: auto; /* Allow height to adjust for mobile */
  }

  .page-online-cockfighting-rules-tips__card {
    padding: 20px;
  }

  .page-online-cockfighting-rules-tips__tip-item,
  .page-online-cockfighting-rules-tips__step-item {
    padding: 20px;
  }

  .page-online-cockfighting-rules-tips__faq-question,
  .page-online-cockfighting-rules-tips__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}