/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
  color: #f0f0f0; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content area uses body background */
}

/* Padding for fixed header, only if not homepage and no hero image */
.page-terms-conditions__content-section--padding-top {
  padding-top: 120px; /* Desktop default */
}

/* Hero Banner Section */
.page-terms-conditions__hero-banner {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD700, #DC143C); /* Brand colors */
  color: #ffffff;
  min-height: 400px;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
}

.page-terms-conditions__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.page-terms-conditions__subtitle {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #f0f0f0;
  font-weight: 300;
}

/* General Content Section */
.page-terms-conditions__content-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1); /* Use body background for main sections */
}

.page-terms-conditions__dark-section {
  background-color: #1a1a1a; /* Slightly darker background for contrast */
  color: #f0f0f0;
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-terms-conditions__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold color for main titles */
  margin-bottom: 40px;
  text-align: center;
  font-weight: 600;
}

.page-terms-conditions__sub-section-title {
  font-size: 1.8em;
  color: #f0f0f0;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 500;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-terms-conditions__paragraph--centered {
  text-align: center;
  margin-top: 30px;
}

.page-terms-conditions__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-terms-conditions__list-item strong {
  color: #FFD700;
}

.page-terms-conditions a {
  color: #FFD700; /* Gold for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
  color: #f8e076; /* Lighter gold on hover */
  text-decoration: underline;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 20px;
  margin-right: 15px;
}

.page-terms-conditions__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #1a1a1a; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #f8e076;
  border-color: #f8e076;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #FFD700;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-link {
  display: inline-block;
  padding: 8px 15px;
  font-size: 0.95em;
  font-weight: 500;
  color: #FFD700;
  border: 1px solid #FFD700;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.page-terms-conditions__btn-link:hover {
  background-color: #FFD700;
  color: #1a1a1a;
  transform: translateY(-1px);
}

/* Highlighted text */
.page-terms-conditions .highlight {
  color: #DC143C; /* Deep red for highlights */
  font-weight: bold;
}

/* Image with Text Block */
.page-terms-conditions__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-terms-conditions__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-terms-conditions__image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px; /* Ensure images are not too wide */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-terms-conditions__text-wrapper {
  flex: 2;
}

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

.page-terms-conditions__card {
  background-color: #2a2a2a; /* Darker background for cards */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #f0f0f0;
  border: 1px solid rgba(255, 215, 0, 0.3); /* Subtle gold border */
}

.page-terms-conditions__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #e0e0e0;
  flex-grow: 1;
  margin-bottom: 15px;
}


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

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2a2a2a; /* Darker background for FAQ items */
}

.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 20px;
  opacity: 0;
  color: #e0e0e0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough */
  padding: 20px !important;
  opacity: 1;
  background: #3a3a3a; /* Slightly different background for active answer */
  border-radius: 0 0 5px 5px;
}

.page-terms-conditions__faq-answer p {
  margin: 0;
  font-size: 1.05em;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #333333; /* Darker background for question */
  border: 1px solid #444444;
  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: #444444;
  border-color: #555555;
}

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

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #f0f0f0;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  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-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: #DC143C; /* Red when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or change to '-' in JS */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 3em;
  }

  .page-terms-conditions__subtitle {
    font-size: 1.3em;
  }

  .page-terms-conditions__section-title {
    font-size: 2em;
  }

  .page-terms-conditions__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-terms-conditions__image-text-block--reverse {
    flex-direction: column; /* Keep column for reverse on mobile */
  }

  .page-terms-conditions__image-wrapper {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__content-section--padding-top {
    padding-top: 100px; /* Mobile padding for fixed header */
  }

  .page-terms-conditions__hero-banner {
    padding: 60px 15px;
    min-height: 300px;
  }

  .page-terms-conditions__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-terms-conditions__subtitle {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    padding: 10px 20px;
    font-size: 1em;
    margin-right: 10px;
    margin-top: 15px;
  }

  .page-terms-conditions__content-section {
    padding: 40px 15px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-terms-conditions__sub-section-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item,
  .page-terms-conditions__card-text {
    font-size: 1em;
    line-height: 1.7;
  }

  .page-terms-conditions__list {
    margin-left: 20px;
  }

  .page-terms-conditions__grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-terms-conditions__card {
    padding: 20px;
  }

  .page-terms-conditions__card-title {
    font-size: 1.3em;
  }

  .page-terms-conditions__card img {
    height: 180px;
  }

  /* FAQ Mobile */
  .page-terms-conditions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-terms-conditions__faq-question h3 {
    font-size: 1.1em;
    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;
  }

  /* Mobile image responsive fix */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}