:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-terms-conditions {
    color: var(--text-main);
    background-color: var(--bg-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--deep-green);
    overflow: hidden;
}

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

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
    border-radius: 10px;
    margin-top: 50px; /* Adjust as needed */
}

.page-terms-conditions__main-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-terms-conditions__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--btn-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-terms-conditions__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button--small {
    padding: 8px 20px;
    font-size: 14px;
}

.page-terms-conditions__cta-button--large {
    padding: 15px 40px;
    font-size: 20px;
}

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

.page-terms-conditions__section-intro {
    text-align: center;
    margin-bottom: 50px;
}

.page-terms-conditions__section-title {
    font-size: clamp(24px, 3vw, 36px);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(17, 168, 78, 0.3);
}

.page-terms-conditions__paragraph {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-terms-conditions__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.page-terms-conditions__card-title {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 2px solid var(--divider-color);
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-terms-conditions__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-terms-conditions__card a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-terms-conditions__card a:hover {
    color: var(--gold-color);
}

.page-terms-conditions__call-to-action {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--deep-green);
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__call-to-action .page-terms-conditions__section-title {
    color: var(--gold-color);
}

.page-terms-conditions__call-to-action .page-terms-conditions__paragraph {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-terms-conditions__hero-section {
        padding-bottom: 40px;
    }

    .page-terms-conditions__hero-image {
        height: 400px;
    }

    .page-terms-conditions__hero-content {
        margin-top: 30px;
        padding: 15px;
    }

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

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

    .page-terms-conditions__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 20px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__cta-button--large {
        padding: 12px 30px;
        font-size: 18px;
    }

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

    .page-terms-conditions__section-title {
        font-size: 24px;
    }

    .page-terms-conditions__card-title {
        font-size: 22px;
    }

    .page-terms-conditions__sub-title {
        font-size: 20px;
    }

    .page-terms-conditions__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

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

    /* Ensure images inside cards are also responsive */
    .page-terms-conditions__card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-image {
        height: 300px;
    }
    .page-terms-conditions__main-title {
        font-size: 24px;
    }
    .page-terms-conditions__subtitle {
        font-size: 14px;
    }
    .page-terms-conditions__cta-button--large {
        font-size: 16px;
        padding: 10px 20px;
    }
    .page-terms-conditions__section-title {
        font-size: 20px;
    }
    .page-terms-conditions__card-title {
        font-size: 18px;
    }
    .page-terms-conditions__sub-title {
        font-size: 16px;
    }
    .page-terms-conditions__paragraph {
        font-size: 15px;
    }
}