.services{
    /* margin-top: 73px; */
}
.services .mobile_nav {
    display: none;
}
.services .mobile_nav .list {
    display: flex;
    gap: 10px;
    padding: 12px var(--pad);
    background: #f8fafc;
    margin-top: 40px;
    flex-wrap: wrap;
}
.services .mobile_nav a {
    white-space: nowrap;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eef2ff;
    color: #3949ff;
    text-decoration: none;
    font-weight: 600;
}

.services .desktop_nav {
    position: relative;
}
.services .desktop_nav .box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
}

.services .desktop_nav .box.sticky{
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
}

.services .desktop_nav .list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.services .desktop_nav a {
    padding: 8px 10px;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: #111;
    border-radius: 6px;
}
.services .desktop_nav a:hover {
    background: #f3f4f6;
}
.services .desktop_nav a.active {
    border-left-color: #3949ff;
    background: #eef2ff;
    color: #1e2fff;
    font-weight: 700;
}

.services .wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px; /* main | side */
    /* gap: 28px; */
    padding: 0 var(--pad);
}

.services .section {
    padding: 56px 20px;
    background: #fff;
    /* prevent titles from hiding under fixed header when anchored */
    scroll-margin-top: 90px;
}

.services .section:nth-child(odd) {
    background: #f9fafb;
}

.services .section > .title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 18px;
    font-family: Georgia, serif;
}

.services .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.services .card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.services .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.services .card span {
    display: inline-block;
    background: #eef2ff;
    color: #3b5bfd;
    font-weight: 600;
    font-size: 13px;
    border-radius: 10px;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.services .card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
    margin-top: 3px;
}

.services .card p {
    font-size: 14px;
    line-height: 1.6;
    color: #373535;
    margin: 0;
}
@media (min-width: 768px) {
    .services .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .services .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) {
    .services .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .services .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* responsive behavior */
@media (max-width: 991px) {
    .services .wrap {
        grid-template-columns: 1fr;
    }
    .services .destop_nav {
        display: none;
    }
    .services .mobile_nav {
        display: block;
    }
}
