/* Issues Widget Styles */
.notabene-issues {
    width: 100%;
}
.notabene-issues-wrapper {padding: 0 16px}

.notabene-issues .swiper-wrapper {
    display: flex;
}

.notabene-issues .swiper-slide {
/*    width: 245px !important;*/
    flex-shrink: 0;
}

.notabene-issues .swiper-slide a {
    display: flex;
    width: 100%;
}

.notabene-issue-card {
    display: flex;
    width: 100%;
    max-width: 245px;
    height: auto;
    aspect-ratio: 245/335;
    padding: var(--16-base-unit, 16px);
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    text-decoration: none;
    border-radius: var(--16-base-unit, 16px);
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--Grey-100, #E7E7E7);
}

.notabene-issue-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.notabene-issue-title {
    color: var(--Black, #000);
    margin: 0;
}

.notabene-issue-date {
    color: var(--Black, #000);
}

.notabene-issue-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notabene-issue-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notabene-issue-card:hover .notabene-issue-hover {
    opacity: 1;
}

.notabene-issue-card:hover .notabene-issue-content {
    opacity: 0;
}

.notabene-issues-button {
    text-align: center;
    /* CTA/Buttons */
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    margin-top: 16px;
    transition: all 0.3s ease;
}
.notabene-issues-button:hover {
    text-decoration: underline;
}

/* Navigation */
.notabene-issues-wrapper .notabene-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.notabene-issues-wrapper .notabene-navigation-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--Grey-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.notabene-issues-wrapper .notabene-navigation-button:hover {
    background: #e0e0e0;
}

.notabene-issues-wrapper .notabene-navigation-button.prev-button svg {
    transform: rotate(-180deg);
}

/* Mobile styles */
@media (max-width: 767px) {
    .notabene-issues-wrapper {padding: 0 0 0 0}
    .notabene-issues-wrapper {
/*        margin: 0 -16px;
        padding: 0 16px;
        width: calc(100% + 32px);
*/    }
    
    .notabene-issues .swiper-wrapper {
        display: flex;
        gap: var(--8-base-unit, 8px);
        padding: 0 16px;
    }
    
    .notabene-issues {
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .notabene-issues::-webkit-scrollbar {
        display: none;
    }

    .notabene-issues .swiper-slide {
        width: 245px !important;
        flex-shrink: 0;
    }

    .notabene-issues .swiper-slide:last-child:after {
      content: "";
      display: block;
      position: absolute;
      right: -16px;
      width: 16px;
      height: 1px;
    }

    .notabene-issues-wrapper .notabene-navigation {
        display: none!important;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .elementor-editor-active .notabene-issues .swiper-wrapper {
        gap: var(--8-base-unit, 8px)!important;
    }
}

@media (min-width: 1440px) {
    .notabene-issues-wrapper {
        max-width: 1269px; /* (245px * 5) + (8px * 4) */
        margin: 0 auto;
    }
    
    .notabene-issues {
        overflow: hidden;
    }
}
