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

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #ffffff; /* White text on brand color background */
}

.page-terms-conditions__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    height: auto;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive H1 font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-terms-conditions__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Call to Action Button */
.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-terms-conditions__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #d16b06;
    transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* White background for main content */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__section-block {
    margin-bottom: 40px;
}

.page-terms-conditions__section-title {
    font-size: 2em;
    color: #26A9E0; /* Primary brand color for section titles */
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.5em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    color: #333333;
}

.page-terms-conditions__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #333333;
}

.page-terms-conditions__list--ordered {
    list-style-type: decimal;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #333333;
}

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

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

.page-terms-conditions__link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-terms-conditions__link:hover {
    color: #1a7bb2;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    margin-top: 60px;
    background-color: #f0f7fa; /* Light blue background for FAQ */
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-terms-conditions__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: 700;
    font-size: 1.1em;
    color: #333333;
    cursor: pointer;
    background-color: #fdfdfd;
    user-select: none;
    transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

/* For <details> tag, hide default marker */
.page-terms-conditions__faq-item summary {
    list-style: none;
}
.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-terms-conditions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-answer {
    max-height: 2000px; /* Large enough for content */
    padding-top: 10px;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
    content: "−"; /* Change to minus sign when open */
}

/* Call to Action at the end */
.page-terms-conditions__call-to-action {
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-text {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Image/Video/Button Responsive Styles */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-terms-conditions__cta-buttons,
.page-terms-conditions__button-group,
.page-terms-conditions__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-terms-conditions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
    }

    .page-terms-conditions__description {
        font-size: 1em;
    }

    .page-terms-conditions__content-area {
        padding: 20px 15px;
    }

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

    .page-terms-conditions__sub-title {
        font-size: 1.2em;
    }

    .page-terms-conditions__faq-section {
        padding: 30px 15px;
    }

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

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

    .page-terms-conditions__call-to-action {
        padding: 30px 15px;
    }

    .page-terms-conditions__cta-text {
        font-size: 1.2em;
    }

    /* Images */
    .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__hero-section,
    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section,
    .page-terms-conditions__call-to-action {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Buttons */
    .page-terms-conditions__cta-button,
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary,
    .page-terms-conditions a[class*="button"],
    .page-terms-conditions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Space between stacked buttons */
    }
    
    .page-terms-conditions__cta-buttons,
    .page-terms-conditions__button-group,
    .page-terms-conditions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex context for wrap */
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}