.referral-section {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff, #a5ec97);
    color: #000000;
    min-height: 100vh; /* Full viewport height */
    text-align: center;
    box-sizing: border-box;
    z-index: 10;
}
.referral-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    max-width: 1200px;
    width: 100%;
    margin-left: 100px; /* shift right */
    margin-right: auto; /* keep right side flexible */
}
.referral-section h3 {
    color: #111111;
    font-size: 3rem; /* bigger heading */
}
.referral-image {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 120%; /* keeps image responsive */
    height: auto; /* maintain proportions */
    border-radius: 12px; /* optional rounded corners */
}
.referral-image img {
    max-width: 110%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 14px 12px rgba(12, 244, 12, 0.2);
    margin-bottom: 50px;
}
.referral-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical alignment */
    text-align: left; /* keeps text aligned clean */
}
.referral-content h2 {
    font-size: 4rem; /* bigger heading */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #111111;
}
.referral-intro {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #111111;
}

.referral-details {
    margin-bottom: 10px;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #111111;
}
.referral-btn {
    display: inline-block; /* already there */
    width: auto; /* don't stretch */
    max-width: fit-content; /* prevents unnecessary stretching */
    padding: 14px 24px; /* balanced padding */
    background: linear-gradient(135deg, #5f5a5a, #0e0e0f);
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease;
    box-shadow: 0 14px 12px rgba(12, 244, 12, 0.2);
    margin-bottom: 30px;
}
.referral-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #0e0e0f, #5f5a5a);
}
/* Mobile responsiveness */
@media (max-width: 900px) {
    .referral-container {
        flex-direction: column; /* stack items vertically */
        align-items: center; /* center everything */
        text-align: center;
        margin-left: 0; /* reset desktop margin */
        margin-right: 0;
        gap: 30px; /* spacing between image and content */
    }

    .referral-image {
        order: 0; /* ensure image comes first */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .referral-image img {
        max-width: 80%; /* adjust image size for mobile */
        height: auto;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .referral-content {
        order: 1; /* content comes after image */
        width: 90%; /* make it slightly narrower */
        text-align: center; /* center text */
    }

    .referral-content h2 {
        font-size: 2.5rem; /* scale down heading for mobile */
        margin-bottom: 15px;
    }

    .referral-content h3 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .referral-intro,
    .referral-details p,
    .referral-details ol li {
        font-size: 1.4rem; /* adjust text size */
    }

    .referral-btn {
        display: inline-block;
        margin-top: 20px;
        padding: 14px 28px;
        background: linear-gradient(135deg, #989696, #0e0e0f);
        color: white;
        font-size: 1.8rem;
        font-weight: bold;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        margin-left: 45px;
    }
}
