/* ============================================================
   END CARRIAGE — SHOWCASE STYLES
   Extracted from wimaccrane.eu/assets/css/style.css (lines 7494-7574).
   The end-carriage page also loads crane-equipments.css for its
   .hoist-* selectors (already extracted); this file adds the
   .ec-showcase-* card grid used in the panels. Variables
   (--primary, --dark, --gray) come from crane-equipments.css's
   :root block, loaded before this stylesheet.
   ============================================================ */
.ec-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.ec-showcase-item {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ec-showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.ec-showcase-img {
    position: relative;
    overflow: hidden;
}

.ec-showcase-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.ec-showcase-item:hover .ec-showcase-img img {
    transform: scale(1.08);
}

.ec-showcase-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--dark);
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

.ec-showcase-info {
    padding: 25px 30px;
    border-top: 3px solid var(--primary);
}

.ec-showcase-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px;
}

.ec-showcase-info p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .ec-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ec-showcase-img img {
        height: 220px;
    }
}
