/* style/resources-cockfighting-betting-tips.css */

/* Custom properties for colors */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-bg: #C30808;
  --login-btn-bg: #C30808;
  --register-login-font: #FFFF00;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --light-bg: #ffffff;
  --dark-bg: #017439; /* Using primary color for dark sections */
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-resources-cockfighting-betting-tips {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--light-bg); /* Explicitly set to match body */
}

.page-resources-cockfighting-betting-tips__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section specific styling */
.page-resources-cockfighting-betting-tips__section-title {
  font-size: 2.5em;
  color: inherit; /* Inherit color from parent section */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources-cockfighting-betting-tips__sub-title {
  font-size: 1.5em;
  color: inherit; /* Inherit color from parent section */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources-cockfighting-betting-tips__text-block {
  margin-bottom: 20px;
}

.page-resources-cockfighting-betting-tips__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources-cockfighting-betting-tips__list li {
  margin-bottom: 10px;
}

/* Color contrast classes */
.page-resources-cockfighting-betting-tips__light-bg {
  background-color: var(--light-bg);
  color: var(--text-color-dark);
  padding: 60px 0;
}

.page-resources-cockfighting-betting-tips__dark-bg {
  background-color: var(--dark-bg);
  color: var(--text-color-light);
  padding: 60px 0;
}

/* Hero Section */
.page-resources-cockfighting-betting-tips__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); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%); /* Gradient background for visual appeal */
  color: var(--text-color-light);
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-resources-cockfighting-betting-tips__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-resources-cockfighting-betting-tips__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-cockfighting-betting-tips__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
}

.page-resources-cockfighting-betting-tips__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--text-color-light);
}

.page-resources-cockfighting-betting-tips__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources-cockfighting-betting-tips__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-resources-cockfighting-betting-tips__btn-register,
.page-resources-cockfighting-betting-tips__btn-login,
.page-resources-cockfighting-betting-tips__btn-download,
.page-resources-cockfighting-betting-tips__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box; /* Include padding and border in width */
}

.page-resources-cockfighting-betting-tips__btn-register {
  background: var(--register-btn-bg);
  color: var(--register-login-font);
  border: 2px solid var(--register-btn-bg);
}

.page-resources-cockfighting-betting-tips__btn-register:hover {
  background: #a30707; /* Darker red */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-cockfighting-betting-tips__btn-login {
  background: var(--login-btn-bg);
  color: var(--register-login-font);
  border: 2px solid var(--login-btn-bg);
}

.page-resources-cockfighting-betting-tips__btn-login:hover {
  background: #a30707; /* Darker red */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-cockfighting-betting-tips__btn-download {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

.page-resources-cockfighting-betting-tips__btn-download:hover {
  background: #005a2e; /* Darker green */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Content Grid for text and image layout */
.page-resources-cockfighting-betting-tips__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-resources-cockfighting-betting-tips__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-resources-cockfighting-betting-tips__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-resources-cockfighting-betting-tips__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
  min-width: 200px; /* Enforce min size */
}

.page-resources-cockfighting-betting-tips__text-content {
  flex: 1;
}

/* Call to Action Section */
.page-resources-cockfighting-betting-tips__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-resources-cockfighting-betting-tips__cta-section .page-resources-cockfighting-betting-tips__section-title {
  margin-bottom: 20px;
}

.page-resources-cockfighting-betting-tips__cta-section .page-resources-cockfighting-betting-tips__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
}

.page-resources-cockfighting-betting-tips__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px; /* Constrain button group width */
  margin: 0 auto;
  box-sizing: border-box;
}

/* FAQ Section */
.page-resources-cockfighting-betting-tips__faq-section {
  padding: 60px 0;
}

/* FAQ container styles */
.page-resources-cockfighting-betting-tips__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--light-bg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* FAQ default state - answer hidden */
.page-resources-cockfighting-betting-tips__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);
}

/* FAQ expanded state - ☠️ Use!important and sufficiently large max-height */
.page-resources-cockfighting-betting-tips__faq-item.active .page-resources-cockfighting-betting-tips__faq-answer {
  max-height: 2000px !important; /* ☠️ Use!important ensure priority, value large enough for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-resources-cockfighting-betting-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  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-resources-cockfighting-betting-tips__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-cockfighting-betting-tips__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-resources-cockfighting-betting-tips__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
  color: var(--text-color-dark);
}

/* Toggle icon */
.page-resources-cockfighting-betting-tips__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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-cockfighting-betting-tips__faq-item.active .page-resources-cockfighting-betting-tips__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Keyword highlighting */
.page-resources-cockfighting-betting-tips__keyword {
  font-weight: bold;
  color: var(--primary-color); /* Highlight keywords with primary color */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-cockfighting-betting-tips__hero-title {
    font-size: 3em;
  }
  .page-resources-cockfighting-betting-tips__section-title {
    font-size: 2em;
  }
  .page-resources-cockfighting-betting-tips__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources-cockfighting-betting-tips__content-grid--reverse {
    flex-direction: column; /* Revert to default for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-resources-cockfighting-betting-tips__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-cockfighting-betting-tips__hero-title {
    font-size: 2.2em;
  }
  .page-resources-cockfighting-betting-tips__hero-description {
    font-size: 1.1em;
  }
  .page-resources-cockfighting-betting-tips__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
  }

  /* Buttons mobile adaptation */
  .page-resources-cockfighting-betting-tips__btn-register,
  .page-resources-cockfighting-betting-tips__btn-login,
  .page-resources-cockfighting-betting-tips__btn-download,
  .page-resources-cockfighting-betting-tips__cta-button,
  .page-resources-cockfighting-betting-tips a[class*="button"],
  .page-resources-cockfighting-betting-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;
    padding-right: 15px;
  }
  
  /* Button containers mobile adaptation */
  .page-resources-cockfighting-betting-tips__hero-buttons,
  .page-resources-cockfighting-betting-tips__cta-buttons,
  .page-resources-cockfighting-betting-tips__button-group,
  .page-resources-cockfighting-betting-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;
  }
  
  /* Images mobile adaptation */
  .page-resources-cockfighting-betting-tips img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure min height on mobile */
  }
  
  .page-resources-cockfighting-betting-tips__section,
  .page-resources-cockfighting-betting-tips__card,
  .page-resources-cockfighting-betting-tips__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-cockfighting-betting-tips__section-title {
    font-size: 1.8em;
  }
  .page-resources-cockfighting-betting-tips__sub-title {
    font-size: 1.3em;
  }
  .page-resources-cockfighting-betting-tips__light-bg,
  .page-resources-cockfighting-betting-tips__dark-bg {
    padding: 40px 0;
  }
  .page-resources-cockfighting-betting-tips__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources-cockfighting-betting-tips__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources-cockfighting-betting-tips__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources-cockfighting-betting-tips__faq-answer {
    padding: 0 15px;
  }
  .page-resources-cockfighting-betting-tips__faq-item.active .page-resources-cockfighting-betting-tips__faq-answer {
    padding: 15px !important;
  }
}