/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set background for content area */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px; /* Adjust padding as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
}

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

.page-terms-conditions__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-terms-conditions__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    font-weight: bold;
}

.page-terms-conditions__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-terms-conditions__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-terms-conditions__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 150px;
    text-align: center;
    font-size: 1.1em;
}

.page-terms-conditions__button--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-terms-conditions__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
}

.page-terms-conditions__button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-terms-conditions__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__section-heading {
    font-size: 2em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 10px;
}

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

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

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

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

.page-terms-conditions__content-area a {
    color: #FCBC45;
    text-decoration: none;
}

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

/* Images within content */
.page-terms-conditions__image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
}

.page-terms-conditions__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 15px;
    max-width: 400px; /* Specific width for floated images */
    width: 100%; /* Ensure responsiveness */
}

.page-terms-conditions__image--left {
    float: left;
    margin-right: 30px;
    margin-bottom: 15px;
    max-width: 400px; /* Specific width for floated images */
    width: 100%; /* Ensure responsiveness */
}

.page-terms-conditions__content-area::after {
    content: "";
    display: table;
    clear: both;
}

/* Call to Action */
.page-terms-conditions__call-to-action {
    text-align: center;
    background-color: #000000;
    padding: 50px 20px;
    border-radius: 8px;
    margin-top: 60px;
    color: #FFFFFF;
}

.page-terms-conditions__call-to-action .page-terms-conditions__sub-heading {
    color: #FCBC45;
    margin-bottom: 20px;
}

.page-terms-conditions__call-to-action p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-terms-conditions__button--join-now {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    margin-right: 15px;
}

.page-terms-conditions__button--join-now:hover {
    background-color: transparent;
    color: #FCBC45;
}

.page-terms-conditions__button--promo {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-terms-conditions__button--promo:hover {
    background-color: transparent;
    color: #FFFFFF;
}

/* Footer (within main for isolation) */
.page-terms-conditions__footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    background-color: #000000;
    color: #FFFFFF;
    border-top: 1px solid #333333;
}

.page-terms-conditions__copyright {
    font-size: 0.9em;
    color: #BBBBBB;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

    .page-terms-conditions__main-title {
        font-size: 2em;
    }

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

    .page-terms-conditions__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-terms-conditions__button {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

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

    .page-terms-conditions__section-heading {
        font-size: 1.8em;
        margin-top: 30px;
    }

    .page-terms-conditions__sub-heading {
        font-size: 1.3em;
        margin-top: 25px;
    }

    .page-terms-conditions__image--right,
    .page-terms-conditions__image--left {
        float: none;
        margin: 20px auto;
        max-width: 100%;
        width: 100%;
    }

    /* Ensure content images don't overflow on mobile */
    .page-terms-conditions img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Maintain minimum size */
        min-height: 200px; /* Maintain minimum size */
    }

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

    .page-terms-conditions__button--join-now {
        margin-bottom: 15px;
        margin-right: 0;
    }
}

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

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

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