/* ============================================================
   Impact Slider — Base Stylesheet
   ============================================================ */

.impact-slider-wrap {
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 2rem;
}

/* Header: heading-block on left, nav on right, aligned to top */
.impact-slider-wrap .is-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 12px;
}
.is-media img {
    height: unset !important;
}
/* Heading block: stacks heading then subheading */
.impact-slider-wrap .is-heading-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}
.impact-slider-wrap .is-main-heading {
    margin: 0;
    line-height: 1.2;
    font-weight: 500;
}
.impact-slider-wrap .is-sub-heading {
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0.7;
}

/* Nav arrows — flex-shrink so they never wrap */
.impact-slider-wrap .is-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 2px;
}
.impact-slider-wrap .is-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}
.impact-slider-wrap .is-arrow:active { transform: scale(0.94); }

/* Viewport clips to one slide */
.impact-slider-wrap .is-viewport {
    overflow: hidden;
    position: relative;
}

/* Track — NO transition set here, JS controls it */
.impact-slider-wrap .is-track {
    display: flex;
    align-items: stretch;
    will-change: transform;
}

/* Slide: 100% wide → one slide fully visible at a time */
.impact-slider-wrap .is-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding-right: 0;
}

.impact-slider-wrap .is-card {
    display: flex;
    overflow: hidden;
    height: auto;
    box-sizing: border-box;
}

.impact-slider-wrap .is-media {
    flex: 0 0 var(--cat-media-w, 42%);
    width: var(--cat-media-w, 42%);
    overflow: hidden;
    position: relative;
        padding: 30px 20px;
}

.impact-slider-wrap .is-main-heading {
    font-weight: 600;
}
.impact-slider-wrap .is-media img,
.impact-slider-wrap .is-media video,
.impact-slider-wrap .is-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}
.impact-slider-wrap .is-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 240px;
    background: #e0e0e0;
}

.impact-slider-wrap .is-content {
    flex: 1 1 auto;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    min-width: 0;
}
.impact-slider-wrap .is-label { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1; }
.impact-slider-wrap .is-title { margin: 0; line-height: 1.35; font-weight: 500; }
.impact-slider-wrap .is-desc  { margin: 0; line-height: 1.65; }
.impact-slider-wrap .is-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    align-self: flex-start;
    white-space: nowrap;
}
.impact-slider-wrap .is-btn:hover  { text-decoration: none; }
.impact-slider-wrap .is-btn:active { transform: scale(0.97); }

.impact-slider-wrap .is-dots { display: flex; justify-content: center; gap: 6px; margin-top: 1rem; }
.impact-slider-wrap .is-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #cccccc; cursor: pointer;
    transition: background 0.2s; display: inline-block;
}

@media (max-width: 640px) {
    /* One full-width slide */
    .impact-slider-wrap .is-slide  { flex: 0 0 100%; width: 100%; padding-right: 0; }

    /* Stack: image → heading → description */
    .impact-slider-wrap .is-card {
        flex-direction: column;
        min-height: unset;
        height: auto;
    }

    /* Image fills full width on top */
    .impact-slider-wrap .is-media {
        flex: none;
        width: 100% !important;
        height: 200px;
        min-height: unset;
    }

    /* Content below image — full width */
    .impact-slider-wrap .is-content {
        flex: none;
        width: 100%;
        box-sizing: border-box;
        padding: 1rem 1.25rem 1.25rem;
        gap: 8px;
        justify-content: flex-start;
    }

    /* Slightly smaller text on mobile */
    .impact-slider-wrap .is-title { font-size: 17px; }
    .impact-slider-wrap .is-desc  { font-size: 14px; }

    /* Slider heading */
    .impact-slider-wrap .is-main-heading { font-size: 20px !important; }
    .impact-slider-wrap .is-sub-heading  { font-size: 14px !important; }
}