#services {
    background-color: var(--color9);
    padding: 40px;
}

#services a {
    color: var(--color8);
    text-decoration: none;
}

#services .div1 {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: stretch;
}

#services .div1 .column {
    width: 30%;
    background-color: var(--color3);
    color: var(--color1);
    margin-right: 20px;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#services .column-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

#services .column-header .title {
    color: var(--color8);
    font-size: 2.8vw;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 20px;
    height: 7vw;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

#services .column-header .image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

#services .column-header .image svg {
    color: var(--color8);
    width: 80px;
    height: 80px;
}

#services .div1 .image p {
    text-align: center;
}

#services .div1 .image svg {
    color: var(--color8);
    margin: 20px auto;
    display: block;
}

#services .div1 img {
    max-width: 15vw;
    height: 10vw;
}

#services .div4 .description {
    margin-top: 5px;
    color: var(--color1);
    line-height: 1.6;
}

#services .description {
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

#services .description p {
    margin-bottom: 1rem;
}

#services .description p:last-child {
    margin-top: auto;
}

#services h3 {
    color: var(--color6);
}

#services .column h3 {
    color: var(--color1);
}

#services .courses {
    font-size: 3vw;
    margin: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#services .course {
    background-color: var(--color10);
    color: var(--color6);
    padding: 8px 12px;
    border-radius: 10px;
    margin: 5px;
    font-size: 3vw;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

#services .course:hover {
    transform: scale(1.3);
}

#services .div2 {
    color: var(--color6);
    font-style: italic;
}

#services .div3 {
    display: flex;
    flex-direction: column;
}

#services .document {
    background-color: var(--color10);
    padding: 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    border-radius: 10px;
}

#services .document p {
    margin: 0;
    align-self: center;
    color: var(--color6);
}

#services .document button {
    background-color: var(--color4);
    border-radius: 5px;
    color: var(--color1);
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    #services {
        padding: 10px;
        min-height: 50vh;
    }

    #services .div1 {
        flex-direction: column;
        align-items: stretch;
    }

    #services .div1 .column {
        width: 90%;
        margin-right: 0;
        margin-bottom: 20px;
        min-height: auto;
    }

    #services .column-header {
        margin-bottom: 15px;
    }

    #services .column-header .title {
        font-size: 5.5vw;
        margin-top: 10px;
        margin-bottom: 15px;
        height: 22vw;
        min-height: 110px;
        text-align: center;
        line-height: 1.2;
    }

    #services .column-header .image {
        height: 80px;
    }

    #services .column-header .image svg {
        width: 60px;
        height: 60px;
    }

    #services .description {
        min-height: auto;
    }

    #services .course {
        font-size: 5vw;
    }
}

/* Service action buttons */
#services .column .description {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-action {
    margin-top: auto;
    text-align: center;
    padding-top: 1.5rem;
}

.service-action .btn-interested {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--color4);
    color: var(--color1);
    width: 140px;
    max-width: 140px;
    box-sizing: border-box;
    animation: subtleShake 2s ease-in-out infinite;
}

.service-action .btn-interested:hover {
    background-color: var(--color8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
}