/* style/terms-conditions.css */

/* General page styling */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjusted to give more space below */
  padding-left: 20px;
  padding-right: 20px;
  background-color: #F4F7FB; /* Consistent background */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-terms-conditions__hero-content h1 {
  font-size: clamp(28px, 4vw, 48px); /* H1 font-size clamp */
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-terms-conditions__hero-content p {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

/* CTA Button - General Style */
.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

/* Content Area */
.page-terms-conditions__content-area {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.page-terms-conditions__main-heading {
  font-size: 36px;
  font-weight: 700;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 30px;
  text-align: center;
}

.page-terms-conditions__sub-heading {
  font-size: 24px;
  font-weight: 600;
  color: #2F6BFF; /* Primary color */
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #1F2D3D; /* Text Main */
}

.page-terms-conditions ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

.page-terms-conditions ul li {
  margin-bottom: 8px;
}

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

.page-terms-conditions a:hover {
  text-decoration: underline;
}

/* Images within content */
.page-terms-conditions__image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-terms-conditions__image--small {
  max-width: 600px;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background: #2F6BFF; /* Dark background for this section */
  color: #ffffff; /* White text for dark background */
  padding-top: 60px;
  padding-bottom: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.page-terms-conditions__faq-heading {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
}

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #6FA3FF; /* Border with auxiliary color */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
  background: #F4F7FB; /* Background hover */
}
.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Primary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 25px 20px;
  background: #F4F7FB; /* Background */
  border-radius: 0 0 8px 8px;
  color: #1F2D3D; /* Text Main */
}

/* CTA Section at bottom */
.page-terms-conditions__cta-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.page-terms-conditions__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-terms-conditions__cta-heading {
  font-size: 32px;
  font-weight: 700;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 20px;
}

.page-terms-conditions__cta-section p {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-terms-conditions__main-heading,
  .page-terms-conditions__faq-heading,
  .page-terms-conditions__cta-heading {
    font-size: 30px;
  }
  .page-terms-conditions__sub-heading {
    font-size: 22px;
  }
  .page-terms-conditions__hero-content h1 {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-terms-conditions__hero-content p,
  .page-terms-conditions__cta-section p {
    font-size: 16px;
  }
  details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
    padding: 15px 20px;
  }
  .page-terms-conditions__faq-qtext {
    font-size: 16px;
  }
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 20px 15px;
  }
}

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

  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* Important for mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__hero-content h1 {
    font-size: clamp(22px, 6vw, 36px);
    margin-bottom: 15px;
  }

  .page-terms-conditions__hero-content p {
    font-size: 15px;
    margin-bottom: 20px;
  }

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

  .page-terms-conditions__main-heading,
  .page-terms-conditions__faq-heading,
  .page-terms-conditions__cta-heading {
    font-size: 26px;
    margin-bottom: 25px;
  }

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

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

  .page-terms-conditions ul {
    padding-left: 20px;
  }

  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure minimum size */
  }
  
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
    padding: 15px;
  }
  .page-terms-conditions__faq-qtext {
    font-size: 15px;
  }
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 15px 15px;
  }

  .page-terms-conditions__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  
  .page-terms-conditions__cta-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

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

/* Additional button container responsive styles */
.page-terms-conditions__button-group {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex; /* Assuming buttons might be grouped horizontally */
  flex-wrap: wrap;
  gap: 10px; /* Spacing between buttons */
  justify-content: center;
}

@media (max-width: 768px) {
  .page-terms-conditions__button-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    padding-left: 15px;
    padding-right: 15px;
  }
}