/* style/fortune-ox.css */

/* Variáveis de cor */
:root {
  --primary-color: #F2C14E; /* Main color */
  --secondary-color: #FFD36B; /* Auxiliary color */
  --bg-dark: #0A0A0A; /* Background */
  --card-bg: #111111; /* Card Background */
  --text-main: #FFF6D6; /* Main text color */
  --border-color: #3A2A12; /* Border color */
  --glow-color: #FFD36B; /* Glow color */
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --text-dark-contrast: #333333; /* For light backgrounds */
  --text-light-contrast: #ffffff; /* For dark backgrounds */
  --primary-color-rgb: 242, 193, 78; /* RGB for #F2C14E */
}

/* Base styles for the page-fortune-ox scope */
.page-fortune-ox {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--bg-dark); /* Overall dark background */
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Main content container */
.page-fortune-ox__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-fortune-ox__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-fortune-ox__section:last-of-type {
  border-bottom: none;
}

.page-fortune-ox__section-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-fortune-ox__paragraph {
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-main);
}

.page-fortune-ox__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-fortune-ox__text-link {
  color: var(--primary-color);
  text-decoration: underline;
}
.page-fortune-ox__text-link:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.page-fortune-ox__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* Fixed header offset is handled by body, use small padding for visual spacing */
  padding-top: 10px;
  background-color: var(--bg-dark); /* Ensure dark background for the section */
}

.page-fortune-ox__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width for flex item */
}

.page-fortune-ox__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-fortune-ox__hero-image img {
  width: 1200px; /* Display width */
  height: 675px; /* Display height */
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-fortune-ox__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-fortune-ox__main-title {
  color: var(--text-light-contrast); /* Ensure light text for dark background */
  font-size: clamp(2.2em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortune-ox__hero-description {
  color: var(--text-main);
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortune-ox__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: var(--text-light-contrast);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fortune-ox__cta-button:hover {
  filter: brightness(1.1); /* Subtle hover effect without changing color hue */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-fortune-ox__cta-button--small {
  padding: 12px 30px;
  font-size: 16px;
  margin-top: 20px;
}

.page-fortune-ox__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
}

.page-fortune-ox__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Image wrappers for content sections */
.page-fortune-ox__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-fortune-ox__image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

.page-fortune-ox__image-wrapper--left img {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  max-width: 45%; /* Example: 45% width for float */
  width: 800px; /* Display width */
  height: 600px; /* Display height */
}

.page-fortune-ox__image-wrapper--right img {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  max-width: 45%; /* Example: 45% width for float */
  width: 800px; /* Display width */
  height: 600px; /* Display height */
}

/* Clear floats */
.page-fortune-ox__section::after {
  content: "";
  display: table;
  clear: both;
}

/* Feature cards grid */
.page-fortune-ox__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fortune-ox__feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fortune-ox__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

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

.page-fortune-ox__card-text {
  color: var(--text-main);
  font-size: 0.95em;
}

/* List styles */
.page-fortune-ox__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-fortune-ox__list-item {
  background-color: var(--card-bg);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-fortune-ox__faq-section {
  background-color: var(--bg-dark);
}

.page-fortune-ox__faq-list {
  margin-top: 40px;
}

details.page-fortune-ox__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
}
details.page-fortune-ox__faq-item summary.page-fortune-ox__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
  font-weight: bold;
}
details.page-fortune-ox__faq-item summary.page-fortune-ox__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fortune-ox__faq-item summary.page-fortune-ox__faq-question:hover {
  background: rgba(var(--primary-color-rgb), 0.1); /* Use rgba for hover effect */
}
.page-fortune-ox__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main); /* Override summary color for question text */
}
.page-fortune-ox__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fortune-ox__faq-item .page-fortune-ox__faq-answer {
  padding: 0 20px 20px;
  background: var(--card-bg);
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
}
.page-fortune-ox__faq-answer p {
  margin: 0;
  padding: 0;
}

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

.page-fortune-ox__blog-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fortune-ox__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.page-fortune-ox__blog-card img {
  width: 400px; /* Display width */
  height: 300px; /* Display height */
  max-width: 100%;
  display: block;
  border-radius: 5px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-fortune-ox__blog-card .page-fortune-ox__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  text-align: left;
}

.page-fortune-ox__blog-card .page-fortune-ox__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-fortune-ox__blog-card .page-fortune-ox__card-title a:hover {
  color: var(--secondary-color);
}

.page-fortune-ox__blog-card .page-fortune-ox__card-text {
  font-size: 0.9em;
  color: var(--text-main);
  flex-grow: 1;
  text-align: left;
}

.page-fortune-ox__blog-card time {
  font-size: 0.85em;
  color: #888;
  margin-top: 15px;
  display: block;
  text-align: left;
}

/* Final CTA Section */
.page-fortune-ox__cta-final {
  background-color: var(--primary-color);
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.page-fortune-ox__cta-final-content {
  color: var(--text-light-contrast);
}

.page-fortune-ox__cta-final .page-fortune-ox__section-title {
  color: var(--text-light-contrast);
  margin-bottom: 20px;
}

.page-fortune-ox__cta-final .page-fortune-ox__paragraph {
  color: var(--text-light-contrast);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fortune-ox__hero-image img {
    height: auto;
    width: 100%;
  }

  .page-fortune-ox__image-wrapper--left img,
  .page-fortune-ox__image-wrapper--right img {
    float: none;
    margin: 20px auto;
    max-width: 80%;
    width: auto;
    height: auto;
  }
}

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

  .page-fortune-ox__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-fortune-ox__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fortune-ox__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-fortune-ox__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-fortune-ox__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-fortune-ox__cta-button--small {
    padding: 10px 25px;
    font-size: 15px;
  }

  .page-fortune-ox__cta-button--large {
    padding: 15px 40px;
    font-size: 18px;
  }

  .page-fortune-ox__section {
    padding: 40px 0;
  }

  .page-fortune-ox__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-fortune-ox__image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-fortune-ox__image-wrapper--left img,
  .page-fortune-ox__image-wrapper--right img {
    max-width: 100% !important;
    width: 100% !important;
    float: none;
    margin-left: auto;
    margin-right: auto;
  }

  .page-fortune-ox__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fortune-ox__feature-card {
    padding: 20px;
  }

  .page-fortune-ox__card-title {
    font-size: 1.3em;
  }

  .page-fortune-ox__blog-grid {
    grid-template-columns: 1fr;
  }

  details.page-fortune-ox__faq-item summary.page-fortune-ox__faq-question { padding: 15px; }
  .page-fortune-ox__faq-qtext {
    font-size: 15px;
    width: calc(100% - 40px); /* Adjust width for text to prevent overflow with toggle */
  }

  .page-fortune-ox p,
  .page-fortune-ox li {
    font-size: 15px;
  }

  /* Content area max-width for containers in mobile */
  .page-fortune-ox__section,
  .page-fortune-ox__card,
  .page-fortune-ox__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button container mobile adaptation */
  .page-fortune-ox__cta-buttons,
  .page-fortune-ox__button-group,
  .page-fortune-ox__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;
  }
  
  .page-fortune-ox__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}