/* Service Button */
.button-block {
    position: relative;
    display: inline-block;
    padding: 4px;
    width: 90%;
    cursor: pointer;
    z-index: 0;
    border-radius: 10px;
    background: linear-gradient(to right, rgb(32, 90, 199), rgb(231, 88, 188))
}

.button-block .block-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5em;
    background: white;
    padding: 10px;
    border-radius: 7px;
    height: 3em;
    font-size: 1.3em;
    font-weight: 600;
    color: rgb(40, 60, 150);
}

@media screen and (max-width: 1199px) {
    .button-block .block-container {
        font-size: 1.4em;
    }
}

@media screen and (max-width: 768px) {
    .button-block .block-container {
        font-size: 1.2em;
    }
    .homepage-container {
        padding: 0 !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
}

.button-block .block-container:hover {
    color: rgb(82, 28, 105);
}

.button-block:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;

}

.button-block:hover:before {
    opacity: 1;
}

.button-block:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.button-block img {
    max-width: 40%;
    max-height: 100%;
}

.button-block a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5em;
}

/* Subtitle */
.subtitle-block {
    font-size: 2.1em;
    font-weight: 600;
    color: rgb(40, 60, 150);
    text-align: center;
}

.subtitle-block .text1 {
    background: linear-gradient(to right, rgb(32, 90, 199), rgb(231, 88, 188));
    color: white;
    border-radius: 5px;
    padding: 0 3px;
}

/* Vertical Image */
a.vertical-image-link {
    position: relative;
    overflow: hidden;
    display: inline-block;
    height: 100%;
    border-radius: 1em;
}

a.vertical-image-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(39, 13, 102, 0.2), rgba(0, 0, 0, 0));
    z-index: 1;
    /* Place the overlay below the text but above the image */
    border-radius: 1em;
    /* Match the border radius */
    pointer-events: none;
}

img.vertical-image {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: transform .3s ease-in-out;
    /* Maintain transition */
    transition: transform .3s ease-in-out;
    /* Maintain transition */
    height: 100%;
    z-index: 0;
    /* Ensure the image is behind the overlay */
    display: block;
}

img.vertical-image:hover {
    transform: scale(1.07);
    /* Scale up with hover */
}

span.vertical-image-text {
    position: absolute;
    bottom: 7%;
    right: 5%;
    color: white;
    font-size: 30px;
    font-weight: bold;
    z-index: 100;
    pointer-events: none;
}

/* Horizontal Image */
a.horizontal-image-link {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    border-radius: 1em;
}

a.horizontal-image-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(39, 13, 102, 0.2), rgba(0, 0, 0, 0));
    z-index: 1;
    /* Place the overlay below the text but above the image */
    border-radius: 1em;
    /* Match the border radius */
    pointer-events: none;
}

img.horizontal-image, img.hover-image {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    width: 100%;
    z-index: 0;
    display: block;
    opacity: .7;
}

img.hover-image {
    position: absolute;
    opacity: 0;
    top: 0;
}

a.horizontal-image-link:hover img.hover-image {
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
    opacity: 1;
}

a.horizontal-image-link:hover img.horizontal-image {
    -webkit-transform: scale(1.1);
	transform: scale(1.1);
    opacity: 1;
}

span.horizontal-image-text {
    position: absolute;
    bottom: 7%;
    right: 15px;
    color: white;
    font-size: 23px;
    font-weight: bold;
    z-index: 100;
    pointer-events: none;
    text-align: right;
}

@media screen and (max-width: 768px) {
    .local-yr-card-horizontal-img-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }
    span.horizontal-image-text {
        font-size: 20px;
    }
}

/* Icon Offer */
.icon-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    font-weight: 600;
    color: rgb(40, 60, 150);
    /* color: white; */
    font-size: 16px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    height: 140px;
    margin: 10px auto;
}

.icon-offer:hover {
    background-color: rgb(40, 60, 150);
    color: white;
    transform: translateY(-5px);
    transform: scale(1.1);
}

.icon-offer img {
    width: auto;
    height: 60px;
    transition: all 0.3s ease-in-out;
}

.icon-offer:hover img {
    transform: scale(1.1);
    transform: rotate(-6deg);
    animation: icon-offer-rotate .5s infinite ease;
}

.icon-offer span {
    text-align: center;
}

@keyframes icon-offer-rotate {
    0% {
        transform: rotate(-6deg);
    }

    50% {
        transform: rotate(6deg);
    }

    100% {
        transform: rotate(-6deg);
    }
}

@media screen and (max-width: 768px) {
    .icon-responsive {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 3vw;
    }
    .icon-offer {
        font-size: 14px !important;
        width: 140px;
    }
}