@property --blog-s { syntax: '<length>'; inherits: false; initial-value: 13px; }
@property --blog-x { syntax: '<length>'; inherits: false; initial-value: 25px; }
@property --blog-y { syntax: '<length>'; inherits: false; initial-value: 25px; }

.my-custom-blog-carousel-container { position: relative; padding: 0 40px; }
.my-custom-blog-carousel-container .swiper { width: 100%; overflow: hidden; }
.my-custom-blog-carousel-container .swiper-wrapper { align-items: stretch; }
.my-custom-blog-carousel-container .swiper-slide { width: 100%; height: auto; display: flex; justify-content: center; box-sizing: border-box; flex-shrink: 0; }

.blog-card__background-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; transform-origin: center center; background-size: cover; background-position: center; border-radius: var(--blog-r, 20px); }
.layout-videos .blog-card__body::after,
.layout-gallery .blog-card__body::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 70%); border-radius: var(--blog-r, 20px); z-index: 1; transform-origin: center center; pointer-events: none; }

.blog-card-wrapper { position: relative; display: block; width: 100%; text-decoration: none; cursor: pointer; box-sizing: border-box; height: 100%; }
.blog-card__body { --blog-r: 20px; position: relative; overflow: hidden; width: 100%; height: 100%; background: rgba(29, 37, 72, 0.55); border-radius: var(--blog-r); transform: rotate(180deg) scaleX(-1); transition: --blog-s 0.4s cubic-bezier(0.25, 1, 0.5, 1), --blog-x 0.4s cubic-bezier(0.25, 1, 0.5, 1), --blog-y 0.4s cubic-bezier(0.25, 1, 0.5, 1); --_d: calc(var(--blog-s) + var(--blog-r)); --_m: /calc(2*var(--blog-r)) calc(2*var(--blog-r)) radial-gradient(#000 70%,#0000 72%); --_g: conic-gradient(at calc(100% - var(--blog-r)) var(--blog-r),#0000 25%,#000 0); mask: calc(100% - var(--_d) - var(--blog-x)) 0 var(--_m), 100% calc(var(--_d) + var(--blog-y)) var(--_m), radial-gradient(var(--blog-s) at 100% 0,#0000 99%,#000 calc(100% + 1px)) calc(-1*var(--blog-r) - var(--blog-x)) calc(var(--blog-r) + var(--blog-y)), var(--_g) calc(-1*var(--_d) - var(--blog-x)) 0, var(--_g) 0 calc(var(--_d) + var(--blog-y)); mask-repeat: no-repeat; }
.blog-card__content { position: relative; z-index: 3; transform: rotate(180deg) scaleX(-1); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box; height: 100%; min-height: 220px; gap: 15px; }
.blog-card__image-tag { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 12px; margin-bottom: auto; }
.blog-card__bottom-row { display: flex; justify-content: space-between; align-items: center; min-height: 40px; margin-top: auto; }
.blog-card__title { font-size: 1rem; font-weight: 300; color: #fff; flex-grow: 1; text-align: right; padding-right: 80px; transition: color 0.5s ease-in-out; line-height: 1.4; display: block !important; }
.blog-card__icon-container { position: absolute; z-index: 4; width: 40px; height: 40px; border-radius: 12px; background-color:#0140ff; display: flex; justify-content: center; align-items: center; transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-radius 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); right: 10px; bottom: 10px; }
.blog-card__icon-container img { position: absolute; width: 50%; height: 50%; transition: opacity 0.1s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.icon-default { opacity: 1; transform: rotate(0deg) scale(1); }
.icon-hover { opacity: 0; transform: rotate(-45deg) scale(0.7); }
.blog-card__body::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--blog-r); background-image: linear-gradient(273deg, rgba(11, 46, 110, 0.7) 0%, rgba(34, 90, 190,0.7) 100%); transform-origin: center center; transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1); z-index: 2; transform: rotate(180deg) scaleX(-1) scale(0); }

.blog-card-wrapper:hover .blog-card__body { --blog-s: 13px; --blog-x: 41px; --blog-y: 41px; }
.blog-card-wrapper:hover .blog-card__body::before { transform: rotate(180deg) scaleX(-1) scale(1); }
.blog-card-wrapper:hover .blog-card__title { color: white; }
.blog-card-wrapper:hover .blog-card__icon-container { width: 60px; height: 60px; border-radius: 20px; transform: translate(2px, 2px); }
.blog-card-wrapper:hover .icon-default { opacity: 0; transform: rotate(45deg) scale(0.7); }
.blog-card-wrapper:hover .icon-hover { opacity: 1; transform: rotate(0deg) scale(1); }

/*.layout-articles .blog-card__image-tag { height: 260px; }*/

.layout-videos .blog-card-wrapper { min-height: 350px; }
.layout-videos .blog-card__body { transform: rotate(180deg) scaleX(1); }
.layout-videos .blog-card__background-layer { transform: rotate(180deg) scaleX(1); }
.layout-videos .blog-card__body::after { transform: rotate(180deg) scaleX(1); }
.layout-videos .blog-card__content { transform: rotate(0deg) scaleX(1); justify-content: flex-end; min-height: initial; }
.layout-videos .blog-card__image-tag { display: none; }
.layout-videos .blog-card__title { display: none !important; }
.layout-videos .blog-card__icon-container { left: 10px; bottom: 10px; right: auto; top: auto; }
.layout-videos .icon-hover { transform: scale(0.5); }
.layout-videos .blog-card__body::before { transform: rotate(180deg) scaleX(1) scale(0); }
.layout-videos .blog-card-wrapper:hover .blog-card__body { --blog-s: 15px; }
.layout-videos .blog-card-wrapper:hover .blog-card__body::before { transform: rotate(180deg) scaleX(1) scale(1); }
.layout-videos .blog-card-wrapper:hover .blog-card__icon-container { width: 60px; height: 60px; border-radius: 15px; }
.layout-videos .blog-card-wrapper:hover .icon-hover { transform: rotate(0deg) scale(1); }

.layout-gallery .blog-card-wrapper { min-height: 350px; }
.layout-gallery .blog-card__body { transform: rotate(0deg) scaleX(-1); }
.layout-gallery .blog-card__background-layer { transform: rotate(0deg) scaleX(-1); }
.layout-gallery .blog-card__body::after { transform: rotate(0deg) scaleX(-1); }
.layout-gallery .blog-card__content { transform: rotate(0deg) scaleX(-1); justify-content: flex-end; min-height: initial; }
.layout-gallery .blog-card__image-tag { display: none; }
.layout-gallery .blog-card__title { display: none !important; }
.layout-gallery .blog-card__icon-container { left: 10px; top: 10px; right: auto; bottom: auto; }
.layout-gallery .blog-card__body::before { transform: rotate(0deg) scaleX(-1) scale(0); }
.layout-gallery .blog-card-wrapper:hover .blog-card__body { --blog-s: 13px; }
.layout-gallery .blog-card-wrapper:hover .blog-card__body::before { transform: rotate(0deg) scaleX(-1) scale(1); }
.layout-gallery .blog-card-wrapper:hover .blog-card__icon-container { width: 60px; height: 60px; border-radius: 15px; }
.layout-gallery .blog-card-wrapper:hover .icon-default { transform: rotate(45deg) scale(0.5); }

.my-custom-blog-carousel-container .swiper-button-next,
.my-custom-blog-carousel-container .swiper-button-prev { color: #fff; background-color: #0140ff85; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: background-color 0.2s ease; }
.my-custom-blog-carousel-container .swiper-button-next:hover,
.my-custom-blog-carousel-container .swiper-button-prev:hover { background-color: #0140ff; }
.my-custom-blog-carousel-container .swiper-button-next:after,
.my-custom-blog-carousel-container .swiper-button-prev:after { font-size: 20px; font-weight: bold; }

.elementor-blog-carousel.nav-hidden .swiper-button-prev,
.elementor-blog-carousel.nav-hidden .swiper-button-next { display: none; }
.elementor-blog-carousel.nav-hidden { padding: 0; }

@media (max-width: 767px) {
    .my-custom-blog-carousel-container { padding: 0 15px; }
    .layout-videos .blog-card-wrapper,
    .layout-gallery .blog-card-wrapper { min-height: 280px; }
    .blog-card__title { font-size: 1rem; padding-right: 60px; }
    .layout-videos .blog-card__title,
    .layout-gallery .blog-card__title { padding-right: 15px; padding-left: 15px; }
    .blog-card__icon-container { width: 35px; height: 35px; }
    .blog-card-wrapper:hover .blog-card__icon-container { width: 50px; height: 50px; }
}