/* style/fortune-tiger.css */

/* Variáveis de cor */
:root {
  --page-fortune-tiger-primary: #11A84E;
  --page-fortune-tiger-secondary: #22C768;
  --page-fortune-tiger-text-main: #F2FFF6;
  --page-fortune-tiger-text-secondary: #A7D9B8;
  --page-fortune-tiger-bg-card: #11271B;
  --page-fortune-tiger-bg-main: #08160F;
  --page-fortune-tiger-border: #2E7A4E;
  --page-fortune-tiger-glow: #57E38D;
  --page-fortune-tiger-gold: #F2C14E;
  --page-fortune-tiger-divider: #1E3A2A;
  --page-fortune-tiger-deep-green: #0A4B2C;
  --page-fortune-tiger-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-fortune-tiger-btn-hover-gradient: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert for hover effect */
}

.page-fortune-tiger {
  background-color: var(--page-fortune-tiger-bg-main); /* Dark background, so text should be light */
  color: var(--page-fortune-tiger-text-main); /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-fortune-tiger__section-title {
  font-size: clamp(2em, 5vw, 2.8em); /* Responsive H2 font size */
  color: var(--page-fortune-tiger-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-fortune-tiger__section-title--light {
  color: var(--page-fortune-tiger-text-main);
}

/* Hero Section */
.page-fortune-tiger__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensure no overflow */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-fortune-tiger-bg-main);
}

.page-fortune-tiger__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fortune-tiger__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-fortune-tiger__hero-content {
  position: relative; /* Relative to hero section, not image */
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over image, but not *on* it */
  background: var(--page-fortune-tiger-bg-main); /* Solid background to ensure text readability */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-fortune-tiger__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em); /* Responsive H1 font size */
  color: var(--page-fortune-tiger-gold);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.page-fortune-tiger__hero-description {
  font-size: clamp(1em, 2.5vw, 1.3em);
  color: var(--page-fortune-tiger-text-secondary);
  margin-bottom: 30px;
}

.page-fortune-tiger__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-fortune-tiger__btn-primary,
.page-fortune-tiger__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
}

.page-fortune-tiger__btn-primary {
  background: var(--page-fortune-tiger-btn-gradient);
  color: var(--page-fortune-tiger-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-fortune-tiger__btn-primary:hover {
  background: var(--page-fortune-tiger-btn-hover-gradient);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-fortune-tiger__btn-secondary {
  background-color: transparent;
  color: var(--page-fortune-tiger-secondary);
  border: 2px solid var(--page-fortune-tiger-secondary);
}

.page-fortune-tiger__btn-secondary:hover {
  background-color: var(--page-fortune-tiger-secondary);
  color: var(--page-fortune-tiger-bg-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-fortune-tiger__btn-secondary--light {
  color: var(--page-fortune-tiger-text-main);
  border-color: var(--page-fortune-tiger-text-main);
}

.page-fortune-tiger__btn-secondary--light:hover {
  background-color: var(--page-fortune-tiger-text-main);
  color: var(--page-fortune-tiger-bg-main);
}

/* Content Area */
.page-fortune-tiger__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-fortune-tiger__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-fortune-tiger__content-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-fortune-tiger__text-block {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

.page-fortune-tiger p {
  color: var(--page-fortune-tiger-text-secondary);
  margin-bottom: 15px;
}

.page-fortune-tiger__highlight {
  color: var(--page-fortune-tiger-primary);
  font-weight: bold;
}

.page-fortune-tiger__inline-link {
  color: var(--page-fortune-tiger-secondary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-fortune-tiger__inline-link:hover {
  color: var(--page-fortune-tiger-gold);
}

.page-fortune-tiger__inline-link--light {
  color: var(--page-fortune-tiger-text-main);
}

.page-fortune-tiger__inline-link--light:hover {
  color: var(--page-fortune-tiger-gold);
}

.page-fortune-tiger__numbered-list,
.page-fortune-tiger__bullet-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-fortune-tiger__numbered-list li,
.page-fortune-tiger__bullet-list li {
  color: var(--page-fortune-tiger-text-secondary);
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.page-fortune-tiger__numbered-list li::before {
  content: counter(list-item) ".";
  counter-increment: list-item;
  position: absolute;
  left: 0;
  color: var(--page-fortune-tiger-primary);
  font-weight: bold;
}

.page-fortune-tiger__bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--page-fortune-tiger-primary);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.page-fortune-tiger__icon-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-fortune-tiger__icon-list li {
  color: var(--page-fortune-tiger-text-secondary);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-fortune-tiger__icon {
  color: var(--page-fortune-tiger-primary);
  font-size: 1.5em;
  line-height: 1;
  flex-shrink: 0;
}

/* Cards Grid */
.page-fortune-tiger__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fortune-tiger__card {
  background-color: var(--page-fortune-tiger-bg-card);
  border: 1px solid var(--page-fortune-tiger-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fortune-tiger__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce minimum size */
}

.page-fortune-tiger__card-title {
  font-size: 1.5em;
  color: var(--page-fortune-tiger-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fortune-tiger__card-text {
  color: var(--page-fortune-tiger-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Dark Section */
.page-fortune-tiger__dark-section {
  background-color: var(--page-fortune-tiger-deep-green);
  color: var(--page-fortune-tiger-text-main);
  text-align: center;
  padding: 80px 20px;
}

.page-fortune-tiger__cta-description--light {
  color: var(--page-fortune-tiger-text-secondary);
  font-size: 1.1em;
  margin-bottom: 40px;
}

/* FAQ Section */
.page-fortune-tiger__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-fortune-tiger__faq-item {
  background-color: var(--page-fortune-tiger-bg-card);
  border: 1px solid var(--page-fortune-tiger-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-fortune-tiger__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-fortune-tiger-text-main);
  background-color: var(--page-fortune-tiger-deep-green);
  border-bottom: 1px solid var(--page-fortune-tiger-divider);
}

.page-fortune-tiger__faq-item[open] .page-fortune-tiger__faq-question {
  border-bottom: 1px solid var(--page-fortune-tiger-border);
}

.page-fortune-tiger__faq-qtext {
  flex-grow: 1;
}

.page-fortune-tiger__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-fortune-tiger-gold);
}

/* For details tag, remove default marker */
.page-fortune-tiger__faq-item summary {
  list-style: none;
}
.page-fortune-tiger__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-fortune-tiger__faq-answer {
  padding: 20px 25px;
  color: var(--page-fortune-tiger-text-secondary);
  font-size: 1em;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-fortune-tiger__content-wrapper,
  .page-fortune-tiger__content-wrapper--reversed {
    flex-direction: column;
  }

  .page-fortune-tiger__content-image,
  .page-fortune-tiger__text-block {
    max-width: 100%;
    min-width: unset;
  }

  .page-fortune-tiger__content-image {
    order: -1; /* Image first on mobile for reversed sections */
  }
  .page-fortune-tiger__content-wrapper--reversed .page-fortune-tiger__content-image {
    order: unset; /* Revert order for non-reversed sections */
  }
}

@media (max-width: 768px) {
  .page-fortune-tiger__section {
    padding: 40px 15px;
  }

  .page-fortune-tiger__hero-content {
    padding: 30px 15px;
    margin-top: -60px; /* Adjust for smaller screens */
  }

  .page-fortune-tiger__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-fortune-tiger__hero-description {
    font-size: clamp(0.9em, 3vw, 1em);
  }

  .page-fortune-tiger__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-fortune-tiger__btn-primary,
  .page-fortune-tiger__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsive rules */
  .page-fortune-tiger img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important; /* Ensure min size */
  }

  .page-fortune-tiger__hero-image-wrapper,
  .page-fortune-tiger__content-wrapper,
  .page-fortune-tiger__cards-grid,
  .page-fortune-tiger__faq-list,
  .page-fortune-tiger__card,
  .page-fortune-tiger__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-fortune-tiger__card-image {
    height: auto !important; /* Allow height to adjust */
    max-height: 250px !important; /* Limit max height */
  }

  .page-fortune-tiger__dark-section {
    padding: 60px 15px;
  }

  .page-fortune-tiger__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-fortune-tiger__faq-answer {
    padding: 15px 20px;
  }
  
  /* Video section specific rules (if any, though not present in this HTML) */
  .page-fortune-tiger__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-fortune-tiger__video-container,
  .page-fortune-tiger__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Ensure minimum size for all images in content area, regardless of specific class */
.page-fortune-tiger img {
  min-width: 200px;
  min-height: 200px;
}

/* Contrast Fixes - if needed */
.page-fortune-tiger__dark-bg {
  color: var(--page-fortune-tiger-text-main); /* Light text on dark background */
}
.page-fortune-tiger__light-bg {
  color: #333333; /* Dark text on light background (e.g., if a white card is used) */
  background: #ffffff;
}