/* --- Steps Block Styles --- */
.steps {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.steps__container {
    max-width: 100%;
    margin: 0 100px;
}

@media (max-width: 768px) {
    .steps__container {
        margin: 0 20px;
    }
}

.steps__header {
    text-align: center;
    margin-bottom: 70px;
}

.steps__header-title {
    font-family: var(--third-family);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 48px);
    color: #252a01;
    margin-bottom: 20px;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    position: relative;
}

.steps__item {
    position: relative;
    padding: 40px 30px;
    background: #f9fbf0;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.steps__item:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(142, 180, 5, 0.1);
    border-color: rgba(142, 180, 5, 0.2);
}

.steps__number {
    width: 60px;
    height: 60px;
    background: #8eb405;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--third-family);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(142, 180, 5, 0.3);
    position: relative;
    z-index: 2;
}

.steps__item:hover .steps__number {
    transform: scale(1.1) rotate(5deg);
}

.steps__title {
    font-family: var(--third-family);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
    color: #252a01;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.steps__item:hover .steps__title {
    color: #8eb405;
}

.steps__text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.steps__item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.steps__item:nth-child(1) {
    animation-delay: 0.1s;
}

.steps__item:nth-child(2) {
    animation-delay: 0.2s;
}

.steps__item:nth-child(3) {
    animation-delay: 0.3s;
}

.steps__item:nth-child(4) {
    animation-delay: 0.4s;
}

.steps__item:nth-child(5) {
    animation-delay: 0.5s;
}

.steps__item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Connecting line (Desktop only) */
@media (min-width: 1025px) {
    .steps__grid::before {
        content: '';
        position: absolute;
        top: 70px;
        left: 30px;
        right: 30px;
        height: 2px;
        background: repeating-linear-gradient(to right, #8eb405 0, #8eb405 10px, transparent 10px, transparent 20px);
        opacity: 0.2;
        z-index: 1;
    }

    /* Line for the second row */
    .steps__grid::after {
        content: '';
        position: absolute;
        top: calc(50% + 100px);
        /* Rough estimation, can be adjusted */
        left: 30px;
        right: 30px;
        height: 2px;
        background: repeating-linear-gradient(to right, #8eb405 0, #8eb405 10px, transparent 10px, transparent 20px);
        opacity: 0.2;
        z-index: 1;
    }
}

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

@media (max-width: 640px) {
    .steps__grid {
        grid-template-columns: 1fr;
    }

    .steps {
        padding: 60px 0;
    }

    .steps__header {
        margin-bottom: 40px;
    }

    .steps__item {
        padding: 30px 20px;
    }

    .steps__number {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 20px;
    }
}