.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 0; /* Assuming shared.css handles body padding-top */
    color: #ffffff; /* White text on dark hero background */
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 800px;
}

.page-terms-conditions__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Content Area */
.page-terms-conditions__content-area {
    padding: 60px 20px;
    background-color: #ffffff; /* Explicitly set white background for content area */
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    margin-top: -80px; /* Overlap with hero for visual effect */
    position: relative;
    z-index: 3;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.page-terms-conditions__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-terms-conditions__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #333333;
}

.page-terms-conditions__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-terms-conditions__image-wrapper {
    margin: 30px auto;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 800px;
}

.page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%; /* Ensure button doesn't exceed container */
    text-align: center;
}

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

.page-terms-conditions__btn-primary:hover {
    background-color: #1a8cc4;
    border-color: #1a8cc4;
    transform: translateY(-2px);
}

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

.page-terms-conditions__btn-secondary:hover {
    background-color: #e0f0f8;
    color: #1a8cc4;
    border-color: #1a8cc4;
    transform: translateY(-2px);
}

/* Call to Action Section */
.page-terms-conditions__cta-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-top: 40px;
}

.page-terms-conditions__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-terms-conditions__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

/* FAQ Section */
.page-terms-conditions__faq-list {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.page-terms-conditions__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    color: #26A9E0;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px !important; /* Ensure padding is applied */
}

.page-terms-conditions__faq-answer p {
    margin-bottom: 0;
}

.page-terms-conditions__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Responsive design for smaller screens */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.8em;
    }

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

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

    .page-terms-conditions__sub-title {
        font-size: 1.6em;
    }

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

@media (max-width: 768px) {
    .page-terms-conditions {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-terms-conditions__hero-section {
        padding-top: 0; /* Assuming shared.css handles body padding-top */
        min-height: 400px;
    }

    .page-terms-conditions__hero-content {
        padding: 40px 15px;
    }

    .page-terms-conditions__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-terms-conditions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-terms-conditions__hero-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-terms-conditions__content-area {
        padding: 40px 15px;
        margin-top: -40px; /* Adjust overlap */
    }

    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__text-block {
        font-size: 0.95em;
        line-height: 1.6;
    }

    /* Universal image responsive styles */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Image wrapper padding for mobile */
    .page-terms-conditions__image-wrapper {
        padding: 0 15px;
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

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

    .page-terms-conditions__cta-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-terms-conditions__cta-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
    }

    /* FAQ specific mobile styles */
    .page-terms-conditions__faq-question {
        font-size: 1.1em;
        padding: 15px 0;
    }

    .page-terms-conditions__faq-answer {
        padding: 0 10px;
        font-size: 0.9em;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 10px !important;
    }

    /* Ensure content containers are responsive */
    .page-terms-conditions__content-area,
    .page-terms-conditions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}