/* ============================================================
   Industries We Serve — Elementor Widget Styles v1.1.0
   Layout: Header LEFT | Arrows RIGHT (top bar)
   No section background | No dots
   ============================================================ */

/* ── Reset ── */
.iws-section *,
.iws-section *::before,
.iws-section *::after { box-sizing: border-box; }

/* ── Section — transparent bg, inherits theme ── */
.iws-section {
    background: transparent;
    padding: 60px 0;
    font-family: inherit;
    overflow: hidden;
    position: relative;
}

/* ────────────────────────────────────────────────────────────
   TOP BAR
   Left: section header text
   Right: arrow buttons (prev + next)
   ──────────────────────────────────────────────────────────── */
.iws-topbar {
    display: flex;
    align-items: flex-end;        /* align title baseline with buttons */
    justify-content: space-between;
    gap: 24px;
    padding: 0 24px;
    margin-bottom: 36px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    /* keep bottom margin */
    margin-bottom: 36px;
}

/* ── Header (left side) ── */
.iws-header {
    flex: 1;
    min-width: 0;                 /* allow text truncation if needed */
}

.iws-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.iws-section-subtitle {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    color: #6b7280;
    margin: 0;
    line-height: 1.65;
    max-width: 560px;
}

/* ── Arrow Group (right side) ── */
.iws-arrow-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Arrow Buttons — round border style ── */
.iws-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.18s ease,
        box-shadow 0.22s ease;
    outline: none;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.iws-arrow-btn svg {
    display: block;
    stroke: currentColor;
    transition: transform 0.18s ease;
}

.iws-arrow-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.iws-arrow-btn:hover.iws-prev svg { transform: translateX(-2px); }
.iws-arrow-btn:hover.iws-next svg { transform: translateX(2px);  }

.iws-arrow-btn:active {
    transform: scale(0.96);
}

.iws-arrow-btn.iws-disabled,
.iws-arrow-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.iws-arrow-btn:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

/* ────────────────────────────────────────────────────────────
   SLIDER TRACK
   ──────────────────────────────────────────────────────────── */
.iws-track-container {
    overflow: hidden;
    padding: 4px 24px 8px;       /* slight top/bottom so box shadows aren't clipped */
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

.iws-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    align-items: stretch;
}

.iws-track.iws-dragging {
    cursor: grabbing;
    transition: none;
}

/* ── Slide ── */
.iws-slide {
    flex: 0 0 calc(25% - 18px);
    min-width: calc(25% - 18px);
    max-width: calc(25% - 18px);
    display: flex;
}

/* ────────────────────────────────────────────────────────────
   CARD
   ──────────────────────────────────────────────────────────── */
.iws-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iws-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    text-decoration: none;
    color: inherit;
}

/* ── Card Image (4:3 = 800×600) ── */
.iws-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.iws-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.iws-card:hover .iws-card-image {
    transform: scale(1.06);
}

/* ── Overlay ── */
.iws-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.iws-card:hover .iws-card-overlay {
    opacity: 0.8;
}

/* ── Icon Badge ── */
.iws-card-icon {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    background: #2563eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(37,99,235,0.4);
    transition: transform 0.25s ease;
}

.iws-card:hover .iws-card-icon {
    transform: scale(1.1) rotate(-4deg);
}

.iws-card-icon i,
.iws-card-icon svg { display: block; }

/* ── Card Body ── */
.iws-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iws-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.iws-card:hover .iws-card-title { color: #2563eb; }

.iws-card-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iws-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: 4px;
    transition: gap 0.2s ease;
}

.iws-card:hover .iws-card-link { gap: 10px; }

.iws-card-link svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.iws-card:hover .iws-card-link svg { transform: translateX(3px); }

/* ────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET: 2 cards
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .iws-slide {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    .iws-topbar {
        padding: 0 20px;
    }

    .iws-track-container {
        padding: 4px 20px 8px;
    }
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE: 1 card, topbar stacks
   ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .iws-section { padding: 48px 0; }

    .iws-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 28px;
        padding: 0 16px;
    }

    .iws-arrow-group { align-self: flex-start; }

    .iws-arrow-btn { width: 42px; height: 42px; }
    .iws-arrow-btn svg { width: 18px; height: 18px; }

    .iws-slide {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .iws-track { gap: 0; }

    .iws-track-container { padding: 4px 16px 8px; }

    .iws-card-body { padding: 16px 18px 18px; }
}

/* ────────────────────────────────────────────────────────────
   ELEMENTOR EDITOR
   ──────────────────────────────────────────────────────────── */
.elementor-editor-active .iws-track {
    transition: none !important;
}

/* ────────────────────────────────────────────────────────────
   ACCESSIBILITY — Reduced Motion
   ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .iws-track,
    .iws-card,
    .iws-card-image,
    .iws-arrow-btn { transition: none; }
}
