/* Base styles for the entire page content */
.page-terms-conditions {
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Main text color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Space above footer */
}

/* HERO Section - No full header offset, just a small top padding */
.page-terms-conditions__hero-section {
    padding-top: 10px; /* Small top padding as per rules */
    padding-bottom: 40px;
    text-align: center;
    background-color: #08160F; /* Ensure background color consistency */
}

.page-terms-conditions__hero-image {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-terms-conditions__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-terms-conditions__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Using clamp for H1 font size */
    color: #F2C14E; /* Gold color for main title */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-terms-conditions__intro-text {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    max-width: 800px;
    margin: 0 auto;
}

/* Content Sections */
.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: #08160F; /* Default section background */
}

.page-terms-conditions__dark-section {
    background-color: #11271B; /* Card BG color for dark sections */
}

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

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #2AD16F; /* Main brand color for section titles */
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.page-terms-conditions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #13994A;
    border-radius: 2px;
}

.page-terms-conditions__text-block {
    margin-top: 30px;
    padding: 20px;
    background-color: #11271B; /* Card BG for text blocks */
    border-radius: 8px;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-terms-conditions__paragraph {
    font-size: 1em;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 15px;
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    color: #F2C14E; /* Gold color for sub-titles */
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #F2FFF6; /* Main text color */
}

.page-terms-conditions__list-item {
    margin-bottom: 8px;
    font-size: 1em;
    color: #F2FFF6;
}

.page-terms-conditions__image-wrapper {
    margin: 30px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-terms-conditions__link {
    color: #57E38D; /* Glow color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
    color: #2AD16F;
}

/* CTA Buttons */
.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button itself adapts */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #F2FFF6; /* Light text for dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-terms-conditions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-terms-conditions__btn-secondary {
    background-color: #11271B; /* Card BG for secondary button */
    color: #2AD16F; /* Main brand color for text */
    border: 2px solid #2AD16F; /* Border with main brand color */
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #2AD16F;
    color: #F2FFF6;
}

/* Copyright Section */
.page-terms-conditions__copyright-section {
    padding: 30px 0;
    text-align: center;
    background-color: #0A4B2C; /* Deep Green for copyright */
    margin-top: 50px;
}

.page-terms-conditions__copyright-text {
    font-size: 0.9em;
    color: #A7D9B8; /* Secondary text color */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* HERO Section */
    .page-terms-conditions__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-terms-conditions__main-title {
        font-size: 1.8em !important; /* Smaller H1 for mobile */
        padding: 0 10px;
    }

    .page-terms-conditions__intro-text {
        font-size: 1em !important;
        padding: 0 15px;
    }

    /* Content Sections */
    .page-terms-conditions__content-section {
        padding: 40px 0 !important;
    }

    .page-terms-conditions__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-terms-conditions__text-block {
        margin-top: 20px !important;
        padding: 15px !important;
    }

    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item {
        font-size: 0.95em !important;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.4em !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }

    /* Images */
    .page-terms-conditions__image-wrapper {
        margin: 20px auto !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__image-wrapper img,
    .page-terms-conditions img { /* General image rule for content area */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
        box-sizing: border-box !important;
    }

    /* CTA Buttons */
    .page-terms-conditions__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Copyright */
    .page-terms-conditions__copyright-section {
        margin-top: 30px !important;
        padding: 20px 0 !important;
    }

    .page-terms-conditions__copyright-text {
        font-size: 0.85em !important;
    }
}