.swiper-button-next, .swiper-button-prev {
    border-radius: 50%;
    background: #8B278B;
    height: 36px;
    width: 38px;
    color: white;
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
    font-size: 20px;
}

.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet-active {
    background: #8B278B;
}

.dashlet[data-name="PortalNews"] .panel-body {
    padding: 0px !important;
}

.dashlet-container[data-name="PortalNews"] .panel-heading {
    display: none;
}

.dashlet-container[data-name="PortalContacts"] .panel-heading {
    display: none;
}

.news-item {
    display: flex;
    overflow: hidden;
}

.news-title {
    font-family: 'CAPElephant-Black';
    margin-bottom: 10px;
    font-size: 24px;
    color: #000;
    padding: 10px 10px 0;
    font-weight: bold;
}

.news-content {
    font-family: 'CAPElephant-Black';
    padding-left: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.news-link {
    font-family: "CAPElephant-Regular";
    padding-left: 10px;
    font-size: 16px;
    color: #8B278B;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

.contacts-icons-color {
    color: #8B278B;
}

.bg-button-contacts {
    --tw-bg-opacity: 1;
    background-color: #8B278B;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .contacts-panel-group {
        align-items: stretch;
        --tw-bg-opacity: 1;
        background-color: #F4F6F9;
        width: 100%;
        border-radius: 3px;
        padding: 12px;
        margin: 0 10px 0 0;
        box-shadow: 4px 4px 6px 1px #d3d4d5;
    }

    div[data-name="PortalContacts_minFlex"] {
        flex-direction: unset;
    }

    .lev1 {
        margin-bottom: -25px;
    }

    .lev2 {
        margin-top: -25px;
    }

    .font-text-capelephant {
        font-family: 'CAPElephant-Regular';
        font-size: 14px;
    }

    .block-contact1 {
        max-width: 300px;
        min-width: 220px;
    }

    .block-contact2 {
        max-width: 280px;
    }

    .dashlet-container[data-height="2"][data-name="PortalContacts"] {
        height: 315px !important;
    }


    .news-image {
        width: 100%;
        height: 100%;
    }

    .news-description {
        position: absolute;
        width: calc(56% - 5px);
        background: #F4F6F9;
        bottom: 0;
        padding-bottom: 10px;
        background-image: url(../img/news_elephant_logo.png);
        background-repeat: no-repeat;
        background-position: right;
    }

    .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media screen and (max-width: 767px) {
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}

@media screen and (max-width: 640px) {
    .contacts-panel-group {
        background-color: #F4F6F9;
        border-radius: 3px;
        padding: 12px;
        box-shadow: 4px 4px 6px 1px #d3d4d5;
    }

    div[data-name="PortalContacts_minFlex"] {
        flex-direction: column;
    }

    .panel-default[data-name="PortalContacts"] {
        margin-top: -10px;
    }

    .block-contact1, .block-contact2 {
        margin-bottom: 1rem;
        width: 80%;
    }

    .lev2 {
        margin-top: -18px;
    }

    .contacts-block {
        width: 100%;
    }

    .dashlets.fallback>div {
        margin-bottom: 0;
    }

    .dashlets.fallback>div>.dashlet-container>.panel>.panel-body {
        height: 100%;
    }

    .font-text-capelephant {
        font-family: 'CAPElephant-Regular';
        font-size: 16px;
    }

    .dashlet-container[data-height="2"][data-name="PortalContacts"] {
        height: 432px !important;
    }

    .swiper-slide img {
        display: block;
        width: 100%;
        object-fit: cover;
        margin-bottom: 50%;
    }

    .news-description {
        position: absolute;
        background: #F4F6F9;
        bottom: 0;
        padding-bottom: 10px;
        background-image: url(../img/news_elephant_logo.png);
        background-repeat: no-repeat;
        background-position: right;
    }
}

.font-contacts {
    font-family: 'CAPElephant-Black';
    text-transform: uppercase;
    color: #8B278B;
    font-size: calc(1em + 2.5vw);
    max-font-size: 64px;
}

.font-capelephant {
    font-family: 'CAPElephant-Black';
}

.font-text-button-contacts {
    font-family: 'CAPElephant-Regular';
}

.block-wrap {
    display: inline-block;
    margin: 2px;
    flex-wrap: wrap;
}

/* треба прибрати умову not has */
.page-header.dashboard-header:not(:has(.btn-group)) {
    display: none;
}

.panel-body:has(.flex[data-name="PortalContacts"]) {
    padding-top: 14px !important;
}

.dashlet-container[data-name="PortalContacts"] {
    box-shadow: none;
    border-color: #fefefe !important;
}
.panel.panel-default.dashlet[data-name="PortalContacts"] {
    box-shadow: none;
    border-color: #fefefe !important;
}

.flex[data-name="PortalContacts"] {
    flex-wrap: wrap;
}

.grid-stack-item[data-gs-w="4"] {
    weight: 98% !important;
}

@media screen and (min-width: 768px) {
    .content:has(.main-portal) {
        min-height: 99% !important;
        padding-left: 280px;
        padding-right: 62px;
        max-width: 100% !important;
    }
}

@media screen and (min-width: 1160px) {

    .grid-stack-item[data-gs-h="8"][data-name="PortalContacts"], .grid-stack-item[gs-h="8"][data-name="PortalContacts"] {
        height: 245px !important;
    }

    .grid-stack-item[data-gs-y="8"][data-name="PortalNews"], .grid-stack-item[gs-y="8"][data-name="PortalNews"] {
        top: 230px !important;
    }

}

@media screen and (max-width: 1160px) {

    .grid-stack-item[data-gs-h="8"][data-name="PortalContacts"], .grid-stack-item[gs-h="8"][data-name="PortalContacts"] {
        height: calc(329px + 2vw) !important;
    }

    .grid-stack-item[data-gs-y="8"][data-name="PortalNews"], .grid-stack-item[gs-y="8"][data-name="PortalNews"] {
        top: calc(329px + 2vw) !important;
    }

}

@media screen and (min-width: 1310px) {

    .font-contacts {
        font-size: 64px !important;
    }

}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    filter: blur(5px) opacity(0.5);
    max-width: 1230px;
    overflow: hidden;
    /*-webkit-mask: linear-gradient(to left, rgba(0,0,1,1) 1%, rgba(0,0,0,0) 99%);*/
}

.swiper-slide.swiper-slide-active {
    filter: none;
    box-shadow: none;
    max-width: 1230px;
    -webkit-mask: none;
}