/* style/terms-conditions.css */

/* Base styles for the page content, considering dark body background */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Main content background is transparent, relies on body background */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: #0d0d0d; /* Slightly lighter dark background for hero */
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width */
    margin-bottom: 20px; /* Space between image and text */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
}

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

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

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #0a0a0a; /* Ensure content area has a dark background for light text */
    color: #ffffff; /* Light text for dark background */
}

.page-terms-conditions__container {
    max-width: 900px; /* Inner container for main text readability */
    margin: 0 auto;
}

.page-terms-conditions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #26A9E0; /* Brand color for titles */
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.3;
}

.page-terms-conditions__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

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

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

.page-terms-conditions__list li {
    margin-bottom: 10px;
    color: #f0f0f0;
}

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

.page-terms-conditions a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
}

.page-terms-conditions a:hover {
    color: #4dbff2; /* Lighter shade on hover */
    text-decoration: none;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-terms-conditions__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin-right: 15px;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #1e87bb;
    border-color: #1e87bb;
}

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

.page-terms-conditions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Image with Text Block */
.page-terms-conditions__image-text-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-terms-conditions__image-text-block--reverse {
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-terms-conditions__image-text-block img {
    flex: 0 0 auto; /* Don't grow or shrink */
    width: 40%; /* Adjust width for image */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 300px; /* Minimum size for images, per requirement */
}

.page-terms-conditions__text-block {
    flex: 1 1 55%; /* Allow text block to grow */
    min-width: 300px; /* Minimum size for text block */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-terms-conditions__faq-section .page-terms-conditions__content-image {
    flex: 0 0 auto;
    width: 40%;
    min-width: 300px;
}

.page-terms-conditions__faq-list {
    flex: 1 1 55%;
    min-width: 300px;
}

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ item */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none; /* For details/summary */
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-terms-conditions__faq-item[open] > .page-terms-conditions__faq-question {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-terms-conditions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #e0e0e0;
}

/* CTA Section */
.page-terms-conditions__cta-section {
    position: relative;
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px; /* Padding for content over image */
    background-color: #1a1a1a; /* Fallback background */
}

.page-terms-conditions__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make image subtle */
    z-index: 1;
}

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

.page-terms-conditions__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-terms-conditions__cta-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on mobile */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-section {
        padding: 10px 15px 50px;
    }

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

    .page-terms-conditions__image-text-block,
    .page-terms-conditions__image-text-block--reverse,
    .page-terms-conditions__faq-section {
        flex-direction: column; /* Stack elements vertically */
        align-items: center;
        gap: 20px;
    }

    .page-terms-conditions__image-text-block img,
    .page-terms-conditions__faq-section .page-terms-conditions__content-image {
        width: 100%; /* Full width for images */
        max-width: 600px; /* Max width for images */
    }

    .page-terms-conditions__text-block,
    .page-terms-conditions__faq-list {
        width: 100%;
        max-width: 600px; /* Max width for text blocks */
    }
}

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

    .page-terms-conditions__hero-section {
        padding: 10px 10px 40px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

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

    .page-terms-conditions__content-area {
        padding: 30px 10px;
    }

    .page-terms-conditions__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__sub-title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    /* Mobile image responsiveness */
    .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,
    .page-terms-conditions__hero-image-wrapper,
    .page-terms-conditions__image-text-block img,
    .page-terms-conditions__faq-section .page-terms-conditions__content-image,
    .page-terms-conditions__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
    }
    .page-terms-conditions__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-terms-conditions__hero-image {
        border-radius: 0;
    }

    /* Mobile button responsiveness */
    .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;
        margin-right: 0 !important; /* Remove right margin for stacking */
        margin-bottom: 10px; /* Add bottom margin for stacking */
        padding-left: 15px; /* Ensure padding inside button */
        padding-right: 15px;
    }
    
    .page-terms-conditions__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px; /* Space between stacked buttons */
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    .page-terms-conditions__cta-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .page-terms-conditions__cta-description {
        font-size: 0.95rem;
    }
}