/* ------------------------------------------ */
/* Page Specific Styles for Terms and Conditions */
/* ------------------------------------------ */

/* Base styles for the page content */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f8f8f8; /* Light background for readability */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #C91F17 0%, #E53935 100%); /* Brand colors */
    color: #FFF5E1; /* Light text for dark background */
    position: relative;
    overflow: hidden;
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    z-index: 1;
    padding: 0 20px;
}

.page-terms-conditions__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFF5E1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__intro-text {
    font-size: clamp(1em, 2vw, 1.2em);
    margin-bottom: 30px;
    color: #FFF5E1;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #333333; /* Dark text for contrast on bright button */
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    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(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-terms-conditions__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    opacity: 0.2; /* Subtle background image */
}

/* General Section Styles */
.page-terms-conditions__section {
    padding: 40px 0;
    margin-bottom: 20px;
}

.page-terms-conditions__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: #C91F17;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.page-terms-conditions__text-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-terms-conditions__text-block p {
    margin-bottom: 1em;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-terms-conditions__text-block ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
    padding-left: 15px;
}

.page-terms-conditions__text-block li {
    margin-bottom: 0.5em;
}

.page-terms-conditions__text-block a {
    color: #C91F17;
    text-decoration: underline;
}

.page-terms-conditions__text-block a:hover {
    color: #E53935;
}

.page-terms-conditions__image-wrapper {
    text-align: center;
    margin: 30px 0;
}

.page-terms-conditions__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Custom Background Sections */
.page-terms-conditions__dark-section {
    background-color: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Custom text color for dark background */
}

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

.page-terms-conditions__dark-section .page-terms-conditions__text-block a {
    color: #FFD86A; /* Gold link for dark background */
}

.page-terms-conditions__dark-section .page-terms-conditions__text-block a:hover {
    color: #F4D34D;
}

.page-terms-conditions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* FAQ Section */
details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: #f5f5f5;
}
.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer p {
    margin-bottom: 0;
}

/* ------------------------------------------ */
/* Responsive Styles */
/* ------------------------------------------ */

/* Mobile adaptation for HERO section at 849px and below */
@media (max-width: 849px) {
    .page-terms-conditions__hero-image img {
        object-fit: contain !important; /* Prevent cropping on smaller screens */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        width: 100% !important;
        height: auto !important;
    }
    .page-terms-conditions__hero-section {
        padding-bottom: 20px;
    }
    .page-terms-conditions__hero-image {
        position: relative; /* Adjust positioning for contain */
        height: auto;
        opacity: 0.1; /* Maintain subtlety */
    }
    .page-terms-conditions__hero-content {
        padding-top: 20px; /* Add some space above content */
    }
}

/* Mobile styles for screens up to 768px */
@media (max-width: 768px) {
    /* General mobile container padding */
    .page-terms-conditions__container,
    .page-terms-conditions__text-block {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section Mobile */
    .page-terms-conditions__hero-section {
        padding-top: 10px; /* Consistent small top padding */
        padding-bottom: 30px;
    }
    .page-terms-conditions__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-terms-conditions__intro-text {
        font-size: clamp(0.9em, 3vw, 1.1em);
        margin-bottom: 20px;
    }

    /* CTA Button Mobile */
    .page-terms-conditions__cta-button {
        padding: 12px 20px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Section Titles Mobile */
    .page-terms-conditions__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-bottom: 20px;
    }

    /* Text Block Mobile */
    .page-terms-conditions__text-block p,
    .page-terms-conditions__text-block li {
        font-size: 1em;
        line-height: 1.6;
    }

    /* Images Mobile */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-terms-conditions__image-wrapper {
        margin: 20px 0;
    }

    /* FAQ Mobile */
    details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
      padding: 15px;
    }
    .page-terms-conditions__faq-qtext {
      font-size: 15px;
    }
    .page-terms-conditions__faq-toggle {
      font-size: 20px;
      width: 24px;
      margin-left: 10px;
    }
    details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
      padding: 0 15px 15px;
    }
}