.title-row {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.title-row h1 {
    font-size: 36px;
    color: #222;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 200px;
}
.row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
    gap: 30px;
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: fill;
}

.card .desc {
    padding: 16px;
    font-size: 14px;
    text-align: center;
    background-color: #1c7ec0;
    color: #ffffff;    
}

.line-container {
    position: absolute;
    top: 240px;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 0;
    pointer-events: none;
    
}


line {
    stroke: #000;
    stroke-width: 4;
}


/*svg { width: 100%; 
    height: 100%; 
    position: absolute; 
}*/


@media (max-width: 1024px) {
    .row {
        gap: 40px;
        margin-bottom: 80px;
    }

    .card {
        width: 150px;
    }
    svg { 
        width: 100%; 
        height: 50%; 
        position: absolute; 
    }
    .card .desc {
        height: 50%;
    }
}

@media (max-width: 768px) {
    .title-row h1 {
        font-size: 28px;
    }

    .row {
        gap: 30px;
        margin-bottom: 60px;
    }

    .card {
        width: 90%;
        max-width: 300px;
    }
    svg { 
        width: 100%; 
        height: 25%; 
        position: absolute; 
    }
}

@media (max-width: 480px) {
    .title-row h1 {
        font-size: 24px;
    }

    .card img {
        height: 150px;
    }

    .card .desc {
        font-size: 14px;
    }
}