/* style/terms-conditions.css */

/* --- Base Styles --- */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f8f9fa; /* Light background for the overall page */
}

/* Ensure main content is not hidden by fixed header */
.page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first visible section */
}

/* --- Hero Section --- */
.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #017439; /* Primary brand color for hero */
    color: #ffffff; /* White text for dark background */
    overflow: hidden;
    min-height: 500px;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 3; /* Ensure content is above overlay */
    max-width: 900px;
    margin-bottom: 30px;
}

.page-terms-conditions__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for main title on dark background */
}

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

.page-terms-conditions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Image behind overlay */
}

.page-terms-conditions__hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 116, 57, 0.7); /* Dark green overlay for text readability */
    z-index: 1;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Content Area --- */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* White background for main content for readability */
    color: #333333; /* Dark text for white background */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: -50px; /* Overlap hero slightly */
    position: relative;
    z-index: 3;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #017439; /* Primary brand color for section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-terms-conditions__paragraph {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-terms-conditions__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-terms-conditions__list-item {
    background-color: #f9f9f9;
    border-left: 4px solid #017439;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.page-terms-conditions__list-heading {
    font-size: 1.3em;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-terms-conditions__link {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
    color: #005f2e; /* Darker shade of green on hover */
}

.page-terms-conditions__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center the image */
}

.page-terms-conditions__cta-block {
    background-color: #f0fdf4; /* Very light green background */
    border: 1px solid #d0f0d0;
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    text-align: center;
}

.page-terms-conditions__cta-text {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #017439;
    font-weight: 600;
}

.page-terms-conditions__contact-info {
    margin-top: 20px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #017439;
}

.page-terms-conditions__contact-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* --- Buttons --- */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-terms-conditions__btn-primary {
    background-color: #C30808; /* Red for Register/Login */
    color: #ffffff; /* White text for better contrast */
    border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    color: #ffffff;
}

.page-terms-conditions__btn-secondary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

/* --- Responsive Design --- */
/* Mobile First Approach - default styles are for mobile */

@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__hero-description {
        font-size: 1em;
    }

    .page-terms-conditions__content-area {
        padding: 30px 15px;
        margin-top: -30px;
        border-radius: 0;
    }
}