/* Earn Section CSS */

#earn-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.investment-earning-container {
    position: relative;
    z-index: 2;
}

.premium-heading {
    font-size: 2.5rem;
    color: var(--brand-brown);
    text-align: center;
    margin-bottom: 20px;
}

.heading-divider {
    width: 80px;
    height: 2px;
    background: var(--brand-brown);
    margin: 0 auto 30px;
    opacity: 0.6;
}

.section-subtext {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.earning-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    /* Use border for dividers */
    margin-top: 40px;
}

.earning-card {
    padding: 60px 20px;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Vertical Dividers */
.earning-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 80%;
    background: rgba(104, 68, 36, 0.15);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--brand-brown);
    margin-bottom: 25px;
    opacity: 0.8;
}

.earning-icon {
    font-size: 2.5rem;
    color: var(--brand-brown);
    margin-bottom: 30px;
    height: 60px;
    display: flex;
    align-items: center;
}

.earning-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--brand-brown);
    margin-bottom: 25px;
    line-height: 1.4;
    min-height: 4.5rem;
    /* Balanced height for headings */
}

.earning-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.earning-card:hover {
    background: rgba(104, 68, 36, 0.03);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 1100px) {
    .earning-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .earning-card {
        border-bottom: 1px solid rgba(104, 68, 36, 0.15);
    }

    .earning-card:nth-child(2n)::after {
        display: none;
        /* Remove right divider for even items in 2rd col */
    }
}

@media (max-width: 768px) {
    .premium-heading {
        font-size: 1.8rem;
    }

    .earning-grid {
        grid-template-columns: 1fr;
    }

    .earning-card::after {
        display: none !important;
    }

    .earning-card {
        padding: 30px 15px;
        text-align: center;
    }

    .earning-icon {
        justify-content: center;
    }

    .earning-card h3 {
        min-height: auto;
    }
}

/* Why This Model Works Section */
.why-model-works {
    margin-top: 60px;
    padding: 60px;
    background: rgba(104, 68, 36, 0.05);
    /* Very light tint of brand brown */
    border-radius: 10px;
    border: 1px solid rgba(104, 68, 36, 0.1);
}

.why-model-works .premium-heading {
    font-size: 2.5rem; /* Standard global h2 */
    margin-bottom: 50px;
    text-transform: capitalize;
    letter-spacing: 1px;
    text-align: center;
}

.model-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    /* More vertical gap, consistent horizontal gap */
    max-width: 1000px;
    margin: 0 auto;
}

.model-works-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.model-works-item .coffee-bean-icon {
    width: auto;
    height: 32px;
    flex-shrink: 0;
}

.model-works-item span {
    color: var(--brand-brown);
    font-size: 1.05rem;
    line-height: 1.4;
    font-family: var(--font-primary);
    max-width: 250px;
    /* Constrain text width for neat columns */
}

@media (max-width: 900px) {
    .model-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-model-works {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .model-works-grid {
        grid-template-columns: 1fr;
    }

    .why-model-works {
        padding: 30px 20px;
    }

    .why-model-works .premium-heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}
