/* style/terms-conditions.css */

/* Base Styles */
.page-terms-conditions {
  font-family: 'Roboto', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #F5F7FA;
}

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

.page-terms-conditions__section {
  padding: 60px 0;
}

.page-terms-conditions__dark-section {
  background-color: #E53935;
  color: #ffffff;
}

.page-terms-conditions__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
  line-height: 1.2;
}

.page-terms-conditions__dark-section .page-terms-conditions__section-title {
  color: #ffffff;
}

.page-terms-conditions__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

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

.page-terms-conditions__dark-section .page-terms-conditions__paragraph {
  color: #f0f0f0;
}

.page-terms-conditions a {
  color: #E53935;
  text-decoration: underline;
}

.page-terms-conditions__dark-section a {
  color: #FF5A4F;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  color: #ffffff;
  margin-top: 50px; /* Push content down below image for desktop */
}

.page-terms-conditions__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.1;
}

.page-terms-conditions__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Image Styling */
.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-terms-conditions__faq-list {
  margin-top: 40px;
}

.page-terms-conditions__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #E0E0E0;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-terms-conditions__faq-item[open] > .page-terms-conditions__faq-question {
  background-color: #E53935;
  color: #ffffff;
  border-bottom-color: #E53935;
}

.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-terms-conditions__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-terms-conditions__container {
    padding: 0 15px;
  }

  .page-terms-conditions__section {
    padding: 40px 0;
  }

  .page-terms-conditions__hero-content {
    margin-top: 0;
    padding: 20px 15px;
  }

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

  .page-terms-conditions__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__sub-title {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

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

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

  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__hero-section {
    padding-top: 10px !important;
  }

  .page-terms-conditions__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-terms-conditions__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__section {
    padding: 30px 0;
  }

  .page-terms-conditions__hero-content {
    padding: 15px;
  }

  .page-terms-conditions__main-title {
    font-size: 24px;
  }

  .page-terms-conditions__hero-description {
    font-size: 14px;
  }

  .page-terms-conditions__section-title {
    font-size: 22px;
  }

  .page-terms-conditions__sub-title {
    font-size: 18px;
  }
}