/* style/pinatawins.css */

/* Base styles for the page content */
.page-pinatawins {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main from custom colors, for dark body background */
  line-height: 1.6;
  background-color: #B71C1C; /* Background from custom colors */
}

/* Section styling */
.page-pinatawins__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't spill out */
}

.page-pinatawins__section:nth-of-type(even) {
  background-color: #7A0E0E; /* Deep Red for alternating sections */
}

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

/* Hero Section */
.page-pinatawins__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: #B71C1C; /* Background from custom colors */
}

.page-pinatawins__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height */
  margin-bottom: 30px; /* Space between image and content */
}

.page-pinatawins__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-pinatawins__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  color: #F4D34D; /* Gold from custom colors */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.7); /* Glow effect */
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-pinatawins__description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
}

/* Call to Action Buttons */
.page-pinatawins__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-pinatawins__btn-primary,
.page-pinatawins__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-pinatawins__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F2B544; /* Border custom color */
}

.page-pinatawins__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-pinatawins__btn-secondary {
  background-color: transparent;
  color: #F4D34D; /* Gold for text on secondary button */
  border: 2px solid #F2B544; /* Border custom color */
}

.page-pinatawins__btn-secondary:hover {
  background-color: #F4D34D; /* Gold background on hover */
  color: #7A0E0E; /* Deep Red text on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-pinatawins__btn-large {
  padding: 18px 40px;
  font-size: 1.3rem;
  border-width: 3px;
}

/* Section Titles */
.page-pinatawins__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #F4D34D; /* Gold */
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.5); /* Glow effect */
}

.page-pinatawins__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #F2B544; /* Border custom color */
  border-radius: 2px;
}

.page-pinatawins__sub-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #FFD86A; /* Lighter gold/yellow for sub-titles */
  margin-top: 40px;
  margin-bottom: 25px;
  text-shadow: 0 0 5px rgba(255, 216, 106, 0.4);
}

/* Paragraphs and Lists */
.page-pinatawins p {
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
  font-size: 1.1rem;
}

.page-pinatawins__list,
.page-pinatawins__ordered-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-pinatawins__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
}

.page-pinatawins__list-item::before {
  content: '★'; /* Star bullet for lists */
  position: absolute;
  left: 0;
  color: #F4D34D; /* Gold */
  font-size: 1.3em;
  line-height: 1;
}

.page-pinatawins__ordered-list .page-pinatawins__list-item {
  counter-increment: list-counter;
}

.page-pinatawins__ordered-list .page-pinatawins__list-item::before {
  content: counter(list-counter) '.';
  position: absolute;
  left: 0;
  color: #F4D34D; /* Gold */
  font-weight: bold;
  font-size: 1.2em;
}

/* Images in content */
.page-pinatawins__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 3px solid #F2B544; /* Border custom color */
  max-width: 800px; /* Constrain content images */
}

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

.page-pinatawins__card {
  background-color: #D32F2F; /* Card BG from custom colors */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid #F2B544; /* Border custom color */
  color: #FFF5E1; /* Text Main for card content */
}

.page-pinatawins__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #E53935; /* Auxiliary color for card image border */
}

.page-pinatawins__card-title {
  font-size: 1.4rem;
  color: #FFD86A; /* Lighter gold/yellow */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-pinatawins__card-title a {
  color: #FFD86A; /* Lighter gold/yellow for links in card title */
  text-decoration: none;
}

.page-pinatawins__card-title a:hover {
  text-decoration: underline;
}

.page-pinatawins__card p {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1; /* Make paragraphs grow to fill space */
  color: #FFF5E1; /* Text Main */
}

.page-pinatawins__card .page-pinatawins__btn-primary {
  margin-top: auto; /* Push button to bottom */
  width: auto; /* Allow button to size naturally */
  align-self: center; /* Center button in card */
}

/* FAQ Section */
.page-pinatawins__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-pinatawins__faq-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border custom color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-pinatawins__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD86A; /* Lighter gold/yellow */
  cursor: pointer;
  background-color: #E53935; /* Auxiliary color for question background */
  border-bottom: 1px solid #7A0E0E; /* Deep Red for border */
}

.page-pinatawins__faq-question:hover {
  background-color: #C91F17; /* Main color on hover */
}

.page-pinatawins__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #F4D34D; /* Gold */
  transition: transform 0.3s ease;
}

.page-pinatawins__faq-item[open] .page-pinatawins__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become an 'x' or 'minus' */
}

.page-pinatawins__faq-answer {
  padding: 20px 25px;
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
  background-color: #D32F2F; /* Card BG */
}

.page-pinatawins__faq-answer p {
  margin-bottom: 0; /* Remove bottom margin for last paragraph in answer */
}

.page-pinatawins__faq-answer a {
  color: #FFD86A; /* Lighter gold/yellow for links in FAQ answer */
  text-decoration: underline;
}

/* Text alignment */
.page-pinatawins__text-center {
  text-align: center;
}

/* Links */
.page-pinatawins a {
  color: #F4D34D; /* Gold for general links */
  text-decoration: underline;
}

.page-pinatawins a:hover {
  color: #FFD86A; /* Lighter gold/yellow on hover */
  text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-pinatawins__section {
    padding: 40px 0;
  }

  .page-pinatawins__hero-section {
    padding-bottom: 40px;
  }

  .page-pinatawins__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-pinatawins__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-pinatawins__btn-primary,
  .page-pinatawins__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-pinatawins__btn-large {
    padding: 15px 25px;
    font-size: 1.1rem;
  }

  .page-pinatawins__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-pinatawins__sub-title {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-pinatawins p,
  .page-pinatawins__list-item {
    font-size: 1rem;
  }

  .page-pinatawins__card-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-pinatawins__card-title {
    font-size: 1.2rem;
  }

  .page-pinatawins__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-pinatawins__faq-answer {
    padding: 15px 20px;
    font-size: 1rem;
  }

  /* Universal image responsiveness */
  .page-pinatawins img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Universal video responsiveness (if any) */
  .page-pinatawins video,
  .page-pinatawins__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsiveness for images and videos */
  .page-pinatawins__container,
  .page-pinatawins__card,
  .page-pinatawins__hero-content,
  .page-pinatawins__cta-buttons,
  .page-pinatawins__card-grid,
  .page-pinatawins__faq-list,
  .page-pinatawins__video-section,
  .page-pinatawins__video-container,
  .page-pinatawins__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for video section on mobile */
  .page-pinatawins__video-section {
    padding-top: 10px !important; /* Small top padding for mobile, body handles main offset */
  }

  .page-pinatawins__card-image {
    height: auto; /* Allow height to adjust on mobile */
  }
}

/* Ensure no CSS filter on images */
.page-pinatawins img {
  filter: none !important;
}

/* Contrast fix for text on dark backgrounds - applied to relevant elements */
.page-pinatawins__dark-bg {
  color: #ffffff; /* Example for dark background */
  background: #C91F17; /* Using main brand color */
}

/* Specific contrast rules for elements */
.page-pinatawins__hero-content, .page-pinatawins__description, .page-pinatawins p, .page-pinatawins li {
  color: #FFF5E1; /* Text Main for all general text on dark backgrounds */
}

.page-pinatawins__card {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main for card content */
}

.page-pinatawins__faq-answer {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main for FAQ answer */
}