/* =============================================================
   Casete Widget Elementor – v1.1
   ============================================================= */

/* ── CASETE PRINCIPALE ─────────────────────────────────────── */

.cw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.cw-card {
    position: relative;
    border-radius: 16px;
    min-height: 200px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cw-card.cw-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.17);
}

.cw-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.cw-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 20px 24px;
    min-height: 200px;
    box-sizing: border-box;
}

.cw-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.cw-card.cw-hover:hover .cw-circle {
    transform: scale(1.08);
}

.cw-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.cw-icon-svg {
    color: rgba(0,0,0,0.38);
    stroke: rgba(0,0,0,0.38);
}

.cw-title {
    margin: 16px 0 0 0;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.4;
    word-break: break-word;
    color: #fff;
}

/* ── SECTIUNEA LEGATURI NATIONALE ──────────────────────────── */

.cw-legaturi {
    margin-top: 48px;
    width: 100%;
}

.cw-leg-header {
    margin-bottom: 18px;
}

.cw-leg-heading {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #4a5568;
}

.cw-leg-divider {
    border: none;
    border-top: 1px solid #d1d9e6;
    margin: 0;
}

.cw-leg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
    width: 100%;
    box-sizing: border-box;
}

.cw-leg-btn {
    border-radius: 8px;
    min-height: 60px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.cw-leg-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
    filter: brightness(1.07);
}

.cw-leg-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.cw-leg-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    min-height: 60px;
    box-sizing: border-box;
}

.cw-leg-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.cw-leg-icon-svg {
    flex-shrink: 0;
}

.cw-leg-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    word-break: break-word;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .cw-leg-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .cw-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .cw-grid {
        grid-template-columns: 1fr !important;
    }
    .cw-inner {
        min-height: 160px;
        padding: 20px 16px;
    }
    .cw-circle {
        width: 72px;
        height: 72px;
    }
    .cw-icon {
        width: 36px;
        height: 36px;
    }
    .cw-title {
        font-size: 12px;
    }
    .cw-leg-grid {
        grid-template-columns: 1fr !important;
    }
    .cw-leg-text {
        font-size: 12px;
    }
}
