/* style/terms-conditions.css */

/* Base styling for the terms and conditions page */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #FFFFFF; /* Matches body background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop and mobile */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%; /* Block element, no fixed width to prevent overflow */
    overflow: hidden;
    color: #FFFFFF; /* Light text on hero overlay */
    text-align: center;
    padding: 60px 20px; /* Responsive padding */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Minimum height for hero */
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    z-index: 1;
}

.page-terms-conditions__hero-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.page-terms-conditions__hero-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    line-height: 1.2;
}

.page-terms-conditions__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-terms-conditions__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text on button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
}

.page-terms-conditions__hero-button:hover {
    background-color: #FFD700; /* Lighter gold on hover */
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-terms-conditions__section-container {
    padding: 20px 0;
}

.page-terms-conditions__section-heading {
    font-size: 2em;
    color: #000000; /* Main brand color for headings */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FCBC45; /* Underline with accent color */
    padding-bottom: 10px;
}

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

.page-terms-conditions__paragraph {
    margin-bottom: 15px;
    font-size: 1em;
    color: #333333;
}

.page-terms-conditions__paragraph a {
    color: #FCBC45; /* Accent color for links */
    text-decoration: none;
    font-weight: bold;
}

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

.page-terms-conditions__image-text-group {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    align-items: flex-start;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-terms-conditions__image-text-group--reverse {
    flex-direction: row-reverse;
}

.page-terms-conditions__image-text-group .page-terms-conditions__image {
    flex: 1;
    min-width: 300px; /* Ensure image is not too small */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    width: 100%; /* For responsive scaling */
    height: auto;
    min-height: 200px; /* Minimum display size for content images */
    min-width: 200px; /* Minimum display size for content images */
}

.page-terms-conditions__image-text-group .page-terms-conditions__text-content {
    flex: 2;
    min-width: 300px; /* Ensure text content is not too small */
}

.page-terms-conditions__button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text on button */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    font-size: 1em;
}

.page-terms-conditions__button:hover {
    background-color: #FFD700; /* Lighter gold on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }

    .page-terms-conditions__hero-description {
        font-size: 0.9em;
    }

    .page-terms-conditions__hero-overlay {
        padding: 20px;
    }

    .page-terms-conditions__section-heading {
        font-size: 1.6em;
    }

    .page-terms-conditions__sub-heading {
        font-size: 1.3em;
    }

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

    .page-terms-conditions__image-text-group {
        flex-direction: column; /* Stack images and text vertically */
        gap: 20px;
    }

    .page-terms-conditions__image-text-group--reverse {
        flex-direction: column; /* Keep stacked for mobile */
    }

    .page-terms-conditions__image-text-group .page-terms-conditions__image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-height: 200px; /* Minimum display size for content images */
        min-width: 200px; /* Minimum display size for content images */
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.5em;
    }

    .page-terms-conditions__hero-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-terms-conditions__section-heading {
        font-size: 1.4em;
    }

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