.page-terms-conditions {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-terms-conditions__hero-section {
    background-color: #007BFF; /* Primary color background */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

.page-terms-conditions__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFC107; /* Auxiliary color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__hero-button {
    display: inline-block;
    background-color: #FFC107; /* Auxiliary color for button */
    color: #007BFF; /* Primary color for text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-terms-conditions__hero-button:hover {
    background-color: #e0a800;
    color: #0056b3;
}

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

.page-terms-conditions__content-area {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-terms-conditions__sidebar {
    flex: 0 0 280px; /* Fixed width for sidebar */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-self: flex-start; /* Stick to the top */
    position: sticky;
    top: calc(var(--header-offset, 120px) + 20px); /* Sticky below header */
}

.page-terms-conditions__sidebar-title {
    font-size: 1.5em;
    color: #007BFF;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFC107;
    padding-bottom: 10px;
}

.page-terms-conditions__sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-terms-conditions__sidebar-nav li {
    margin-bottom: 10px;
}

.page-terms-conditions__sidebar-link {
    color: #333333;
    text-decoration: none;
    font-size: 1em;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.page-terms-conditions__sidebar-link:hover,
.page-terms-conditions__sidebar-link.active {
    color: #007BFF;
    transform: translateX(5px);
    font-weight: bold;
}

.page-terms-conditions__article {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__article-heading {
    font-size: 2em;
    color: #007BFF;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.page-terms-conditions__article-subheading {
    font-size: 1.5em;
    color: #333333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-terms-conditions__article-paragraph {
    margin-bottom: 20px;
    text-align: justify;
}

.page-terms-conditions__article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    display: block;
    object-fit: cover;
}

.page-terms-conditions__article-button {
    display: inline-block;
    background-color: #007BFF; /* Primary color for button */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__article-button:hover {
    background-color: #0056b3;
}

.page-terms-conditions__contact-link {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.page-terms-conditions__contact-link:hover {
    text-decoration: underline;
}

.page-terms-conditions__last-updated {
    margin-top: 40px;
    font-size: 0.9em;
    color: #666666;
    text-align: right;
}

.page-terms-conditions__cta-section {
    background-color: #FFC107; /* Auxiliary color background */
    color: #007BFF; /* Primary color for text */
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
}

.page-terms-conditions__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-terms-conditions__cta-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #007BFF;
}

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

.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #007BFF; /* Primary color for button */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__cta-button:hover {
    background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-terms-conditions__content-area {
        flex-direction: column;
        gap: 20px;
    }

    .page-terms-conditions__sidebar {
        flex: none;
        width: 100%;
        position: static;
        top: auto;
    }

    .page-terms-conditions__hero-title {
        font-size: 2.2em;
    }

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

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 60px 15px;
    }

    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }

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

    .page-terms-conditions__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

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

    .page-terms-conditions__article-heading {
        font-size: 1.8em;
    }

    .page-terms-conditions__article-subheading {
        font-size: 1.3em;
    }

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

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

    .page-terms-conditions__cta-description {
        font-size: 1em;
    }

    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Ensure content images are responsive and don't overflow */
    .page-terms-conditions__article img {
        max-width: 100%;
        height: auto;
    }
}

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

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

    .page-terms-conditions__article-subheading {
        font-size: 1.2em;
    }

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