.sec-service {
    padding-top: 60px !important;
}

.sec-service .section-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
}

.sec-service .heading-main {
    text-align: center;
    margin-bottom: 10px;
}

.sec-service .heading-sub {
    margin-bottom: 30px;
}

.sec-service .service-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.sec-service .service-container > .col {
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 calc(25% - (60px / 4));
    max-width: calc(25% - (60px / 4));
}

.sec-service .service-container .col > .col-inner {
    display: flex;
    height: 100%;
}

.sec-service .service-container .box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    border-radius: 34px;
    padding: 18px 22px;
    box-sizing: border-box;
    border: 2px solid transparent;
    box-shadow: 0 13px 38px 0 #FFFFFF inset,
    0 4px 10px 0 #AD8C5766;
    background-image: linear-gradient(#ffffff, #ffffff),
    conic-gradient(
            from var(--border-angle),
            #9D6F24 0deg,
            #FDE3C0 90deg,
            #ffffff 180deg,
            #FDE3C0 270deg,
            #9D6F24 360deg
    );
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: spinBorder 2.5s linear infinite;
}

.sec-service .service-container .box .box-image {
    position: relative;
    overflow: unset;
}

.sec-service .service-container .box .box-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 275 / 230;
    border-radius: 14px;
    object-fit: cover;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 275 230'><path d='M 0,94 A 14,14 0 0,1 14,80 H 66 A 14,14 0 0,0 80,66 V 14 A 14,14 0 0,1 94,0 H 261 A 14,14 0 0,1 275,14 V 216 A 14,14 0 0,1 261,230 H 14 A 14,14 0 0,1 0,216 Z' fill='black'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 275 230'><path d='M 0,94 A 14,14 0 0,1 14,80 H 66 A 14,14 0 0,0 80,66 V 14 A 14,14 0 0,1 94,0 H 261 A 14,14 0 0,1 275,14 V 216 A 14,14 0 0,1 261,230 H 14 A 14,14 0 0,1 0,216 Z' fill='black'/></svg>");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    border: 1px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff),
    linear-gradient(146.31deg, #9D6F24 0.82%, #FDE3C0 50%, #9D6F24 99.18%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.sec-service .service-container .box .box-text {
    padding: 26px 0 0;
}

.sec-service .service-container .box .box-text h4 {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: clamp(18px, 0.5vw + 16px, 18px);
    line-height: 133%;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    color: var(--color-highlight-2);
    margin-bottom: 0;
    margin-top: 0;
}

.sec-service .service-container .box .box-text .button {
    position: relative;
    background: linear-gradient(0deg, #9A6E25 0%, #DDA335 100%);
    min-width: 200px;
    border-radius: 56px;
    padding-top: 10px;
    padding-right: 40px;
    padding-bottom: 10px;
    padding-left: 40px;
    border: 0;
    margin-bottom: 0;
    margin-top: 26px;
    overflow: hidden;
}

.sec-service .service-container .box .box-text .button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: shineSweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.sec-service .service-container {
    counter-reset: box-counter;
}

.sec-service .service-container .box-image::before {
    counter-increment: box-counter;
    content: counter(box-counter, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: -5px;
    z-index: 10;
    font-family: var(--font-heading-1);
    color: #C2812F;
    font-weight: 400;
    line-height: 1;
    font-size: 70px;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    padding: 5px;

    animation: subtleZoom 6s ease-in-out infinite;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spinBorder {
    to {
        --border-angle: 360deg;
    }
}

@keyframes subtleZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shineSweep {
    0%, 60% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

@media screen and (max-width: 1600px) {
    .sec-service .service-container .box-image::before {
        font-size: 60px;
    }
}

@media screen and (max-width: 1400px) {
    .sec-service .service-container .box-image::before {
        font-size: 50px;
    }
}

@media screen and (max-width: 1200px) {
    .sec-service .service-container .box-image::before {
        font-size: 40px;
    }

    .sec-service .service-container .box .box-text .button {
        min-width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .sec-service .service-container .col {
        flex: 0 0 calc((100% - 40px) / 3);
        max-width: calc((100% - 40px) / 3);
    }
}

@media screen and (max-width: 991px) {
    .sec-service .service-container .box .box-text h4 {
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .sec-service .service-container {
        flex-flow: row nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-left: 10px;
    }

    .sec-service .service-container .box {
        min-height: 100%;
        padding: 10px 10px;
    }

    .sec-service .service-container .col {
        flex: 0 0 80%;
        max-width: 320px;
        padding-bottom: 0;
    }

    .sec-service .service-container .box-image::before {
        font-size: 50px;
        top: 5px;
        left: 5px;
    }
}

@media screen and (max-width: 375px) {
    .sec-service .service-container .col {
        flex: 0 0 80%;
        max-width: 320px;
        min-width: 270px;
    }

    .sec-service .service-container .box-image::before {
        font-size: 40px;
        top: 5px;
        left: 5px;
    }
}