/* style/terms-conditions.css */

/* --- Base Styles --- */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #f8f8f8; /* Slightly off-white background for content */
}

.page-terms-conditions__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-terms-conditions__section:first-of-type {
  margin-top: 30px; /* Add some space after hero if no padding-top on main */
}

.page-terms-conditions__section-title {
  font-size: 28px;
  color: #8B0000; /* Auxiliary color for titles */
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-terms-conditions h3 {
  font-size: 22px;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-terms-conditions a {
  color: #FFD700; /* Primary color for links */
  text-decoration: none;
  font-weight: 500;
}

.page-terms-conditions a:hover {
  text-decoration: underline;
  color: #8B0000; /* Auxiliary color on hover */
}

/* --- Hero Section --- */
.page-terms-conditions__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, #FFD700, #8B0000); /* Brand colors gradient */
  color: #ffffff; /* White text for dark background */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-terms-conditions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above potential background effects */
}

.page-terms-conditions__hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-terms-conditions__hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  width: 100%; /* Ensure container takes full width for wrapping */
}

.page-terms-conditions__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 12px rgba(0, 0, 0, 0.2);
  min-width: 180px; /* Minimum width for buttons */
  text-align: center;
}

.page-terms-conditions__cta-button--primary {
  background: #FFD700; /* Primary color */
  color: #ffffff;
  border: 2px solid #FFD700;
}

.page-terms-conditions__cta-button--primary:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-terms-conditions__cta-button--secondary {
  background: #8B0000; /* Auxiliary color */
  color: #ffffff;
  border: 2px solid #8B0000;
}

.page-terms-conditions__cta-button--secondary:hover {
  background: #6f0000; /* Slightly darker red on hover */
  border-color: #6f0000;
  transform: translateY(-2px);
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Limit width for content images */
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-terms-conditions__promo-cta {
  background-color: #fdf3e2; /* Light background for promo */
  border-left: 5px solid #FFD700;
  padding: 25px 30px;
  margin: 40px 0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-terms-conditions__promo-cta p {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 20px;
}

/* --- FAQ Section --- */
.page-terms-conditions__faq-container {
  margin-top: 40px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-terms-conditions__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;
  background: #f9f9f9;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-terms-conditions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-terms-conditions__faq-question:active {
  background: #eeeeee;
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}

.page-terms-conditions__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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: #8B0000; /* Auxiliary color for active toggle */
  transform: rotate(45deg); /* Change from + to X visually */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 36px;
  }
  .page-terms-conditions__hero-description {
    font-size: 16px;
  }
  .page-terms-conditions__section-title {
    font-size: 24px;
  }
  .page-terms-conditions h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__hero-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__hero-description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-terms-conditions__hero-buttons {
    flex-direction: column; /* Stack buttons vertically */\    gap: 10px;
    width: 100%; /* Ensure full width for stacking */
  }

  .page-terms-conditions__cta-button {
    width: 100% !important; /* Full width for mobile buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-terms-conditions__section {
    padding: 30px 15px;
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .page-terms-conditions h3 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-terms-conditions p {
    font-size: 15px;
  }

  /* Images responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-terms-conditions__content-image {
    margin: 20px auto !important;
  }

  .page-terms-conditions__promo-cta {
    padding: 20px 15px;
    margin: 30px 0;
  }

  .page-terms-conditions__promo-cta p {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-terms-conditions__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-terms-conditions__faq-answer {
    padding: 0 15px;
  }
  
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px !important;
  }
}