/* style/terms-conditions.css */

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

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    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; /* Primary color background */
    color: #ffffff; /* White text for contrast */
    overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and text */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Responsive image */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-terms-conditions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 100%; /* Ensure it doesn't overflow */
}

.page-terms-conditions__description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Call to Action Button */
.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsive button */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-terms-conditions__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
    margin-right: 15px; /* Spacing for multiple buttons */
}

.page-terms-conditions__btn-primary:hover {
    background-color: #e06c00;
    border-color: #e06c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary color for secondary CTA text */
    border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Main 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);
    margin-top: -30px; /* Slightly overlap hero section */
    position: relative;
    z-index: 2;
}

.page-terms-conditions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #26A9E0; /* Primary color for section titles */
    margin-top: 40px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

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

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

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

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

.page-terms-conditions__highlight {
    font-weight: 700;
    color: #26A9E0; /* Highlight important keywords with primary color */
}

.page-terms-conditions__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure responsive image */
}

/* Button group for end of content */
.page-terms-conditions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* 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: 2rem;
        margin-bottom: 15px;
    }

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

    .page-terms-conditions__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-right: 0 !important; /* Remove right margin for stacked buttons */
        margin-bottom: 15px; /* Add bottom margin for stacked buttons */
    }

    .page-terms-conditions__btn-primary, .page-terms-conditions__btn-secondary {
        margin-right: 0;
    }

    .page-terms-conditions__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to button group container */
    }

    .page-terms-conditions__content-area {
        padding: 20px 15px;
        margin-top: -20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__section-title {
        font-size: 1.5rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__sub-section-title {
        font-size: 1.2rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* Mobile image responsiveness */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-terms-conditions__hero-image-wrapper,
    .page-terms-conditions__image-full {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Container for images (if any) */
    .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__video-section {
        padding-top: 10px !important;
    }
}

/* Color contrast enforcement */
.page-terms-conditions__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

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