/* Envoy Intro Section */
.envoy-intro {
    padding: 80px 20px;
    text-align: center;
    background-color: #f6f6f6;
}

.envoy-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.envoy-header {
    margin-bottom: 60px;
}

.envoy-title {
    font-size: 3.5em;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
}

.envoy-title .highlight {
    color: #993ab3;
}

.envoy-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2em;
    color: #666;
    font-weight: 400;
}

.envoy-subtitle::before {
    content: "";
    width: 60px;
    height: 10px;
    background: #ceb0fa;
    border-radius: 30px;
}

/* Features Layout - Mobile First */
.envoy-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 1100px;
}

.feature-card {
    background: #e8f4fd;
    border-radius: 25px;
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Arrow Dividers */
.arrow-divider {
    width: 40px;
    height: 20px;
    background: white;
    border: 1px solid #60a5fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #60a5fa;
    font-weight: 300;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: rotate(90deg); /* Vertical by default for mobile */
}

/* Feature Icons */
.feature-icon {
    width: 200px;
    height: 180px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    font-size: 60px;
}

/* Feature Text */
.envoy-feature-title {
    font-size: 1.3em;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Desktop Layout - 1100px and above */
@media (min-width: 1100px) {
    .envoy-features {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr;
        grid-template-areas: "card1 arrow1 card2 arrow2 card3";
        align-items: center;
        justify-items: center;
        gap: 40px;
    }

    .feature-card {
        max-width: none;
        width: 100%;
    }

    /* Horizontal arrows for desktop */
    .arrow-divider {
        transform: rotate(0deg);
    }
}

/* Medium screens */
@media (max-width: 768px) {
    .envoy-intro {
        padding: 60px 15px;
    }

    .envoy-title {
        font-size: 2.5em;
    }

    .feature-card {
        padding: 30px 20px;
        max-width: 300px;
        min-height: unset;
    }

    .feature-icon {
        width: 150px;
        height: 130px;
        font-size: 50px;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .envoy-title {
        font-size: 2em;
    }

    .feature-card {
        padding: 25px 15px;
        max-width: 280px;
        min-height: unset;
    }

    .feature-icon {
        width: 130px;
        height: 110px;
        font-size: 45px;
        margin-bottom: 20px;
    }

    .envoy-feature-title {
        font-size: 1.2em;
    }

    .envoy-features {
        gap: 25px;
    }

    .envoy-subtitle::before {
        display: none;
    }

    .envoy-subtitle {
        font-size: 1em;
        width: 60%;
        justify-self: center;
    }
}
