body {
    font-family: Poppins,sans-serif;
    background: #000a2c;
}

button {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
}

.services-container h2 {
    display: flex;
    justify-content: center;
    font-size: clamp(3rem, 3vw, 6rem);
    color: #f8f8f3;
    text-shadow: 0px -1px 0 #fff, 1px 1px 0 #fff;
    padding: 30px 0px 10px 0px;
}

.services-container p{
    text-align: center;
    padding: 1%;
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: white;
}

.services-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}


.services-nav button {
    display: inline-block;
    margin: 0 10px;
}

.services-nav button {
    font-size: 20px;
    padding: 15px 15px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s cubic-bezier(0.6, 0.04, 0.98, 0.335);
    color: white;
    cursor: pointer;
    border-radius: 10px;
    margin: 10px;
    border-style: groove;
}

.services-nav button.active {
    background: linear-gradient(to left, #4be00f, #0e72a3, #0052d4);
    box-shadow: inset 8px 8px 8px rgb(14, 14, 26), inset -8px -8px 8px rgb(14, 14, 26);
}

.services-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 50px;
}

.service-card {
    height: 300px; 
    width: 350px;
    margin: 0;
    /* background: linear-gradient(180deg, #22202000, #000); */
    background: white;
    margin-bottom: 13px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.service-card>figure {
    padding-bottom: 100%;
    position: relative;
}

.service-card>a>figure>img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    max-width: inherit;
    height: 100%;
    /* object-fit: cover; */
    object-position: center;
}

.s-details {
    /* position: absolute;
    bottom: 0; */
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    padding: 100px 50px 50px;
    color: #fff;
    z-index: 9;
    background: #222020;
    /* background: linear-gradient(180deg, #22202000, #000); */
    background: linear-gradient(180deg, #22202000,#181212);
}
.s-cat{
    font-size: 16px;
    font-weight: 500;
    color: #ffb645;
    margin-bottom: 15px;
    text-transform: capitalize;
}   
.s-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

.s-readmore-btn {
    font-size: 16px;
    color: #fff;
}
.s-rm-icon {
    margin-left: 6px;
    display: inline-block;
    transition: all .2s linear;
    vertical-align: middle;
}
.s-readmore-btn:hover{
    margin-left: 12px;
}

.hide{
    display: none;
}

@media (max-width: 1399px) {
    .s-title {
        font-size: 20px;
    }
}

@media (max-width: 860px) {
    .services-nav{
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .s-title {
        font-size: 13px;
        margin-bottom: 0;
    }
    .s-details{
        padding: 40px 10px 20px;
    }
}
@media (max-width: 1199px) {
    .s-title {
        margin-bottom: 15px;
    } 
    .s-title, .s-cat {
        font-size: 16px;
    }
}
@media (max-width: 1399px) {
    .s-title {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .services-cards{
        margin: 20px;
    }
}