/* style/terms-conditions.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
}

.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-terms-conditions__hero-banner {
    position: relative;
    text-align: center;
    padding-top: 40px; /* Additional padding after header offset */
    padding-bottom: 60px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    overflow: hidden;
}

.page-terms-conditions__banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.2;
    z-index: 0;
}

.page-terms-conditions__banner-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-terms-conditions__main-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.page-terms-conditions__section-title {
    font-size: 32px;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.page-terms-conditions__section-title--white {
    color: var(--text-light);
}

.page-terms-conditions__description--white {
    color: var(--text-light);
}

.page-terms-conditions h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
}

.page-terms-conditions ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-terms-conditions li {
    margin-bottom: 8px;
    font-size: 16px;
}

.page-terms-conditions__image-content {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-terms-conditions__call-to-action {
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
}

.page-terms-conditions__cta-button--inverted {
    background: var(--text-light);
    color: var(--secondary-color);
}

.page-terms-conditions__cta-button--inverted:hover {
    background: #f0f0f0;
    color: var(--secondary-color);
}

.page-terms-conditions__footer-text {
    text-align: center;
    padding: 30px 20px;
    background-color: #222;
    color: #ccc;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 36px;
    }
    .page-terms-conditions__section-title {
        font-size: 28px;
    }
    .page-terms-conditions h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        padding-top: var(--header-offset, 120px) !important;
        font-size: 16px;
        line-height: 1.6;
    }

    .page-terms-conditions__hero-banner {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .page-terms-conditions__main-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .page-terms-conditions__description {
        font-size: 16px;
    }

    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-terms-conditions__content-section {
        padding: 40px 0;
    }

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

    .page-terms-conditions h3 {
        font-size: 20px;
    }

    .page-terms-conditions p,
    .page-terms-conditions li {
        font-size: 15px;
    }

    .page-terms-conditions__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }

    .page-terms-conditions__container {
        padding: 0 15px;
    }

    .page-terms-conditions__call-to-action {
        padding: 60px 15px;
    }
    
    .page-terms-conditions__footer-text {
        padding: 20px 15px;
    }

    /* Ensure all images within content sections are responsive */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__hero-banner .page-terms-conditions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__main-title {
        font-size: 24px;
    }
    .page-terms-conditions__description {
        font-size: 15px;
    }
    .page-terms-conditions__cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
    .page-terms-conditions__section-title {
        font-size: 22px;
    }
    .page-terms-conditions h3 {
        font-size: 18px;
    }
}